File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed
Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 4444 "type" : " boolean" ,
4545 "default" : true ,
4646 "description" : " To opt out of sending basic usage telemetry set this to false. Default is true."
47+ },
48+ "azure.showToolsWindowOnStartup" : {
49+ "type" : " boolean" ,
50+ "default" : true ,
51+ "description" : " To prevent the Azure Tools panel showing on startup set this to false. Default is true"
4752 }
4853 }
4954 },
160165 "octonode" : " ^0.7.7" ,
161166 "open" : " 0.0.5"
162167 }
163- }
168+ }
Original file line number Diff line number Diff line change @@ -21,6 +21,15 @@ exports.isTelemetryEnabled = function isTelemetryEnabled() {
2121 return true ;
2222} ;
2323
24+ exports . showToolsWindowOnStartup = function showToolsWindowOnStartup ( ) {
25+ var f = vscode . workspace . getConfiguration ( 'azure' ) ;
26+ if ( f != null )
27+ if ( f . showToolsWindowOnStartup != null )
28+ if ( typeof ( f . showToolsWindowOnStartup ) === "boolean" )
29+ return f . showToolsWindowOnStartup
30+
31+ return true ;
32+ } ;
2433exports . wireUpServiceClientTelemetry = ( serviceClient ) => {
2534 var package = require ( './../package.json' ) ;
2635 var clientVersion = require ( 'util' ) . format ( '%s/%s' ,
Original file line number Diff line number Diff line change 11var vscode = require ( 'vscode' ) ;
2+ var config = require ( './config' ) ;
3+
24
35var channel = null ;
46
57function newChannel ( ) {
68 console . log ( 'new channel' ) ;
79
810 channel = vscode . window . createOutputChannel ( 'Azure Tools' ) ;
9- channel . show ( ) ;
11+ if ( config . showToolsWindowOnStartup ( ) ) {
12+ channel . show ( ) ;
13+ }
1014 return channel ;
1115}
1216
You can’t perform that action at this time.
0 commit comments