File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
standalone-packages/monaco-typescript/src Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ export class TypeScriptWorker implements ts.LanguageServiceHost {
143143 ] . map ( depName => {
144144 const version = p . dependencies [ depName ] || devDependencies [ depName ] ;
145145
146- fetchTypings . fetchAndAddDependencies ( depName , version , ( paths ) => {
146+ return fetchTypings . fetchAndAddDependencies ( depName , version , ( paths ) => {
147147 const fileAmount = Object . keys ( paths ) . length ;
148148
149149 Object . keys ( paths ) . forEach ( p => {
@@ -158,10 +158,12 @@ export class TypeScriptWorker implements ts.LanguageServiceHost {
158158 } ) ;
159159 }
160160 } ) ;
161- } ) . catch ( e => { } ) ;
161+ } ) . catch ( ( ) => { } ) ;
162162 } ) ) . then ( ( ) => {
163- this . typesLoaded = true ;
164163 this . _languageService . cleanupSemanticCache ( ) ;
164+ setTimeout ( ( ) => {
165+ this . typesLoaded = true ;
166+ } ) ;
165167 } ) ;
166168 } catch ( e ) {
167169 return ;
You can’t perform that action at this time.
0 commit comments