Skip to content

Commit ce0f8ad

Browse files
authored
Merge branch 'master' into docs
2 parents 1efa9f1 + 2d975de commit ce0f8ad

File tree

18 files changed

+1171
-35
lines changed

18 files changed

+1171
-35
lines changed

.vscode/launch.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"request": "launch",
99
"runtimeExecutable": "${execPath}",
1010
"args": [
11-
"--extensionDevelopmentPath=${workspaceRoot}/dist/vscode-codeql",
12-
"--disable-extensions"
11+
"--extensionDevelopmentPath=${workspaceRoot}/dist/vscode-codeql"
1312
],
1413
"stopOnEntry": false,
1514
"sourceMaps": true,
@@ -56,8 +55,7 @@
5655
"runtimeExecutable": "${execPath}",
5756
"args": [
5857
"--extensionDevelopmentPath=${workspaceRoot}/dist/vscode-codeql",
59-
"--extensionTestsPath=${workspaceRoot}/extensions/ql-vscode/out/vscode-tests/no-workspace/index",
60-
"--disable-extensions"
58+
"--extensionTestsPath=${workspaceRoot}/extensions/ql-vscode/out/vscode-tests/no-workspace/index"
6159
],
6260
"stopOnEntry": false,
6361
"sourceMaps": true,
@@ -75,7 +73,7 @@
7573
"args": [
7674
"--extensionDevelopmentPath=${workspaceRoot}/dist/vscode-codeql",
7775
"--extensionTestsPath=${workspaceRoot}/extensions/ql-vscode/out/vscode-tests/minimal-workspace/index",
78-
"${workspaceRoot}/extensions/ql-vscode/test/data",
76+
"${workspaceRoot}/extensions/ql-vscode/test/data"
7977
],
8078
"stopOnEntry": false,
8179
"sourceMaps": true,

.vscode/settings.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
33
"files.exclude": {
4-
"out": false // set this to true to hide the "out" folder with the compiled JS files
4+
"**/out": true, // set this to true to hide the "out" folder with the compiled JS files
5+
"**/dist": true,
6+
"**/node_modules": true,
7+
"common/temp": true,
8+
"**/.vscode-test": true
59
},
610
"files.watcherExclude": {
711
"**/.git/**": true,
8-
"**/node_modules/*/**": true
12+
"**/out": true,
13+
"**/dist": true,
14+
"**/node_modules": true,
15+
"common/temp": true,
16+
"**/.vscode-test": true
917
},
1018
"search.exclude": {
11-
"out": true // set this to false to include "out" folder in search results
19+
"**/out": true, // set this to false to include "out" folder in search results
20+
"**/dist": true,
21+
"**/node_modules": true,
22+
"common/temp": true,
23+
"**/.vscode-test": true
1224
},
1325
"typescript.tsdk": "./common/temp/node_modules/typescript/lib" // we want to use the TS server from our node_modules folder to control its version
14-
}
26+
}

