Skip to content

Commit 078aacf

Browse files
authored
Merge pull request swiftlang#12 from ainopara/master
Add setting `trace.server` to vscode extension
2 parents d0803e9 + a261b94 commit 078aacf

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Editors/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ After installing the extension, settings for SourceKit-LSP can be found in `Pref
1313

1414
* `sourcekit-lsp.serverPath`: The path to sourcekit-lsp executable
1515
* `sourcekit-lsp.toolchainPath`: The path to the swift toolchain (sets `SOURCEKIT_TOOLCHAIN_PATH`)
16+
* `sourcekit-lsp.tracing.server`: Traces the communication between VS Code and the SourceKit-LSP language server
1617

1718
## Sublime Text
1819

Editors/vscode/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@
5050
"type": "string",
5151
"default": "",
5252
"description": "The path of the swift toolchain"
53+
},
54+
"sourcekit-lsp.trace.server": {
55+
"type": "string",
56+
"default": "off",
57+
"enum": [
58+
"off",
59+
"messages",
60+
"verbose"
61+
],
62+
"description": "Traces the communication between VS Code and the SourceKit-LSP language server."
5363
}
5464
}
5565
}

Editors/vscode/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function activate(context: vscode.ExtensionContext) {
2929
synchronize: undefined
3030
};
3131

32-
const client = new langclient.LanguageClient('SourceKit Language Server', serverOptions, clientOptions);
32+
const client = new langclient.LanguageClient('sourcekit-lsp', 'SourceKit Language Server', serverOptions, clientOptions);
3333

3434
context.subscriptions.push(client.start());
3535

0 commit comments

Comments
 (0)