Skip to content

Commit 1487ff5

Browse files
committed
Merge remote-tracking branch 'origin/main' into koesie10/add-metadata-to-repo-row
2 parents cb1233d + 0965448 commit 1487ff5

File tree

75 files changed

+1419
-956
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1419
-956
lines changed

extensions/ql-vscode/.mocharc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"exit": true,
3-
"require": [
4-
"test/mocha.setup.js"
5-
]
3+
"require": ["test/mocha.setup.js"]
64
}

extensions/ql-vscode/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,9 +1256,11 @@
12561256
"test": "npm-run-all -p test:*",
12571257
"test:unit": "mocha --config .mocharc.json test/pure-tests/**/*.ts",
12581258
"test:view": "jest",
1259-
"preintegration": "rm -rf ./out/vscode-tests && gulp",
1260-
"integration": "node ./out/vscode-tests/run-integration-tests.js no-workspace,minimal-workspace",
1261-
"cli-integration": "npm run preintegration && node ./out/vscode-tests/run-integration-tests.js cli-integration",
1259+
"integration-setup": "rm -rf ./out/vscode-tests && gulp",
1260+
"integration": "npm run integration-setup && node ./out/vscode-tests/run-integration-tests.js no-workspace,minimal-workspace",
1261+
"integration:no-workspace": "npm run integration-setup && node ./out/vscode-tests/run-integration-tests.js no-workspace",
1262+
"integration:minimal-workspace": "npm run integration-setup && node ./out/vscode-tests/run-integration-tests.js minimal-workspace",
1263+
"cli-integration": "npm run integration-setup && node ./out/vscode-tests/run-integration-tests.js cli-integration",
12621264
"update-vscode": "node ./node_modules/vscode/bin/install",
12631265
"format": "tsfmt -r && eslint . --ext .ts,.tsx --fix",
12641266
"lint": "eslint . --ext .ts,.tsx --max-warnings=0",

extensions/ql-vscode/src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,6 @@ async function activateWithInstalledDistribution(
525525
ctx.subscriptions.push(logScannerService);
526526
ctx.subscriptions.push(logScannerService.scanners.registerLogScannerProvider(new JoinOrderScannerProvider(() => joinOrderWarningThreshold())));
527527

528-
void logger.log('Reading query history');
529-
await qhm.readQueryHistory();
530-
531528
void logger.log('Initializing compare view.');
532529
const compareView = new CompareView(
533530
ctx,
@@ -1229,6 +1226,9 @@ async function activateWithInstalledDistribution(
12291226

12301227
await commands.executeCommand('codeQLDatabases.removeOrphanedDatabases');
12311228

1229+
void logger.log('Reading query history');
1230+
await qhm.readQueryHistory();
1231+
12321232
void logger.log('Successfully finished extension initialization.');
12331233

12341234
return {

extensions/ql-vscode/src/history-item-label-provider.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { RemoteQueryHistoryItem } from './remote-queries/remote-query-history-it
77
import { VariantAnalysisHistoryItem } from './remote-queries/variant-analysis-history-item';
88
import { assertNever } from './pure/helpers-pure';
99
import { pluralize } from './pure/word';
10+
import { humanizeQueryStatus } from './query-status';
1011

1112
interface InterpolateReplacements {
1213
t: string; // Start time
@@ -86,7 +87,7 @@ export class HistoryItemLabelProvider {
8687
q: `${item.remoteQuery.queryName} (${item.remoteQuery.language})`,
8788
d: buildRepoLabel(item),
8889
r: resultCount,
89-
s: item.status,
90+
s: humanizeQueryStatus(item.status),
9091
f: path.basename(item.remoteQuery.queryFilePath),
9192
'%': '%'
9293
};
@@ -99,7 +100,7 @@ export class HistoryItemLabelProvider {
99100
q: `${item.variantAnalysis.query.name} (${item.variantAnalysis.query.language})`,
100101
d: buildRepoLabel(item),
101102
r: resultCount,
102-
s: item.status,
103+
s: humanizeQueryStatus(item.status),
103104
f: path.basename(item.variantAnalysis.query.filePath),
104105
'%': '%',
105106
};

extensions/ql-vscode/src/mocks/scenarios/problem-query-warnings/13-getVariantAnalysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@
966966
}
967967
]
968968
},
969-
"not_found_repo_nwos": {
969+
"not_found_repos": {
970970
"repository_count": 110,
971971
"repository_full_names": [
972972
"evanw/node-source-map-support",

extensions/ql-vscode/src/mocks/scenarios/problem-query-warnings/14-getVariantAnalysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@
966966
}
967967
]
968968
},
969-
"not_found_repo_nwos": {
969+
"not_found_repos": {
970970
"repository_count": 110,
971971
"repository_full_names": [
972972
"evanw/node-source-map-support",

extensions/ql-vscode/src/mocks/scenarios/problem-query-warnings/15-getVariantAnalysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@
966966
}
967967
]
968968
},
969-
"not_found_repo_nwos": {
969+
"not_found_repos": {
970970
"repository_count": 110,
971971
"repository_full_names": [
972972
"evanw/node-source-map-support",

extensions/ql-vscode/src/mocks/scenarios/problem-query-warnings/16-getVariantAnalysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@
966966
}
967967
]
968968
},
969-
"not_found_repo_nwos": {
969+
"not_found_repos": {
970970
"repository_count": 110,
971971
"repository_full_names": [
972972
"evanw/node-source-map-support",

extensions/ql-vscode/src/mocks/scenarios/problem-query-warnings/17-getVariantAnalysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@
966966
}
967967
]
968968
},
969-
"not_found_repo_nwos": {
969+
"not_found_repos": {
970970
"repository_count": 110,
971971
"repository_full_names": [
972972
"evanw/node-source-map-support",

extensions/ql-vscode/src/mocks/scenarios/problem-query-warnings/18-getVariantAnalysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@
970970
}
971971
]
972972
},
973-
"not_found_repo_nwos": {
973+
"not_found_repos": {
974974
"repository_count": 110,
975975
"repository_full_names": [
976976
"evanw/node-source-map-support",

0 commit comments

Comments
 (0)