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
494494 } else if ( state === DisplayedState . Error ) {
495495 const server = findLast ( servers , isServer ) ;
496496 if ( server ) {
497- server . showOutput ( ) ;
497+ await server . showOutput ( true ) ;
498498 commandService . executeCommand ( McpCommandIds . ServerOptions , server . definition . id ) ;
499499 }
500500 } else {
Original file line number Diff line number Diff line change @@ -450,9 +450,9 @@ export class McpServer extends Disposable implements IMcpServer {
450450 return this . _fullDefinitions ;
451451 }
452452
453- public showOutput ( ) : void {
453+ public showOutput ( preserveFocus ?: boolean ) {
454454 this . _loggerService . setVisibility ( this . _loggerId , true ) ;
455- this . _outputService . showChannel ( this . _loggerId ) ;
455+ return this . _outputService . showChannel ( this . _loggerId , preserveFocus ) ;
456456 }
457457
458458 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 {
288288 */
289289 readDefinitions ( ) : IObservable < { server : McpServerDefinition | undefined ; collection : McpCollectionDefinition | undefined } > ;
290290
291- showOutput ( ) : void ;
291+ showOutput ( preserveFocus ?: boolean ) : Promise < void > ;
292292 /**
293293 * Starts the server and returns its resulting state. One of:
294294 * - Running, if all good
You can’t perform that action at this time.
0 commit comments