Skip to content

Commit

Permalink
fix: restricting language services to file schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
lostintangent authored and felixfbecker committed Apr 5, 2018
1 parent 2765625 commit 42eca3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42eca3f

Please sign in to comment.