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 b1692fb commit 9a43f9dCopy full SHA for 9a43f9d
src/FSharpLint.Client/LSPFSharpLintServiceTypes.fs
@@ -19,9 +19,8 @@ type Folder = private Folder of string
19
with
20
static member from (filePath: string) =
21
if File.Exists(filePath) then
22
- let folder =
23
- Path.GetFullPath(filePath) // to resolves path like /foo/bar/../baz
24
- |> Path.GetDirectoryName
+ // Path.GetFullPath to resolve path like /foo/bar/../baz
+ let folder = ((filePath |> Path.GetFullPath |> FileInfo).Directory).FullName
25
if DirectoryInfo(folder).Exists then
26
folder |> Folder |> Some
27
else
0 commit comments