File tree 1 file changed +3
-2
lines changed
lib/vscode/src/vs/server/node
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ import { REMOTE_TERMINAL_CHANNEL_NAME } from 'vs/workbench/contrib/terminal/comm
58
58
import { REMOTE_FILE_SYSTEM_CHANNEL_NAME } from 'vs/workbench/services/remote/common/remoteAgentFileSystemChannel' ;
59
59
import { RemoteExtensionLogFileName } from 'vs/workbench/services/remote/common/remoteAgentService' ;
60
60
61
+ const commit = product . commit || 'development' ;
62
+
61
63
export class Vscode {
62
64
public readonly _onDidClientConnect = new Emitter < ClientConnectionEvent > ( ) ;
63
65
public readonly onDidClientConnect = this . _onDidClientConnect . event ;
@@ -109,7 +111,7 @@ export class Vscode {
109
111
remoteUserDataUri : transformer . transformOutgoing ( URI . file ( environment . userDataPath ) ) ,
110
112
productConfiguration : product ,
111
113
nlsConfiguration : await getNlsConfiguration ( environment . args . locale || await getLocaleFromConfig ( environment . userDataPath ) , environment . userDataPath ) ,
112
- commit : product . commit || 'development' ,
114
+ commit,
113
115
} ;
114
116
}
115
117
@@ -255,7 +257,6 @@ export class Vscode {
255
257
instantiationService . invokeFunction ( ( accessor ) => {
256
258
instantiationService . createInstance ( LogsDataCleaner ) ;
257
259
258
- const commit = typeof product . commit === 'string' ? product . commit : 'unknown' ;
259
260
let telemetryService : ITelemetryService ;
260
261
if ( ! environmentService . disableTelemetry ) {
261
262
telemetryService = new TelemetryService ( {
You can’t perform that action at this time.
0 commit comments