File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/vs/workbench/contrib/mcp Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,7 @@ export class MCPServerActionRendering extends Disposable implements IWorkbenchCo
494
494
} else if ( state === DisplayedState . Error ) {
495
495
const server = findLast ( servers , isServer ) ;
496
496
if ( server ) {
497
- server . showOutput ( ) ;
497
+ await server . showOutput ( true ) ;
498
498
commandService . executeCommand ( McpCommandIds . ServerOptions , server . definition . id ) ;
499
499
}
500
500
} else {
Original file line number Diff line number Diff line change @@ -450,9 +450,9 @@ export class McpServer extends Disposable implements IMcpServer {
450
450
return this . _fullDefinitions ;
451
451
}
452
452
453
- public showOutput ( ) : void {
453
+ public showOutput ( preserveFocus ?: boolean ) {
454
454
this . _loggerService . setVisibility ( this . _loggerId , true ) ;
455
- this . _outputService . showChannel ( this . _loggerId ) ;
455
+ return this . _outputService . showChannel ( this . _loggerId , preserveFocus ) ;
456
456
}
457
457
458
458
public resources ( token ?: CancellationToken ) : AsyncIterable < IMcpResource [ ] > {
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ export interface IMcpServer extends IDisposable {
288
288
*/
289
289
readDefinitions ( ) : IObservable < { server : McpServerDefinition | undefined ; collection : McpCollectionDefinition | undefined } > ;
290
290
291
- showOutput ( ) : void ;
291
+ showOutput ( preserveFocus ?: boolean ) : Promise < void > ;
292
292
/**
293
293
* Starts the server and returns its resulting state. One of:
294
294
* - Running, if all good
You can’t perform that action at this time.
0 commit comments