Skip to content

Commit 6acb227

Browse files
Merge pull request #252 from gjsjohnmurray/fix-251
fix #251 'Studio Action "Changed Namespace" not supported'
2 parents 55bb542 + a0c613e commit 6acb227

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/commands/studio.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ class StudioActions {
284284
)
285285
.catch((err) => {
286286
console.log(err);
287-
outputChannel.appendLine(`Studio Action "${action.label}" not supported`);
287+
outputChannel.appendLine(
288+
`Studio Action "${action.label}" not supported on ${this.api.config.host}:${this.api.config.port}[${this.api.config.ns}]`
289+
);
288290
outputChannel.show();
289291
return Promise.reject();
290292
});

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ export function checkConnection(clearCookies = false, uri?: vscode.Uri): void {
238238
/// Use xdebug's websocket, to catch when server disconnected
239239
connectionSocket = new WebSocket(api.xdebugUrl());
240240
connectionSocket.onopen = () => {
241-
fireOtherStudioAction(OtherStudioAction.ConnectedToNewNamespace);
241+
fireOtherStudioAction(
242+
OtherStudioAction.ConnectedToNewNamespace,
243+
typeof apiTarget === "string" ? undefined : apiTarget
244+
);
242245
panel.text = `${connInfo} - Connected`;
243246
};
244247
connectionSocket.onclose = (event) => {

0 commit comments

Comments
 (0)