Skip to content

Commit 362a438

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Add canary
1 parent 6b47932 commit 362a438

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

extensions/ql-vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@
13031303
{
13041304
"command": "codeQLQueryHistory.viewAutofixes",
13051305
"group": "1_queryHistory@2",
1306-
"when": "viewItem == remoteResultsItem"
1306+
"when": "viewItem == remoteResultsItem && config.codeQL.canary"
13071307
},
13081308
{
13091309
"command": "codeQLQueries.runLocalQueryFromQueriesPanel",

extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisActions.tsx

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { styled } from "styled-components";
22
import { VariantAnalysisStatus } from "../../variant-analysis/shared/variant-analysis";
33
import { VscodeButton } from "@vscode-elements/react-elements";
4+
import { isCanary } from "../../config";
45

56
export type VariantAnalysisActionsProps = {
67
variantAnalysisStatus: VariantAnalysisStatus;
@@ -70,19 +71,21 @@ export const VariantAnalysisActions = ({
7071
<Container>
7172
{showResultActions && (
7273
<>
73-
<Button
74-
secondary
75-
onClick={onViewAutofixesClick}
76-
disabled={viewAutofixesDisabled}
77-
>
78-
{chooseText({
79-
hasSelectedRepositories,
80-
hasFilteredRepositories,
81-
normalText: "View Autofixes",
82-
selectedText: "View Autofixes for selected results",
83-
filteredText: "View Autofixes for filtered results",
84-
})}
85-
</Button>
74+
{isCanary() && (
75+
<Button
76+
secondary
77+
onClick={onViewAutofixesClick}
78+
disabled={viewAutofixesDisabled}
79+
>
80+
{chooseText({
81+
hasSelectedRepositories,
82+
hasFilteredRepositories,
83+
normalText: "View Autofixes",
84+
selectedText: "View Autofixes for selected results",
85+
filteredText: "View Autofixes for filtered results",
86+
})}
87+
</Button>
88+
)}
8689
<Button
8790
secondary
8891
onClick={onCopyRepositoryListClick}

0 commit comments

Comments
 (0)