Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
Did not respect default toolchain path
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel committed Aug 29, 2020
1 parent f1afe8a commit fc0d1a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.10.1

- Did not respect default toolchain path

## 2.10.0

- Default to Xcode's sourcekit-lsp on macOS instead of sourcekite
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/vknabel"
},
"license": "Apache-2.0",
"version": "2.10.0",
"version": "2.10.1",
"publisher": "vknabel",
"icon": "icons/icon.png",
"galleryBanner": {
Expand Down
4 changes: 1 addition & 3 deletions src/clientMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ async function currentServerOptions(
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain",
"usr/bin/sourcekit-lsp"
);
const isPreinstalled = await promisify(fs.exists)(
path.resolve(toolchain, "usr/bin/sourcekit-lsp")
);
const isPreinstalled = await promisify(fs.exists)(sourcekitLSPPath);
if (isPreinstalled) {
return sourcekitLSPPath;
}
Expand Down

0 comments on commit fc0d1a2

Please sign in to comment.