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';
21
21
//#region --- Define, capture, and override some globals
22
22
23
23
declare function postMessage ( data : any , transferables ?: Transferable [ ] ) : void ;
24
-
24
+ declare const name : string ; // https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/name
25
25
declare type _Fetch = typeof fetch ;
26
26
27
27
declare namespace self {
@@ -137,7 +137,7 @@ if ((<any>self).Worker) {
137
137
138
138
const js = `(${ bootstrapFnSource } ('${ stringUrl } '))` ;
139
139
options = options || { } ;
140
- options . name = options . name || path . basename ( stringUrl . toString ( ) ) ;
140
+ options . name = ` ${ name } -> ${ options . name || path . basename ( stringUrl . toString ( ) ) } ` ;
141
141
const blob = new Blob ( [ js ] , { type : 'application/javascript' } ) ;
142
142
const blobUrl = URL . createObjectURL ( blob ) ;
143
143
return new _Worker ( blobUrl , options ) ;
You can’t perform that action at this time.
0 commit comments