Skip to content

Commit

Permalink
Change to remove language names
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunattam committed Mar 6, 2019
1 parent 38414a7 commit 4000275
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
5 changes: 0 additions & 5 deletions client/src/extension.ts
Expand Up @@ -39,11 +39,6 @@ export function activate(context: ExtensionContext) {

// Options to control the language client
let clientOptions: LanguageClientOptions = {
// Register the server for plain text documents
documentSelector: [
{ scheme: 'file', language: 'typescript', exclusive: true } as DocumentFilter,
{ scheme: 'file', language: 'javascript', exclusive: true } as DocumentFilter,
],
synchronize: {
// Notify the server about file changes to '.clientrc files contained in the workspace
fileEvents: workspace.createFileSystemWatcher('sip.json')
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -20,8 +20,7 @@
"vscode": "^1.29.0"
},
"activationEvents": [
"onLanguage:javascript",
"onLanguage:typescript"
"workspaceContains:**/lsif.json"
],
"enableProposedApi": true,
"main": "./client/out/extension",
Expand Down
3 changes: 1 addition & 2 deletions server/src/lsifServer.ts
Expand Up @@ -130,8 +130,7 @@ async function checkRegistrations(): Promise<void> {
}
if (databases.size >= 1 && registrations === undefined) {
let documentSelector: DocumentSelector = [
{ scheme: 'file', language: 'typescript', exclusive: true } as any,
{ scheme: 'file', language: 'javascript', exclusive: true } as any
{ scheme: 'file', language: '*', exclusive: true } as any
];
let toRegister: BulkRegistration = BulkRegistration.create();
toRegister.add(DocumentSymbolRequest.type, {
Expand Down

0 comments on commit 4000275

Please sign in to comment.