common/config/rush/shrinkwrap.yaml

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ dependencies:
5656
style-loader: 0.23.1
5757
through2: 3.0.1
5858
tmp: 0.1.0
59+
tree-kill: 1.2.2
5960
ts-loader: 5.4.5
6061
ts-node: 8.3.0
6162
ts-protoc-gen: 0.9.0
@@ -67,6 +68,8 @@ dependencies:
6768
vscode-jsonrpc: 4.0.0
6869
vscode-languageclient: 5.2.1
6970
vscode-test: 1.2.0
71+
vscode-test-adapter-api: 1.7.0
72+
vscode-test-adapter-util: 0.7.0
7073
webpack: 4.39.1
7174
webpack-cli: 3.3.6
7275
packages:
@@ -5688,6 +5691,11 @@ packages:
56885691
dev: false
56895692
resolution:
56905693
integrity: sha1-cXuPIgzAu3tE5AUUwisui7xw2Lk=
5694+
/tree-kill/1.2.2:
5695+
dev: false
5696+
hasBin: true
5697+
resolution:
5698+
integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==
56915699
/true-case-path/2.2.1:
56925700
dev: false
56935701
resolution:
@@ -6122,6 +6130,21 @@ packages:
61226130
dev: false
61236131
resolution:
61246132
integrity: sha512-lTmS6AlAlMHOvPQemVwo3CezxBp0sNB95KNPkqp3Nxd5VFEnuG1ByM0zlRWos0zjO3ZWtkvhal0COgiV1xIA4A==
6133+
/vscode-test-adapter-api/1.7.0:
6134+
dev: false
6135+
engines:
6136+
vscode: ^1.23.0
6137+
resolution:
6138+
integrity: sha512-X0rTcoDhDBmpmJuev2C5+GHGZD41nmcRYoSe7iw5e9/aIPTOFve1T1F5x9gb+zXoNQnkXSDibyMkeHDKtIkqCg==
6139+
/vscode-test-adapter-util/0.7.0:
6140+
dependencies:
6141+
tslib: 1.10.0
6142+
vscode-test-adapter-api: 1.7.0
6143+
dev: false
6144+
engines:
6145+
vscode: ^1.24.0
6146+
resolution:
6147+
integrity: sha512-eAsB8koXct5JytvUcV62wLEBCQfsoclauzMLEFT6H0qBr1h8LyRc+dGDcs48pO28yFOo6VV+5AwCRLxTKh7TzQ==
61256148
/vscode-test/1.2.0:
61266149
dependencies:
61276150
http-proxy-agent: 2.1.0
@@ -6433,7 +6456,7 @@ packages:
64336456
child-process-promise: 2.2.1
64346457
fs-extra: 8.1.0
64356458
glob: 7.1.4
6436-
glob-promise: 3.4.0
6459+
glob-promise: /glob-promise/3.4.0/glob@7.1.4
64376460
gulp: 4.0.2
64386461
gulp-sourcemaps: 2.6.5
64396462
gulp-typescript: /gulp-typescript/5.0.1/typescript@3.7.2
@@ -6449,7 +6472,7 @@ packages:
64496472
dev: false
64506473
name: '@rush-temp/build-tasks'
64516474
resolution:
6452-
integrity: sha512-ta2kXnX7phnKrO7rxdJl5A9Vtd8B4RDyoae3vhdI1d+COeITaXDd9xdPxo8lvduPSJTw2+HnzOgOu2pMAKSjTw==
6475+
integrity: sha512-WBog5Gepo348LYeu7FAZMORJpgx0CNFM+IjgLcKNFYnN9YOCRQogUkRL7ZmBt8WXoew1S5OyVltmEM8XPy8i+w==
64536476
tarball: 'file:projects/build-tasks.tgz'
64546477
version: 0.0.0
64556478
'file:projects/semmle-bqrs.tgz':
@@ -6461,7 +6484,7 @@ packages:
64616484
dev: false
64626485
name: '@rush-temp/semmle-bqrs'
64636486
resolution:
6464-
integrity: sha512-24GdnvMbGfQIWMfgDhift+kYJDnG7dX03NrpX4ajZ2rckteysvq2/K7XI1OXGvUuqrt3m0/+GRDHpSI9XKDJJA==
6487+
integrity: sha512-ufPu8zLXf9JvPCRycWLiFTDb5rZ7bqxQZuiFjy1DAxnatEG5VJITPSXwDFVc11qpjJpaFd4hI+4QtOda7d5zww==
64656488
tarball: 'file:projects/semmle-bqrs.tgz'
64666489
version: 0.0.0
64676490
'file:projects/semmle-io-node.tgz':
@@ -6473,7 +6496,7 @@ packages:
64736496
dev: false
64746497
name: '@rush-temp/semmle-io-node'
64756498
resolution:
6476-
integrity: sha512-Bj0ax/bASrHV7tamOuXZZdd3UOB4NBKdjdszIRaDvDRTu8RlEst+TVoUhkfy30qb2/6ePp3/juOJyyiBJN7u8Q==
6499+
integrity: sha512-jB3C3WWEI991Kr3knPKUwqqNi040WmYCubLJJG7AK1nz3V1YjmyLHIAdjqwOgDNXYKCQPC6tlaEgljbs2Q/kIQ==
64776500
tarball: 'file:projects/semmle-io-node.tgz'
64786501
version: 0.0.0
64796502
'file:projects/semmle-io.tgz':
@@ -6484,7 +6507,7 @@ packages:
64846507
dev: false
64856508
name: '@rush-temp/semmle-io'
64866509
resolution:
6487-
integrity: sha512-NtyviDSevxbd+hj4J66LucOzo8LU2hJ1Jh0eHw0Qu3tRZPUT8HcQlseyy29AvZR8n8eppfEZiAm/JdiHfmRPMA==
6510+
integrity: sha512-6DFvjDclWTihDToSf31Hh+wQNhLGkA37l4QajeW/w6gS4NHjSrFL1qBlS7dLUY80VC/8nQJH9foe3r6dfEfQYw==
64886511
tarball: 'file:projects/semmle-io.tgz'
64896512
version: 0.0.0
64906513
'file:projects/semmle-vscode-utils.tgz':
@@ -6496,19 +6519,20 @@ packages:
64966519
dev: false
64976520
name: '@rush-temp/semmle-vscode-utils'
64986521
resolution:
6499-
integrity: sha512-5y5r8SDoN9Fp44naC9gUe8rOexeckXg2T0h9QCJAIcEgnFqOxzRc6Rv9gbMUStFKNh+rFlvmYmgPAdg5QkfgUg==
6522+
integrity: sha512-yE5S1wsnrsJ8lTt9O9ALedlvH37M9sWQha7sL5iQ3P6dn2KsyUItGsJDnFoh2f0wy3TpZuj3p/KTEDBbgjXBGg==
65006523
tarball: 'file:projects/semmle-vscode-utils.tgz'
65016524
version: 0.0.0
65026525
'file:projects/typescript-config.tgz':
65036526
dev: false
65046527
name: '@rush-temp/typescript-config'
65056528
resolution:
6506-
integrity: sha512-XuUIySaNoooIduvehnlKYaHqZJmmQoCqB1RtKhNszjCYZaSSJAnKVucViWBf5oNLKSNP7NchrD7gcoBlQ3xYvw==
6529+
integrity: sha512-kSFyvKy63jUHFVXQEzALiYfsTdn7J+Y7PcqtUVo9GndU5b5Xh3rBpVbZD1QN8+y8GfT0m/sdZZQVyH0h+On11Q==
65076530
tarball: 'file:projects/typescript-config.tgz'
65086531
version: 0.0.0
65096532
'file:projects/vscode-codeql.tgz':
65106533
dependencies:
65116534
'@types/chai': 4.1.7
6535+
'@types/child-process-promise': 2.2.1
65126536
'@types/classnames': 2.2.9
65136537
'@types/fs-extra': 8.0.0
65146538
'@types/glob': 7.1.1
@@ -6548,6 +6572,7 @@ packages:
65486572
style-loader: 0.23.1
65496573
through2: 3.0.1
65506574
tmp: 0.1.0
6575+
tree-kill: 1.2.2
65516576
ts-loader: /ts-loader/5.4.5/typescript@3.7.2
65526577
ts-node: /ts-node/8.3.0/typescript@3.7.2
65536578
ts-protoc-gen: 0.9.0
@@ -6559,13 +6584,15 @@ packages:
65596584
vscode-jsonrpc: 4.0.0
65606585
vscode-languageclient: 5.2.1
65616586
vscode-test: 1.2.0
6587+
vscode-test-adapter-api: 1.7.0
6588+
vscode-test-adapter-util: 0.7.0
65626589
webpack: 4.39.1
65636590
webpack-cli: /webpack-cli/3.3.6/webpack@4.39.1
65646591
xml2js: 0.4.19
65656592
dev: false
65666593
name: '@rush-temp/vscode-codeql'
65676594
resolution:
6568-
integrity: sha512-DE97bdxda65gVLZne73QzBpj2hyCbyzvQiRZxrJqDP1rkF62EGNohBSmlEQs8H2Jp8hxh5RhPhm/yUx70G7KEA==
6595+
integrity: sha512-pHdIjv8YEIRicmnIzv2OB5cqdCRoKcF2ZbylLcaR+VP28TzoyYZK5q2anIYayibWa3Ik4la4pVGnSa344IatvA==
65696596
tarball: 'file:projects/vscode-codeql.tgz'
65706597
version: 0.0.0
65716598
registry: 'https://registry.npmjs.org/'
@@ -6629,6 +6656,7 @@ specifiers:
66296656
style-loader: ~0.23.1
66306657
through2: ^3.0.1
66316658
tmp: ^0.1.0
6659+
tree-kill: ~1.2.2
66326660
ts-loader: ^5.4.5
66336661
ts-node: ^8.3.0
66346662
ts-protoc-gen: ^0.9.0
@@ -6640,5 +6668,7 @@ specifiers:
66406668
vscode-jsonrpc: ^4.0.0
66416669
vscode-languageclient: ^5.2.1
66426670
vscode-test: ^1.0.0
6671+
vscode-test-adapter-api: ~1.7.0
6672+
vscode-test-adapter-util: ~0.7.0
66436673
webpack: ^4.38.0
66446674
webpack-cli: ^3.3.2

