Skip to content

Commit 4729780

Browse files
committed
Merge remote-tracking branch 'origin/main' into koesie10/export-results-sorting-filtering
2 parents 1793963 + 5838f1b commit 4729780

30 files changed

+660
-200
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Alternatively, you can build the extension within VS Code via `Terminal > Run Bu
5454

5555
Before running any of the launch commands, be sure to have run the `build` command to ensure that the JavaScript is compiled and the resources are copied to the proper location.
5656

57-
We recommend that you keep `npm run watch` running in the backgound and you only need to re-run `npm run build` in the following situations:
57+
We recommend that you keep `npm run watch` running in the background and you only need to re-run `npm run build` in the following situations:
5858

5959
1. on first checkout
6060
2. whenever any of the non-TypeScript resources have changed
@@ -152,7 +152,7 @@ The CLI integration tests require the CodeQL standard libraries in order to run
152152

153153
#### Using a mock GitHub API server
154154

155-
Multi-Repo Variant Analyses (MRVA) rely on the GitHub API. In order to make development and testing easy, we have functionality that allows us to intercept requests to the GitHub API and provide mock responses.
155+
Multi-Repo Variant Analyses (MRVA) rely on the GitHub API. In order to make development and testing easy, we have functionality that allows us to intercept requests to the GitHub API and provide mock responses.
156156

157157
##### Using a pre-recorded test scenario
158158

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+
- Warn users when their VS Code version is too old to support all features in the vscode-codeql extension. [#1674](https://github.com/github/vscode-codeql/pull/1674)
6+
57
## 1.7.5 - 8 November 2022
68

79
- Fix a bug where the AST Viewer was not working unless the associated CodeQL library pack is in the workspace. [#1735](https://github.com/github/vscode-codeql/pull/1735)

extensions/ql-vscode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ When the results are ready, they're displayed in the CodeQL Query Results view.
9999

100100
If there are any problems running a query, a notification is displayed in the bottom right corner of the application. In addition to the error message, the notification includes details of how to fix the problem.
101101

102-
### Keyboad navigation
102+
### Keyboard navigation
103103

104104
If you wish to navigate the query results from your keyboard, you can bind shortcuts to the **CodeQL: Navigate Up/Down/Left/Right in Result Viewer** commands.
105105

extensions/ql-vscode/package-lock.json

Lines changed: 90 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/ql-vscode/package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,6 @@
328328
"command": "codeQL.exportSelectedVariantAnalysisResults",
329329
"title": "CodeQL: Export Variant Analysis Results"
330330
},
331-
{
332-
"command": "codeQL.openVariantAnalysis",
333-
"title": "CodeQL: Open Variant Analysis"
334-
},
335331
{
336332
"command": "codeQL.runQueries",
337333
"title": "CodeQL: Run Queries in Selected Files"
@@ -949,10 +945,6 @@
949945
"command": "codeQL.runVariantAnalysis",
950946
"when": "config.codeQL.canary && editorLangId == ql && resourceExtname == .ql"
951947
},
952-
{
953-
"command": "codeQL.openVariantAnalysis",
954-
"when": "config.codeQL.canary && config.codeQL.variantAnalysis.liveResults"
955-
},
956948
{
957949
"command": "codeQL.exportSelectedVariantAnalysisResults",
958950
"when": "config.codeQL.canary"

extensions/ql-vscode/src/cli.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,8 +1427,7 @@ export class CliVersionConstraint {
14271427
}
14281428

14291429
async supportsNewQueryServer() {
1430-
// TODO while under development, users _must_ opt-in to the new query server
1431-
// by setting the `codeql.canaryQueryServer` setting to `true`.
1430+
// This allows users to explicitly opt-out of the new query server.
14321431
return allowCanaryQueryServer() &&
14331432
this.isVersionAtLeast(CliVersionConstraint.CLI_VERSION_WITH_NEW_QUERY_SERVER);
14341433
}

extensions/ql-vscode/src/config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,10 @@ export function isCanary() {
346346
*/
347347
export const CANARY_QUERY_SERVER = new Setting('canaryQueryServer', ROOT_SETTING);
348348

349-
349+
// The default value for this setting is now `true`
350350
export function allowCanaryQueryServer() {
351-
return !!CANARY_QUERY_SERVER.getValue<boolean>();
351+
const value = CANARY_QUERY_SERVER.getValue<boolean>();
352+
return value === undefined ? true : !!value;
352353
}
353354

354355
export const JOIN_ORDER_WARNING_THRESHOLD = new Setting('joinOrderWarningThreshold', LOG_INSIGHTS_SETTING);
@@ -458,7 +459,7 @@ const MOCK_GH_API_SERVER_ENABLED = new Setting('enabled', MOCK_GH_API_SERVER);
458459

459460
/**
460461
* A path to a directory containing test scenarios. If this setting is not set,
461-
* the mock server will a default location for test scenarios in dev mode, and
462+
* the mock server will a default location for test scenarios in dev mode, and
462463
* will show a menu to select a directory in production mode.
463464
*/
464465
const MOCK_GH_API_SERVER_SCENARIOS_PATH = new Setting('scenariosPath', MOCK_GH_API_SERVER);

extensions/ql-vscode/src/databases/db-config-store.ts renamed to extensions/ql-vscode/src/databases/config/db-config-store.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import * as fs from 'fs-extra';
22
import * as path from 'path';
33
import { cloneDbConfig, DbConfig } from './db-config';
44
import * as chokidar from 'chokidar';
5-
import { DisposableObject } from '../pure/disposable-object';
5+
import { DisposableObject } from '../../pure/disposable-object';
66
import { DbConfigValidator } from './db-config-validator';
7-
import { ValueResult } from '../common/value-result';
8-
import { App } from '../common/app';
9-
import { AppEvent, AppEventEmitter } from '../common/events';
7+
import { ValueResult } from '../../common/value-result';
8+
import { App } from '../../common/app';
9+
import { AppEvent, AppEventEmitter } from '../../common/events';
1010

1111
export class DbConfigStore extends DisposableObject {
1212
public readonly onDidChangeConfig: AppEvent<void>;

extensions/ql-vscode/src/databases/db-config-validator.ts renamed to extensions/ql-vscode/src/databases/config/db-config-validator.ts

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)