File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/vs/workbench/contrib/remote/browser Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,11 @@ class HelpItemValue {
285
285
if ( url . authority ) {
286
286
this . _url = this . urlOrCommand ;
287
287
} else {
288
- const urlCommand : Promise < string | undefined > = this . commandService . executeCommand ( this . urlOrCommand ) ;
288
+ const urlCommand : Promise < string | undefined > = this . commandService . executeCommand ( this . urlOrCommand ) . then ( ( result ) => {
289
+ // if executing this command times out, cache its value whenever it eventually resolves
290
+ this . _url = result ;
291
+ return this . _url ;
292
+ } ) ;
289
293
// We must be defensive. The command may never return, meaning that no help at all is ever shown!
290
294
const emptyString : Promise < string > = new Promise ( resolve => setTimeout ( ( ) => resolve ( '' ) , 500 ) ) ;
291
295
this . _url = await Promise . race ( [ urlCommand , emptyString ] ) ;
You can’t perform that action at this time.
0 commit comments