File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/vscode/src/vs/server/node Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,8 @@ export class Vscode {
209
209
// ../../electron-browser/sharedProcess/sharedProcessMain.ts#L148
210
210
// ../../../code/electron-main/app.ts
211
211
private async initializeServices ( args : NativeParsedArgs ) : Promise < void > {
212
- const environmentService = new NativeEnvironmentService ( args , this . services . get < IProductService > ( IProductService ) as IProductService ) ;
212
+ const productService = { _serviceBrand : undefined , ...product } ;
213
+ const environmentService = new NativeEnvironmentService ( args , productService ) ;
213
214
// https://github.com/cdr/code-server/issues/1693
214
215
fs . mkdirSync ( environmentService . globalStorageHome . fsPath , { recursive : true } ) ;
215
216
const logService = new MultiplexLogService ( [
@@ -244,7 +245,7 @@ export class Vscode {
244
245
245
246
this . services . set ( IRequestService , new SyncDescriptor ( RequestService ) ) ;
246
247
this . services . set ( IFileService , fileService ) ;
247
- this . services . set ( IProductService , { _serviceBrand : undefined , ... product } ) ;
248
+ this . services . set ( IProductService , productService ) ;
248
249
249
250
const machineId = await getMachineId ( ) ;
250
251
You can’t perform that action at this time.
0 commit comments