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

Commit

Permalink
Small fixes to #85, thanks a lot @clayreimann!
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel committed Feb 9, 2021
1 parent 45a5c9d commit b247437
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"port": 6004,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out/src/server/**/*.js"
"${workspaceRoot}/out/sourcekites-server/**/*.js"
]
}
]
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Unreleased

- Allow lang server restart #82 #85 by @clayreinann
- Commands for stop, clean and run #82 #85 by @clayreimann

## 2.10.1

- Did not respect default toolchain path
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Though in most cases sourcekit-lsp and sourcekite should produce better results
## Contributors

- Valentin Knabel, [@vknabel](https://github.com/vknabel), [twitter](https://twitter.com/vknabel), _maintainer_
- Clay Jensen-Reimann, [@clayreimann](https://github.com/clayreimann), [twitter](https://twitter.com/clayreimann)
- Jin Mingjian, [@JinMingjian](https://github.com/JinMingjian), [twitter](https://twitter.com/JinMingjian), _author_, not involved anymore
- Felix Fischer, [@felix91gr](https://github.com/felix91gr), [twitter](https://twitter.com/FelixFischer91)
- Mijo Gračanin, [@mijo-gracanin](https://github.com/mijo-gracanin)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
"vscode:prepublish": "npm run build",
"build": "npm run compile",
"compile": "npx tsc",
"format": "npx prettier CHANGELOG.md README.md src/*.ts src/server/**/*.ts tsconfig.json --write",
"format": "npx prettier CHANGELOG.md README.md src/*.ts src/sourcekites-server/**/*.ts tsconfig.json --write",
"test": "npx jest"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion src/toolchain/SwiftTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ export class Toolchain {
if (target) {
buildArgs.unshift(target);
}
buildArgs.unshift("build");
if (!["build", "test"].includes(buildArgs[0])) {
buildArgs.unshift("build");
}
statusBarItem.start();
try {
const { proc, output: buildOutput } = this.spawnSwiftProc(buildArgs, output.build, code => {
Expand Down
2 changes: 1 addition & 1 deletion src/vscode/config-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function isLSPTracingOn(): boolean {
*/
export function sourcekiteServerOptions(context: ExtensionContext): ServerOptions {
// The server is implemented in node
const serverModule = context.asAbsolutePath(path.join("out/src/sourcekites-server", "server.js"));
const serverModule = context.asAbsolutePath(path.join("out/sourcekites-server", "server.js"));
// The debug options for the server
const debugOptions = {
execArgv: ["--nolazy", "--inspect=6004"],
Expand Down

0 comments on commit b247437

Please sign in to comment.