File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,17 @@ export class Tracer {
7575
7676 run ( ) : vscode . OutputChannel | undefined {
7777 const consentCommandDisposable = vscode . commands . registerCommand ( consentCommandName , ( ) => this . askForTracingConsent ( ) )
78- if ( this . isTracingEnabled && this . tracingConsent . get ( ) === 'no-answer' ) this . askForTracingConsent ( )
79- this . initializeAsyncWorkspaceDump ( )
80-
81- const lspOutputChannel = this . createLspOutputChannel ( )
82- const statusBarItem = this . createStatusBarItem ( )
83- for ( const disposable of [ consentCommandDisposable , lspOutputChannel , statusBarItem ] ) {
84- if ( disposable ) this . ctx . extensionContext . subscriptions . push ( disposable )
78+ if ( this . isTracingEnabled ) {
79+ if ( this . tracingConsent . get ( ) === 'no-answer' ) this . askForTracingConsent ( )
80+ this . initializeAsyncWorkspaceDump ( )
81+
82+ const lspOutputChannel = this . createLspOutputChannel ( )
83+ const statusBarItem = this . createStatusBarItem ( )
84+ for ( const disposable of [ consentCommandDisposable , lspOutputChannel , statusBarItem ] ) {
85+ if ( disposable ) this . ctx . extensionContext . subscriptions . push ( disposable )
86+ }
87+ return lspOutputChannel
8588 }
86- return lspOutputChannel
8789 }
8890
8991 private askForTracingConsent ( ) : void {
You can’t perform that action at this time.
0 commit comments