Skip to content

Commit a2f3f5f

Browse files
authored
Merge pull request #3128 from github/koesie10/feature-flags-1.11.0
Remove feature flags for release v1.11.0
2 parents 9cb4d23 + ce84fed commit a2f3f5f

21 files changed

+54
-392
lines changed

extensions/ql-vscode/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [UNRELEASED]
44

5+
- Add a new method modeling panel to classify methods as sources/sinks/summaries while in the context of the source code. [#3128](https://github.com/github/vscode-codeql/pull/3128)
6+
- Adds the ability to add multiple classifications per method in the CodeQL Model Editor. [#3128](https://github.com/github/vscode-codeql/pull/3128)
57
- Add a prompt to the "Quick query" command to encourage users in single-folder workspaces to use "Create query" instead. [#3082](https://github.com/github/vscode-codeql/pull/3082)
68
- Remove support for CodeQL CLI versions older than 2.11.6. [#3087](https://github.com/github/vscode-codeql/pull/3087)
79
- Preserve focus on results viewer when showing a location in a file. [#3088](https://github.com/github/vscode-codeql/pull/3088)

extensions/ql-vscode/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,8 +1840,7 @@
18401840
{
18411841
"id": "codeQLMethodModeling",
18421842
"type": "webview",
1843-
"name": "CodeQL Method Modeling",
1844-
"when": "config.codeQL.canary"
1843+
"name": "CodeQL Method Modeling"
18451844
}
18461845
],
18471846
"codeql-methods-usage": [

extensions/ql-vscode/src/config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,6 @@ export interface ModelConfig {
726726
flowGeneration: boolean;
727727
llmGeneration: boolean;
728728
getExtensionsDirectory(languageId: string): string | undefined;
729-
showMultipleModels: boolean;
730729
enableRuby: boolean;
731730
}
732731

@@ -765,10 +764,6 @@ export class ModelConfigListener extends ConfigListener implements ModelConfig {
765764
});
766765
}
767766

768-
public get showMultipleModels(): boolean {
769-
return isCanary();
770-
}
771-
772767
public get enableRuby(): boolean {
773768
return !!ENABLE_RUBY.getValue<boolean>();
774769
}

extensions/ql-vscode/src/model-editor/method-modeling/method-modeling-view-provider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export class MethodModelingViewProvider extends AbstractWebviewViewProvider<
4848
t: "setMethodModelingPanelViewState",
4949
viewState: {
5050
language: this.language,
51-
showMultipleModels: this.modelConfig.showMultipleModels,
5251
},
5352
});
5453
}

extensions/ql-vscode/src/model-editor/model-editor-view.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ export class ModelEditorView extends AbstractWebview<
385385
language: this.language,
386386
showGenerateButton,
387387
showLlmButton,
388-
showMultipleModels: this.modelConfig.showMultipleModels,
389388
mode: this.modelingStore.getMode(this.databaseItem),
390389
showModeSwitchButton,
391390
sourceArchiveAvailable,

extensions/ql-vscode/src/model-editor/shared/modeled-methods-legacy.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

extensions/ql-vscode/src/model-editor/shared/view-state.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ export interface ModelEditorViewState {
77
language: QueryLanguage;
88
showGenerateButton: boolean;
99
showLlmButton: boolean;
10-
showMultipleModels: boolean;
1110
mode: Mode;
1211
showModeSwitchButton: boolean;
1312
sourceArchiveAvailable: boolean;
1413
}
1514

1615
export interface MethodModelingPanelViewState {
1716
language: QueryLanguage | undefined;
18-
showMultipleModels: boolean;
1917
}

extensions/ql-vscode/src/stories/method-modeling/MethodModeling.stories.tsx

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,16 @@ MethodSaved.args = {
4747
modelingStatus: "saved",
4848
};
4949

