File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/ts-autocomplete/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,10 @@ function getVirtualLanguageService(
117
117
return fallbackServiceHost ?. readDirectory ?.( ...args ) ?? [ ] ;
118
118
} ,
119
119
directoryExists : ( ...args ) => {
120
- return fallbackServiceHost ?. directoryExists ?.( ...args ) ?? false ;
120
+ // Fallback to true so that it will use the first directory it checks and
121
+ // then try and load that file at which point we'll strip the prefix and
122
+ // service up the right file from codeHolder.
123
+ return fallbackServiceHost ?. directoryExists ?.( ...args ) ?? true ;
121
124
} ,
122
125
getDirectories : ( ...args ) => {
123
126
return fallbackServiceHost ?. getDirectories ?.( ...args ) ?? [ ] ;
@@ -220,9 +223,8 @@ function filterDiagnostics(diagnostics: ts.Diagnostic[]): {
220
223
..._ . pick ( item , 'messageText' ) ,
221
224
} ;
222
225
223
- if ( result . fileName ?. endsWith ( 'shell-api.ts' ) ) {
224
- delete result . text ;
225
- }
226
+ // this just tends to be way too verbose
227
+ delete result . text ;
226
228
227
229
return result ;
228
230
} ) ;
You can’t perform that action at this time.
0 commit comments