Skip to content

Commit dbe91e7

Browse files
author
Loïc Mangeonjean
committed
fix: make javascript LSP handle typescript files
1 parent 5357682 commit dbe91e7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/staticOptions.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ const staticOptions = asLanguageClientOptionsById({
185185
scheme: 'file',
186186
pattern: '**/**.{js,jsx}',
187187
language: 'javascript'
188+
},
189+
{
190+
scheme: 'file',
191+
pattern: '**/*.{ts}',
192+
language: 'typescript'
188193
}
189194
],
190195
mutualizable: true
@@ -408,6 +413,11 @@ const staticOptions = asLanguageClientOptionsById({
408413
scheme: 'file',
409414
pattern: '**/*.js',
410415
language: 'javascript'
416+
},
417+
{
418+
scheme: 'file',
419+
pattern: '**/*.{ts}',
420+
language: 'typescript'
411421
}
412422
],
413423
synchronize: {},

0 commit comments

Comments
 (0)