From 4df6e2094269a33ce0d6529e46bbe16cf6a40576 Mon Sep 17 00:00:00 2001 From: gjsjohnmurray Date: Wed, 6 Mar 2024 18:17:16 +0000 Subject: [PATCH] Source control useractions for projects ignored `"objectscript.serverSourceControl.disableOtherActionTriggers": true` setting --- src/commands/studio.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/commands/studio.ts b/src/commands/studio.ts index d94d55e0..07632d23 100644 --- a/src/commands/studio.ts +++ b/src/commands/studio.ts @@ -106,6 +106,13 @@ export class StudioActions { /** Fire UserAction `id` on server `api` for project `name`. */ public async fireProjectUserAction(api: AtelierAPI, name: string, id: OtherStudioAction): Promise { + const scope = api.wsOrFile instanceof vscode.Uri ? api.wsOrFile : this.uri; + if ( + vscode.workspace.getConfiguration("objectscript.serverSourceControl", scope)?.get("disableOtherActionTriggers") + ) { + this.projectEditAnswer = "1"; + return; + } this.api = api; this.name = `${name}.PRJ`; return this.userAction(