fix: restricting language services to file schemes

pull/288/head
Jonathan Carter 2018-04-04 16:01:54 -07:00
parent 2765625a9f
commit eabe8c3f41
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
const clientOptions: LanguageClientOptions = {
// Register the server for php documents
documentSelector: ['php'],
documentSelector: [
{ scheme: 'file', language: 'php' },
{ scheme: 'untitled', language: 'php' }
],
uriConverters: {
// VS Code by default %-encodes even the colon after the drive letter
// NodeJS handles it much better