File tree 1 file changed +10
-8
lines changed 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,17 @@ export class Tracer {
75
75
76
76
run ( ) : vscode . OutputChannel | undefined {
77
77
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
85
88
}
86
- return lspOutputChannel
87
89
}
88
90
89
91
private askForTracingConsent ( ) : void {
You can’t perform that action at this time.
0 commit comments