@@ -29,7 +29,7 @@ import { ServiceCollection } from 'vs/platform/instantiation/common/serviceColle
2929import { ILocalizationsService } from 'vs/platform/localizations/common/localizations' ;
3030import { LocalizationsService } from 'vs/platform/localizations/node/localizations' ;
3131import { ConsoleLogger , getLogLevel , ILoggerService , ILogService , MultiplexLogService } from 'vs/platform/log/common/log' ;
32- import { LoggerChannel } from 'vs/platform/log/common/logIpc' ;
32+ import { LogLevelChannel } from 'vs/platform/log/common/logIpc' ;
3333import { LoggerService } from 'vs/platform/log/node/loggerService' ;
3434import { SpdLogLogger } from 'vs/platform/log/node/spdlogLog' ;
3535import product from 'vs/platform/product/common/product' ;
@@ -214,7 +214,7 @@ export class Vscode {
214214 private async initializeServices ( args : NativeParsedArgs ) : Promise < void > {
215215 /*
216216 NOTE@coder: this initializeServices is loosely based off this file:
217- https://github.com/cdr/code-server/blob/main/lib/vscode/src/vs/code /electron-browser/sharedProcess/sharedProcessMain.ts#L148
217+ Reference: - ../.. /electron-browser/sharedProcess/sharedProcessMain.ts#L148
218218
219219 If upstream changes cause conflicts, look there ^.
220220 3/11/21 @jsjoeio
@@ -224,7 +224,7 @@ export class Vscode {
224224 fs . mkdirSync ( environmentService . globalStorageHome . fsPath , { recursive : true } ) ;
225225 /*
226226 NOTE@coder: Made these updates on based on this file (and lines):
227- https://github.com/cdr/code-server/blob/main/lib/vscode/src/vs/code /electron-browser/sharedProcess/sharedProcessMain.ts#L144-L149
227+ Reference: - ../.. /electron-browser/sharedProcess/sharedProcessMain.ts#L144-L149
228228
229229 More details (from @code-asher):
230230 I think the logLevel channel is only used in the electron version of vscode so we can probably skip it.
@@ -234,7 +234,7 @@ export class Vscode {
234234 */
235235 const logService = new MultiplexLogService ( [
236236 new ConsoleLogger ( getLogLevel ( environmentService ) ) ,
237- new SpdLogLogger ( RemoteExtensionLogFileName , path . join ( environmentService . logsPath , 'server .log' ) , false , getLogLevel ( environmentService ) )
237+ new SpdLogLogger ( RemoteExtensionLogFileName , path . join ( environmentService . logsPath , ` ${ RemoteExtensionLogFileName } .log` ) , false , getLogLevel ( environmentService ) )
238238 ] ) ;
239239 const fileService = new FileService ( logService ) ;
240240 fileService . registerProvider ( Schemas . file , new DiskFileSystemProvider ( logService ) ) ;
@@ -250,7 +250,13 @@ export class Vscode {
250250 ...environmentService . extraBuiltinExtensionPaths ,
251251 ] ;
252252
253- this . ipc . registerChannel ( 'logger' , new LoggerChannel ( loggerService ) ) ;
253+ /*
254+ NOTE@coder: we changed this channel registration from LogLevel to LogLevelChannel
255+ because it changed upstream.
256+
257+ 3/15/21 jsjoeio
258+ */
259+ this . ipc . registerChannel ( 'logger' , new LogLevelChannel ( logService ) ) ;
254260 this . ipc . registerChannel ( ExtensionHostDebugBroadcastChannel . ChannelName , new ExtensionHostDebugBroadcastChannel ( ) ) ;
255261
256262 this . services . set ( ILogService , logService ) ;
0 commit comments