Jason Reed
c3b2e9d478
Add experimental use of cli bqrs parsing.
...
When `codeQL.experimentalBqrsParsing` is set to true, parse raw
results from the bqrs file using the cli, rather than doing it in the
webview.
2020-05-05 17:00:20 -04:00
Jason Reed
c20bbd9606
Fix formatting.
...
This is simultaneously compatible with eslint and tsfmt.
2020-05-05 16:21:58 -04:00
jcreedcmu
9fda320589
Merge pull request #340 from jcreedcmu/jcreed/no-qhelp-alias
...
Remove 'qhelp' as global alias for 'xml' filetype
2020-05-05 11:01:12 -04:00
Jason Reed
be5efc01ee
Jump-to-definition: Fix mistakenly always using the references query
2020-05-01 13:17:17 -04:00
Jason Reed
1377969213
Add suggestive message to alerts view when 0 alerts, >0 raw results.
...
Fixes https://github.com/github/codeql-coreql-team/issues/383 .
2020-05-01 08:17:51 -04:00
Shati Patel
62cae6ead1
Changelog: Add release date
2020-04-28 18:30:45 +01:00
github-actions[bot]
43586c91d9
Bump version to v1.1.3
2020-04-28 15:34:08 +00:00
jcreedcmu
8efb060031
Merge pull request #337 from jcreedcmu/jcreed/jump-to-def
...
Add experimental support for Jump-to-def and Find-references
2020-04-28 11:24:55 -04:00
Jason Reed
31414b7506
Remove 'qhelp' as global alias for 'xml' filetype
2020-04-23 10:06:27 -04:00
Jason Reed
e242a8fbeb
Review comments
2020-04-22 14:09:20 -04:00
Jason Reed
ee591e802f
Fix lint violations
2020-04-21 13:19:07 -04:00
Jason Reed
7df8905aa0
Scope tags for ide queries
2020-04-21 13:14:19 -04:00
Shati Patel
23b1c00179
Update changelog
2020-04-21 08:27:29 -07:00
Jason Reed
701804b6a4
Guard find-references with experimental setting
2020-04-21 11:15:12 -04:00
Jason Reed
66665bf25e
Refactor definitions/references finding
2020-04-21 11:15:12 -04:00
Jason Reed
1c6b4a6d1e
Put CachedOperation in helpers.
2020-04-21 11:15:12 -04:00
Jason Reed
28be98411d
Add constants for bqrs column kinds
2020-04-21 11:15:12 -04:00
Jason Reed
5592a77963
Can autodetect language
2020-04-21 11:15:12 -04:00
Jason Reed
a6cd08fb0b
Add wrapper for 'resolve queries' cli command
2020-04-21 11:15:12 -04:00
Jason Reed
881c909540
Make rudimentary jump-to-definition work
2020-04-21 11:15:12 -04:00
Andrew Eisenberg
596ccdb722
Update change log
2020-04-20 08:50:54 -07:00
Andrew Eisenberg
2aeda002fa
Add sort by date added for databases
...
This uses the dateAdded field on databases. It will only work for
databases added after that field was added. Otherwise, the dateAdded
property will be undefined.
2020-04-20 08:50:54 -07:00
Andrew Eisenberg
27623f3325
Add dateAdded field for databases
...
Existing databases will have this value as `undefined`. Newly added
databases will have this value as the Unix timestamp when added.
Stuffing this value into the `options` field of the database. The
name is not quite right, but it seems like this is the right place.
Should I rename?
2020-04-20 08:50:54 -07:00
Andrew Eisenberg
f3df3b9f3e
Rename svg for sorting dates add svg for sorting names
2020-04-20 08:50:54 -07:00
Andrew Eisenberg
5850ed3288
refactor: Move icons into light/dark folders
...
This follows the vscode styles where all icons for dark mode are in
the `dark` folder and all for light mode in the `light` folder. They
always have the same name.
2020-04-20 08:50:54 -07:00
Andrew Eisenberg
a2f8c85359
Add command to sort databases by name
...
This assumes that we will be adding other sorting mechanisms in the
future, like sort by data added.
Not happy with the icon I chose, but I didn't want to spend too much
time creating a new one.
2020-04-20 08:50:54 -07:00
Andrew Eisenberg
62d9efc4ee
Update changelog
2020-04-20 07:55:59 -07:00
Andrew Eisenberg
00026a7727
feat: User can see query text at time of execution
...
Add new command to view the query text in a synthetic, read-only
document.
Quick eval queries will show the text selected when initially running
the query. Quick eval queries where the user has a single caret
selection will show the entire line of text.
2020-04-20 07:55:59 -07:00
Jason Reed
c292f58e20
Factor out database qlpack inference.
2020-04-20 09:59:41 -04:00
Andrew Eisenberg
1fb65cd7e9
Update changelog
2020-04-16 09:51:01 -07:00
Dave Bartolomeo
efcf9815f0
Update CHANGELOG.md for `unique` highlighting
2020-04-14 12:53:33 -04:00
Dave Bartolomeo
f8635f41a5
Highlight `unique` as a keyword
...
`unique` is really a context-sensitive keyword, but that's even more of a hassle in a TextMate grammars than it is in the compiler itself. We'll just highlight it as a real keyword. The worst that will happen is that existing variables and predicates named "unique" will be highlighted like keywords, which will hopefully just encourage QL developers to rename those anyway.
2020-04-14 12:48:18 -04:00
jcreedcmu
e4df717d2b
Merge pull request #324 from jcreedcmu/jcreed/always-save
...
Add 'Always Save' to running unsaved query dialog
2020-04-07 12:49:07 -04:00
Jason Reed
e5305ab4b5
Fix lint compatibly with tsfmt
2020-04-07 12:02:50 -04:00
Jason Reed
c2c86aed0a
Add 'Always Save' to running unsaved query dialog
2020-04-07 12:02:50 -04:00
Peter Stöckli
869029b856
feat: XML syntax highlighting for .qhelp files
2020-04-04 16:59:02 +02:00
Andrew Eisenberg
b3ad1d6814
fix: Avoid warning user if no new launcher exists
...
Allow extension to remain on the deprecated launcher.
2020-03-27 08:46:45 -07:00
Andrew Eisenberg
130d3c09e3
build: Enable linting in the build
2020-03-25 12:02:12 -07:00
Andrew Eisenberg
bb28dafc43
lint: Add proper linting for react
2020-03-25 12:02:12 -07:00
Andrew Eisenberg
db6aadbf93
fix: Use a proper 'file' schema for uris
2020-03-25 11:16:32 -07:00
Shati Patel
d8a6368e60
Fix typo in error message
...
Spotted a small typo ("exterally") and updated the error message.
2020-03-25 08:59:04 +00:00
github-actions[bot]
bdcabae60e
Bump version to v1.1.2
2020-03-23 16:56:34 +00:00
Jason Reed
176dc1fc71
Better message.
2020-03-23 12:43:03 -04:00
Jason Reed
a0eebb1e5f
Fix typo
2020-03-23 12:40:22 -04:00
Jason Reed
2af917284b
Capitalize the Brand
2020-03-23 12:30:08 -04:00
Jason Reed
4adb8b6301
Update CHANGELOG for release.
2020-03-23 12:25:24 -04:00
Andrew Eisenberg
7ce3dc2c43
feat: Display warning when codeql.cmd is used
...
The old launcher has been deprecated and codeql.exe is
recommended.
Fixes #287 .
2020-03-23 09:06:53 -07:00
Andrew Eisenberg
eed85e9e28
feat: Allow large log files to be opened externally
...
If the user tries to open a log file that is too large for vscode's
extension mechanism to handle, reveal the file in the finder/explorer
and let the user open in an external program.
2020-03-23 09:03:15 -07:00
Andrew Eisenberg
4fce213ca8
fix: Allow autoupdating if no distribution installed
2020-03-20 11:09:29 -07:00
Andrew Eisenberg
8ed7b991be
fix: Avoid auto-updating the codeql binaries
...
On startup, if a new binary is available, request user acceptance
before starting the update.
Fixes #283
2020-03-19 14:16:57 -07:00
Andrew Eisenberg
ebdf576196
lint: Run the auto linter on all files
2020-03-19 09:46:20 -07:00
Andrew Eisenberg
85c04fc63a
chore: Update changelog
2020-03-19 08:38:22 -07:00
Andrew Eisenberg
66e9272525
feat: Remove side log location when query removed
...
When removing query history item from view, also remove the side log.
Log files can be large, so ensure they don't stick around.
Last piece of #236 and #234 .
2020-03-19 08:11:20 -07:00
Andrew Eisenberg
6793f8e92d
feat: Adds command to show query log in editor
...
Right clicking on the history page will now have a new option to show
the associated log.
Closes #236
Closes #234
2020-03-19 08:11:20 -07:00
Andrew Eisenberg
da28beb82e
fix: Should join paths using comma
2020-03-19 08:11:20 -07:00
Andrew Eisenberg
b04ff3c8b9
lint: Formatting
2020-03-19 08:11:20 -07:00
Andrew Eisenberg
fd4d6b7f30
fix: Avoid accidentally treating '' as valid
2020-03-19 08:11:20 -07:00
Andrew Eisenberg
5facab1f9e
lint: Fix linting and update linting rules
2020-03-19 08:11:20 -07:00
Nick Rolfe
f25c9fd6fd
Use codeql.exe instead of codeql.cmd on Windows
2020-03-19 08:11:20 -07:00
Andrew Eisenberg
a6043f2518
feat: Save log files per query
...
This feature adds logging per-query. Each query will be logged in its
own location in either workspace or globally shared location in
vscode.
There are limitations here. We are only guessing when one query ends
and another begins. We assume that queries don't occur in parallel.
If they do, the previous query will have its results intermingled
with the current query's results.
To fix that, we will need to update how the query-server emits log
messages so that each query message is attached to a tag that
specifies the query that emitted it.
2020-03-19 08:11:20 -07:00
Andrew Eisenberg
6a746ae5bd
deps: Add new dependencies for testing
...
sinon-chai, and proxyquire.
2020-03-19 08:11:20 -07:00
Andrew Eisenberg
d6be401d46
chore: Fix security warning in minimist
...
There is a security warning for minimist. The extension only depends
on it transitively. Not all of its direct dependencies have updated it
yet. I don't like having to add a dependency like this, but if it
avoids github screaming at us, then I think we should.
2020-03-18 11:53:48 -07:00
jcreedcmu
158a07cd89
Merge pull request #294 from jcreedcmu/jcreed/fix-quick-eval
...
Fix quick-eval in .qll error
2020-03-18 13:44:17 -04:00
Jason Reed
7ac5a8f777
Fix windows broken test
2020-03-18 13:29:41 -04:00
Jason Reed
dc09925149
Add test for quick-query in .qll fix.
2020-03-18 10:42:49 -04:00
Jason Reed
5fd2596537
Fix quick-query error in .qll files
...
Fixes https://github.com/github/vscode-codeql/issues/293
2020-03-18 10:41:57 -04:00
Jason Reed
22003e1375
Add dependencies for testing
2020-03-18 10:40:34 -04:00
github-actions[bot]
dedc9c46ab
Bump version to v1.1.1
2020-03-17 20:25:10 +00:00
Jason Reed
bb6faaedbe
Fix package.json for minor version bump.
2020-03-17 16:13:52 -04:00
jcreedcmu
61f182342f
Update extensions/ql-vscode/CHANGELOG.md
...
Co-Authored-By: Shati Patel <42641846+shati-patel@users.noreply.github.com>
2020-03-17 15:59:16 -04:00
Jason Reed
416a87fe1d
Update CHANGELOG.md for release.
2020-03-17 15:50:49 -04:00
Andrew Eisenberg
0bd835958b
Merge pull request #281 from aeisenberg/aeisenberg/eslint
...
chore: Introduce eslint
2020-03-17 11:58:04 -07:00
Andrew Eisenberg
8e73c64e63
Merge pull request #282 from aeisenberg/aeisenberg/error-message
...
fix: Readable error message for invalid file
2020-03-17 09:24:21 -07:00
Andrew Eisenberg
443abea7d7
chore: Introduce eslint
...
Adds eslint support and fixes linting problems in a few files.
This change adds an npm task, but does not enforce linting for builds.
The idea is to slowly fix linting problems over time.
Closes #238 .
2020-03-17 09:14:02 -07:00
Andrew Eisenberg
a72b22cd61
Change error message
...
Co-Authored-By: jcreedcmu <jcreed@gmail.com>
2020-03-17 08:54:35 -07:00
jcreedcmu
8286850651
Merge pull request #230 from jcreedcmu/jcreed/quick-query-bug
...
Fix weird behavior of Quick Query in non-multi-root workspaces
2020-03-17 09:19:32 -04:00
Andrew Eisenberg
3d8843f64b
fix: Readable error message for invalid file
...
Display an understandable error message when trying to Run Query on
a qll file. Closes 201
2020-03-12 16:13:53 -07:00
Andrew Eisenberg
5fa3c62763
chore: Remove rush temp files
...
The .rush/temp folder should not be committed.
See https://rushjs.io/pages/commands/rush_build/
2020-03-11 11:04:01 -07:00
jcreedcmu
585266160a
Merge pull request #276 from jcreedcmu/jcreed/prep-jump-to-def
...
Add bqrs types and ability to run template queries.
2020-03-11 13:18:17 -04:00
Jason Reed
55d3db05dc
Make absent fields consistently 'never'
2020-03-11 10:40:10 -04:00
Jason Reed
d21cd4447c
Fix some jsdoc comments.
2020-03-11 10:13:42 -04:00
Jason Reed
4968ad8a90
Only create nonempty test suites
...
Fixes #269 .
2020-03-11 09:04:59 -04:00
Andrew Eisenberg
b577c12d1c
Merge pull request #274 from aeisenberg/show-log
...
Add "Show log" button for all messages
2020-03-10 10:26:05 -07:00
Andrew Eisenberg
f399da75d0
Migrate to using showAndLogInformationMessage
...
Also, changes the showAndLog* signatures to accept an optional
logger argument.
2020-03-10 10:01:51 -07:00
Andrew Eisenberg
7638900552
Merge pull request #275 from aeisenberg/update-pnpm
...
Update pnpm, rush and add sinon as a dependency
2020-03-10 09:21:40 -07:00
Andrew Eisenberg
e1c1fc3672
Update pnpm, rush and add sinon as a dependency
...
Note that pnpm no longer uses shrinkwrap.yaml.
I'm not entirely happy with this solution because it makes a change
to the rush.ts build script in order to handle peer dependencies
coming from pnpm. Seems to work, though.
2020-03-10 08:57:26 -07:00
alexet
fd728202ed
Add cli bqrs -types
2020-03-10 09:43:41 -04:00
Jason Reed
8d9a470208
Allow running queries with templates
2020-03-10 09:43:06 -04:00
jcreedcmu
0b79cce512
Merge pull request #272 from jcreedcmu/jcreed/enums-revert
...
Add more types and documentation to protocol file
2020-03-10 09:03:17 -04:00
Andrew Eisenberg
a2a2aafa98
Update changelog
2020-03-09 11:47:08 -07:00
Andrew Eisenberg
84144157e7
Add "Show log" button for all messages
...
This change ensures that "Show log" is available on all messages
from the extension. It's important to note that the only place that
was specifying an "item" before was doing it incorrectly. That's
been fixed.
Closes #287
2020-03-09 11:39:10 -07:00
Andrew Eisenberg
059a75c5a4
Merge pull request #266 from aeisenberg/timeout
...
Display timeout warning and display canceled queries
2020-03-09 10:22:50 -07:00
Jason Reed
c15b1cd3ea
Add more types and documentation to protocol file
...
Reduce the chances that someone reading this file forgets the intent
of the extensible 'enum' namespaces by redundantly putting it loudly
at the beginning.
Add some eponymous type aliases for these 'enum' types so that code
can refer to them.
2020-03-09 13:10:34 -04:00
Andrew Eisenberg
c2e0f251e8
Addresses comments on #266
2020-03-09 09:44:33 -07:00
Henry Mercer
2150281062
Revert "Convert namespaces to enums in messages.ts"
2020-03-09 16:32:10 +00:00
Andrew Eisenberg
dfd1645576
Merge pull request #267 from aeisenberg/docs
...
Update contributing documentation and launch config
2020-03-09 09:26:43 -07:00
Henry Mercer
bbbea29407
Merge pull request #270 from jcreedcmu/jcreed/enums
...
Convert namespaces to enums in messages.ts
2020-03-09 16:14:57 +00:00
Jason Reed
d120388266
Convert namespaces to enums in messages.ts
2020-03-09 12:02:56 -04:00
Andrew Eisenberg
ce0f8add9f
Merge branch 'master' into docs
2020-03-09 09:02:21 -07:00
jcreedcmu
9377279b05
Merge pull request #173 from dbartol/dbartol/QLTest
...
Implement QL Test support
2020-03-09 08:16:28 -04:00