@@ -84,17 +84,15 @@ export class Tracer {
84
84
85
85
run ( ) : vscode . OutputChannel | undefined {
86
86
const consentCommandDisposable = vscode . commands . registerCommand ( consentCommandName , ( ) => this . askForTracingConsent ( ) )
87
- if ( this . isTracingEnabled ) {
88
- if ( this . tracingConsent . get ( ) === 'no-answer' ) this . askForTracingConsent ( )
89
- this . initializeAsyncWorkspaceDump ( )
90
-
91
- const lspOutputChannel = this . createLspOutputChannel ( )
92
- const statusBarItem = this . createStatusBarItem ( )
93
- for ( const disposable of [ consentCommandDisposable , lspOutputChannel , statusBarItem ] ) {
94
- if ( disposable ) this . ctx . extensionContext . subscriptions . push ( disposable )
95
- }
96
- return lspOutputChannel
87
+ if ( this . isTracingEnabled && this . tracingConsent . get ( ) === 'no-answer' ) this . askForTracingConsent ( )
88
+ this . initializeAsyncWorkspaceDump ( )
89
+
90
+ const lspOutputChannel = this . createLspOutputChannel ( )
91
+ const statusBarItem = this . createStatusBarItem ( )
92
+ for ( const disposable of [ consentCommandDisposable , lspOutputChannel , statusBarItem ] ) {
93
+ if ( disposable ) this . ctx . extensionContext . subscriptions . push ( disposable )
97
94
}
95
+ return lspOutputChannel
98
96
}
99
97
100
98
private askForTracingConsent ( ) : void {
@@ -111,7 +109,7 @@ export class Tracer {
111
109
112
110
private initializeAsyncWorkspaceDump ( ) {
113
111
const url = this . remoteWorkspaceDumpUrl
114
- if ( url === undefined ) return
112
+ if ( ! url ) return
115
113
116
114
const doInitialize = ( ) => {
117
115
try {
0 commit comments