Skip to content

Commit 852ca63

Browse files
committed
vscode-dotty: Avoid conflict with Visual Studio Live Share
See explanation in dragos/dragos-vscode-scala#82
1 parent df48ce1 commit 852ca63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vscode-dotty/src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ function fetchAndRun(artifact: string) {
8888

8989
function run(serverOptions: ServerOptions) {
9090
const clientOptions: LanguageClientOptions = {
91-
documentSelector: ['scala'],
91+
documentSelector: [
92+
{ language: 'scala', scheme: 'file' },
93+
{ language: 'scala', scheme: 'untitled' }
94+
],
9295
synchronize: {
9396
configurationSection: 'dotty'
9497
}

0 commit comments

Comments
 (0)