This repository was archived by the owner on Jul 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 194
194
"commands" : [
195
195
{
196
196
"command" : " vscode-graphql.isDebugging" ,
197
- "title" : " VSCode GraphQL - Is Debugging?"
197
+ "title" : " VSCode GraphQL: Is Debugging?"
198
198
},
199
199
{
200
200
"command" : " vscode-graphql.restart" ,
201
- "title" : " VSCode GraphQL - Manual Restart"
201
+ "title" : " VSCode GraphQL: Manual Restart"
202
+ },
203
+ {
204
+ "command" : " vscode-graphql.showOutputChannel" ,
205
+ "title" : " VSCode GraphQL: Show output channel"
202
206
},
203
207
{
204
208
"command" : " vscode-graphql.contentProvider" ,
205
- "title" : " Execute GraphQL Operations"
209
+ "title" : " VSCode GraphQL: Execute GraphQL Operations"
206
210
}
207
211
]
208
212
},
Original file line number Diff line number Diff line change @@ -113,6 +113,14 @@ export function activate(context: ExtensionContext) {
113
113
)
114
114
context . subscriptions . push ( commandIsDebugging )
115
115
116
+ const commandShowOutputChannel = commands . registerCommand (
117
+ "vscode-graphql.showOutputChannel" ,
118
+ ( ) => {
119
+ outputChannel . show ( )
120
+ } ,
121
+ )
122
+ context . subscriptions . push ( commandShowOutputChannel )
123
+
116
124
// Manage Status Bar
117
125
context . subscriptions . push ( statusBarItem )
118
126
client . onReady ( ) . then ( ( ) => {
Original file line number Diff line number Diff line change @@ -83,12 +83,12 @@ function updateStatusBar(
83
83
statusBarItem : StatusBarItem ,
84
84
editor : TextEditor | undefined ,
85
85
) {
86
- extensionStatus = serverRunning ? Status . RUNNING : Status . ERROR
86
+ extensionStatus = serverRunning ? Status . RUNNING : Status . ERROR ;
87
87
88
- const statusUI = statusBarUIElements [ extensionStatus ]
89
- statusBarItem . text = `$(${ statusUI . icon } ) ${ statusBarText } `
90
- statusBarItem . tooltip = statusUI . tooltip
91
- statusBarItem . command = "vscode-graphql.isDebugging"
88
+ const statusUI = statusBarUIElements [ extensionStatus ] ;
89
+ statusBarItem . text = `$(${ statusUI . icon } ) ${ statusBarText } ` ;
90
+ statusBarItem . tooltip = statusUI . tooltip ;
91
+ statusBarItem . command = "vscode-graphql.showOutputChannel" ;
92
92
if ( "color" in statusUI ) statusBarItem . color = statusUI . color
93
93
94
94
if (
You can’t perform that action at this time.
0 commit comments