Skip to content

Commit 2224077

Browse files
authored
Merge pull request #4556 from dotty-staging/fix/issue-4542
Fix #4542: Enable Dotty LSP on `.scala` files only
2 parents fabd65d + 2ce96ae commit 2224077

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vscode-dotty/src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ function fetchAndRun(artifact: string) {
8989
function run(serverOptions: ServerOptions) {
9090
const clientOptions: LanguageClientOptions = {
9191
documentSelector: [
92-
{ language: 'scala', scheme: 'file' },
93-
{ language: 'scala', scheme: 'untitled' }
92+
{ language: 'scala', scheme: 'file', pattern: '**/*.scala' },
93+
{ language: 'scala', scheme: 'untitled', pattern: '**/*.scala' }
9494
],
9595
synchronize: {
9696
configurationSection: 'dotty'

0 commit comments

Comments
 (0)