@@ -29,7 +29,7 @@ import { ServiceCollection } from 'vs/platform/instantiation/common/serviceColle
29
29
import { ILocalizationsService } from 'vs/platform/localizations/common/localizations' ;
30
30
import { LocalizationsService } from 'vs/platform/localizations/node/localizations' ;
31
31
import { 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' ;
33
33
import { LoggerService } from 'vs/platform/log/node/loggerService' ;
34
34
import { SpdLogLogger } from 'vs/platform/log/node/spdlogLog' ;
35
35
import product from 'vs/platform/product/common/product' ;
@@ -214,7 +214,7 @@ export class Vscode {
214
214
private async initializeServices ( args : NativeParsedArgs ) : Promise < void > {
215
215
/*
216
216
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
218
218
219
219
If upstream changes cause conflicts, look there ^.
220
220
3/11/21 @jsjoeio
@@ -224,7 +224,7 @@ export class Vscode {
224
224
fs . mkdirSync ( environmentService . globalStorageHome . fsPath , { recursive : true } ) ;
225
225
/*
226
226
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
228
228
229
229
More details (from @code-asher):
230
230
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 {
234
234
*/
235
235
const logService = new MultiplexLogService ( [
236
236
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 ) )
238
238
] ) ;
239
239
const fileService = new FileService ( logService ) ;
240
240
fileService . registerProvider ( Schemas . file , new DiskFileSystemProvider ( logService ) ) ;
@@ -250,7 +250,13 @@ export class Vscode {
250
250
...environmentService . extraBuiltinExtensionPaths ,
251
251
] ;
252
252
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 ) ) ;
254
260
this . ipc . registerChannel ( ExtensionHostDebugBroadcastChannel . ChannelName , new ExtensionHostDebugBroadcastChannel ( ) ) ;
255
261
256
262
this . services . set ( ILogService , logService ) ;
0 commit comments