Skip to content

Commit

Permalink
Source control useractions for projects ignored `"objectscript.server…
Browse files Browse the repository at this point in the history
…SourceControl.disableOtherActionTriggers": true` setting
  • Loading branch information
gjsjohnmurray committed Mar 6, 2024
1 parent dec3d35 commit 4df6e20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/commands/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
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(
Expand Down

0 comments on commit 4df6e20

Please sign in to comment.