We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cff9e7 commit 5b4ce38Copy full SHA for 5b4ce38
src/FSharpLint.Client/LSPFSharpLintServiceTypes.fs
@@ -1,4 +1,4 @@
1
-module FSharpLint.Client.LSPFSharpLintServiceTypes
+module FSharpLint.Client.LSPFSharpLintServiceTypes
2
3
open System
4
open System.Diagnostics
@@ -19,7 +19,9 @@ type Folder = private Folder of string
19
with
20
static member from (filePath: string) =
21
if File.Exists(filePath) then
22
- let folder = Path.GetFullPath(filePath) |> Path.GetDirectoryName
+ let folder =
23
+ Path.GetFullPath(filePath) // to resolves path like /foo/bar/../baz
24
+ |> Path.GetDirectoryName
25
if DirectoryInfo(folder).Exists then
26
folder |> Folder |> Some
27
else
0 commit comments