File tree Expand file tree Collapse file tree
lib/vscode/src/vs/server/node Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,7 +209,8 @@ export class Vscode {
209209 // ../../electron-browser/sharedProcess/sharedProcessMain.ts#L148
210210 // ../../../code/electron-main/app.ts
211211 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 ) ;
213214 // https://github.com/cdr/code-server/issues/1693
214215 fs . mkdirSync ( environmentService . globalStorageHome . fsPath , { recursive : true } ) ;
215216 const logService = new MultiplexLogService ( [
@@ -244,7 +245,7 @@ export class Vscode {
244245
245246 this . services . set ( IRequestService , new SyncDescriptor ( RequestService ) ) ;
246247 this . services . set ( IFileService , fileService ) ;
247- this . services . set ( IProductService , { _serviceBrand : undefined , ... product } ) ;
248+ this . services . set ( IProductService , productService ) ;
248249
249250 const machineId = await getMachineId ( ) ;
250251
You can’t perform that action at this time.
0 commit comments