Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit 4839a46

Browse files
committed
Restricting language services to local files
1 parent 4193945 commit 4839a46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scala/src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ export async function activate(context: ExtensionContext) {
7575
// Options to control the language client
7676
let clientOptions: LanguageClientOptions = {
7777
// Register the server for plain text documents
78-
documentSelector: ['scala'],
78+
documentSelector: [
79+
{ language: 'scala', scheme: 'file' },
80+
{ language: 'scala', scheme: 'untitled' }
81+
],
7982
synchronize: {
8083
// // Synchronize the setting section 'languageServerExample' to the server
8184
// configurationSection: 'languageServerExample',

0 commit comments

Comments
 (0)