Setting name cleanup

This commit is contained in:
Dirk Baeumer
2017-09-04 21:24:33 +02:00
parent 75039388ca
commit f4196d9954
4 changed files with 7 additions and 10 deletions

View File

@ -24,13 +24,13 @@
"type": "object",
"title": "Example configuration",
"properties": {
"lsp-multi-root-sample.maxNumberOfProblems": {
"lspMultiRootSample.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server."
},
"lsp-multi-root-sample.trace.server": {
"lspMultiRootSample.trace.server": {
"scope": "window",
"type": "string",
"enum": [
@ -39,7 +39,7 @@
"verbose"
],
"default": "off",
"description": "Traces the communication between VSCode and the languageServerExample service."
"description": "Traces the communication between VSCode and the language server."
}
}
}

View File

@ -49,9 +49,9 @@ export function activate(context: ExtensionContext) {
}
let config: WorkspaceConfiguration;
if (item.scopeUri) {
config = workspace.getConfiguration('lsp-multi-root-sample', client.protocol2CodeConverter.asUri(item.scopeUri));
config = workspace.getConfiguration('lspMultiRootSample', client.protocol2CodeConverter.asUri(item.scopeUri));
} else {
config = workspace.getConfiguration('lsp-multi-root-sample');
config = workspace.getConfiguration('lspMultiRootSample');
}
result.push({
maxNumberOfProblems: config.get('maxNumberOfProblems')

View File

@ -3,6 +3,7 @@
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"rootDir": ".",
"outDir": "out",
"lib": [ "es2016" ],
"sourceMap": true

View File

@ -25,11 +25,7 @@ connection.onInitialize((params): InitializeResult => {
return {
capabilities: {
// Tell the client that the server works in FULL text document sync mode
textDocumentSync: documents.syncKind,
// Tell the client that the server support code complete
completionProvider: {
resolveProvider: true
}
textDocumentSync: documents.syncKind
}
}
});