update multi-root language server example

This commit is contained in:
Martin Aeschlimann
2017-10-10 17:51:16 +02:00
parent 24a151f0c5
commit bbead1671f
3 changed files with 76 additions and 73 deletions

View File

@ -68,14 +68,15 @@ export function activate(context: ExtensionContext) {
documentSelector: [{scheme: 'file', language: 'plaintext'}],
synchronize: {
// Notify the server about file changes to '.clientrc files contain in the workspace
fileEvents: workspace.createFileSystemWatcher('**/.clientrc')
fileEvents: workspace.createFileSystemWatcher('**/.clientrc'),
configurationSection: [ 'lspMultiRootSample' ]
},
middleware: middleware as Middleware
}
// Create the language client and start the client.
let client = new LanguageClient('languageServerExample', 'Language Server Example', serverOptions, clientOptions);
// Register new propose protocol if available.
// Register new proposed protocol if available.
client.registerProposedFeatures();
// Start the client. This will also launch the server