File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,27 @@ module Project =
3333 let rec findProjs dir =
3434 let files = Globals.readdirSync dir
3535 files
36- |> Array.collect( fun s ->
36+ |> Array.toList
37+ |> List.collect( fun s ->
3738 try
39+ let s = dir + Globals.sep + s
3840 if Globals.statSync( s) .isDirectory () then
39- findProjs ( dir + Globals.sep + s)
41+ findProjs ( s)
4042 else
41- if s.EndsWith " .fsproj" then [| s | ] else [|| ]
43+ if s.EndsWith " .fsproj" then [ s ] else []
4244 with
43- | _ -> [|| ]
45+ | _ -> []
4446 )
4547
4648 workspace.Globals.rootPath |> findProjs
4749
4850 let activate () =
49- findAll ()
50- |> Array.iter ( LanguageService.project >> ignore)
51+ match findAll () with
52+ | [] -> ()
53+ | [ x] -> LanguageService.project x |> ignore
54+ | x:: tail ->
55+ tail
56+ |> List.fold ( fun acc e -> acc |> Promise.bind( fun _ -> LanguageService.project e) )
57+ ( LanguageService.project x)
58+ |> ignore
59+
You can’t perform that action at this time.
0 commit comments