fix: restricting language services to file schemes

pull/291/head v2.3.1
Jonathan Carter 2018-04-04 16:01:54 -07:00 committed by Felix Becker
parent 2765625a9f
commit 42eca3f8d7
1 changed files with 4 additions and 1 deletions

View File

@ -93,7 +93,10 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
// Options to control the language client // Options to control the language client
const clientOptions: LanguageClientOptions = { const clientOptions: LanguageClientOptions = {
// Register the server for php documents // Register the server for php documents
documentSelector: ['php'], documentSelector: [
{ scheme: 'file', language: 'php' },
{ scheme: 'untitled', language: 'php' }
],
uriConverters: { uriConverters: {
// VS Code by default %-encodes even the colon after the drive letter // VS Code by default %-encodes even the colon after the drive letter
// NodeJS handles it much better // NodeJS handles it much better