Skip to content

Commit 019a39d

Browse files
Source control useractions for projects ignored "objectscript.serverSourceControl.disableOtherActionTriggers": true setting (#1330)
1 parent dec3d35 commit 019a39d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/commands/studio.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ export class StudioActions {
106106

107107
/** Fire UserAction `id` on server `api` for project `name`. */
108108
public async fireProjectUserAction(api: AtelierAPI, name: string, id: OtherStudioAction): Promise<void> {
109+
const scope = api.wsOrFile instanceof vscode.Uri ? api.wsOrFile : this.uri;
110+
if (
111+
vscode.workspace.getConfiguration("objectscript.serverSourceControl", scope)?.get("disableOtherActionTriggers")
112+
) {
113+
this.projectEditAnswer = "1";
114+
return;
115+
}
109116
this.api = api;
110117
this.name = `${name}.PRJ`;
111118
return this.userAction(

0 commit comments

Comments
 (0)