File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -55,16 +55,9 @@ export function getTsCompletions(ts: typeof import('typescript/lib/tsserverlibra
55
55
56
56
export function createTsLanguageService (
57
57
ts : typeof import ( 'typescript/lib/tsserverlibrary' ) ,
58
- _host : ts . LanguageServiceHost ,
58
+ host : ts . LanguageServiceHost ,
59
59
) {
60
- // @ts -ignore
61
- const importSuggestionsCache = ts . Completions ?. createImportSuggestionsForFileCache ?.( ) ;
62
- const host = {
63
- ..._host ,
64
- // @ts -ignore
65
- // TODO: crash on 'addListener' from 'node:process', reuse because TS has same problem
66
- getImportSuggestionsCache : ( ) => importSuggestionsCache ,
67
- } ;
60
+ // TODO: new cache logic https://github.com/microsoft/TypeScript/blob/4c0a51e14b67460b47bdcebea6b70270a83a243e/src/server/project.ts#L258
68
61
return ts . createLanguageService ( host ) ;
69
62
}
70
63
You can’t perform that action at this time.
0 commit comments