Skip to content

Commit 11ab9a1

Browse files
committed
Add warning if client was not found on dispatch
1 parent 866d75b commit 11ab9a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vscode-integration/src/common/glsp-vscode-connector.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ export class GlspVscodeConnector<D extends vscode.CustomDocument = vscode.Custom
269269
dispatchAction(action: Action, clientId?: string): void {
270270
const client = clientId ? this.clientMap.get(clientId) : this.getActiveClient();
271271
if (!client) {
272+
console.warn('Could not dispatch action: No client found for clientId or no active client found.', action);
272273
return;
273274
}
274275
const message = { clientId: client.clientId, action };

0 commit comments

Comments
 (0)