Skip to content

Commit

Permalink
fix(vscode): resolve errors in logs since moving default contextive.p…
Browse files Browse the repository at this point in the history
…ath from vscode to the languageServer
  • Loading branch information
chrissimon-au committed Jun 12, 2024
1 parent b4811bd commit 79f4854
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/vscode/contextive/src/Extension.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ let private ExtensionId = "contextive"
let private languageClientOptions = jsOptions<LanguageClientOptions>
let private executable f = jsOptions<Executable> f

let private executableOptions f =
Some <| jsOptions<ExecutableOptions> f
let private executableOptions f = Some <| jsOptions<ExecutableOptions> f

let private argsArray (f: string list) = Some <| ResizeArray<string>(f)

Expand Down
3 changes: 2 additions & 1 deletion src/vscode/contextive/src/MultiRoot.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ let getPath (result: ResizeArray<obj>) = result[0]?path

let private configExists (result: ResizeArray<obj>) = result.Count > 0

let private isConfiguredPathAbsolute (result: ResizeArray<obj>) = result |> getPath |> path.isAbsolute
let private isConfiguredPathAbsolute (result: ResizeArray<obj>) =
result |> getPath |> (fun p -> p = null || path.isAbsolute p)

let private pathNeedsRewriting (result: ResizeArray<obj>) =
configExists result && not <| isConfiguredPathAbsolute result
Expand Down

0 comments on commit 79f4854

Please sign in to comment.