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

Commit fc0d1a2

Browse files
committed
Did not respect default toolchain path
1 parent f1afe8a commit fc0d1a2

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.10.1
4+
5+
- Did not respect default toolchain path
6+
37
## 2.10.0
48

59
- Default to Xcode's sourcekit-lsp on macOS instead of sourcekite

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/vknabel"
99
},
1010
"license": "Apache-2.0",
11-
"version": "2.10.0",
11+
"version": "2.10.1",
1212
"publisher": "vknabel",
1313
"icon": "icons/icon.png",
1414
"galleryBanner": {

src/clientMain.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ async function currentServerOptions(
109109
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain",
110110
"usr/bin/sourcekit-lsp"
111111
);
112-
const isPreinstalled = await promisify(fs.exists)(
113-
path.resolve(toolchain, "usr/bin/sourcekit-lsp")
114-
);
112+
const isPreinstalled = await promisify(fs.exists)(sourcekitLSPPath);
115113
if (isPreinstalled) {
116114
return sourcekitLSPPath;
117115
}

0 commit comments

Comments
 (0)