Skip to content

Commit

Permalink
Include ${userHome} in the supported path placeholders (#3580)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessupjn authored Jul 5, 2023
1 parent 6588bb3 commit 400aaac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vscode-cairo/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ function isExecutable(path: string): boolean {
}

function replacePathPlaceholders(path: string, root: string): string {
return path.replace(/\${workspaceFolder}/g, root);
return path
.replace(/\${workspaceFolder}/g, root)
.replace(/\${userHome}/g, process.env.HOME ?? "");
}

function findLanguageServerExecutable(
Expand Down

0 comments on commit 400aaac

Please sign in to comment.