@@ -196,6 +196,7 @@ export function checkConnection(clearCookies = false, uri?: vscode.Uri): void {
196
196
outputChannel . appendLine (
197
197
`Something is wrong with your docker-compose connection settings, or your service is not running.`
198
198
) ;
199
+ outputChannel . show ( true ) ;
199
200
panel . text = `${ packageJson . displayName } - ERROR` ;
200
201
return ;
201
202
}
@@ -222,6 +223,7 @@ export function checkConnection(clearCookies = false, uri?: vscode.Uri): void {
222
223
if ( ! api . config . host || ! api . config . port || ! api . config . ns ) {
223
224
const message = "host, port and ns must be specified." ;
224
225
outputChannel . appendLine ( message ) ;
226
+ outputChannel . show ( true ) ;
225
227
panel . text = `${ packageJson . displayName } - ERROR` ;
226
228
panel . tooltip = message ;
227
229
return ;
@@ -281,9 +283,11 @@ export function checkConnection(clearCookies = false, uri?: vscode.Uri): void {
281
283
outputChannel . appendLine (
282
284
`Authorization error: Check your credentials in Settings, and that you have sufficient privileges on the /api/atelier web application on ${ connInfo } `
283
285
) ;
286
+ outputChannel . show ( true ) ;
284
287
} else {
285
- outputChannel . appendLine ( `Error: ${ message } ` ) ;
288
+ outputChannel . appendLine ( message ) ;
286
289
outputChannel . appendLine ( `Check your server details in Settings (${ connInfo } ).` ) ;
290
+ outputChannel . show ( true ) ;
287
291
}
288
292
console . error ( error ) ;
289
293
panel . text = `${ connInfo } - ERROR` ;
@@ -292,6 +296,9 @@ export function checkConnection(clearCookies = false, uri?: vscode.Uri): void {
292
296
} )
293
297
. finally ( ( ) => {
294
298
explorerProvider . refresh ( ) ;
299
+ if ( schemes . includes ( uri . scheme ) ) {
300
+ vscode . commands . executeCommand ( "workbench.files.action.refreshFilesExplorer" ) ;
301
+ }
295
302
} ) ;
296
303
}
297
304
0 commit comments