diff --git a/src/commands/workspaceCommand.ts b/src/commands/workspaceCommand.ts index 879014fe..58f1c290 100644 --- a/src/commands/workspaceCommand.ts +++ b/src/commands/workspaceCommand.ts @@ -245,6 +245,8 @@ export async function runActiveEditor(type?: ExecutionTypes) { if (!server) { server = ""; } + const connection = await getConnectionForServer(server); + server = connection?.label || ""; if (!connMngService.isConnected(server) && isScratchpad(uri)) { offerConnectAction(server); return;