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

Commit 9119ec3

Browse files
committed
Merge branch 'clayreimann-allow-lang-server-restart'
2 parents 6d1c41c + b247437 commit 9119ec3

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"port": 6004,
9999
"sourceMaps": true,
100100
"outFiles": [
101-
"${workspaceRoot}/out/src/server/**/*.js"
101+
"${workspaceRoot}/out/sourcekites-server/**/*.js"
102102
]
103103
}
104104
]

CHANGELOG.md

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

3+
## Unreleased
4+
5+
- Allow lang server restart #82 #85 by @clayreinann
6+
- Commands for stop, clean and run #82 #85 by @clayreimann
7+
38
## 2.10.1
49

510
- Did not respect default toolchain path

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Though in most cases sourcekit-lsp and sourcekite should produce better results
6363
## Contributors
6464

6565
- Valentin Knabel, [@vknabel](https://github.com/vknabel), [twitter](https://twitter.com/vknabel), _maintainer_
66+
- Clay Jensen-Reimann, [@clayreimann](https://github.com/clayreimann), [twitter](https://twitter.com/clayreimann)
6667
- Jin Mingjian, [@JinMingjian](https://github.com/JinMingjian), [twitter](https://twitter.com/JinMingjian), _author_, not involved anymore
6768
- Felix Fischer, [@felix91gr](https://github.com/felix91gr), [twitter](https://twitter.com/FelixFischer91)
6869
- Mijo Gračanin, [@mijo-gracanin](https://github.com/mijo-gracanin)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
"vscode:prepublish": "npm run build",
260260
"build": "npm run compile",
261261
"compile": "npx tsc",
262-
"format": "npx prettier CHANGELOG.md README.md src/*.ts src/server/**/*.ts tsconfig.json --write",
262+
"format": "npx prettier CHANGELOG.md README.md src/*.ts src/sourcekites-server/**/*.ts tsconfig.json --write",
263263
"test": "npx jest"
264264
},
265265
"devDependencies": {

src/toolchain/SwiftTools.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ export class Toolchain {
127127
if (target) {
128128
buildArgs.unshift(target);
129129
}
130-
buildArgs.unshift("build");
130+
if (!["build", "test"].includes(buildArgs[0])) {
131+
buildArgs.unshift("build");
132+
}
131133
statusBarItem.start();
132134
try {
133135
const { proc, output: buildOutput } = this.spawnSwiftProc(buildArgs, output.build, code => {

src/vscode/config-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function isLSPTracingOn(): boolean {
4242
*/
4343
export function sourcekiteServerOptions(context: ExtensionContext): ServerOptions {
4444
// The server is implemented in node
45-
const serverModule = context.asAbsolutePath(path.join("out/src/sourcekites-server", "server.js"));
45+
const serverModule = context.asAbsolutePath(path.join("out/sourcekites-server", "server.js"));
4646
// The debug options for the server
4747
const debugOptions = {
4848
execArgv: ["--nolazy", "--inspect=6004"],

0 commit comments

Comments
 (0)