-
Notifications
You must be signed in to change notification settings - Fork 202
Implement QL Test support #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
444aca3
ddf42d8
85f7ff1
be72e9b
e37807c
cbe3c05
7d325e3
9e6100f
2f9a314
55d1a4a
de2a6cc
207743e
0947a35
edc1f1c
90a9753
1b7d0da
afcc05f
f2c525b
984ba73
370444c
39805bc
7fc501f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,14 @@ | |
"categories": [ | ||
"Programming Languages" | ||
], | ||
"extensionDependencies": [ | ||
"hbenl.vscode-test-explorer" | ||
], | ||
"activationEvents": [ | ||
"onLanguage:ql", | ||
"onView:codeQLDatabases", | ||
"onView:codeQLQueryHistory", | ||
"onView:test-explorer", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need this? If you have the test explorer open but no CodeQL workspace then I'm not sure we need to activate yet. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need it for the same reason we need the other |
||
"onCommand:codeQL.checkForUpdatesToCLI", | ||
"onCommand:codeQL.chooseDatabase", | ||
"onCommand:codeQL.setCurrentDatabase", | ||
|
@@ -95,14 +99,20 @@ | |
"description": "Number of threads for running queries." | ||
}, | ||
"codeQL.runningQueries.timeout": { | ||
"type": ["integer", "null"], | ||
"type": [ | ||
"integer", | ||
"null" | ||
], | ||
"default": null, | ||
"minimum": 0, | ||
"maximum": 2147483647, | ||
"description": "Timeout (in seconds) for running queries. Leave blank or set to zero for no timeout." | ||
}, | ||
"codeQL.runningQueries.memory": { | ||
"type": ["integer", "null"], | ||
"type": [ | ||
"integer", | ||
"null" | ||
], | ||
"default": null, | ||
"minimum": 1024, | ||
"description": "Memory (in MB) to use for running queries. Leave blank for CodeQL to choose a suitable value based on your system's available memory." | ||
|
@@ -111,6 +121,22 @@ | |
"type": "boolean", | ||
"default": false, | ||
"description": "Enable debug logging and tuple counting when running CodeQL queries. This information is useful for debugging query performance." | ||
}, | ||
"codeQL.tests.semmleCoreDistributionPath": { | ||
"scope": "window", | ||
dbartol marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"type": "string", | ||
"default": "", | ||
"description": "Location of the Semmle Core distribution" | ||
}, | ||
"codeQL.tests.semmleCoreLicensePath": { | ||
"scope": "window", | ||
dbartol marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"type": "string", | ||
"description": "Location of the directory containing the Semmle Core license file" | ||
}, | ||
"codeQL.tests.numberOfThreads": { | ||
"scope": "window", | ||
"type": "integer", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Default to 1? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed to be 1, allowed range [1, 1024], just like the number of threads for queries. |
||
"description": "Number of threads to use for CodeQL test execution" | ||
} | ||
} | ||
}, | ||
|
@@ -178,6 +204,14 @@ | |
{ | ||
"command": "codeQLQueryResults.previousPathStep", | ||
"title": "CodeQL: Show Previous Step on Path" | ||
}, | ||
{ | ||
"command": "codeQLTests.showOutputDifferences", | ||
"title": "CodeQL: Show Test Output Differences" | ||
}, | ||
{ | ||
"command": "codeQLTests.acceptOutput", | ||
"title": "CodeQL: Accept Test Output" | ||
} | ||
], | ||
"menus": { | ||
|
@@ -213,6 +247,16 @@ | |
"command": "codeQLQueryHistory.removeHistoryItem", | ||
"group": "9_qlCommands", | ||
"when": "view == codeQLQueryHistory" | ||
}, | ||
{ | ||
"command": "codeQLTests.showOutputDifferences", | ||
"group": "qltest@1", | ||
"when": "view == test-explorer && viewItem == testWithSource" | ||
}, | ||
{ | ||
"command": "codeQLTests.acceptOutput", | ||
"group": "qltest@2", | ||
"when": "view == test-explorer && viewItem == testWithSource" | ||
} | ||
], | ||
"explorer/context": [ | ||
|
@@ -306,6 +350,7 @@ | |
"format": "tsfmt -r" | ||
}, | ||
"dependencies": { | ||
"child-process-promise": "^2.2.1", | ||
"classnames": "~2.2.6", | ||
"fs-extra": "^8.1.0", | ||
"glob-promise": "^3.4.0", | ||
|
@@ -318,10 +363,13 @@ | |
"tmp": "^0.1.0", | ||
"unzipper": "~0.10.5", | ||
"vscode-jsonrpc": "^4.0.0", | ||
"vscode-languageclient": "^5.2.1" | ||
"vscode-languageclient": "^5.2.1", | ||
"vscode-test-adapter-api": "~1.7.0", | ||
"vscode-test-adapter-util": "~0.7.0" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.1.7", | ||
"@types/child-process-promise": "^2.2.1", | ||
"@types/classnames": "~2.2.9", | ||
"@types/fs-extra": "^8.0.0", | ||
"@types/glob": "^7.1.1", | ||
|
@@ -341,7 +389,6 @@ | |
"@types/xml2js": "~0.4.4", | ||
"build-tasks": "^0.0.1", | ||
"chai": "^4.2.0", | ||
"child-process-promise": "^2.2.1", | ||
"css-loader": "~3.1.0", | ||
"glob": "^7.1.4", | ||
"gulp": "^4.0.2", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand the reason for removing
--disable-extensions
? I thought we had it in here to ensure that integration test failures couldn't be because some other extension was confusing things.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our extension now depends on the "VS Code Test Explorer" extension. If we launch VS Code with
--disable-extensions
, it disables the "VS Code Test Explorer" extension, and therefore refuses to load our own extension due to the disabled dependency.