File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/api/worker Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import { URI } from 'vs/base/common/uri';
2121//#region --- Define, capture, and override some globals
2222
2323declare function postMessage ( data : any , transferables ?: Transferable [ ] ) : void ;
24-
24+ declare const name : string ; // https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/name
2525declare type _Fetch = typeof fetch ;
2626
2727declare namespace self {
@@ -137,7 +137,7 @@ if ((<any>self).Worker) {
137137
138138 const js = `(${ bootstrapFnSource } ('${ stringUrl } '))` ;
139139 options = options || { } ;
140- options . name = options . name || path . basename ( stringUrl . toString ( ) ) ;
140+ options . name = ` ${ name } -> ${ options . name || path . basename ( stringUrl . toString ( ) ) } ` ;
141141 const blob = new Blob ( [ js ] , { type : 'application/javascript' } ) ;
142142 const blobUrl = URL . createObjectURL ( blob ) ;
143143 return new _Worker ( blobUrl , options ) ;
You can’t perform that action at this time.
0 commit comments