50-
export const MultipleModelingsUnmodeled = Template.bind({});
51-
MultipleModelingsUnmodeled.args = {
52-
language,
53-
method,
54-
modeledMethods: [],
55-
modelingStatus: "saved",
56-
showMultipleModels: true,
57-
};
58-
59-
export const MultipleModelingsModeledSingle = Template.bind({});
60-
MultipleModelingsModeledSingle.args = {
50+
export const ModeledSingle = Template.bind({});
51+
ModeledSingle.args = {
6152
language,
6253
method,
6354
modeledMethods: [createSinkModeledMethod(method)],
6455
modelingStatus: "saved",
65-
showMultipleModels: true,
6656
};
6757

68-
export const MultipleModelingsModeledMultiple = Template.bind({});
69-
MultipleModelingsModeledMultiple.args = {
58+
export const ModeledMultiple = Template.bind({});
59+
ModeledMultiple.args = {
7060
language,
7161
method,
7262
modeledMethods: [
@@ -79,23 +69,21 @@ MultipleModelingsModeledMultiple.args = {
7969
}),
8070
],
8171
modelingStatus: "saved",
82-
showMultipleModels: true,
8372
};
8473

85-
export const MultipleModelingsValidationFailedNeutral = Template.bind({});
86-
MultipleModelingsValidationFailedNeutral.args = {
74+
export const ValidationFailedNeutral = Template.bind({});
75+
ValidationFailedNeutral.args = {
8776
language,
8877
method,
8978
modeledMethods: [
9079
createSinkModeledMethod(method),
9180
createNeutralModeledMethod(method),
9281
],
9382
modelingStatus: "unsaved",
94-
showMultipleModels: true,
9583
};
9684

97-
export const MultipleModelingsValidationFailedDuplicate = Template.bind({});
98-
MultipleModelingsValidationFailedDuplicate.args = {
85+
export const ValidationFailedDuplicate = Template.bind({});
86+
ValidationFailedDuplicate.args = {
9987
language,
10088
method,
10189
modeledMethods: [
@@ -108,5 +96,4 @@ MultipleModelingsValidationFailedDuplicate.args = {
10896
createSinkModeledMethod(method),
10997
],
11098
modelingStatus: "unsaved",
111-
showMultipleModels: true,
11299
};

extensions/ql-vscode/src/stories/model-editor/LibraryRow.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ LibraryRow.args = {
216216
viewState: createMockModelEditorViewState({
217217
showGenerateButton: true,
218218
showLlmButton: true,
219-
showMultipleModels: true,
220219
}),
221220
hideModeledMethods: false,
222221
};

extensions/ql-vscode/src/stories/model-editor/MethodRow.stories.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import { Meta, StoryFn } from "@storybook/react";
66
import { MethodRow as MethodRowComponent } from "../../view/model-editor/MethodRow";
77
import { CallClassification, Method } from "../../model-editor/method";
88
import { ModeledMethod } from "../../model-editor/modeled-method";
9-
import {
10-
MULTIPLE_MODELS_GRID_TEMPLATE_COLUMNS,
11-
SINGLE_MODEL_GRID_TEMPLATE_COLUMNS,
12-
} from "../../view/model-editor/ModeledMethodDataGrid";
9+
import { MULTIPLE_MODELS_GRID_TEMPLATE_COLUMNS } from "../../view/model-editor/ModeledMethodDataGrid";
1310
import { DataGrid } from "../../view/common/DataGrid";
1411
import { createMockModelEditorViewState } from "../../../test/factories/model-editor/view-state";
1512

@@ -35,12 +32,8 @@ const Template: StoryFn<typeof MethodRowComponent> = (args) => {
3532
[args],
3633
);
3734

38-
const gridTemplateColumns = args.viewState?.showMultipleModels
39-
? MULTIPLE_MODELS_GRID_TEMPLATE_COLUMNS
40-
: SINGLE_MODEL_GRID_TEMPLATE_COLUMNS;
41-
4235
return (
43-
<DataGrid gridTemplateColumns={gridTemplateColumns}>
36+
<DataGrid gridTemplateColumns={MULTIPLE_MODELS_GRID_TEMPLATE_COLUMNS}>
4437
<MethodRowComponent
4538
{...args}
4639
modeledMethods={modeledMethods}
@@ -100,7 +93,6 @@ const modeledMethod: ModeledMethod = {
10093
const viewState = createMockModelEditorViewState({
10194
showGenerateButton: true,
10295
showLlmButton: true,
103-
showMultipleModels: true,
10496
});
10597

10698
export const Unmodeled = Template.bind({});

0 commit comments

Comments
 (0)