extensions/ql-vscode/package.json

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@
1818
"categories": [
1919
"Programming Languages"
2020
],
21+
"extensionDependencies": [
22+
"hbenl.vscode-test-explorer"
23+
],
2124
"activationEvents": [
2225
"onLanguage:ql",
2326
"onView:codeQLDatabases",
2427
"onView:codeQLQueryHistory",
28+
"onView:test-explorer",
2529
"onCommand:codeQL.checkForUpdatesToCLI",
2630
"onCommand:codeQL.chooseDatabase",
2731
"onCommand:codeQL.setCurrentDatabase",
@@ -132,6 +136,14 @@
132136
"type": "string",
133137
"default": "[%t] %q on %d - %s",
134138
"description": "Default string for how to label query history items. %t is the time of the query, %q is the query name, %d is the database name, and %s is a status string."
139+
},
140+
"codeQL.runningTests.numberOfThreads": {
141+
"scope": "window",
142+
"type": "integer",
143+
"default": 1,
144+
"minimum": 1,
145+
"maximum": 1024,
146+
"description": "Number of threads for running CodeQL tests."
135147
}
136148
}
137149
},
@@ -211,6 +223,14 @@
211223
{
212224
"command": "codeQL.restartQueryServer",
213225
"title": "CodeQL: Restart Query Server"
226+
},
227+
{
228+
"command": "codeQLTests.showOutputDifferences",
229+
"title": "CodeQL: Show Test Output Differences"
230+
},
231+
{
232+
"command": "codeQLTests.acceptOutput",
233+
"title": "CodeQL: Accept Test Output"
214234
}
215235
],
216236
"menus": {
@@ -251,6 +271,16 @@
251271
"command": "codeQLQueryHistory.setLabel",
252272
"group": "9_qlCommands",
253273
"when": "view == codeQLQueryHistory"
274+
},
275+
{
276+
"command": "codeQLTests.showOutputDifferences",
277+
"group": "qltest@1",
278+
"when": "view == test-explorer && viewItem == testWithSource"
279+
},
280+
{
281+
"command": "codeQLTests.acceptOutput",
282+
"group": "qltest@2",
283+
"when": "view == test-explorer && viewItem == testWithSource"
254284
}
255285
],
256286
"explorer/context": [
@@ -348,6 +378,7 @@
348378
"format": "tsfmt -r"
349379
},
350380
"dependencies": {
381+
"child-process-promise": "^2.2.1",
351382
"classnames": "~2.2.6",
352383
"fs-extra": "^8.1.0",
353384
"glob-promise": "^3.4.0",
@@ -359,12 +390,16 @@
359390
"semmle-io-node": "^0.0.1",
360391
"semmle-vscode-utils": "^0.0.1",
361392
"tmp": "^0.1.0",
393+
"tree-kill": "~1.2.2",
362394
"unzipper": "~0.10.5",
363395
"vscode-jsonrpc": "^4.0.0",
364-
"vscode-languageclient": "^5.2.1"
396+
"vscode-languageclient": "^5.2.1",
397+
"vscode-test-adapter-api": "~1.7.0",
398+
"vscode-test-adapter-util": "~0.7.0"
365399
},
366400
"devDependencies": {
367401
"@types/chai": "^4.1.7",
402+
"@types/child-process-promise": "^2.2.1",
368403
"@types/classnames": "~2.2.9",
369404
"@types/fs-extra": "^8.0.0",
370405
"@types/glob": "^7.1.1",
@@ -385,7 +420,6 @@
385420
"@types/xml2js": "~0.4.4",
386421
"build-tasks": "^0.0.1",
387422
"chai": "^4.2.0",
388-
"child-process-promise": "^2.2.1",
389423
"css-loader": "~3.1.0",
390424
"glob": "^7.1.4",
391425
"gulp": "^4.0.2",

0 commit comments

Comments
 (0)