Anders Starcke Henriksen
df5a7bce19
Merge pull request #2788 from github/v1.8.11
...
Release / Release (push) Has been cancelled
Release / Publish to VS Code Marketplace (push) Has been cancelled
Release / Publish to Open VSX Registry (push) Has been cancelled
v1.8.11
2023-09-07 13:51:35 +02:00
Anders Starcke Henriksen
1b3dc7d132
v1.8.11
2023-09-07 13:31:03 +02:00
Robert
247ba4e8ea
Merge pull request #2779 from github/robertbrignull/dropdown-disabled
...
Adjust styling of disabled dropdowns to make their state clearer
2023-09-05 16:20:40 +01:00
Shati Patel
a3ce9f516a
Queries Panel: Create query from welcome view ( #2780 )
2023-09-05 10:34:38 +01:00
Robert
f6b3f28039
Merge pull request #2781 from github/robertbrignull/model-editor-telemetry
...
Emit telemetry for all messages sent from model editor
2023-09-05 10:04:14 +01:00
Robert
ba423376cd
Emit telemetry for all messages sent from model editor
2023-09-04 17:13:29 +01:00
Robert
e9b459adaf
Merge pull request #2778 from github/robertbrignull/MethodRow_stories
...
Provide stories for all states of MethodRow
2023-09-04 15:42:59 +01:00
Robert
074f3fb402
Move dropdown arrow away from the right-hand edge
2023-09-04 15:23:21 +01:00
Robert
c316d52514
Set opacity to 40% when disabled
2023-09-04 15:23:03 +01:00
Robert
9af0239041
Show a dash when dropdown is disabled
2023-09-04 15:22:52 +01:00
Robert
5cf6786e9c
Merge branch 'main' into robertbrignull/MethodRow_stories
2023-09-04 14:19:35 +01:00
Charis Kyriakou
09077a0e24
Rename ExternalApiUsage to Method ( #2776 )
2023-09-04 14:10:10 +02:00
Robert
47c897e9bd
Include stories for all modeled method types
2023-09-04 11:12:07 +01:00
Robert
096e6e8ffd
Wrap MethodRow in a VSCodeDataGrid during story
2023-09-04 11:00:55 +01:00
Charis Kyriakou
2d033bff57
Update jump to usage to include the method ( #2773 )
2023-09-01 13:30:54 +01:00
Robert
1861692055
Merge pull request #2768 from github/robertbrignull/mocked-treeview
...
Use mockedObject for TreeView
2023-09-01 12:41:27 +01:00
Charis Kyriakou
ac7a37c02e
Add ability to set method for modeling in the modeling panel ( #2767 )
2023-09-01 11:16:10 +00:00
Robert
b5d6c4d84c
Merge pull request #2771 from github/robertbrignull/normalize-feature-flag
...
Make methodModelingView match the naming of other flags
2023-09-01 11:05:10 +01:00
Anders Starcke Henriksen
cdd6553735
Merge pull request #2772 from github/starcke/fix-rename-comment
...
Fix a comment that should be renamed.
2023-09-01 11:52:00 +02:00
Anders Starcke Henriksen
6bb0854ff2
Fix a comment that should be renamed.
2023-09-01 11:26:33 +02:00
Robert
c51aaf7790
Make methodModelingView match the other flags
2023-09-01 10:19:12 +01:00
Anders Starcke Henriksen
a6745379c4
Merge pull request #2766 from github/starcke/rename-ff
...
Rename feature flags.
2023-09-01 10:35:28 +02:00
Robert
1178e4c3ae
Merge pull request #2770 from github/robertbrignull/model-beta-label
...
Add beta label to model editor
2023-08-31 15:49:27 +01:00
Robert
59c567a8fa
Add beta label to model editor
2023-08-31 15:25:54 +01:00
Shati Patel
4f2b46aa85
Add "create query" button to queries panel ( #2764 )
2023-08-31 15:02:25 +01:00
Shati Patel
66f12bfbef
Make the "Create query" location workspace-specific ( #2769 )
2023-08-31 15:02:10 +01:00
Robert
2b5d233847
Use mockedObject for TreeView
2023-08-31 12:01:49 +01:00
Robert
11ca60f213
Merge pull request #2738 from github/robertbrignull/useScrollIntoView
...
Convert ScrollIntoViewHelper into a React hook
2023-08-31 10:58:50 +01:00
Robert
dea6bc257a
Merge branch 'main' into robertbrignull/useScrollIntoView
2023-08-31 10:37:16 +01:00
Charis Kyriakou
26b602399a
Extract external api usage name component and reuse it ( #2765 )
2023-08-31 10:12:19 +01:00
Anders Starcke Henriksen
0836307f29
Rename feature flags.
2023-08-31 09:46:22 +02:00
Anders Starcke Henriksen
e61f619f8f
Merge pull request #2763 from github/starcke/rename-vars
...
Starcke/rename vars
2023-08-31 09:17:20 +02:00
Nora
fad674b1c5
Merge pull request #2760 from github/nora/add-components-to-modeling-panel
...
Adds container and header css to new method model sidebar
2023-08-30 17:37:34 +02:00
Nora
4d2856699b
polish
2023-08-30 15:14:51 +00:00
Shati Patel
b51d027b0c
Make "create query" command available when queries panel is enabled ( #2762 )
2023-08-30 16:09:39 +01:00
Nora
595249a9d6
Addning props and minor changes
2023-08-30 15:05:11 +00:00
Anders Starcke Henriksen
00b3ea473c
Misc renames.
2023-08-30 16:36:17 +02:00
Anders Starcke Henriksen
46f80efa4c
Rename in strings.
2023-08-30 16:36:17 +02:00
Anders Starcke Henriksen
05a7d933d1
Rename DataExtensionsEditor
2023-08-30 16:36:17 +02:00
Anders Starcke Henriksen
6da39ee79f
Rename "DataExtensionEditor".
2023-08-30 16:36:17 +02:00
Anders Starcke Henriksen
bb4d97999e
Merge pull request #2761 from github/starcke/rename-files2
...
Rename files.
2023-08-30 16:35:52 +02:00
Anders Starcke Henriksen
af3434b87c
Remove spurious theme.
2023-08-30 16:08:42 +02:00
Nora
083b232bb3
Fix merge conflict
2023-08-30 13:35:03 +00:00
Nora
a65c91c84e
Add Container and Header
2023-08-30 13:33:32 +00:00
Anders Starcke Henriksen
23f8c48b06
Rename files.
2023-08-30 15:06:45 +02:00
Anders Starcke Henriksen
7fbb1286b9
Merge pull request #2759 from github/starcke/rename-files
...
Starcke/rename files
2023-08-30 14:50:51 +02:00
Anders Starcke Henriksen
571e6f285f
Update webview enum.
2023-08-30 13:59:51 +02:00
Anders Starcke Henriksen
e64cf4073c
Rename data-extension-editor files.
2023-08-30 13:46:48 +02:00
Anders Starcke Henriksen
e3a2a11b3d
Merge pull request #2754 from github/starcke/rename-directories
...
Starcke/rename directories
2023-08-30 09:11:00 +02:00
Anders Starcke Henriksen
9b121d56c2
Merge branch 'main' into starcke/rename-directories
2023-08-29 15:38:08 +02:00
Anders Starcke Henriksen
b548bbd43b
Merge pull request #2758 from github/starcke/more-java-update
...
Change the java query to work for multiple java versions.
2023-08-29 15:37:28 +02:00
Anders Starcke Henriksen
ccdb46a1bb
Merge branch 'main' into starcke/rename-directories
2023-08-29 15:16:33 +02:00
Anders Starcke Henriksen
d1a342beaf
Merge pull request #2757 from github/starcke/automodel-pack
...
Use auto-model pack to run auto-model queries.
2023-08-29 15:12:03 +02:00
Anders Starcke Henriksen
eeac123ee5
Update non-build references.
2023-08-29 14:39:22 +02:00
Anders Starcke Henriksen
73c596c87a
Rename other directories.
2023-08-29 14:38:18 +02:00
Anders Starcke Henriksen
c6f40b3152
Rename main directory.
2023-08-29 14:38:18 +02:00
Anders Starcke Henriksen
3a0843219e
Change the java query to work for multiple java versions.
2023-08-29 13:57:16 +02:00
Anders Starcke Henriksen
b00a2cc803
Use auto-model pack to run auto-model queries.
2023-08-29 13:39:44 +02:00
Anders Starcke Henriksen
14b9f932ab
Merge pull request #2731 from github/starcke/no-submodule
...
Make automodel and flow queries work without submodule.
2023-08-29 12:45:22 +02:00
Anders Starcke Henriksen
f3e32baec4
Update extensions/ql-vscode/src/data-extensions-editor/external-api-usage-queries.ts
...
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com >
2023-08-29 11:45:32 +02:00
Anders Starcke Henriksen
20e5429af8
Merge pull request #2755 from github/starcke/fix-neutral-fetch
...
Fix ql code in neutral fetch.
2023-08-29 09:29:59 +02:00
Dave Bartolomeo
d23178be85
Merge pull request #2756 from github/github-action/bump-cli
...
Bump CLI Version to v2.14.3 for integration tests
2023-08-28 12:18:48 -04:00
Andrew Eisenberg
b09e9942b2
Add more path triggers for cli-test.yml
2023-08-28 15:25:00 +00:00
github-actions[bot]
fc5cfd0aec
Bump CLI version from v2.14.2 to v2.14.3 for integration tests
2023-08-28 13:45:42 +00:00
Anders Starcke Henriksen
259159df45
Add missing pack download and fix lock file creation.
2023-08-28 13:22:03 +02:00
Anders Starcke Henriksen
bc7c97e216
Fix ql code in neutral fetch.
2023-08-28 09:42:04 +02:00
Charis Kyriakou
af22a1573b
Add new method modeling panel ( #2752 )
2023-08-25 15:47:57 +00:00
Anders Starcke Henriksen
d2eb366e74
Make automodel and flow queries work without submodule.
2023-08-25 14:57:54 +02:00
Anders Starcke Henriksen
6a6028bf63
Merge pull request #2746 from github/starcke/update-editor-name
...
Update editor name in visible strings.
2023-08-25 14:13:19 +02:00
Charis Kyriakou
3c7e1fc192
Remove codeQL.dataExtensions.frameworkMode setting ( #2753 )
2023-08-25 11:28:21 +00:00
Anders Starcke Henriksen
0433f899fd
Merge pull request #2750 from github/starcke/fetch-queries-out-of-view
...
Starcke/fetch queries out of view
2023-08-25 13:25:04 +02:00
Charis Kyriakou
c82f00eb45
Rename ModelDetail to MethodsUsage in types and functions ( #2751 )
2023-08-25 11:06:21 +01:00
Shati Patel
94edb9bf16
Merge pull request #2749 from github/shati-patel/implement-dropdown
...
Make "result format" dropdown determine result display
2023-08-25 10:52:23 +01:00
Shati Patel
4a87a6fddf
Merge pull request #2745 from github/shati-patel/result-format-view
...
Display "result format" dropdown in results view for (path-)problem queries
2023-08-25 09:46:54 +01:00
Anders Starcke Henriksen
9543ab339f
Update tests.
2023-08-25 09:50:01 +02:00
Anders Starcke Henriksen
398f16c4cb
Change fetch queries to use shared methods.
2023-08-25 09:49:57 +02:00
Anders Starcke Henriksen
ea14767f2a
Rename methods in fetch queries.
2023-08-25 09:28:46 +02:00
Anders Starcke Henriksen
b6deb8e0ea
Merge pull request #2744 from github/starcke/general-setup
...
Move pack setup out of fetch queries.
2023-08-25 09:26:01 +02:00
Nora
7b78fc1dd9
Merge pull request #2748 from github/nora/rename-method-usages-folder
...
Rename methods usage folder and command
2023-08-24 20:02:28 +02:00
shati-patel
0ccd39a368
Update changelog
2023-08-24 17:37:40 +01:00
shati-patel
24b93e247c
Make "result format" dropdown determine result display
2023-08-24 17:28:54 +01:00
Nora
6e3b0b245c
Merge pull request #2747 from github/nora/rename-model-details-files
...
Rename methods usage panel files
2023-08-24 18:12:39 +02:00
Nora
6939caa6a5
Rename command and folders
2023-08-24 15:22:13 +00:00
Nora
2e8e7cae47
Rename files only
2023-08-24 15:13:01 +00:00
shati-patel
f8d542d141
Only show the "result format" dropdown for (path-)problem queries
2023-08-24 15:44:08 +01:00
shati-patel
6715669036
Add "result format" dropdown to MRVA view
2023-08-24 15:44:07 +01:00
Shati Patel
c38a01e937
Add a dropdown for choosing MRVA result format ( #2743 )
2023-08-24 14:42:44 +00:00
Anders Starcke Henriksen
74a12b9fed
Move test to separate file.
2023-08-24 16:16:24 +02:00
Anders Starcke Henriksen
906af36337
Update editor name in visible strings.
2023-08-24 16:07:33 +02:00
Anders Starcke Henriksen
359e23fc59
Fix test.
2023-08-24 13:53:34 +02:00
Anders Starcke Henriksen
b13dd7545c
Merge branch 'main' into starcke/general-setup
2023-08-24 13:45:00 +02:00
Anders Starcke Henriksen
ac0dfa5e83
Merge pull request #2742 from github/starcke/flow-queries-refactor
...
Starcke/flow queries refactor
2023-08-24 13:38:13 +02:00
Shati Patel
2ffb7894d4
Always read BQRS results file ( #2741 )
2023-08-24 12:11:51 +01:00
Nora
422f6de05e
Merge pull request #2735 from github/nora/test-model-details-view
...
Add tests for Model Details View
2023-08-24 12:33:51 +02:00
Shati Patel
ee88ea1658
Store query @kind when running a variant analysis ( #2740 )
2023-08-24 10:18:20 +01:00
Nora
0daa06bc0d
rename test and remove boolean type
2023-08-24 08:58:37 +00:00
Anders Starcke Henriksen
c584d02805
Merge pull request #2734 from github/starcke/automodel-queries-refactor
...
Starcke/automodel queries refactor
2023-08-24 09:57:32 +02:00
Nora
c56936e2f6
create and use factories
2023-08-23 16:06:30 +00:00
Anders Starcke Henriksen
1fc735639b
Merge pull request #2733 from github/starcke/refactor-names
...
Rename query files to have consistent suffix.
2023-08-23 12:58:18 +02:00
Charis Kyriakou
0352629eb4
Rename WebviewView to WebviewKind ( #2739 )
2023-08-23 11:27:58 +01:00
Anders Starcke Henriksen
877fc51494
Move pack setup out of fetch queries.
2023-08-23 11:27:18 +02:00
Anders Starcke Henriksen
886f211441
Change flow queries to use shared methods.
2023-08-23 11:27:03 +02:00
Anders Starcke Henriksen
75d275c93f
Rename methods in flow queries.
2023-08-23 11:27:03 +02:00
Anders Starcke Henriksen
5d1fa1d6b5
Reorder methods in flow queries.
2023-08-23 11:27:03 +02:00
Anders Starcke Henriksen
4fce448717
Address comments.
2023-08-23 11:26:23 +02:00
Robert
610c936690
Add useScrollIntoView hook
2023-08-22 17:01:25 +01:00
Robert
d777427c0a
Merge pull request #2737 from github/robertbrignull/AlertTable-functional
...
Convert AlertTable to a function component
2023-08-22 16:59:00 +01:00
Charis Kyriakou
81924af1e4
Don't download artifacts for repos with no results in MRVA ( #2736 )
...
* Don't download artifacts for repos with no results
* Remove getVariantAnalysisRepoResult requests for repos with no results
* Run fix-scenario-file-numbering for mrva-problem-query-success scenario
* Update CHANGELOG
2023-08-22 16:23:40 +01:00
Nora
45f7d22d2a
Add reveal test
2023-08-22 13:11:46 +00:00
Robert
dcef43c6d5
Convert updateSelectionCallback to use useCallback
2023-08-22 14:08:14 +01:00
Robert
160642ec73
Convert toggle to use useCallback
2023-08-22 14:07:54 +01:00
Robert
240dd51dc0
Convert handleNavigationEvent to use useCallback
2023-08-22 14:07:54 +01:00
Robert
ad42b060b7
Decompose props earlier
2023-08-22 14:07:54 +01:00
Robert
23b2327bd0
Convert AlertTable to a function component
2023-08-22 14:07:52 +01:00
Robert
450d294bab
Move render to the end of the component
2023-08-22 14:04:48 +01:00
Robert
4e376063ee
Move getNewSelection to before it is used
2023-08-22 14:02:56 +01:00
Anders Starcke Henriksen
39cb219e56
Fix broken reference in test.
2023-08-22 14:53:04 +02:00
Anders Starcke Henriksen
e01fb9172f
Update tests.
2023-08-22 14:23:26 +02:00
Anders Starcke Henriksen
1764151bf7
Change automodel queries to use shared methods.
2023-08-22 14:20:59 +02:00
Anders Starcke Henriksen
82c40c69e6
Add generalized run query method.
2023-08-22 14:18:19 +02:00
Anders Starcke Henriksen
1a34d782e8
Reorder methods in automodel queries.
2023-08-22 14:16:18 +02:00
Anders Starcke Henriksen
08c1b57661
Rename query files to have consistent suffix.
2023-08-22 14:06:22 +02:00
Robert
5fc34248b3
Merge pull request #2732 from github/robertbrignull/AlertTable-decompose
...
Split AlertTable into smaller components
2023-08-22 12:24:12 +01:00
Robert
bee7d81fb4
Merge branch 'main' into robertbrignull/AlertTable-decompose
2023-08-22 11:40:45 +01:00
Charis Kyriakou
3094405f68
Split out CLI version tests to separate workflow ( #2729 )
2023-08-22 11:28:36 +01:00
Nora
392e76d8f2
Add getChildren tests
2023-08-22 08:56:42 +00:00
Nora
6e4e89a006
Move dataProvider creation to beforeEach
2023-08-22 08:56:07 +00:00
Nora
cb2802e2e7
Add mode details panel test
2023-08-22 08:55:25 +00:00
Robert
af1af074dc
Convert updateSelectionCallback to not use double-nested methods
2023-08-21 17:17:37 +01:00
Robert
d65ce3e24a
Use useCallback when calling toggleExpanded
2023-08-21 17:13:49 +01:00
Robert
13ce5f7e3c
Merge pull request #2730 from github/robertbrignull/details-ship
...
Remove config.codeQL.dataExtensions.modelDetailsView feature flag
2023-08-21 14:53:24 +01:00
Robert
eebe11e5dd
Simplify passing similar props
2023-08-21 14:52:42 +01:00
Robert
bd5d361de1
Pass around toggle instead of toggler
2023-08-21 14:26:10 +01:00
Robert
e3596db8e7
Remove rows array and render AlertTableResultRow inline
2023-08-21 14:26:10 +01:00
Robert
21b1c997c6
Move rendering of AlertTablePathRow to inside of AlertTableResultRow
2023-08-21 14:26:09 +01:00
Robert
9ecf97152a
Move rendering of msg to inside AlertTableResuiltRow
2023-08-21 14:25:42 +01:00
Robert
3983087bc8
Use useMemo for callback passed to SarifLocation.onClick in AlertTableResultRow
2023-08-21 14:25:08 +01:00
Robert
636d0bf025
Move rendering of locationCells to inside AlertTableResuiltRow
2023-08-21 14:25:08 +01:00
Robert
fe4d87dae5
Teach AlertTableResultRow how to render results without codeFlows
2023-08-21 14:25:06 +01:00
Robert
1794c6b7f7
Simplify rendering in AlertTable
2023-08-21 14:24:36 +01:00
Robert
23d815ff05
Use useMemo for callback passed to AlertTableDropdownIndicatorCell.onClick in AlertTableResultRow
2023-08-21 14:24:25 +01:00
Robert
8945abcb57
Pull out AlertTableResultRow to a separate component
2023-08-21 14:23:57 +01:00
Robert
a576dace04
Do all rendering in AlertTablePathRow in one place
2023-08-21 14:23:05 +01:00
Robert
3e7577c984
Use useMemo for callback passed to AlertTableDropdownIndicatorCell.onClick in AlertTablePathRow
2023-08-21 14:21:58 +01:00
Robert
acb76a64ef
Pull out AlertTablePathRow to a separate component
2023-08-21 14:20:45 +01:00
Robert
ba0cf9a22d
Use useMemo for callback passed to SarifLocation.onClick in AlertTablePathNodeRow
2023-08-21 14:19:54 +01:00
Robert
443c9ac56c
Inline some rendering in AlertTablePathNodeRow
2023-08-21 14:19:53 +01:00
Robert
91e69c93be
Pull out AlertTablePathNodeRow to a separate component
2023-08-21 14:19:53 +01:00
Robert
7e31b6e42a
Construct rows using maps instead of mutating array from multiple places
2023-08-21 14:19:52 +01:00
Robert
cff7170fdc
Move AlertTableTruncatedMessage to a new component in a new file
2023-08-21 14:17:47 +01:00
Robert
ca40963238
Move AlertTableNoResults to a new component in a new file
2023-08-21 14:17:45 +01:00
Robert
b1ff75b646
Remove config.codeQL.dataExtensions.modelDetailsView feature flag
2023-08-21 12:32:45 +01:00
Robert
e5ab1118ee
Merge pull request #2719 from github/koesie10/fix-button-accessibility
...
Fix button accessibility
2023-08-21 11:48:36 +01:00
Robert
d90fb69e39
Merge branch 'main' into koesie10/fix-button-accessibility
2023-08-21 11:11:35 +01:00
Robert
2f4eed4a4d
Merge pull request #2726 from github/koesie10/fix-alert-table-accessibility
...
Fix accessibility of alert table
2023-08-21 11:04:41 +01:00
Nora
2cb520d603
Merge pull request #2717 from github/nora/hide-modeled-on-model-details-view
...
Respect the "Hide modeled APIs" checkbox in the model details view
2023-08-21 11:09:48 +02:00
Charis Kyriakou
4a752d27c4
Moves mock GitHub API to /common ( #2728 )
...
* Move mock GitHub API to /common
* Rename MRVA mock scenarios
* Update mock GitHub API docs
2023-08-21 08:49:27 +01:00
Nora
6cfd20eca4
Set hodeModeledApis variable
2023-08-21 07:29:37 +00:00
dependabot[bot]
36259b21db
Bump @testing-library/jest-dom in /extensions/ql-vscode ( #2723 )
...
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom ) from 5.16.5 to 6.0.0.
- [Release notes](https://github.com/testing-library/jest-dom/releases )
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.16.5...v6.0.0 )
---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com >
2023-08-18 15:39:28 +01:00
dependabot[bot]
cd14a37f79
Bump lint-staged from 13.2.0 to 14.0.0 in /extensions/ql-vscode ( #2722 )
...
Bumps [lint-staged](https://github.com/okonet/lint-staged ) from 13.2.0 to 14.0.0.
- [Release notes](https://github.com/okonet/lint-staged/releases )
- [Commits](https://github.com/okonet/lint-staged/compare/v13.2.0...v14.0.0 )
---
updated-dependencies:
- dependency-name: lint-staged
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com >
2023-08-18 14:55:10 +01:00
Koen Vlaswinkel
d6e0c6a4a7
Fix accessibility of alert table dropdown
2023-08-18 13:28:17 +02:00
Koen Vlaswinkel
9f589880df
Split alert table dropdown indicator cell
2023-08-18 13:26:45 +02:00
Koen Vlaswinkel
b7a4419420
Add story for AlertTable
2023-08-18 13:26:19 +02:00
Koen Vlaswinkel
1d2ef805fb
Merge remote-tracking branch 'origin/main' into koesie10/fix-button-accessibility
2023-08-18 10:03:54 +02:00
Koen Vlaswinkel
2888fddf61
Move all ResultTablesHeader styles to styled-components
2023-08-18 10:03:36 +02:00
Koen Vlaswinkel
a5c675b8c7
Add story for ResultTablesHeader
2023-08-18 09:58:34 +02:00
Shati Patel
d05dba4bba
Fix changelog entry ( #2725 )
2023-08-17 16:13:40 +00:00
Shati Patel
2db0ca8ecc
Group extension settings in the VS Code UI ( #2706 )
2023-08-17 16:48:15 +01:00
Robert
497dc31819
Merge pull request #2716 from github/robertbrignull/data-renames
...
Rename files in src/view/results to match their components
2023-08-17 15:23:38 +01:00
Nora
cd309aece6
Adjust badge number
2023-08-17 12:53:24 +00:00
Nora
aaaf799557
Add test
2023-08-17 12:27:16 +00:00
Nora
ece54b8f7d
Make all setStage arguments mandatory
2023-08-17 12:26:13 +00:00
Nora
0824892507
Move post message and use effect
2023-08-17 11:02:20 +00:00
Nora
082268e201
Rename constant file
2023-08-17 11:00:45 +00:00
Nora
27bce4a1e9
Add tests
2023-08-17 09:19:01 +00:00
Nora
56ecd1a84c
hide unmodeled apis
2023-08-17 09:19:01 +00:00
Nora
84ab602277
Send message from from view
2023-08-17 09:19:01 +00:00
Koen Vlaswinkel
a86a373e19
Merge pull request #2718 from github/koesie10/upgrade-storybook
...
Upgrade Storybook
2023-08-17 10:04:36 +02:00
Koen Vlaswinkel
90a39ec293
Use button instead of a for raw results link
2023-08-16 16:45:51 +02:00
Koen Vlaswinkel
3dd8583116
Use button instead of a for clickable location links
2023-08-16 16:45:47 +02:00
Koen Vlaswinkel
b0663669b0
Use button instead of a for compare table queries
2023-08-16 16:45:44 +02:00
Koen Vlaswinkel
493c9cb5fe
Add story for compare table
2023-08-16 16:45:41 +02:00
Robert
99dd9166b3
Merge pull request #2709 from github/robertbrignull/details-visible
...
Only show the details view when a data extensions editor is open
2023-08-16 15:28:38 +01:00
Koen Vlaswinkel
10604808e0
Upgrade Storybook
2023-08-16 15:45:28 +02:00
Robert
3164c3f11f
Rename results.tsx => ResultsApp.tsx
2023-08-16 13:21:07 +01:00
Robert
ed36fb725b
Rename raw-results-table.tsx => RawTable.tsx
2023-08-16 13:21:07 +01:00
Robert
67b138f0c2
Rename graph.tsx => Graph.tsx
2023-08-16 13:21:04 +01:00
Robert
fed9870a0c
Only show the details view when a data extensions editor is open
2023-08-16 13:06:14 +01:00
Robert
51844bb541
Merge pull request #2705 from github/robertbrignull/details-multiple-editors
...
Allow the details view to handle multiple open data extensions editors
2023-08-16 12:47:44 +01:00
Robert
0acd06f773
Rename alert-table.tsx => AlertTable.tsx
2023-08-16 10:35:59 +01:00
Robert
acb9669e9f
Merge pull request #2714 from github/robertbrignull/EmptyQueryResultsMessage
...
Move EmptyQueryResultsMessage out of results-table-utils
2023-08-16 10:05:58 +01:00
Charis Kyriakou
2a71183695
Start with collapsed items in data extensions editor ( #2713 )
2023-08-15 17:06:12 +01:00
Robert
1c3d3428e4
Merge pull request #2712 from github/robertbrignull/AlertTableHeader-filename
...
Rename alert-table-header.tsx => AlertTableHeader.tsx
2023-08-15 16:58:55 +01:00
Robert
c77bb2b9c2
Rename result-table-utils.tsx => result-table-utils.ts
2023-08-15 16:44:29 +01:00
Robert
d3d96a1dbe
Make EmptyQueryResultsMessage into a component
2023-08-15 16:42:10 +01:00
Robert
7c62176f59
Rename alert-table-header.tsx => AlertTableHeader.tsx
2023-08-15 16:31:55 +01:00
Robert
87754a9ec9
Move mostRecentlyActiveView variable to DataExtensionsEditorModule
2023-08-15 15:36:14 +01:00
Robert
ee78df683a
Add onPanelWasDisposed
2023-08-15 15:16:37 +01:00
Robert
3764a7e567
Split isTheMostRecentlyActivePanel into two methods
2023-08-15 15:14:15 +01:00
Robert
552baa5570
Merge branch 'main' into robertbrignull/details-multiple-editors
2023-08-15 14:57:45 +01:00
Charis Kyriakou
57262446fb
Merge pull request #2711 from github/version/bump-to-v1.8.11
...
Bump version to v1.8.11
2023-08-15 14:07:35 +01:00
Robert
5b128711e5
Merge pull request #2708 from github/robertbrignull/details-updates
...
Only update the details view when data has changed
2023-08-15 14:01:35 +01:00
Robert
6787deed04
Use not.toHaveBeenCalled()
2023-08-15 11:16:44 +01:00
Robert
381e8c0849
Fix test name
2023-08-15 11:15:32 +01:00
github-actions[bot]
74c6f3ce54
Bump version to v1.8.11
2023-08-15 10:08:02 +00:00
Charis Kyriakou
0c2773481a
v1.8.10 ( #2710 )
Release / Release (push) Has been cancelled
Release / Publish to VS Code Marketplace (push) Has been cancelled
Release / Publish to Open VSX Registry (push) Has been cancelled
2023-08-15 10:41:34 +01:00
Robert
96660ebbf9
Merge pull request #2702 from github/robertbrignull/ResultTables
...
Convert ResultTables to a function component
2023-08-15 09:45:56 +01:00
Dave Bartolomeo
e308c2b8c9
Merge pull request #2685 from github/shati-patel/get-current-query
...
Fix `getCurrentQuery` to look at active tabs instead of active text editors
2023-08-14 12:35:56 -04:00
Robert
35622a94f2
Move ProblemsViewCheckbox to a separate component
2023-08-14 17:08:13 +01:00
Robert
2ff0ee58fc
Move ResultCount to a separate component
2023-08-14 16:54:33 +01:00
Alexander Eyers-Taylor
a965ea4044
Graph: Set fill color for all graph text ( #2707 )
...
Grapviz no longer sets it to the default so we don't have anything to
override
2023-08-14 15:53:25 +00:00
Robert
194c8d5cfc
Make hook imports consistent
2023-08-14 16:49:43 +01:00
Robert
4e70c8999f
Only update the details view when data has changed
2023-08-14 15:55:01 +01:00
Shati Patel
2569f631a2
Add code lens for "Open referenced file" ( #2704 )
2023-08-14 15:26:43 +01:00
Robert
6005e3ab70
Update details view on view state changes, and remember the most recently active panel
2023-08-14 15:02:40 +01:00
Robert
7c93c7046e
Store the latest set of external API usages on the view class
2023-08-14 14:08:10 +01:00
Koen Vlaswinkel
a46209b22d
Merge pull request #2701 from github/koesie10/fix-duplicate-test-running
...
Fix running tests twice when test paths are passed
2023-08-14 13:28:54 +02:00
Robert
408d38dc88
Merge pull request #2703 from github/robertbrignull/InProgressMethods_immutable
...
Make InProgressMethods immutable so it's safer to use as react state
2023-08-14 12:26:24 +01:00
Robert
55aeb3ce86
Update extensions/ql-vscode/src/data-extensions-editor/shared/in-progress-methods.ts
...
Co-authored-by: Koen Vlaswinkel <koesie10@users.noreply.github.com >
2023-08-14 11:27:38 +01:00
Robert
37c461a89b
Make InProgressMethods immutable so it's safer to use as react state
2023-08-14 10:46:24 +01:00
Robert
1595f7c879
Merge pull request #2700 from github/robertbrignull/data-rows
...
Fix spacing of columns
2023-08-14 10:32:20 +01:00
Robert
a893bf7a77
Merge pull request #2688 from github/robertbrignull/data-view-jump
...
Implementing expanding/selecting item in details view when clicking "view"
2023-08-14 10:15:17 +01:00
Robert
81579351cd
Convert resultSet to use useMemo
2023-08-14 09:47:07 +01:00
Koen Vlaswinkel
1b0bcb3d2f
Fix running tests twice when test paths are passed
...
When running tests using `--runTestsByPath <some-path>`, the tests were
being run twice because jest-runner-vscode
[resolves test paths](0c98dc12ad/packages/jest-runner-vscode/src/runner.ts (L57-L66) ),
while the original arguments were also still passed to Jest. So, the
arguments Jest would receive would look something like
`test/vscode-tests/no-workspace/databases/local-databases/locations.test.ts /Users/koesie10/github/vscode-codeql/extensions/ql-vscode/test/vscode-tests/no-workspace/databases/local-databases/locations.test.ts`
which would cause Jest to run the tests twice. This fixes this by
resolving the paths to their absolute paths, and then removing any
duplicates.
2023-08-14 10:22:24 +02:00
Robert
8713a5403f
Convert resultSets to use useMemo
2023-08-11 17:32:31 +01:00
Robert
943a61b6a9
Convert getOffset to just a number
2023-08-11 17:31:44 +01:00
Robert
3652e52312
Convert alertTableExtras to use useMemo
2023-08-11 17:30:14 +01:00
Robert
94a8536f28
Move condition check into alertTableExtras
2023-08-11 17:27:02 +01:00
Robert
4e0ab5b46e
Convert handleCheckboxChanged to use useCallback
2023-08-11 17:24:42 +01:00
Robert
f761083342
Move handleCheckboxChanged out of alertTableExtras
2023-08-11 17:24:03 +01:00
Robert
57241c906e
Convert onTableSelectionChange to use useCallback
2023-08-11 17:23:06 +01:00
Robert
ee20a28fdc
Add dependencies to useEffect hooks
2023-08-11 17:22:43 +01:00
Robert
d173ff3c48
Convert vscodeMessageHandler to use useCallback
2023-08-11 17:22:21 +01:00
Robert
da8f959c42
Convert handleMessage to use useCallback
2023-08-11 17:21:24 +01:00
Robert
3d9f34e658
Naiely convert to function component
2023-08-11 17:17:50 +01:00
Robert
c124192879
Delete sendResultsPageChangedTelemetry as it is unused
2023-08-11 17:08:25 +01:00
Robert
2cb6a95ffd
Move handleMessage and componentDidMount to be before render method
2023-08-11 16:48:50 +01:00
Robert
c0568a837c
Move vscodeMessageHandler to before it is used
2023-08-11 16:46:45 +01:00
Robert
1f20836d53
Fix spacing of columns
2023-08-11 16:16:07 +01:00
Robert
5bf56baab8
Merge branch 'main' into robertbrignull/data-view-jump
2023-08-11 15:56:31 +01:00
Robert
dd0534b353
Merge pull request #2666 from github/robertbrignull/ResultTables-Header
...
Move ResultTablesHeader to its own component
2023-08-11 15:45:41 +01:00
Robert
dd89f0d337
Merge branch 'main' into robertbrignull/ResultTables-Header
2023-08-11 14:48:07 +01:00
Shati Patel
616bdb9021
Merge branch 'main' into shati-patel/get-current-query
2023-08-11 13:51:42 +01:00
github-actions[bot]
3b7f7e5528
Bump CLI version from v2.14.1 to v2.14.2 for integration tests ( #2699 )
...
Co-authored-by: github-actions[bot] <github-actions@github.com >
2023-08-11 12:26:41 +00:00
Charis Kyriakou
11a9668e44
Merge pull request #2698 from github/charisk/remove-automodel-v1
...
Remove automodel v1 code
2023-08-11 13:22:16 +01:00
Robert
1e0a7555f9
Merge branch 'main' into robertbrignull/data-view-jump
2023-08-11 12:28:54 +01:00
Robert
a52e067636
Merge branch 'main' into robertbrignull/ResultTables-Header
2023-08-11 12:26:21 +01:00
Charis Kyriakou
feb4bb61fe
Drop v2 from automodel code
2023-08-11 11:07:25 +00:00
Charis Kyriakou
2a5b6ea95b
Remove automodel v1
2023-08-11 11:07:19 +00:00
Nora
217114777f
Merge pull request #2683 from github/nora/model-details-view-styling
...
Add icons and main badge to Model Details View
2023-08-11 11:52:15 +02:00
Koen Vlaswinkel
2cac3181a8
Merge pull request #2697 from github/koesie10/downgrade-octokit
...
Revert "Bump @octokit/plugin-retry from 4.1.6 to 6.0.0"
2023-08-11 10:41:10 +02:00
Koen Vlaswinkel
9ebf99a572
Merge pull request #2693 from github/dependabot/npm_and_yarn/extensions/ql-vscode/patch-package-8.0.0
...
Bump patch-package from 7.0.0 to 8.0.0 in /extensions/ql-vscode
2023-08-11 10:35:42 +02:00
Koen Vlaswinkel
3059e78ca4
Merge pull request #2694 from github/dependabot/npm_and_yarn/extensions/ql-vscode/cosmiconfig-8.2.0
...
Bump cosmiconfig from 7.1.0 to 8.2.0 in /extensions/ql-vscode
2023-08-11 10:32:22 +02:00
Koen Vlaswinkel
7d9d1077fd
Revert "Bump @octokit/plugin-retry from 4.1.6 to 6.0.0 in /extensions/ql-vscode ( #2602 )"
...
This reverts commit e938a6a9cb .
2023-08-11 10:15:01 +02:00
Anders Starcke Henriksen
b3e81ffa53
Merge pull request #2691 from github/starcke/more-kinds
...
Add more sink and source kinds.
2023-08-11 09:45:42 +02:00
Koen Vlaswinkel
0ef688792b
Merge pull request #2692 from github/dependabot/npm_and_yarn/extensions/ql-vscode/eslint-config-prettier-9.0.0
...
Bump eslint-config-prettier from 8.5.0 to 9.0.0 in /extensions/ql-vscode
2023-08-10 17:19:56 +02:00
Koen Vlaswinkel
fa66b2757a
Merge pull request #2695 from github/dependabot/npm_and_yarn/extensions/ql-vscode/ts-unused-exports-10.0.0
...
Bump ts-unused-exports from 9.0.5 to 10.0.0 in /extensions/ql-vscode
2023-08-10 17:03:09 +02:00
Robert
9069ba2d62
Use sourceLocationPrefix to get relative path inside database
2023-08-10 15:06:41 +01:00
dependabot[bot]
5e1a9a330b
Bump ts-unused-exports from 9.0.5 to 10.0.0 in /extensions/ql-vscode
...
Bumps [ts-unused-exports](https://github.com/pzavolinsky/ts-unused-exports ) from 9.0.5 to 10.0.0.
- [Changelog](https://github.com/pzavolinsky/ts-unused-exports/blob/master/CHANGELOG.md )
- [Commits](https://github.com/pzavolinsky/ts-unused-exports/commits )
---
updated-dependencies:
- dependency-name: ts-unused-exports
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-10 13:48:45 +00:00
dependabot[bot]
49df14eeb8
Bump cosmiconfig from 7.1.0 to 8.2.0 in /extensions/ql-vscode
...
Bumps [cosmiconfig](https://github.com/cosmiconfig/cosmiconfig ) from 7.1.0 to 8.2.0.
- [Changelog](https://github.com/cosmiconfig/cosmiconfig/blob/main/CHANGELOG.md )
- [Commits](https://github.com/cosmiconfig/cosmiconfig/compare/v7.1.0...v8.2.0 )
---
updated-dependencies:
- dependency-name: cosmiconfig
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-10 13:48:17 +00:00
dependabot[bot]
0c0a4fe78d
Bump patch-package from 7.0.0 to 8.0.0 in /extensions/ql-vscode
...
Bumps [patch-package](https://github.com/ds300/patch-package ) from 7.0.0 to 8.0.0.
- [Release notes](https://github.com/ds300/patch-package/releases )
- [Changelog](https://github.com/ds300/patch-package/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ds300/patch-package/compare/v7.0.0...v8.0.0 )
---
updated-dependencies:
- dependency-name: patch-package
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-10 13:47:43 +00:00
dependabot[bot]
50b8ae5713
Bump eslint-config-prettier from 8.5.0 to 9.0.0 in /extensions/ql-vscode
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 8.5.0 to 9.0.0.
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.5.0...v9.0.0 )
---
updated-dependencies:
- dependency-name: eslint-config-prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-10 13:47:08 +00:00
Nora
ebc5ef2d90
Adjust message
2023-08-10 12:36:28 +00:00
Anders Starcke Henriksen
c676ffdc13
Add more sink and source kinds.
2023-08-10 14:31:06 +02:00
Charis Kyriakou
b8ba32f028
Minor auto-model polish ( #2689 )
2023-08-10 13:03:02 +01:00
Charis Kyriakou
52a8704786
Improve auto-modeling in-progress state handling ( #2687 )
2023-08-10 11:58:49 +01:00
Robert
23ddc83c52
Inline methods that are small and only used from one place
2023-08-10 11:47:41 +01:00
Robert
54ec146c8e
Jump to usage as well as revealing in details view
2023-08-10 11:43:05 +01:00
Robert
b04f316730
Call revealItemInDetailsPanel when clicking view
2023-08-10 11:05:17 +01:00
Robert
2b58edaa84
Implement getParent by searching all usages
2023-08-10 11:05:17 +01:00
Robert
6aea8fee3a
Covert to canonical usage object before calling reveal
2023-08-10 11:05:17 +01:00
Robert
e37a833c9a
Add revealItem method and pass through to DataExtensionsEditorView
2023-08-10 11:05:17 +01:00
Robert
805bb74a8a
Include full usage in jumpToUsage message
2023-08-10 11:05:17 +01:00
Charis Kyriakou
209822e093
Add auto-model mock API scenario ( #2684 )
2023-08-10 09:55:17 +00:00
Charis Kyriakou
5d2e20516b
Rename 'dependency' to 'package' in auto-modeling code ( #2686 )
2023-08-10 09:06:33 +00:00
Nora
c905814393
Show line numbers and file path
2023-08-10 08:10:38 +00:00
Charis Kyriakou
b1dc862392
Merge pull request #2682 from github/charisk/batch-automodeling
...
Batch automodeling
2023-08-10 08:58:23 +01:00
shati-patel
c5febb4b48
Fix getCurrentQuery to look at active tabs instead of active text editors
2023-08-09 17:07:33 +01:00
Nora
df880496cc
Add icons and main badge
2023-08-09 16:41:45 +02:00
Charis Kyriakou
4b0f59983a
Add ability to stop automodeling
2023-08-09 12:25:14 +00:00
Charis Kyriakou
4f7126296e
Break up automodeling into batches
2023-08-09 12:24:44 +00:00
Robert
bd6a7b263f
Merge pull request #2679 from github/robertbrignull/data-details-jump
...
Implementing jumping to location when clicking on a usage in the details panel
2023-08-09 13:04:08 +01:00
Charis Kyriakou
6791ddb445
Pass dependency name around when automodeling ( #2681 )
2023-08-09 12:39:05 +01:00
Charis Kyriakou
6dc0b14be7
Merge pull request #2680 from github/charisk/move-automodeling
...
Move automodeling logic out of view
2023-08-09 12:00:06 +01:00
Robert
1139790620
Rename command from codeQLDataExtensions => codeQLDataExtensionsEditor
2023-08-09 11:57:19 +01:00
Charis Kyriakou
0cc8e68155
Extract modeling of specific set of candidates into its own function
2023-08-08 15:56:51 +00:00
Robert
f52a512794
Merge pull request #2672 from github/robertbrignull/sarif-processing-no-location
...
Handle when an alert message contains links to files outside of the repository source
2023-08-08 16:56:03 +01:00
Charis Kyriakou
75882710ad
Move automodeling logic to AutoModeler class
2023-08-08 15:52:03 +00:00
Robert
7443b35ebc
Jump to location when clicking on usage
2023-08-08 16:34:15 +01:00
Robert
16d5f0f12b
Add DatabaseItem to model details panel state
2023-08-08 16:34:10 +01:00
Robert
946607098a
Add command to jump to usage location
2023-08-08 16:26:33 +01:00
Robert
f4d6990c1f
Move duplicated error handling into showResolvableLocation
2023-08-08 16:26:27 +01:00
Robert
daf389a5ed
Merge pull request #2678 from github/robert-nora/model-details-data
...
Populate details panel with external API usages
2023-08-08 14:20:00 +01:00
Robert
29916be143
Send externalApiUsages data to details view whenever new data is calculated
2023-08-08 10:52:59 +01:00
Robert
aa227357e9
Add blank data provider for codeQLModelDetails view
2023-08-07 17:19:13 +01:00
Nora
0aae7392f0
Merge pull request #2677 from github/robert-nora/set-up-model-details-view
...
Set up model details view
2023-08-07 18:03:45 +02:00
Nora
81294ecf3a
Focus on panel when clicking view button
2023-08-07 14:38:34 +00:00
Nora
839e4d6246
Set up empty panel tab
2023-08-07 14:24:35 +00:00
Nora
ae6dc879ef
Create new feature flag
2023-08-07 14:11:42 +00:00
Charis Kyriakou
55557df53f
Add in-progress UI state for modeling methods ( #2675 )
2023-08-07 11:58:41 +00:00
Charis Kyriakou
f1204ce8f4
Move automodel version split further up ( #2676 )
2023-08-07 11:54:47 +00:00
Anders Starcke Henriksen
234760efd3
Merge pull request #2670 from github/starcke/apply-slice-filter
...
Use filtering queries to do batched AI querying
2023-08-07 11:37:40 +02:00
Robert
61f8f5fb88
Merge pull request #2673 from github/robertbrignull/unused_npm_dependencies
...
Remove unused NPM dependencies
2023-08-07 10:35:00 +01:00
Charis Kyriakou
4109da6a50
Add support for automodel requests in the mock API server ( #2674 )
2023-08-07 09:58:39 +01:00
Anders Starcke Henriksen
9bd2286660
Update extensions/ql-vscode/src/data-extensions-editor/auto-model-codeml-queries.ts
...
Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com >
2023-08-07 10:21:12 +02:00
Robert
c068769af7
Uninstall ts-protoc-gen dependency
2023-08-04 16:19:33 +01:00
Robert
30fd9c28ac
Uninstall @types/stream-chain dependency
2023-08-04 15:22:26 +01:00
Robert
3238c0eb0e
Uninstall @types/jszip dependency
2023-08-04 15:20:14 +01:00
Robert
997e12c358
Uninstall @types/gulp-sourcemaps dependency
2023-08-04 15:18:52 +01:00
Robert
79f29a812e
Uninstall @types/google-protobuf dependency
2023-08-04 15:16:54 +01:00
Robert
91cfeb9acb
Uninstall stream-chain dependency
2023-08-04 15:13:35 +01:00
Robert
27d5169ce7
Uninstall stream dependency
2023-08-04 15:10:03 +01:00
Robert
ed91dafc25
Uninstall minimist dependency
2023-08-04 15:01:26 +01:00
Robert
461bf2d645
Uninstall minimatch dependency
2023-08-04 14:59:37 +01:00
Anders Starcke Henriksen
d4137b2c43
Address comments.
2023-08-04 15:59:25 +02:00
Robert
6a12dc23bb
Assert alert message in test
2023-08-04 14:45:41 +01:00
Anders Starcke Henriksen
12abf81623
Apply suggestions from code review
...
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com >
2023-08-04 15:35:12 +02:00
Robert
62e45a2c1c
Handle when a related location has no region
2023-08-04 12:26:32 +01:00
Robert
fef55e3ec5
Add failing test when a related location is undefined
2023-08-04 12:26:03 +01:00
Anders Starcke Henriksen
f6c492dca4
Use filtering queries to do batched AI quering.
2023-08-04 13:09:59 +02:00
Robert
69c92b4434
Check key / keyCode in onKeyDownHandler
2023-08-04 11:29:29 +01:00
dependabot[bot]
7530920a0b
Bump @typescript-eslint/eslint-plugin from 5.41.0 to 6.2.1 in /extensions/ql-vscode ( #2668 )
2023-08-04 10:10:16 +00:00
dependabot[bot]
e938a6a9cb
Bump @octokit/plugin-retry from 4.1.6 to 6.0.0 in /extensions/ql-vscode ( #2602 )
...
Bumps [@octokit/plugin-retry](https://github.com/octokit/plugin-retry.js ) from 4.1.6 to 6.0.0.
- [Release notes](https://github.com/octokit/plugin-retry.js/releases )
- [Commits](https://github.com/octokit/plugin-retry.js/compare/v4.1.6...v6.0.0 )
---
updated-dependencies:
- dependency-name: "@octokit/plugin-retry"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-04 10:46:08 +01:00
Robert
de8d0df818
Merge pull request #2671 from github/robertbrignull/sarif-parser-unit-test
...
Move sarif-parser.test.ts from no-workspace to unit-tests
2023-08-04 10:16:32 +01:00
Robert
f7b07a0892
Move test sarif data to a more shared location + fix links
2023-08-04 09:56:58 +01:00
dependabot[bot]
2b9aad34f8
Bump styled-components from 5.3.9 to 6.0.2 in /extensions/ql-vscode ( #2585 )
2023-08-04 09:45:17 +01:00
dependabot[bot]
a3c0896d37
Bump @typescript-eslint/parser in /extensions/ql-vscode ( #2669 )
2023-08-03 16:58:37 +00:00
Robert
3e6466d717
Move sarif-parser.test.ts from no-workspace to unit-tests
2023-08-03 17:28:33 +01:00
Robert
3960ece3e4
Merge pull request #2667 from github/robertbrignull/scrubber_tests
...
Try to fix flakes in query history scrubber tests
2023-08-03 17:05:27 +01:00
Andrew Eisenberg
87bbf2933b
Merge pull request #2660 from github/aeisenberg/qhelp-preview
...
Ensure the qhelp preview is refreshed after editing
2023-08-03 08:38:03 -07:00
Robert
8952874bb6
Merge branch 'main' into robertbrignull/ResultTables-Header
2023-08-03 16:14:24 +01:00
Robert
36f92da9ac
Merge pull request #2664 from github/robertbrignull/ResultTables-naming
...
Make sure ResultTable and ResultTables are in correctly named files
2023-08-03 15:48:57 +01:00
Robert
23a8927df1
Merge branch 'main' into robertbrignull/ResultTables-naming
2023-08-03 15:03:57 +01:00
Nora
4993e7b6a5
Merge pull request #2663 from github/version/bump-to-v1.8.10
...
Bump version to v1.8.10
2023-08-03 16:00:17 +02:00
Robert
2ffbb9c14c
Perform dirSync inside beforeEach block
2023-08-03 14:19:12 +01:00
Robert
8bce7b531c
Use a jest.fn() to track calls to the scrubber, instead of a local variable counter
2023-08-03 14:17:23 +01:00
Robert
28a0075fe4
Move creation of the mock context to a function
2023-08-03 14:16:43 +01:00
Robert
428014ce35
Move timestamp constants to be outside of describe block
2023-08-03 14:01:45 +01:00
Robert
6b21f3f29d
Merge pull request #2665 from github/robertbrignull/ResultTables-untoggleProblemsView
...
Delete untoggleProblemsView as it is unused
2023-08-03 13:55:56 +01:00
Robert
892f052227
Move ResultTablesHeader to its own component
2023-08-03 12:36:05 +01:00
Robert
fed2a22062
Delete untoggleProblemsView as it is unused
...
As far as I can tell it's been unused as far as back as
https://github.com/github/vscode-codeql/pull/602 when it was introduced.
It seems just to be an error in that PR.
2023-08-03 12:14:50 +01:00
Robert
aa1edfc231
Move ResultTable to its own file
2023-08-03 11:36:52 +01:00
Robert
ab442c4dde
Rename result-tables.tsx => ResultTables.tsx
2023-08-03 11:36:52 +01:00
github-actions[bot]
69490b1948
Bump version to v1.8.10
2023-08-03 09:53:59 +00:00
Nora
9ed6b011a5
Merge pull request #2662 from github/v1.8.9
...
Release / Release (push) Has been cancelled
Release / Publish to VS Code Marketplace (push) Has been cancelled
Release / Publish to Open VSX Registry (push) Has been cancelled
Release prep for v1.8.9
2023-08-03 10:52:15 +02:00
Nora
912254fd3c
Update extensions/ql-vscode/CHANGELOG.md
...
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com >
2023-08-03 10:31:41 +02:00
Nora
7eab911cc5
v1.8.9
2023-08-03 08:17:20 +00:00
Andrew Eisenberg
d7d1351957
Remove unused import
2023-08-02 12:31:53 -07:00
Nora
80ae9a4b36
Merge pull request #2658 from github/nora-koen/data-extensions-editor-without-ql-submodule
...
Remove submodules dependency from data extension editor
2023-08-02 17:30:46 +02:00
Nora
868fae093d
Reorder db language check
2023-08-02 14:25:39 +00:00
Andrew Eisenberg
2ce5ff7085
Update extensions/ql-vscode/CHANGELOG.md
...
Co-authored-by: Robert <robertbrignull@github.com >
2023-08-01 12:54:16 -07:00
Andrew Eisenberg
1289ab509c
Merge pull request #2659 from github/aeisenberg/download-pack-in-tests2
...
Install `java-all` and transitive dependencies
2023-08-01 07:43:40 -07:00
Nora
5f489212d4
Add test for setup
2023-08-01 12:39:30 +00:00
Nora
fea45ea04d
wrap all describe blocks in external api usage test
2023-08-01 12:39:30 +00:00
Nora
a39e55590a
Move query setup to query file
2023-08-01 12:39:30 +00:00
Nora
6e4641f2c1
Clean up runQyery test
2023-08-01 12:39:30 +00:00
Nora
553e5cb4a1
Remove automodel qll file
2023-08-01 12:39:29 +00:00
Nora
4c0f68f193
Adjust picker test
2023-08-01 12:39:29 +00:00
Nora
1ee9cdaadd
Add test for error log
2023-08-01 12:39:29 +00:00
Nora
098437b463
Cleanup
2023-08-01 12:39:29 +00:00
Nora
558a70e3c8
Adjust external api query test
2023-08-01 12:39:29 +00:00
Nora
7c10447bb5
Add .github folder manually
2023-08-01 12:39:29 +00:00
Nora
9fd6cb8c1f
Cleanup and install pack dependencies
2023-08-01 12:39:29 +00:00
Koen Vlaswinkel
f4da522953
wip: data extensions editor without ql submodule
2023-08-01 12:39:29 +00:00
Robert
6dfe1736f8
Merge pull request #2657 from github/robertbrignull/clean-test-dir
...
Add `npm run clean-test-dir`
2023-08-01 09:19:42 +01:00
Andrew Eisenberg
f067c6540b
Ensure the qhelp preview is refreshed after editing
...
This commit fixes a bug in the extension where the qhelp preview was not
being refreshed after the first time the preview was rendered. The
reason is that vscode will not refresh the markdown preview unless the
original file with the markdown in it is already open in the editor.
This fix will briefly open the raw markdown, refresh the preview and
close the raw markdown.
2023-07-31 16:21:09 -07:00
Andrew Eisenberg
b46e0ab175
Install java-all and transitive dependencies
...
need to install all transitive dependencies of `java-all` as well. This
will do it.
2023-07-31 11:14:59 -07:00
Andrew Eisenberg
34fa629054
Merge pull request #2655 from github/aeisenberg/download-pack-in-tests
...
Download `codeql/java-all` in tests
2023-07-31 10:02:14 -07:00
Robert
5107086a93
Switch to using find
2023-07-31 11:09:31 +01:00
Robert
58c5c0e5f5
Add npm run clean-test-dir
2023-07-31 11:09:31 +01:00
Charis Kyriakou
5427b5718f
Only show automodel button for Java ( #2656 )
2023-07-31 09:43:07 +00:00
Andrew Eisenberg
0cc399507f
Download codeql/java-all in tests
...
An upcoming change in the CLI will require that the extensible
predicates that are targeted by a data extension needs to be available
in order for the `resolve extensions` command to succeed.
There are a handful of tests that are failing with this new CLI. This
change will update the tests so that the `codeql/java-all` pack is
available in the tests and ensures they pass.
2023-07-28 14:49:55 -07:00
Robert
bb9299e0e2
Merge pull request #2646 from github/robertbrignull/fix_alert_461
...
Split codeQL.copyVariantAnalysisRepoList into two commands
2023-07-28 10:56:35 +01:00
Robert
e8afa54584
Fix test by mocking the correct function
2023-07-28 10:26:52 +01:00
Robert
d94443e025
Merge pull request #2652 from github/robertbrignull/data_narrow
...
Make the data extensions editor look a little bit better at small screen sizes
2023-07-28 10:15:28 +01:00
Robert
0e5cb1a3e8
Merge pull request #2653 from github/robertbrignull/dependencies_versions
...
Change all dependencies to use ^ instead of ~
2023-07-28 10:09:57 +01:00
Robert
59958a5b32
Log a ui-interaction telemetry event when copying repository lists
2023-07-28 10:09:12 +01:00
Robert
3d9b2da514
Remove codeQL.copyVariantAnalysisRepoListView command and instead call copyRepoListToClipboard directly
2023-07-28 10:09:11 +01:00
Robert
3b8cea8df4
Remove codeQL.copyVariantAnalysisRepoListQueryHistory command and instead call copyRepoListToClipboard directly
2023-07-28 10:00:38 +01:00
Robert
6adf683c87
Merge branch 'main' into robertbrignull/dependencies_versions
2023-07-28 09:51:43 +01:00
Robert
37f1c62ee6
Merge branch 'main' into robertbrignull/data_narrow
2023-07-28 09:51:27 +01:00
Chuan-kai Lin
c1107d7423
Merge pull request #2649 from github/cklin/remove-legacy-query-server-test
...
legacy-query.test.ts: skip if CLI supports new query server
2023-07-27 09:48:36 -07:00
Chuan-kai Lin
72fa1c5583
legacy-query.test.ts: skip if CLI supports new query server
2023-07-27 09:10:04 -07:00
github-actions[bot]
5f65498e0a
Bump CLI version from v2.14.0 to v2.14.1 for integration tests ( #2650 )
...
Co-authored-by: github-actions[bot] <github-actions@github.com >
2023-07-27 16:04:05 +00:00
Shati Patel
6e21706c15
Implement "Hide modeled APIs" checkbox and make it the default ( #2651 )
2023-07-27 15:49:41 +00:00
Robert
4dcca4e97c
Change all dependencies to use ^ instead of ~
2023-07-27 16:15:39 +01:00
Robert
84492d2fb9
Make sure the classifications don't wrap
2023-07-27 16:00:38 +01:00
Robert
a2c9ac792b
Move the method classification to the start of the row
2023-07-27 15:57:45 +01:00
Robert
18704558d3
Make the method name column 50%
2023-07-27 15:57:34 +01:00
Robert
ca16dca7ed
Merge pull request #2645 from github/robertbrignull/fix_alert_546
...
Don't alert for multiple usages of built-in VS Code commands
2023-07-27 15:20:39 +01:00
Robert
f05d5d9766
Split codeQL.copyVariantAnalysisRepoList into two commands
2023-07-27 12:22:19 +01:00
Robert
aacc243bae
Don't report multiply usages of builtin VS Code commands
2023-07-27 11:24:18 +01:00
Robert
396dc3e915
Merge pull request #2644 from github/robertbrignull/fix_alert_384
...
Fix alert by rewriting query history scrubbed to do fewer file operations
2023-07-27 11:22:10 +01:00
Robert
d3b2d0fce8
Fix indentation in query
2023-07-27 11:14:14 +01:00
Robert
4d4cd4c2d6
Use getErrorMessage
2023-07-27 10:32:19 +01:00
Shati Patel
72512da3b5
Data extensions editor: Allow users to pick an existing database from their workspace ( #2643 )
2023-07-27 10:09:12 +01:00
Koen Vlaswinkel
c2ed98eb85
Merge pull request #2633 from github/koesie10/automodel-v2
...
Add LLM functionality using auto-model V2
2023-07-27 10:02:55 +02:00
Koen Vlaswinkel
bebe130fb0
Do not use mocked URI in locations test
2023-07-27 09:40:37 +02:00
Koen Vlaswinkel
db065584fa
Merge remote-tracking branch 'origin/main' into koesie10/automodel-v2
2023-07-27 09:18:59 +02:00
Robert
844f25ed98
Rewrite query history scrubbed to do fewer file operations
2023-07-26 16:56:02 +01:00
Koen Vlaswinkel
546f668301
Move createMockUri to mocking helpers
2023-07-26 14:35:15 +02:00
Koen Vlaswinkel
a79753d0a5
Move all runAutoModelQuery arguments into the options object
2023-07-26 14:32:43 +02:00
Koen Vlaswinkel
32c44cdfe3
Rename Options to AutoModelQueriesOptions
2023-07-26 14:31:28 +02:00
Koen Vlaswinkel
de5dbea69f
Use promisify for gzip
2023-07-26 14:28:45 +02:00
Robert
3f896751f3
Merge pull request #2640 from github/robertbrignull/fix_alert_547
...
Fix alert by replacing regex with path.basename
2023-07-26 11:18:40 +01:00
Robert
41f5beb619
Merge pull request #2638 from github/robertbrignull/data_new_header
...
Add new data extensions header UI elements
2023-07-26 11:12:25 +01:00
Koen Vlaswinkel
5e5535653b
Merge pull request #2642 from github/koesie10/remove-path-browserify
...
Remove path-browserify
2023-07-26 12:09:47 +02:00
Robert
af50d90bcb
Merge branch 'main' into robertbrignull/data_new_header
2023-07-26 10:29:22 +01:00
Robert
c5a4c53a1a
Merge branch 'main' into robertbrignull/fix_alert_547
2023-07-26 10:26:24 +01:00
Koen Vlaswinkel
016940f2ce
Remove path-browserify
2023-07-26 11:23:39 +02:00
Robert
e877695a14
Merge pull request #2641 from github/robertbrignull/LockFileForStandardQueryResult
...
Unexport LockFileForStandardQueryResult
2023-07-26 10:22:53 +01:00
Robert
e2256e28ba
Unexport LockFileForStandardQueryResult
2023-07-26 10:06:55 +01:00
Robert
5c08083336
Merge pull request #2639 from github/robertbrignull/data_progress
...
Remove custom progress bar and use normal VS Code notification for progress
2023-07-26 10:05:05 +01:00
Robert
07b8732a31
Use custom implementation of basename instead of path-browserify version
2023-07-26 09:59:02 +01:00
Robert
3e49d05ef9
Text is uppercased automatically by styling
2023-07-26 09:51:51 +01:00
Koen Vlaswinkel
83cc9835e8
Merge pull request #2634 from github/koesie10/cleanup-query-resolver
...
Make query resolver more generic
2023-07-26 09:36:32 +02:00
Robert
c5af8bdcd7
Replace regex with path.basename
2023-07-25 17:29:34 +01:00
Robert
55b21c2add
Remove custom progress bar and use normal VS Code notification for progress
2023-07-25 15:33:39 +01:00
Charis Kyriakou
b87fe94a92
Remove most recent commit information and sorting ( #2637 )
2023-07-25 14:15:08 +00:00
Robert
493de4c190
Add new header UI elements
2023-07-25 15:01:27 +01:00
Shati Patel
8f99ed2478
Data extensions editor: Change "already modeled" message ( #2636 )
2023-07-25 13:40:54 +00:00
Shati Patel
cdcbdc60fb
Data extensions editor: Remove buttons that are no longer needed ( #2635 )
2023-07-25 14:12:16 +01:00
Robert
e1bbbd6e9c
Merge pull request #2631 from github/robertbrignull/deadcode_ci
...
Add check for deadcode for CI
2023-07-25 13:09:44 +01:00
Koen Vlaswinkel
84de8ad252
Add creation of auto-model request V2
2023-07-25 10:35:19 +02:00
Koen Vlaswinkel
57bcfbbe29
Extract creation of lock file to more generic function
2023-07-25 10:03:01 +02:00
Koen Vlaswinkel
32656c1cb8
Extract query resolving to more generic functions
2023-07-25 10:03:01 +02:00
Robert
5572cece83
Convert find-deadcode to a script
2023-07-24 18:00:30 +01:00
Robert
08675e6713
Rename to tsconfig.deadcode.json
2023-07-24 17:27:39 +01:00
Robert
abee109dbd
Merge branch 'main' into robertbrignull/deadcode_ci
2023-07-24 17:26:18 +01:00
Robert
ef27730e5e
Merge pull request #2632 from github/robertbrignull/deadcode_changes
...
Remove or fix dead code / unused exports
2023-07-24 16:32:13 +01:00
Robert
10c6708db5
Fix reference to tsconfig.json
2023-07-24 14:29:01 +01:00
Robert
a618aed415
Mark fileMock and styleMock as allowable exports
2023-07-24 14:28:41 +01:00
Robert
8e8e0faa9e
Unexport types that are unused outside of their source file
2023-07-24 14:22:23 +01:00
Robert
41ce5086e7
Mark the extension activation function as allowed to be exported but unused
2023-07-24 14:22:23 +01:00
Robert
a79b71cff6
Switch ALLOW_HTTP_SETTING for allowHttp()
2023-07-24 14:22:23 +01:00
Robert
f0318b0c84
Delete vsCodeGetConfiguration
2023-07-24 14:22:23 +01:00
Robert
814acfa74a
Add find-deadcode to CI linting workflow
2023-07-24 11:23:04 +01:00
Robert
d73276c136
Add find-deadcode npm script
2023-07-24 11:23:01 +01:00
Robert
44b58280e8
Merge pull request #2628 from github/robertbrignull/disposable
...
Merge definitions of Disposable where possible
2023-07-24 11:20:39 +01:00
Robert
49a05c412c
Delete pathRowClassName
2023-07-24 11:11:55 +01:00
Robert
f57bbc2b52
Delete decimalFormatter
2023-07-24 11:11:55 +01:00
Robert
e620120144
Delete getTestDirectory
2023-07-24 11:11:55 +01:00
Robert
6fbe95a334
Delete isRemoteSystemDefinedListDbItem
2023-07-24 11:11:55 +01:00
Robert
cb4dcc81ea
Delete remoteDbKinds and localDbKinds
2023-07-24 11:11:55 +01:00
Robert
3126c8d1a8
Delete PAGE_SIZE
2023-07-24 11:11:55 +01:00
Robert
0d7814c778
Delete InspectionResult
2023-07-24 11:11:55 +01:00
Robert
f70ea71885
Delete isVariantAnalysisLiveResultsEnabled
2023-07-24 11:11:55 +01:00
Robert
04df20a732
Install ts-unused-exports
2023-07-24 11:10:19 +01:00
Robert
c7b556e748
Merge pull request #2624 from github/robertbrignull/autoClosingPairs
...
Delete autoClosingPairs from LanguageConfiguration to appease proposed API
2023-07-24 11:04:52 +01:00
Charis Kyriakou
8314a5486d
Merge pull request #2627 from github/charisk/remove-deprecated-version-support
...
Remove conditionals and version constraints for unsupported CLI versions
2023-07-24 10:07:34 +01:00
Charis Kyriakou
e80ef7c1dc
Remove CLI_VERSION_WITH_PER_QUERY_EVAL_LOG constraint
2023-07-24 08:24:07 +00:00
Robert
f1a928994a
Merge all our DisposableObject definitions
2023-07-21 17:06:53 +01:00
Charis Kyriakou
0f594704d5
Remove CLI_VERSION_WITH_STRUCTURED_EVAL_LOG constraint
2023-07-21 15:37:56 +00:00
Charis Kyriakou
3064415068
Remove setting of evaluator log verbosity level
2023-07-21 15:33:07 +00:00
Charis Kyriakou
f03ef66596
Update handling of return value from packlist command
2023-07-21 15:31:57 +00:00
Robert
0617e3ec7f
Merge pull request #2626 from github/robertbrignull/data-make-selected
...
Instead of resetting the database after importing, pass through makeSelected = false
2023-07-21 16:20:37 +01:00
Shati Patel
dacaf4e394
Update title in Data extensions editor tab ( #2625 )
2023-07-21 14:44:41 +01:00
Robert
e6566b910a
Instead of resetting the database after importing, pass through makeSelected = false
2023-07-21 12:49:36 +01:00
Robert
778f839e8e
Merge pull request #2623 from github/robertbrignull/data-model-dependency
...
Implement "model dependency" button in application mode
2023-07-21 12:10:15 +01:00
Robert
52711c5cc1
Delete autoClosingPairs from LanguageConfiguration to appease proposed API
2023-07-21 11:31:55 +01:00
Robert
d8687b5985
Merge pull request #2621 from github/robertbrignull/data-saving
...
Load existing modeled methods before saving, to avoid overwriting data
2023-07-20 08:54:29 +01:00
Robert
19ad237427
Pull out common code for importing and resetting the current database
2023-07-19 16:29:13 +01:00
Robert
bb246144c2
Add comments to createDataExtensionYamlsForFrameworkMode too
2023-07-19 16:22:00 +01:00
Robert
fa01b33dfa
Implement modelDependency message
2023-07-19 16:14:44 +01:00
Robert
00780442dd
Send modelDependency message
2023-07-19 16:14:44 +01:00
Robert
5b170d02eb
Avoiding overwriting any existing modeled methods from the files
2023-07-19 11:44:12 +01:00
Robert
db4dc89e42
Split loadModeledMethods into loading all files individually and then merging them
2023-07-19 11:44:12 +01:00
Robert
b5b606d486
Make loadModeledMethodFiles return relative paths from the extension pack
2023-07-19 11:43:57 +01:00
Robert
f2c7c41117
Merge pull request #2406 from Marcono1234/location-url-column
...
Include column numbers in location URLs
2023-07-19 11:01:20 +01:00
Robert
152e194655
Merge branch 'main' into location-url-column
2023-07-19 09:58:46 +01:00
Robert
f12ba96389
Update CHANGELOG.md
2023-07-19 09:57:58 +01:00
Koen Vlaswinkel
add3296071
Merge pull request #2618 from github/dependabot/npm_and_yarn/extensions/ql-vscode/word-wrap-1.2.4
...
Bump word-wrap from 1.2.3 to 1.2.4 in /extensions/ql-vscode
2023-07-19 10:04:56 +02:00
Koen Vlaswinkel
a90b85c2a6
Merge pull request #2259 from github/koesie10/upgrade-storybook-7
...
Upgrade to Storybook 7
2023-07-19 09:51:13 +02:00
dependabot[bot]
3568d4a780
Bump word-wrap from 1.2.3 to 1.2.4 in /extensions/ql-vscode
...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap ) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases )
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4 )
---
updated-dependencies:
- dependency-name: word-wrap
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-18 23:40:55 +00:00
Robert
d3a5a5e669
Merge pull request #2611 from github/robertbrignull/data-unsaved-checkbox
...
Show whether changes to a method are saved or not
2023-07-18 16:31:46 +01:00
Robert
fc77a52c46
Merge pull request #2614 from github/robertbrignull/Locations
...
Move components for rendering locations to a separate file
2023-07-18 15:31:15 +01:00
Robert
5617331598
Pass in methodIsUnsaved instead of modifiedSignatures
2023-07-18 15:26:34 +01:00
Robert
76a7a266ff
Rename jumpToLocationHandler => handleClick
2023-07-18 15:11:54 +01:00
Robert
b6c60b26cd
Rename handleClick => onClick
2023-07-18 15:11:22 +01:00
Robert
30d8303320
Pull out getModelingStatus method and avoid useMemo
2023-07-18 15:07:26 +01:00
Robert
5c12a4b205
Merge pull request #2605 from github/robertbrignull/data-modeled-methods-tests
...
Refactor the code for loading/saving modeled methods to disk, and add tests
2023-07-18 14:34:21 +01:00
Koen Vlaswinkel
b830781e48
Replace deprecated uses of ComponentMeta and ComponentStory
2023-07-18 15:29:11 +02:00
Koen Vlaswinkel
8329dedd7f
Upgrade to Storybook 7
2023-07-18 15:07:15 +02:00
Robert
70e04a1c99
Rename to MdelingStatusIndicator and move to a separate file
2023-07-18 10:59:08 +01:00
Marcono1234
768b95d3a9
Fix typo in CHANGELOG.md ( #2617 )
2023-07-17 19:39:38 +00:00
Shati Patel
8e4ee5df3d
Update release test plan ( #2616 )
2023-07-17 19:05:25 +01:00
Alexander Eyers-Taylor
baa2a7fed3
Add comma as a word boundary charecter. ( #2615 )
...
* Add comma as a word boundary charecter.
* Add changelog for missing trailing commas.
2023-07-17 16:12:36 +00:00
Robert
1f16294d7e
Avoid else blocks when we're returning early
2023-07-17 17:04:41 +01:00
Robert
679266c0b7
Remove unnecessarily forcing non-undefined
2023-07-17 17:02:59 +01:00
Robert
f1e96f7812
Use more standard name for callback
2023-07-17 17:02:16 +01:00
Robert
f8e6ccea23
Do event propogation cancelation before other work
2023-07-17 16:59:26 +01:00
Robert
8f46052459
Use optional call instead of explicit if-then
2023-07-17 16:58:52 +01:00
Robert
b210d83210
Use named Props interfaces instead of defining types inline
2023-07-17 16:58:08 +01:00
Robert
eaf8d68dd1
Remove all usages of NonClickableLocation outside of Location
2023-07-17 16:56:16 +01:00
Robert
c4ebee8e8d
Have each component in a separate file
2023-07-17 16:56:15 +01:00
Robert
2962306094
Specify that tmp dir is under homedir on windows
2023-07-17 15:48:20 +01:00
Robert
a4c0365a95
Move components for rendering locations to a separate file
2023-07-17 14:36:08 +01:00
Shati Patel
2abc4d542b
Merge pull request #2613 from github/version/bump-to-v1.8.9
...
Bump version to v1.8.9
2023-07-17 12:01:59 +01:00
github-actions[bot]
700b9bf348
Bump version to v1.8.9
2023-07-17 10:35:30 +00:00
Shati Patel
6be797d9d2
Merge pull request #2612 from github/v1.8.8
...
Release / Release (push) Has been cancelled
Release / Publish to VS Code Marketplace (push) Has been cancelled
Release / Publish to Open VSX Registry (push) Has been cancelled
Release prep for v1.8.8
2023-07-17 11:10:54 +01:00
Robert
9924f87473
Add a test that calls loadModeledMethods
2023-07-17 11:07:24 +01:00
Robert
f19b600287
Fix semantic merge conflict in imports
2023-07-17 11:07:10 +01:00
Robert
14200a5011
Merge branch 'main' into robertbrignull/data-modeled-methods-tests
2023-07-17 11:06:40 +01:00
shati-patel
3fa7590187
v1.8.8
2023-07-17 10:17:54 +01:00
Marcono1234
fffb692ca8
Include column numbers in location URLs
2023-07-15 22:00:21 +02:00
Shati Patel
6cfc7d5ced
Remove support for CodeQL CLI versions older than 2.9.4 ( #2610 )
2023-07-14 16:13:46 +00:00
Philip Ginsbach
7ea6cd871b
Merge pull request #2609 from github/ginsbach/AdditionalAndDefaultKeywords
...
add `additional` and `default` keywords to the TextMate grammar
2023-07-14 16:23:50 +01:00
Shati Patel
5631d33b20
Change the data extension's webview icon ( #2608 )
2023-07-14 15:17:56 +00:00
Robert
de7d65fc8b
Replace checkbox with an icon that shows saved status
2023-07-14 16:16:30 +01:00
Robert
e73421dabb
Track changed signatures instead of unsaved models
2023-07-14 16:16:27 +01:00
Philip Ginsbach
e1e55d1d01
link to the PR from the changelog entry
2023-07-14 15:23:55 +01:00
Robert
421fe11664
Normalize paths before doing string comparisons
2023-07-14 15:12:12 +01:00
Philip Ginsbach
0b18492946
add changelog entry for 'additional' and 'default' keywords
2023-07-14 14:57:46 +01:00
Philip Ginsbach
f3ad6ec105
recompile the TextMate grammar
2023-07-14 14:57:46 +01:00
Philip Ginsbach
d97e4d1ba1
add 'additional' and 'default' annotation keywords to grammar
2023-07-14 14:47:07 +01:00
Koen Vlaswinkel
ccda490ab4
Merge pull request #2566 from github/koesie10/library-version
...
Add library versions to data extensions editor
2023-07-14 15:43:42 +02:00
Robert
1dcd048268
Move version check next to existing check
2023-07-14 14:20:58 +01:00
Robert
12511922ad
Remove version check in resolveExtensions method
2023-07-14 14:15:07 +01:00
Robert
2392d7c7b6
Merge pull request #2606 from github/robertbrignull/data-modeled-method-signature
...
Add signature and related fields to ModeledMethod
2023-07-14 14:11:40 +01:00
Koen Vlaswinkel
4158df197c
Improve library version matching regex
2023-07-14 14:13:23 +02:00
Robert
1782239c7c
Add in CodeQL CLI version check for the "resolve extensions" command
2023-07-14 11:38:07 +01:00
Robert
e2b211ad53
Merge branch 'main' into robertbrignull/data-modeled-method-signature
...
pick 2db42e3e Pull out createDataExtensionYamls into yaml.ts
pick 52f7cac0 Move saveModeledMethods to a separate file
pick ba27230e Move loadModeledMethods to a separate file
pick c512a11e Split out listModelFiles from loadModeledMethods
pick 752cf8ab Add some tests of listModelFiles
2023-07-14 11:05:14 +01:00
Koen Vlaswinkel
f91da95081
Add library versions to data extensions editor
2023-07-14 12:02:05 +02:00
Koen Vlaswinkel
10d9213dbe
Merge pull request #2563 from github/koesie10/classification
...
Add call classification and supported kind to data extensions editor
2023-07-14 12:01:58 +02:00
Robert
bb110152f2
Fix expected values in tests
2023-07-14 10:55:43 +01:00
Koen Vlaswinkel
bd6c302360
Add tooltip to classifications container
2023-07-14 11:38:45 +02:00
Koen Vlaswinkel
1272ddd696
Decrease text size of test and generated tags
2023-07-14 11:36:00 +02:00
Koen Vlaswinkel
ca7ba89a68
Move method classifications to separate component
2023-07-14 11:32:34 +02:00
Andrew Eisenberg
39465d9ad9
Merge pull request #2607 from github/github-action/bump-cli
2023-07-13 14:45:20 -07:00
github-actions[bot]
b419b8d308
Bump CLI version from v2.13.5 to v2.14.0 for integration tests
2023-07-13 18:34:27 +00:00
Robert
169221305f
Remove the ModeledMethodWithSignature type in favour of just ModeledMethod
2023-07-13 16:55:04 +01:00
Robert
97a331cf6a
Remove the ModeledExternalApiUsage type in favour of just ModeledMethod
2023-07-13 16:55:04 +01:00
Robert
16f98491e7
Remove the ExternalApiUsageByType in favour of just ModeledMethod
2023-07-13 16:55:04 +01:00
Robert
111dfff7fb
Add signature to ModeledMethod
2023-07-13 16:55:04 +01:00
Robert
f927ac9f1c
Split out MethodSignature from ExternalApiUsage
2023-07-13 16:55:04 +01:00
Koen Vlaswinkel
6a0cae58e0
Remove call type for unmodelable methods
...
This removes the call type as shown for an unmodelable method. We still
need to decide how to show this information, so this may be added back
in later.
2023-07-13 16:44:43 +02:00
Koen Vlaswinkel
1efc276c24
Show labels for methods only classified in test and generated
2023-07-13 16:36:37 +02:00
Koen Vlaswinkel
94015a0ac2
Show type for supported methods
2023-07-13 16:33:34 +02:00
Koen Vlaswinkel
048552093b
Add classification and type to types
2023-07-13 16:19:05 +02:00
Koen Vlaswinkel
0560f4fe76
Add classification and type to queries
2023-07-13 16:15:58 +02:00
Robert
752cf8ab16
Add some tests of listModelFiles
2023-07-13 10:29:52 +01:00
Robert
c512a11e7e
Split out listModelFiles from loadModeledMethods
2023-07-13 09:50:54 +01:00
Robert
ba27230e3c
Move loadModeledMethods to a separate file
2023-07-13 09:29:42 +01:00
Robert
52f7cac0a9
Move saveModeledMethods to a separate file
2023-07-13 09:20:00 +01:00
Robert
2db42e3eb0
Pull out createDataExtensionYamls into yaml.ts
2023-07-13 08:54:11 +01:00
Robert
31fdc794e5
Merge pull request #2600 from github/robertbrignull/data-supported
...
Show more clearly when a method is already modeled
2023-07-12 17:26:10 +01:00
Robert
e55800ae2d
Tweak message
2023-07-12 16:37:44 +01:00
Robert
0f39d41e50
fix typo
2023-07-12 16:37:18 +01:00
Robert
31118a514f
Merge pull request #2599 from github/nora/make-result-table-functional-component
...
Convert ResultTable to a functional component
2023-07-12 16:34:57 +01:00
Robert
fa5c24d837
Display an explanatory message on unmodelable methods
2023-07-12 14:56:15 +01:00
Robert
8ec08ef43f
Remove ugly jumpToUsage prop
2023-07-12 14:36:40 +01:00
Robert
7d59224407
Pull out ModelableMethodRow as a separate component
2023-07-12 14:36:40 +01:00
Robert
aba574e423
Pull out UmmodelableMethodRow to a separate component
2023-07-12 14:36:39 +01:00
Robert
799b96e7f6
Convert modelTypeOptions to be a const
2023-07-12 14:35:42 +01:00
Nora
60f33e573e
Convert ResultTable
2023-07-12 13:12:14 +00:00
Robert
5fa338e460
Return early if method cannot be modeled
2023-07-12 14:04:58 +01:00
Robert
8529c05396
Move boolean showXCell variables to be later and together
2023-07-12 14:02:39 +01:00
Robert
70b2e68ce7
Rename showModelTypeCell => methodCanBeModeled
2023-07-12 14:01:01 +01:00
Robert
8432f6cdfe
Move predicate variable closer to where it's used
2023-07-12 13:50:31 +01:00
Robert
39d53f469f
Merge pull request #2598 from github/robertbrignull/data-framework-model
...
Don't show model from source button in framework mode
2023-07-12 10:22:24 +01:00
Robert
c8ba8d6e1b
Merge branch 'main' into robertbrignull/data-framework-model
2023-07-12 10:05:06 +01:00
Robert
28c6ab36ce
Merge pull request #2597 from github/robertbrignull/data-view-state
...
Clear up how we pass around view state
2023-07-12 10:04:39 +01:00
Dave Bartolomeo
3e5985955d
Merge pull request #2538 from github/dbartol/save-before-start
...
Save dirty documents before evaluating queries
2023-07-11 15:55:03 -04:00
Dave Bartolomeo
a4cff531be
Remove more debugging code
2023-07-11 15:32:09 -04:00
Dave Bartolomeo
c18bb39f40
Remove more debugging code
2023-07-11 14:49:32 -04:00
Dave Bartolomeo
d93f2b67c8
Remove some debugging code
2023-07-11 14:42:57 -04:00
Robert
5b65e08fdf
Don't show model from source button in framework mode
2023-07-11 17:32:12 +01:00
Robert
79a567b478
Avoid passing in both viewState and mode at the same time
2023-07-11 16:53:12 +01:00
Robert
5e84b5f055
Enforce that viewState is defined and show a loading screen otherwise
2023-07-11 16:47:44 +01:00
Robert
aa4df082bf
Merge pull request #2594 from github/robertbrignull/data-unsaved-changes
...
Include in addModeledMethods whether the methods are unsaved or not
2023-07-11 16:26:44 +01:00
Robert
370872d005
Split addModeledMethods into that and loadModeledMethods
2023-07-11 15:23:30 +01:00
Robert
930103b3a8
Merge branch 'main' into robertbrignull/data-unsaved-changes
2023-07-11 15:11:24 +01:00
dependabot[bot]
6cf2f32705
Bump @octokit/plugin-retry from 3.0.9 to 4.1.6 in /extensions/ql-vscode ( #2518 )
...
Bumps [@octokit/plugin-retry](https://github.com/octokit/plugin-retry.js ) from 3.0.9 to 4.1.6.
- [Release notes](https://github.com/octokit/plugin-retry.js/releases )
- [Commits](https://github.com/octokit/plugin-retry.js/compare/v3.0.9...v4.1.6 )
---
updated-dependencies:
- dependency-name: "@octokit/plugin-retry"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com >
2023-07-11 13:02:04 +01:00
Robert
83a25006ec
Merge pull request #2586 from github/dependabot/npm_and_yarn/extensions/ql-vscode/prettier-3.0.0
...
Bump prettier from 2.7.1 to 3.0.0 in /extensions/ql-vscode
2023-07-11 11:11:21 +01:00
Robert
38d0d0ee7d
Merge pull request #2593 from github/dependabot/npm_and_yarn/extensions/ql-vscode/tough-cookie-4.1.3
...
Bump tough-cookie from 4.1.2 to 4.1.3 in /extensions/ql-vscode
2023-07-11 10:51:42 +01:00
Robert
296922c193
Merge pull request #2595 from github/robertbrignull/data-generate-from-source
...
Hook up generating from source in the new collapsible section
2023-07-11 09:54:07 +01:00
Robert
e5ae41328b
Run: npm run format
2023-07-11 09:51:28 +01:00
Robert
0fc3adf29a
Upgrade eslint-plugin-prettier to 5.0.0
2023-07-11 09:43:58 +01:00
dependabot[bot]
49954b5af0
Bump prettier from 2.7.1 to 3.0.0 in /extensions/ql-vscode
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.7.1 to 3.0.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.7.1...3.0.0 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-10 15:19:00 +00:00
Nora
f493ba102b
Merge pull request #2596 from github/nora/update-eslint
...
Update eslint
2023-07-10 17:17:01 +02:00
Nora
43aa06a248
Update eslint
2023-07-10 13:49:55 +00:00
Robert
c8fd00b983
Hook up generating from source
2023-07-10 13:03:28 +01:00
Robert
c25619332c
Merge pull request #2569 from github/robertbrignull/convert-ResultsApp
...
Convert ResultsApp to a function component
2023-07-10 11:36:32 +01:00
Robert
f4b37c96e4
Merge branch 'main' into robertbrignull/convert-ResultsApp
2023-07-10 11:16:57 +01:00
Robert
f7239b073a
Include in addModeledMethods whether the methods are unsaved or not
2023-07-10 10:48:33 +01:00
Robert
bf0032d8de
Merge pull request #2592 from github/robertbrignull/data-supported-doc
...
Add documentation to ExternalApiUsage fields
2023-07-10 10:04:52 +01:00
dependabot[bot]
7eeec834ed
Bump tough-cookie from 4.1.2 to 4.1.3 in /extensions/ql-vscode
...
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie ) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases )
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md )
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.3 )
---
updated-dependencies:
- dependency-name: tough-cookie
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-09 22:27:45 +00:00
Robert
5eab1f8882
Add documentation to ExternalApiUsage fields
2023-07-07 17:10:06 +01:00
Robert
2525ae80b9
Merge pull request #2591 from github/robertbrignull/data-llm-section
...
Use AI to model just a single section
2023-07-07 16:16:42 +01:00
Robert
8423c73bdd
Merge pull request #2590 from github/robertbrignull/data-button-features
...
Only show LLM / framework mode when the view state says to show the button
2023-07-07 16:09:10 +01:00
Robert
37980612ac
Define separate no-op handler
2023-07-07 15:31:08 +01:00
Robert
c4912b1a65
Show framework mode button when available
2023-07-07 14:28:18 +01:00
Robert
ae3b6eccc3
Only show AI button when available
2023-07-07 14:28:01 +01:00
Robert
48ffca3103
Use AI to model just a single section
2023-07-07 12:37:10 +01:00
Robert
dae74e8772
Merge pull request #2588 from github/robertbrignull/data-save-single-model
...
Implement saving only one model at a time
2023-07-07 09:50:19 +01:00
Robert
e2dc0d6db5
Merge pull request #2589 from github/robertbrignull/data-title-buttons-background
...
Use better colours for title buttons
2023-07-07 09:26:03 +01:00
Robert
bf087d2114
Merge branch 'main' into robertbrignull/data-title-buttons-background
2023-07-07 08:41:58 +01:00
Shati Patel
8fab24f424
Merge pull request #2587 from github/shati-patel/unsaved-tag
...
Data extensions editor: Update styling of "unsaved" tag
2023-07-07 08:39:33 +01:00
Robert
7bda76347c
Changes buttons to avoid custom styling
2023-07-06 17:02:01 +01:00
dependabot[bot]
5db2b90212
Bump zip-a-folder from 1.1.3 to 2.0.0 in /extensions/ql-vscode ( #2517 )
...
Bumps [zip-a-folder](https://github.com/maugenst/zip-a-folder ) from 1.1.3 to 2.0.0.
- [Commits](https://github.com/maugenst/zip-a-folder/commits )
---
updated-dependencies:
- dependency-name: zip-a-folder
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com >
2023-07-06 17:01:50 +01:00
shati-patel
2b13645b6f
Move "Save" button slightly to the left
2023-07-06 16:32:34 +01:00
shati-patel
4acc6f9e41
Use native "VS Code Tag" instead of custom span
2023-07-06 16:31:29 +01:00
Robert
e67f93c7bc
Implement saving only one model at a time
2023-07-06 16:28:29 +01:00
Robert
261f11e30e
Merge pull request #2582 from github/robertbrignull/data-table
...
Update data extensions modelling table to new designs
2023-07-06 16:27:06 +01:00
Robert
a07e829bf1
Make view link not wrap
2023-07-06 15:25:39 +01:00
Robert
afc9635d43
Use --vscode styles
2023-07-06 15:25:27 +01:00
Robert
7a54b00d29
Merge pull request #2583 from github/robertbrignull/data-unsaved-changes
...
Show when there are unsaved changes to a model
2023-07-06 12:08:01 +01:00
Robert
903e8c6688
Convert dropdown to a full component
2023-07-06 11:46:57 +01:00
Robert
d5c4f33d6e
Use a native select instead of VSCodeDropdown
2023-07-06 11:22:17 +01:00
Robert
7688542aa2
Merge branch 'main' into robertbrignull/data-unsaved-changes
2023-07-06 10:14:15 +01:00
Dave Bartolomeo
614a8d123c
Merge pull request #2584 from github/github-action/bump-cli
...
Bump CLI Version to v2.13.5 for integration tests
2023-07-05 14:33:43 -04:00
github-actions[bot]
e3ff6ace08
Bump CLI version from v2.13.4 to v2.13.5 for integration tests
2023-07-05 15:31:44 +00:00
Robert
fc866acae3
Show when there are unsaved changes to a model
2023-07-05 12:16:40 +01:00
Robert
f75b358e6c
Disable buttons instead of hiding them
2023-07-04 17:21:55 +01:00
Robert
e82bfb4153
Pull out booleans controlling visibility of each cell
2023-07-04 17:10:10 +01:00
Charis Kyriakou
7541b64ec8
Move some top level files ( #2580 )
...
* Move code-tour.ts to /code-tour
* Move qlpack-generator.ts to /local-queries
* Move query-status.ts to /query-history
* Move skeleton-query-wizard.ts to /local-queries
2023-07-04 16:08:26 +00:00
Robert
12e9de85c7
Merge pull request #2575 from github/robertbrignull/data-editor-story
...
Use more varied data for the number of usages
2023-07-04 17:01:20 +01:00
Shati Patel
5afdef1ec8
Merge pull request #2581 from github/shati-patel/data-ui-background
...
Data extensions UI: Change background colour of library container
2023-07-04 17:00:27 +01:00
Robert
870827085d
Remove colouring of the methods
2023-07-04 16:57:13 +01:00
Robert
e384f2447c
Convert data table to new column layout
2023-07-04 16:57:13 +01:00
Shati Patel
2c5b1da7b2
Merge pull request #2579 from github/shati-patel/bottom-bar
...
Data extensions UI: Add save button
2023-07-04 16:38:03 +01:00
shati-patel
c7295e66bc
Change background colour of library container
2023-07-04 16:35:15 +01:00
Shati Patel
5e49bd5491
Merge pull request #2578 from github/data-ext-divider
...
Data extensions UI: Add divider between title and status containers
2023-07-04 16:32:28 +01:00
shati-patel
33cb206fed
Add save button
2023-07-04 16:07:39 +01:00
shati-patel
882352fcbf
Add divider between title and status containers
2023-07-04 16:06:47 +01:00
Robert
f8ad72233a
Merge pull request #2574 from github/robertbrignull/data-title
...
Update data extensions modelling table title bar
2023-07-04 15:57:45 +01:00
Charis Kyriakou
31e94a877d
Add code search functionality to test plan ( #2577 )
2023-07-04 14:47:49 +01:00
Charis Kyriakou
545286b8d9
Add ability to record and replay mock code search requests ( #2576 )
2023-07-04 14:47:30 +01:00
Robert
c178d251a1
Use more varied data for the number of usages
2023-07-04 11:20:06 +01:00
Robert
97219b9f63
Remove old status info
2023-07-03 16:01:35 +01:00
Robert
15be27c4c3
Add new buttons to title bar
2023-07-03 16:01:34 +01:00
Nora
a3921b7afa
Merge pull request #2562 from github/nora/refactor-graph
...
Convert Graph to a functional component
2023-07-03 15:08:53 +02:00
Nora
9ba5701874
implement merge comments
2023-07-03 11:31:02 +00:00
Robert
4d8694e78b
Merge pull request #2571 from github/robertbrignull/AlertTableHeader
...
Pull out AlertTableHeader to a separate component/file
2023-07-03 12:22:05 +01:00
Robert
e5d4545150
Remove unnecessary function
2023-07-03 10:55:27 +01:00
Robert
0a0b9e590b
Merge pull request #2523 from github/robertbrignull/queries-loading
...
Display different message when queries are loading vs no queries found
2023-07-03 10:52:33 +01:00
Robert
f0af593b67
Simplify comparisons with undefined
2023-07-03 10:51:52 +01:00
Robert
08a8d6396c
Remove column arg where it is always "alert-message"
2023-07-03 10:47:02 +01:00
Robert
c876867753
Rename to folder/file items
2023-07-03 09:52:09 +01:00
Robert
eec2f33cba
Check for underfined before filtering
2023-07-03 09:44:07 +01:00
Robert
78e794ccdf
Convert back to type import
2023-07-03 09:40:05 +01:00
Robert
6acfb8d151
Merge pull request #2570 from github/robertbrignull/AlertTable-rename
...
Rename PathTable => AlertTable
2023-07-03 09:35:10 +01:00
Dave Bartolomeo
e80a06c5c1
Try grabbing screenshot
2023-06-30 13:36:58 -04:00
Dave Bartolomeo
c70ec7159a
Try different default for saveBeforeStart
2023-06-30 10:50:26 -04:00
Dave Bartolomeo
c25410ed5d
Log config settings
2023-06-30 10:16:49 -04:00
Dave Bartolomeo
81b2407a47
Log content of untitled docs
2023-06-30 09:57:47 -04:00
Dave Bartolomeo
1f5b3919b0
Dump dirty documents
2023-06-30 09:37:28 -04:00
Dave Bartolomeo
b859bca25f
Even more logging
2023-06-30 08:50:06 -04:00
Robert
bfae001b3c
Pull out AlertTableHeader to a separate component/file
2023-06-30 10:07:11 +01:00
Robert
2c2b0ecd79
Rename PathTable => AlertTable
2023-06-30 10:01:34 +01:00
Dave Bartolomeo
53a51ab1c9
More logging
2023-06-29 15:33:34 -04:00
Dave Bartolomeo
9f077b0810
Run Jest in verbose mode
2023-06-29 15:14:48 -04:00
Dave Bartolomeo
bf36051054
Increase timeout
2023-06-29 14:52:19 -04:00
Dave Bartolomeo
dbd257e2c0
More logging
2023-06-29 14:39:30 -04:00
Dave Bartolomeo
9fd0697868
Fix format
2023-06-29 12:15:36 -04:00
Dave Bartolomeo
adf0ccb48b
Disable workspace trust for CLI integration tests
2023-06-29 12:10:39 -04:00
Robert
3ff649a49a
Convert ResultsApp to a function component
2023-06-29 14:49:15 +01:00
Robert
dc5826a848
Rearrange functions so they are defined earlier in the file from where they are called
2023-06-29 14:47:45 +01:00
Anders Starcke Henriksen
4e92688900
Merge pull request #2567 from github/version/bump-to-v1.8.8
...
Bump version to v1.8.8
2023-06-29 15:30:29 +02:00
github-actions[bot]
08544a4248
Bump version to v1.8.8
2023-06-29 12:22:33 +00:00
Anders Starcke Henriksen
c00adc01f1
Merge pull request #2565 from github/v1.8.7
...
Release / Release (push) Has been cancelled
Release / Publish to VS Code Marketplace (push) Has been cancelled
Release / Publish to Open VSX Registry (push) Has been cancelled
v1.8.7
2023-06-29 13:04:42 +02:00
Anders Starcke Henriksen
65a3ba96c0
v1.8.7
2023-06-29 10:43:05 +02:00
Dave Bartolomeo
d27efb3a17
Merge remote-tracking branch 'origin/main' into dbartol/save-before-start
2023-06-28 20:07:12 -04:00
Dave Bartolomeo
8ff1db13f7
Fix bad diff
2023-06-28 19:55:43 -04:00
Alexander Eyers-Taylor
67d342f2ed
Give visibility information to the ide-server. ( #2482 )
...
* Add version constraint for Check errors
* Refactor parts of the ideserver out of extension.ts
* Give visibility information to the ide-server.
This allows it to report errors on visible files
eagerly.
2023-06-28 18:21:55 +00:00
Robert
d1838ba0f7
Convert to match style from DB panel
2023-06-28 17:00:44 +01:00
Nora
98d1a24a43
Convert Graph to a functional component
2023-06-28 12:11:55 +00:00
Robert
66d233d669
Merge pull request #2561 from github/enable-a11y-linting-rules
...
Enable accessibility linting rules and comment out existing violations
2023-06-28 11:54:50 +01:00
Koen Vlaswinkel
a64f44bc41
Merge pull request #2559 from github/koesie10/framework-mode-refresh-button
...
Add a refresh button to the data extensions editor
2023-06-28 12:38:04 +02:00
Sam Partington
b8b15a53dc
Enable accessibility linting rules and comment out existing violations
...
cf https://github.com/github/code-stats-collector/pull/390 /
https://github.com/github/code-scanning/issues/9347
2023-06-28 10:59:18 +01:00
Robert
6be9e5359c
fix typo
2023-06-28 10:37:19 +01:00
Koen Vlaswinkel
266b1e5818
Add a refresh button to the data extensions editor
...
This adds a refresh button to the data extensions editor when the
framework mode feature flag is enabled. If you are using framework mode,
you can have multiple tabs of the data extensions editor open in which
you are modeling the library separately from the application. When you
save the library in framework mode, the application mode will not
refresh and show that these calls have been modeled. Rather than using
apply, which might also save all modeled methods, you can now use the
refresh button to refresh the external API usages and whether they are
supported.
2023-06-28 11:33:21 +02:00
Koen Vlaswinkel
001179056e
Merge pull request #2558 from github/koesie10/exclude-test-methods-in-framework-mode
...
Exclude methods in tests in framework mode
2023-06-28 11:14:55 +02:00
Koen Vlaswinkel
bcbbb42b41
Exclude methods in tests in framework mode
...
This excludes methods defined in tests in framework mode, significantly
cutting down on the number of methods shown that would need to be
modeled.
For C#, this just checks that the file is not a test file, as defined
by the QL library.
For Java, this makes a copy of the internal
[`ModelExclusions.qll`](249f9f863d/java/ql/lib/semmle/code/java/dataflow/internal/ModelExclusions.qll )
file to avoid the use of internal modules. This module will tell us
whether a method is "interesting" to model or not. Not all of the checks
in this module need to happen for framework mode, but these checks might
be useful for telling a user whether a method is interesting to model
in application mode.
2023-06-28 10:21:26 +02:00
Koen Vlaswinkel
6465786411
Merge pull request #2557 from github/koesie10/jump-to-def-framework-mode
...
Add jump to definition in framework mode
2023-06-28 09:49:45 +02:00
Robert
d290b56649
Display custom text message when there are no queries found
2023-06-27 17:04:26 +01:00
Robert
cf49d5dcde
Change welcome message to say we're searching for queries
2023-06-27 17:04:26 +01:00
Robert
94fe3e0020
Always trigger pathsChanged listener after initial refresh
2023-06-27 17:04:26 +01:00
Shati Patel
9314b3ba56
Merge pull request #2554 from github/shati-patel/run-all-context-menu
...
Queries panel: Run all queries in folder (context menu)
2023-06-27 16:51:40 +01:00
Nora
af366afcff
Merge pull request #2556 from github/nora/release-run-from-tab
...
Release run query from file tab icon
2023-06-27 17:46:35 +02:00
Robert
6fe7b82397
Only return something from getPathData once discover has run at least once
2023-06-27 16:20:30 +01:00
Koen Vlaswinkel
1579859c9d
Merge pull request #2555 from github/koesie10/nested-name-csharp
...
Add `nestedName` function for C#
2023-06-27 17:00:23 +02:00
Koen Vlaswinkel
5349a75bd0
Add jump to definition in framework mode
...
This makes the method name and parameters in framework mode a link to
the definition of the method. In framework mode, the `usages` contains
1 element, which is the location of the definition of the method.
Therefore, we can simply use `jumpToUsage` to jump to the definition.
2023-06-27 16:57:46 +02:00
Nora
46a32081d9
Release run query from file tab
2023-06-27 14:40:48 +00:00
Nora
82977519ce
Merge pull request #2552 from github/nora/run-all-queries-panel
...
Queries Panel: run-all queries of a folders
2023-06-27 16:37:43 +02:00
Nora
32555cc4f2
Merge pull request #2548 from github/dependabot/npm_and_yarn/extensions/ql-vscode/semver-7.5.2
...
Bump semver from 7.3.7 to 7.5.2 in /extensions/ql-vscode
2023-06-27 16:33:16 +02:00
Koen Vlaswinkel
4b8cdf872a
Merge pull request #2553 from github/koesie10/nested-name
...
Use `nestedName` for getting the name of an API
2023-06-27 16:17:43 +02:00
Koen Vlaswinkel
8af0ba7411
Add nestedName function for C#
...
Similar to https://github.com/github/vscode-codeql/pull/2553 , this
changes the C# query to correctly report the name of nested types. I
couldn't find a `nestedName` method for C#, so this adds one in the
`AutomodelVsCode` library.
C# seems to use `+` as a separator for nested types, as reported by
`getQualifiedName()`:
```
GitHub.Nested.MyFirstClass+NestedClass
```
The `getApiName()` will now report:
```
GitHub.Nested#MyFirstClass+NestedClass.Test()
```
2023-06-27 16:14:42 +02:00
shati-patel
02b356cf86
Queries panel: Run all queries in folder (context menu)
...
Adds a command to run all queries in a certain folder.
This uses the existing `runQueries` command, which lets you run multiple queries against the selected local database.
We don't have a corresponding command for running multiple variant analysis queries, so I haven't implemented that.
2023-06-27 15:03:23 +01:00
Koen Vlaswinkel
3ad3644219
Merge pull request #2542 from github/koesie10/override-extension-directory
...
Allow overriding the data extensions editor extensions directory
2023-06-27 15:13:59 +02:00
Koen Vlaswinkel
77495df97d
Merge pull request #2550 from github/koesie10/refactor-duplication-queries
...
Refactor data extensions editor queries to reduce duplication
2023-06-27 15:13:50 +02:00
Nora
a591c82b3c
Add run all on folders
2023-06-27 15:08:30 +02:00
Shati Patel
ee68156574
Merge pull request #2547 from github/shati-patel/run-query-context-menu-remote
...
Run variant analysis from Queries Panel context menu
2023-06-27 13:38:25 +01:00
Koen Vlaswinkel
a053792d6e
Use nestedName for getting the name of an API
...
This changes the Java `CallableMethod.getApiName()` to use `nestedName`
instead of `getSourceDeclaration`. `getSourceDeclaration` would return a
`RefType`, on which the `toString()` method returns its `getName`().
However, for nested types this wouldn't work and wouldn't include the
enclosing type. This fixes it by using `nestedName` which matches the
method that is also used for determining whether a type matches an
extensible predicate.
2023-06-27 14:38:19 +02:00
Alexander Eyers-Taylor
b0699ee524
Add quick eval count to the command palette ( #2475 )
...
* Add version constraint for quick-eval-count
* Add quick eval count context.
* Add support for running quick-eval-count from the command pallete
* Adjust name for quick-eval-count-queries
* Add changenote for quick-eval-count.
* QuickEval:Address review comments
* Fix rebase conflict in changelog
2023-06-27 11:28:28 +01:00
Koen Vlaswinkel
bd0e5604a8
Fix incorrect JAR name being displayed in application mode
2023-06-27 11:22:03 +02:00
Nora
2a332f90c4
Merge pull request #2551 from github/nora/fix-merge-conflict-mistake
...
Fix merge conflict error: Re-add icon
2023-06-27 10:46:00 +02:00
Shati Patel
7b73ff4231
Merge pull request #2546 from github/shati-patel/run-query-context-menu-local
...
Run local query from Queries Panel context menu
2023-06-26 17:08:42 +01:00
Shati Patel
0d0ae6449f
Merge branch 'main' into shati-patel/run-query-context-menu-local
2023-06-26 16:46:24 +01:00
Nora
3c156b858c
Re-add icon
2023-06-26 14:54:17 +00:00
Koen Vlaswinkel
7e8578a22c
Refactor data extensions editor queries to reduce duplication
...
This refactors the data extensions editor queries to use a new
`AutomodelVsCode` module. This module is based on the `ExternalApi`
module, but is more general and can be used for retrieving public
methods from the source as well. The actual conditions are now in the
queries themselves.
This reduces the duplicated module in the framework mode query and will
mean that when we update the `ExternalApi` module, we will just have to
port it to the `AutomodelVsCode` module, and not to the `ExternalApi`
and a separate framework mode query.
2023-06-26 16:33:05 +02:00
Koen Vlaswinkel
aa4d3f4399
Merge pull request #2549 from github/koesie10/consistent-sorting
...
Sort methods sent to LLM the same way as the UI
2023-06-26 16:11:38 +02:00
Nora
75d2f76658
Merge pull request #2544 from github/nora/queries-panel-file-tab
...
Queries Panel: run local query from file tab
2023-06-26 16:09:03 +02:00
Robert
75cffd50b1
Merge pull request #2539 from github/robertbrignull/raw-results-react
...
Convert RawTable to a function component
2023-06-26 14:23:19 +01:00
Nora
10d8bbfe63
Add run icon to file tab
2023-06-26 14:48:48 +02:00
Koen Vlaswinkel
90c8391fea
Sort methods sent to LLM the same way as the UI
...
This changes the sorting of the methods sent to LLM to match the order
shown in the data extensions editor. This will ensure that the methods
which are shown first in the data extensions editor are also modeled
first.
2023-06-26 14:26:31 +02:00
Koen Vlaswinkel
a8aee6a8e1
Extract sorting to separate functions
2023-06-26 14:08:46 +02:00
dependabot[bot]
d41e9ef163
Bump semver from 7.3.7 to 7.5.2 in /extensions/ql-vscode
...
Bumps [semver](https://github.com/npm/node-semver ) from 7.3.7 to 7.5.2.
- [Release notes](https://github.com/npm/node-semver/releases )
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md )
- [Commits](https://github.com/npm/node-semver/compare/v7.3.7...v7.5.2 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-26 11:57:15 +00:00
Nora
13a5b7854f
Merge pull request #2534 from github/nora/run-local-query-panel
...
Queries Panel: run local query from panel
2023-06-26 13:56:08 +02:00
shati-patel
3a3264302a
Run variant analysis from Queries Panel context menu
2023-06-26 11:53:01 +01:00
shati-patel
9704b498fe
Run local query from Queries Panel context menu
2023-06-26 10:51:18 +01:00
Nora
2b48991494
Rename command
2023-06-26 09:04:06 +00:00
Nora
ff41e50954
Show run button only when db is selected
2023-06-26 09:04:06 +00:00
Nora
24683f34de
Adjust command lint tests
2023-06-26 09:04:06 +00:00
Nora
7db84b0276
Always show run button
2023-06-26 09:04:06 +00:00
Nora
655294db06
Use only one command
2023-06-26 09:04:06 +00:00
Nora
5845e9e59e
Merge comments and mock command
2023-06-26 09:04:06 +00:00
Nora
c0c42d36b9
Use corret Uri method and extract feature flag guard
2023-06-26 09:04:06 +00:00
Nora
2898acd67f
Hide new command behind feature flag
2023-06-26 09:04:06 +00:00
Robert
7409fe8a56
rename commands to match linter
2023-06-26 09:04:06 +00:00
Robert
f25d7baa56
Expose QueryServerCommandManager from app
2023-06-26 09:04:06 +00:00
Nora
3f1b619904
Create new runQuery command for the queries panel
2023-06-26 09:04:06 +00:00
Nora
12c0c57c25
hook up new command and make runQuery executable
2023-06-26 09:04:06 +00:00
Nora
c78db22599
Hide run button when no local database is selected
2023-06-26 09:04:06 +00:00
Nora
fea0c3ce46
Add icon
2023-06-26 09:04:06 +00:00
Robert
0e033b48d4
Avoid creating and throwing away Scroller each render
2023-06-26 10:03:15 +01:00
Koen Vlaswinkel
971d1461c8
Merge pull request #2543 from github/koesie10/exclude-anonymous-classes
...
Exclude methods from anonymous classes in framework mode
2023-06-26 10:00:04 +02:00
Koen Vlaswinkel
a76bd4627c
Merge pull request #2535 from github/koesie10/framework-mode
...
Add initial implementation of framework mode
2023-06-23 13:57:09 +02:00
Koen Vlaswinkel
6e16f826fb
Exclude methods from anonymous classes in framework mode
2023-06-23 13:45:06 +02:00
Koen Vlaswinkel
4f367119cb
Fix data extensions editor story
2023-06-23 11:59:26 +02:00
Koen Vlaswinkel
01da0f1d34
Fix incorrect comment on method
2023-06-23 11:58:43 +02:00
Koen Vlaswinkel
aec5ff3902
Allow overriding the extensions directory
...
This will allow users to override the default directory in which
extension packs are created by using the
`codeQL.dataExtensions.extensionsDirectory` setting. This setting can be
overriden per language, so the user could create the following
configuration to set the extension pack setting for Java only:
```json
"[java]": {
"codeQL.dataExtensions.extensionsDirectory": "/Users/user/github/vscode-codeql-starter/codeql-custom-queries-java",
}
```
2023-06-23 11:37:58 +02:00
Koen Vlaswinkel
f90d538743
Add feature flag for framework mode
2023-06-23 11:12:28 +02:00
Koen Vlaswinkel
72a91efde9
Add tests for framework mode YAML generation
2023-06-23 10:45:12 +02:00
Koen Vlaswinkel
8c36e572cb
Create model filenames for framework mode
2023-06-23 10:04:37 +02:00
Koen Vlaswinkel
2351346440
Change data flow generator for framework mode
2023-06-23 09:53:53 +02:00
Koen Vlaswinkel
d26d886d09
Add grouping by package and remove usages for framework mode
2023-06-23 09:53:53 +02:00
Koen Vlaswinkel
48b78c1ac1
Change tests to include framework mode queries
2023-06-23 09:53:53 +02:00
Koen Vlaswinkel
526e7474a5
Add switching of mode
2023-06-23 09:53:52 +02:00
Koen Vlaswinkel
31e1bef548
Add framework mode queries
2023-06-23 09:53:01 +02:00
Koen Vlaswinkel
82cdf03d8c
Merge pull request #2521 from github/koesie10/auto-create-model-files
...
Automatically create different model files per library
2023-06-23 09:52:39 +02:00
Dave Bartolomeo
d9a1aa8a23
Just kidding, _this_ time it's fixed for reals
2023-06-22 14:40:26 -04:00
Dave Bartolomeo
3705464766
Seriously, I think they'll pass for reals this time.
2023-06-22 14:32:25 -04:00
Dave Bartolomeo
ff2d67d930
Merge remote-tracking branch 'origin/main' into dbartol/save-before-start
2023-06-22 17:32:05 +00:00
Dave Bartolomeo
ec71f53e38
Fix more test failures
2023-06-22 13:31:12 -04:00
Robert
fa23441efb
Merge pull request #2541 from github/robertbrignull/move-pure-4
...
Move tests out of pure directory
2023-06-22 17:08:58 +01:00
Dave Bartolomeo
6bdc095d27
Fix test failure
2023-06-22 11:45:54 -04:00
Robert
ecfa0ff5b9
Convert dataRows to a useMemo
2023-06-22 16:45:23 +01:00
Robert
3957d356f0
Import react hooks explicitly
2023-06-22 16:45:23 +01:00
Robert
f08ef1b742
Use useRef instead of useMemo for scroller
2023-06-22 16:45:21 +01:00
Robert
e29bfc83c8
Use useEffect instead of calling directly every time
2023-06-22 16:20:32 +01:00
Robert
8b95320ba8
Move tests out of pure directory
2023-06-22 15:19:47 +01:00
Robert
480bd48a8d
Merge pull request #2533 from github/robertbrignull/assert-pure
...
Update assert-pure.ql now that the /pure directory has been removed
2023-06-22 15:19:25 +01:00
Robert
1499d909c8
Merge pull request #2537 from github/robertbrignull/move-pure-3
...
Move files from /pure to the /common (and other) directories (part 3 of 3)
2023-06-22 15:15:31 +01:00
Dave Bartolomeo
2397ead586
Fix test failure
2023-06-22 10:02:10 -04:00
Koen Vlaswinkel
b42457c50b
Merge pull request #2540 from github/koesie10/update-external-api-qll
...
Update ExternalApi.qll dependencies
2023-06-22 15:21:10 +02:00
Robert
f5fef92f0f
Move variant-analysis-filter-sort to shared directory
2023-06-22 13:42:12 +01:00
Robert
fc36eaab4b
Move variant-analysis-filter-sort.ts to /variant-analysis
2023-06-22 13:37:13 +01:00
Robert
08fdddeefc
Move result-keys.ts to /view/results
2023-06-22 13:37:13 +01:00
Robert
8e58854302
Move log-summary-parser.ts to /log-insights
2023-06-22 13:37:13 +01:00
Robert
1750594d11
Move new-messages.ts to /query-server
2023-06-22 13:37:10 +01:00
Koen Vlaswinkel
2e7c86d107
Update ExternalApi.qll dependencies
2023-06-22 14:33:28 +02:00
Robert
6143bd30d8
Convert RawTable to a functional component
2023-06-22 12:41:23 +01:00
Dave Bartolomeo
0bd0bf1944
_Correctly_ emulate VS Code's saveBeforeStart
2023-06-22 07:30:53 -04:00
Robert
cd69e5934b
Merge pull request #2536 from github/robertbrignull/throw-instead-of-fail
...
Throw error instead of using fail method
2023-06-22 11:48:49 +01:00
Koen Vlaswinkel
669f4a6430
Add .model suffix to model filenames
2023-06-22 11:44:20 +02:00
Koen Vlaswinkel
b7b4302c1e
Automatically create different model files per library
...
This will remove the user input for a model file and will instead create
1 model file per library (JAR/DLL). The model filename will be based on
the JAR/DLL name, but will remove the version number and the file
extension. It will also normalize the name.
These files will be created automatically, and the editor now also reads
in all files contained in an extension pack to read the modeled methods.
This could result in duplicates if the user has created a different file
to contain the same modeled methods, but this is an edge-case that we're
explicitly not handling.
2023-06-22 11:44:18 +02:00
Koen Vlaswinkel
100b557823
Merge pull request #2520 from github/koesie10/auto-name-extension-pack
...
Automatically name extension packs
2023-06-22 11:34:37 +02:00
Koen Vlaswinkel
7249f4c343
Add comment to explain heuristic
2023-06-22 10:08:11 +02:00
Koen Vlaswinkel
e4e849d14c
Merge remote-tracking branch 'origin/main' into koesie10/auto-name-extension-pack
2023-06-22 10:01:51 +02:00
Dave Bartolomeo
b182d7afef
Fix PR feedback
2023-06-21 17:20:32 -04:00
Dave Bartolomeo
1da96c5a55
Allow languageId: scopes in tests
2023-06-21 17:01:13 -04:00
Dave Bartolomeo
de38b1fd20
Stop overriding saveBeforeStart for ql language
2023-06-21 14:27:57 -04:00
Dave Bartolomeo
7a46bac078
Save dirty documents before evaluating queries
2023-06-21 18:12:42 +00:00
Robert
f8b0583c5f
Move messages-shared.ts to /query-server
2023-06-21 16:31:57 +01:00
Robert
b0e6478bfe
Move legacy-messages.ts to /query-server
2023-06-21 16:31:57 +01:00
Robert
0031c1acc0
Throw error instead of using fail method
2023-06-21 16:02:57 +01:00
Robert
0451dd8d1b
Merge pull request #2532 from github/robertbrignull/move-pure-2
...
Move files from /pure to the /common directory (part 2 of 3)
2023-06-21 13:15:38 +01:00
Robert
8559d3baa0
Update assert-pure.ql now that the /pure directory has been removed
2023-06-21 12:33:32 +01:00
Robert
f12b62fa9d
Move zip.ts to /common
2023-06-21 12:19:35 +01:00
Robert
90e94e04fc
Move word.ts to /common
2023-06-21 12:19:35 +01:00
Robert
236a317fa0
Move time.ts to /common
2023-06-21 12:19:35 +01:00
Robert
1bf14e393f
Move text-utils.ts to /common
2023-06-21 12:19:35 +01:00
Robert
655adfcd51
Move sarif-utils.ts to /common
2023-06-21 12:19:35 +01:00
Robert
b11a675004
Move ql.ts to /common
2023-06-21 12:19:35 +01:00
Robert
855cac628b
Move number.ts to /common
2023-06-21 12:19:35 +01:00
Robert
5b168dfb7e
Move location-link-utils.ts to /common
2023-06-21 12:19:35 +01:00
Robert
704ebf1ff6
Move interface-types.ts to /common
2023-06-21 12:19:35 +01:00
Robert
9903982bb1
Merge pull request #2530 from github/robertbrignull/move-pure-1
...
Move files from /pure to the /common directory (part 1 of 3)
2023-06-21 11:54:11 +01:00
Robert
d0df2966c5
Merge branch 'main' into robertbrignull/move-pure-1
2023-06-21 11:23:42 +01:00
Koen Vlaswinkel
7f9208f1e1
Merge pull request #2531 from github/koesie10/remove-common-index
...
Remove `common/index.ts` and vscode from `common/logging`
2023-06-21 12:11:19 +02:00
Robert
e92b676820
Merge branch 'main' into robertbrignull/move-pure-1
2023-06-21 10:37:39 +01:00
Robert
a054290c50
Merge pull request #2529 from github/robertbrignull/queries-panel-errors
...
Ensure errors for one path don't stop discovery of other paths
2023-06-21 10:09:45 +01:00
Koen Vlaswinkel
eeb867624e
Remove common/index.ts and vscode from common/logging
...
The `logging` part of `common` was exported in `common/index.ts` and
could be imported by importing `common`. I don't think this makes a lot
of sense, so I removed it.
The `common/logging/index.ts` also contained exports of the
`common/logging/vscode` directory, which means that importing
`common/logging` automatically brings in the `vscode` module. This
removes that export, so now there are two separate imports needed for
importing the common part and the `vscode` specific part. This should
make it easier to keep them separate and be more explicit about what
you're importing.
2023-06-21 10:20:19 +02:00
Robert
2813576f07
Move helpers-pure.ts to /common
2023-06-21 09:10:26 +01:00
Robert
1ced7a90fd
Move files.ts to /common
2023-06-21 09:06:38 +01:00
Robert
4cbd0b7fb8
Move errors.ts to /common
2023-06-21 09:03:16 +01:00
Robert
af97077095
Move distribution.ts to /common
2023-06-21 08:59:51 +01:00
Robert
a5aa0c4cf3
Move disposable-object.ts to /common
2023-06-21 08:56:59 +01:00
Koen Vlaswinkel
d092e69abf
Add detection of root workspace directory using .git folder
2023-06-21 09:55:29 +02:00
Robert
7cab02de60
Move date.ts to /common
2023-06-21 08:53:51 +01:00
Robert
dc91028cee
Move bqrs-utils.ts to /common
2023-06-21 08:50:39 +01:00
Robert
f228ec9645
Move bqrs-cli-types.ts to /common
2023-06-21 08:50:35 +01:00
Koen Vlaswinkel
f32a240e24
Exclude workspace folders in the system temp dir
2023-06-21 09:44:39 +02:00
Robert
7135d39aad
Log error message
2023-06-21 08:24:22 +01:00
Shati Patel
c628454e25
Allow queries panel to be visible in non-dev mode too ( #2528 )
2023-06-20 16:46:31 +01:00
Robert
fa773a0029
Ensure errors for one path don't stop discovery of other paths
2023-06-20 16:21:20 +01:00
Koen Vlaswinkel
2c97ca95aa
Merge pull request #2527 from github/koesie10/replace-faker-uuid
...
Replace deprecated faker.datatype.uuid by faker.string.uuid
2023-06-20 16:50:30 +02:00
Koen Vlaswinkel
d3a179744e
Merge branch 'main' into koesie10/replace-faker-uuid
2023-06-20 16:22:51 +02:00
Koen Vlaswinkel
8fb1229c49
Merge pull request #2524 from github/koesie10/grouping-improvements
...
Improve grouping of libraries
2023-06-20 15:22:33 +02:00
Robert
23173bf441
Merge pull request #2525 from github/robertbrignull/sendRequest_progress
...
Remove ProgressCallback / CancellationToken arguments where they aren't used
2023-06-20 14:16:36 +01:00
Koen Vlaswinkel
1cc6aa5303
Merge branch 'main' into koesie10/auto-name-extension-pack
2023-06-20 15:12:15 +02:00
Koen Vlaswinkel
2800ccb74c
Add extra sorting parameters for libraries
2023-06-20 14:24:56 +02:00
Robert
3685575c11
Merge branch 'main' into robertbrignull/sendRequest_progress
2023-06-20 13:24:30 +01:00
github-actions[bot]
c40be89636
Bump CLI version from v2.13.3 to v2.13.4 for integration tests ( #2526 )
...
Co-authored-by: github-actions[bot] <github-actions@github.com >
2023-06-20 11:28:25 +01:00
Robert
f99957435d
Fix expected args in tests
2023-06-20 11:09:13 +01:00
Koen Vlaswinkel
ff491bb706
Replace deprecated faker.datatype.uuid by faker.string.uuid
2023-06-20 11:48:31 +02:00
Koen Vlaswinkel
cfc66a4e17
Store extension packs in .github/codeql/extensions
2023-06-20 11:16:23 +02:00
Robert
4d8506b3f5
Add back in manual progress update
2023-06-20 09:42:59 +01:00
Koen Vlaswinkel
ab6db71727
Move workspace folder functions to separate file
2023-06-20 10:06:52 +02:00
Koen Vlaswinkel
ddd97f08a3
Add chevron to show whether row is expanded
2023-06-20 09:32:57 +02:00
Koen Vlaswinkel
32d8968c56
Use pluralize function for pluralization
2023-06-20 09:32:57 +02:00
Koen Vlaswinkel
768c10734e
Make libraries collapsible
2023-06-20 09:32:57 +02:00
Koen Vlaswinkel
a833f78151
Sort libraries by supported and usages
2023-06-20 09:32:57 +02:00
Robert
c93449ab9f
Remove ProgressCallback / CancellationToken arguments where they aren't used
2023-06-19 17:13:40 +01:00
Robert
d8c3410641
Merge pull request #2490 from github/robertbrignull/resolve-queries-manual
...
Add manual discovery of queries and query packs
2023-06-19 14:40:50 +01:00
Robert
d2b69b1316
Normalize tmp path to ensure correct comparrison on windows
2023-06-19 14:13:09 +01:00
Koen Vlaswinkel
e83ad364f5
Merge pull request #2522 from github/koesie10/group-by-library
...
Group modeled methods by library in the data extensions editor
2023-06-19 15:01:19 +02:00
Koen Vlaswinkel
fe29a1a32a
Add more comments
2023-06-19 13:54:17 +02:00
Koen Vlaswinkel
3323fd4e3b
Add more tests for auto pack naming
2023-06-19 13:51:24 +02:00
Koen Vlaswinkel
3c60708b55
Separate pack naming and create interface
2023-06-19 13:47:27 +02:00
Koen Vlaswinkel
8980aabbfc
Split flows for checking existing extension pack
2023-06-19 13:34:35 +02:00
Robert
a30ec907d0
Add tiny sleep to fix tests
2023-06-19 11:32:55 +01:00
Robert
96bb7058a2
Make note about NodeJS.ErrnoException
2023-06-19 11:09:08 +01:00
Koen Vlaswinkel
5dcadd2f1f
Merge pull request #2519 from github/koesie10/add-library-to-data-extensions-editor
...
Add library to data extensions editor
2023-06-19 12:07:34 +02:00
Robert
1f18cc3f2c
Use Readonly and ReadonlyArray
2023-06-19 10:58:26 +01:00
Robert
989ef8b681
Fix typo
2023-06-19 10:57:20 +01:00
Robert
70681253eb
Only expose event to subclasses, instead of event emitter
2023-06-19 10:57:10 +01:00
Koen Vlaswinkel
bbc39b060f
Remove library column
2023-06-19 11:52:09 +02:00
Koen Vlaswinkel
590e908886
Group modeled methods by library
2023-06-19 11:39:47 +02:00
Koen Vlaswinkel
487c0a66f4
Create ModeledMethodDataGrid component
2023-06-19 11:33:45 +02:00
Koen Vlaswinkel
23745ba93f
Change jar to library for Java query
2023-06-19 11:25:40 +02:00
Robert
af62a92c5b
Make pathData private to FilePathDiscovery
2023-06-16 16:40:11 +01:00
Robert
da92a67834
Introduce recomputeAllData to avoid mutating pathData from outside of FilePathDiscovery
2023-06-16 16:35:58 +01:00
Robert
c6a7e1fb3c
Rename from path to pathData where appropriate
2023-06-16 16:23:39 +01:00
Robert
d626cea837
Use getOnDiskWorkspaceFolders instead of getOnDiskWorkspaceFoldersObjects when all we need is the path
2023-06-16 16:14:08 +01:00
Robert
bdea0c2c20
Use one lstat call instead of calling exists first
2023-06-16 16:12:29 +01:00
Robert
44327cac23
Use sets instead of custom expectArraysEqual
2023-06-16 15:23:32 +01:00
Koen Vlaswinkel
5d83ac84e3
Fix tests on Windows
2023-06-16 16:01:30 +02:00
Robert
3a0aaa0ae9
Use jest.SpiedFunction instead of jest.SpyInstance
2023-06-16 12:35:59 +01:00
Robert
18e7431a44
Make conditional easier to read
2023-06-16 12:33:21 +01:00
Koen Vlaswinkel
549884d507
Automatically name extension packs
...
This will change how extension packs are named in the data extensions
editor. Before, the user had to pick a workspace folder and a name for
the extension pack. Now, the workspace folder will be picked
automatically if we can detect it (i.e. it follows the naming structure
we expect), or the user will still need to select it. The extension pack
name is always auto-generated based on the database name and the
database language.
This adds a new `codeQL.dataExtensions.disableAutoNameExtensionPack`
setting to disable this behavior while we are still working on changing
how the data extensions editor works.
2023-06-16 13:31:31 +02:00
Robert
6504e46011
Invert condition to reduce nesting
2023-06-16 12:31:12 +01:00
Robert
ce6a21c65a
Use pathExists instead of exists
2023-06-16 12:21:36 +01:00
Robert
fce27d02dc
Use a plain Set intead of custom FilePathSet
2023-06-16 11:29:38 +01:00
Robert
f7a72c6d45
Use QueryLanguage where possible
2023-06-16 11:29:28 +01:00
Koen Vlaswinkel
55d1f14ac4
Add library to data extensions editor
...
This adds a new library column to the data extensions editor containing
the JAR or DLL file the method is defined in. This will be used to group
methods by library in the future. For now, it just shows in a column.
2023-06-16 12:01:30 +02:00
Robert
959c3fbcb8
Fix typos
2023-06-16 10:47:07 +01:00
Koen Vlaswinkel
0f9d127b4c
Merge pull request #2513 from github/koesie10/show-telemetry-without-vscode
...
Make the `showAndLogExceptionWithTelemetry` function work without the `vscode` module
2023-06-16 09:39:12 +02:00
Andrew Eisenberg
f9a415c377
Merge pull request #2516 from github/aeisenberg/modernize
...
Modernize query packs
2023-06-15 08:01:22 -07:00
Koen Vlaswinkel
539284b902
Merge pull request #2511 from github/koesie10/show-and-log-without-vscode
...
Make the showAndLog family of functions usable without the `vscode` module
2023-06-15 09:29:18 +02:00
Andrew Eisenberg
244bc3bdab
Modernize query packs
...
Remove legacy `libraryPathDependencies`. We are making some
changes internally that will cause legacy packs with lock
files to throw an error.
2023-06-14 20:56:45 +00:00
Robert
5cbb7b49d7
Update QueryDiscovery to use FilePathDiscovery and QueryPackDiscovery
2023-06-14 17:30:40 +01:00
Robert
a9d59aecb8
Add QueryPackDiscovery
2023-06-14 17:30:37 +01:00
Robert
17b5e000f8
Add FilePathDiscovery
2023-06-14 17:30:33 +01:00
Robert
790c33c661
Add silent arg to resolveLibraryPath
2023-06-14 16:09:42 +01:00
Robert
51b94e3fed
Add FilePathSet
2023-06-14 16:09:42 +01:00
Robert
b0441956df
Remove the update method from the Discovery class
...
See https://github.com/github/vscode-codeql/pull/2490#discussion_r1226437598
for more explanation. This will make the class more useful for future usecases
where we don't want the behaviour of only calling update when there isn't
another refresh scheduled. I also think it doesn't negatively affect other
users such as the query test discovery. The effect should be that we'll see
more updates to the UI. These updates will get overwritten quickly, but they
are all genuine snapshots of the filesystem at the point the discovery process
ran, so they aren't incorrect, or aren't more incorrect than continuing to show
the old state before any discovery ran.
2023-06-14 16:09:42 +01:00
Koen Vlaswinkel
8803433fa4
Merge pull request #2515 from github/version/bump-to-v1.8.7
...
Bump version to v1.8.7
2023-06-14 14:53:24 +02:00
github-actions[bot]
ab448e51d5
Bump version to v1.8.7
2023-06-14 12:20:00 +00:00
Koen Vlaswinkel
2905f5340a
Merge pull request #2514 from github/v1.8.6
...
Release / Release (push) Has been cancelled
Release / Publish to VS Code Marketplace (push) Has been cancelled
Release / Publish to Open VSX Registry (push) Has been cancelled
v1.8.6
2023-06-14 13:51:21 +02:00
Koen Vlaswinkel
170fce8815
v1.8.6
2023-06-14 13:17:03 +02:00
Koen Vlaswinkel
7a76e20841
Move showAndLogExceptionWithTelemetry out of vscode directory
2023-06-14 11:59:14 +02:00
Koen Vlaswinkel
d03d355513
Add telemetry as argument to showAndLogExceptionWithTelemetry
2023-06-14 11:19:50 +02:00
Koen Vlaswinkel
959728d1ca
Add telemetry to App
2023-06-14 11:19:46 +02:00
Koen Vlaswinkel
fefb2f6694
Add AppTelemetry interface
2023-06-14 11:19:16 +02:00
Koen Vlaswinkel
08786055e3
Move telemetry to common/vscode
2023-06-14 11:19:10 +02:00
Koen Vlaswinkel
108d5268b0
Fix tests mocking showAndLog functions
2023-06-14 11:17:49 +02:00
Koen Vlaswinkel
fcbe3bea1e
Use app logger instead of extLogger where possible
...
To increase the use of the `app` logger, this replaces the direct use of
`extLogger` by the `app.logger` where possible. This should not change
the behavior since the `extLogger` is the logger used by the `app`.
2023-06-14 11:17:37 +02:00
Koen Vlaswinkel
2b85690c68
Change logger on app to NotificationLogger
2023-06-14 11:17:18 +02:00
Koen Vlaswinkel
67c081921b
Move show and log functions to common
...
This moves the `showAndLog` family of functions to the `common/logging`
directory. It explicitly moves the `showAndLogExceptionWithTelemetry`
function to the `common/vscode/logging.ts` file because it still has a
dependency on the `telemetryListener`, which depends on the `vscode`
module.
2023-06-14 11:17:17 +02:00
Koen Vlaswinkel
9ff2d568c8
Change showAndLog functions to take NotificationLogger
2023-06-14 11:16:52 +02:00
Koen Vlaswinkel
d54ee0c0e5
Merge pull request #2508 from github/koesie10/split-helpers-4
...
Split helpers.ts [Part 4]
2023-06-14 11:15:04 +02:00
Nora
fa7d85ea58
Merge pull request #2512 from github/nora/remove-code-search-flag
...
Remove code search feature flag
2023-06-14 10:41:19 +02:00
Koen Vlaswinkel
179942680e
Merge pull request #2506 from github/koesie10/split-helpers-3
...
Move show and log functions out of helpers
2023-06-14 10:28:43 +02:00
Koen Vlaswinkel
f67f53dd68
Merge remote-tracking branch 'origin/main' into koesie10/split-helpers-3
2023-06-14 09:30:41 +02:00
Koen Vlaswinkel
c6c56284ff
Merge pull request #2505 from github/koesie10/split-helpers-2
...
Split `helpers.ts` [Part 2]
2023-06-14 09:29:58 +02:00
Nora
afa2f426b8
Update Changelog
2023-06-13 14:55:14 +00:00
Nora
fd381640a0
Remove feature flag
2023-06-13 14:55:02 +00:00
Robert
019e3772ef
Merge pull request #2510 from github/robertbrignull/use_contains_path
...
Use containsPath where possible
2023-06-13 10:19:01 +01:00
Nora
a03b3dca86
Merge pull request #2507 from github/nora/remove-1000-list-limit
...
Remove limit of 1000 repos per list
2023-06-13 09:57:16 +02:00
Robert
cad651d6bd
Use containsPath where possible
2023-06-12 16:33:35 +01:00
Robert
400bde6e03
Merge pull request #2509 from github/robertbrignull/contains_path
...
Fix containsPath for paths that share a prefix
2023-06-12 16:17:39 +01:00
Robert
3a9fa42790
Merge branch 'main' into robertbrignull/contait push origin robertbrignull/contains_pathns_path
2023-06-12 15:39:47 +01:00
Robert
c920b7e49e
Remove explicit check for windows
2023-06-12 15:16:43 +01:00
Koen Vlaswinkel
ccf38a98fb
Move incorrectly named helpers.test.ts
2023-06-12 15:55:10 +02:00
Koen Vlaswinkel
00240e56f4
Rename helpers.ts to tmp-dir.ts
2023-06-12 15:55:10 +02:00
Koen Vlaswinkel
1096ed8bf5
Move upgradesTmpDir out of helpers
2023-06-12 15:55:10 +02:00
Koen Vlaswinkel
61ac19f715
Move createTimestampFile out of helpers
2023-06-12 15:55:09 +02:00
Koen Vlaswinkel
9a32556b4d
Move query language functions out of helpers
2023-06-12 15:55:09 +02:00
Koen Vlaswinkel
2cd88cecde
Move tryGetQueryMetadata out of helpers
2023-06-12 15:55:09 +02:00
Robert
6dbbd22c0a
Merge pull request #2497 from github/robertbrignull/cleanup_workspace_folders
...
Remove workspaceFolders from app because it turned out not to be useful
2023-06-12 14:50:00 +01:00
Robert
aa4c459cdd
Use relative instead of startsWith to handle paths with the same prefix
2023-06-12 14:41:31 +01:00
Robert
f7c1f06354
Add another test case for case insensitivity on windows
2023-06-12 14:41:31 +01:00
Robert
6e3d0147c9
Add test cases for paths with the same prefix
2023-06-12 14:41:31 +01:00
Robert
300503e1c9
Remove platform arg as it's never not the process.platform
2023-06-12 14:41:31 +01:00
Robert
bdd2319297
Update docs to mention about paths being equal
2023-06-12 14:41:21 +01:00
Nora
4c16888624
Remove limit of 1000 to repo lists
2023-06-12 12:46:40 +00:00
Koen Vlaswinkel
d71f210647
Merge pull request #2504 from github/koesie10/split-helpers
...
Split helpers.ts file
2023-06-12 14:42:32 +02:00
Koen Vlaswinkel
c16d363b08
Move show and log functions out of helpers
2023-06-12 14:24:04 +02:00
Robert
8b1e49c6c0
Use more descriptive names
2023-06-12 12:50:01 +01:00
Koen Vlaswinkel
50f958067c
Move prepareCodeTour to separate file
2023-06-12 12:12:18 +02:00
Koen Vlaswinkel
7f3e9607aa
Move dialog functions to separate file
2023-06-12 12:09:36 +02:00
Koen Vlaswinkel
0cfbf0cb2a
Move workspace folder functions to separate file
2023-06-12 12:02:45 +02:00
Koen Vlaswinkel
bfead07592
Move walkDirectory to pure files file
2023-06-12 11:13:57 +02:00
Koen Vlaswinkel
8c98401efe
Move isQueryLanguage to query language file
2023-06-12 11:11:47 +02:00
Koen Vlaswinkel
a4e4c67bf2
Move getInitialQueryContents to separate file
2023-06-12 11:10:23 +02:00
Koen Vlaswinkel
754fa675f9
Move db contents heuristics to separate file
2023-06-12 11:07:25 +02:00
Koen Vlaswinkel
b0c18b3300
Move unused languageToDbScheme
2023-06-12 11:01:42 +02:00
Koen Vlaswinkel
706c6b8a7a
Move qlpacks helpers to separate file
2023-06-12 10:59:42 +02:00
Nora
fe21a21ca2
Merge pull request #2501 from github/nora/polish-code-search-copy
...
Code search: Use correct link and text
2023-06-12 07:44:25 +02:00
Koen Vlaswinkel
bca8e8fdb9
Merge pull request #2503 from github/koesie10/move-interface
...
Move interface.ts to local-queries/results-view.ts
2023-06-09 17:11:51 +02:00
Koen Vlaswinkel
5259456fe8
Merge pull request #2502 from github/koesie10/move-interface-utils
...
Move interface-utils to local-queries/webview
2023-06-09 17:11:39 +02:00
Robert
adc64c37c5
Merge pull request #2498 from github/robertbrignull/queries-panel-codeowners
...
Mark the queries panel as owned by secexp
2023-06-09 15:27:29 +01:00
Koen Vlaswinkel
2f1a3e95bf
Move interface.ts to local-queries/results-view.ts
2023-06-09 16:24:32 +02:00
Koen Vlaswinkel
00b32376d5
Move interface-utils to local-queries/webview
2023-06-09 16:20:30 +02:00
Koen Vlaswinkel
dfef8104c8
Merge pull request #2485 from github/koesie10/move-location-utils
...
Move functions for resolving locations
2023-06-09 15:59:48 +02:00
Nora
f0a8f79c2e
Use correct link and test
2023-06-09 13:25:39 +00:00
Charis Kyriakou
d485ff0015
Deal with no predictions gracefully ( #2499 )
2023-06-09 13:17:26 +01:00
Robert
7b5fb5b3aa
Mark the queries panel as owned by secexp
2023-06-09 10:49:32 +01:00
Robert
eb938034fb
Pass in just the environment instead of full app
2023-06-09 10:26:50 +01:00
Robert
a19c40bd66
Avoid using app.createEventEmitter
2023-06-09 10:24:07 +01:00
Koen Vlaswinkel
6b8169c479
Merge pull request #2494 from github/dependabot/npm_and_yarn/extensions/ql-vscode/eslint-plugin-jest-dom-5.0.1
...
Bump eslint-plugin-jest-dom from 4.0.2 to 5.0.1 in /extensions/ql-vscode
2023-06-09 11:19:26 +02:00
Koen Vlaswinkel
71ac6c73cd
Merge pull request #2496 from github/dependabot/npm_and_yarn/extensions/ql-vscode/xml2js-and-vscode/vsce-and-azure/core-http-0.5.0
...
Bump xml2js, @vscode/vsce and @azure/core-http in /extensions/ql-vscode
2023-06-09 11:19:15 +02:00
Koen Vlaswinkel
8b3ca1035c
Merge pull request #2495 from github/koesie10/remove-xml2js-types
...
Remove `@types/xml2js` dependency
2023-06-09 11:18:51 +02:00
Robert
f0cf4a0105
Remove onDidChangeWorkspaceFolders from app
2023-06-09 10:18:22 +01:00
Robert
1bd78649e7
Remove workspaceFolders from app
2023-06-09 09:57:23 +01:00
dependabot[bot]
f2ab949417
Bump xml2js, @vscode/vsce and @azure/core-http in /extensions/ql-vscode
...
Bumps [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js ) to 0.5.0 and updates ancestor dependencies [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js ), [@vscode/vsce](https://github.com/Microsoft/vsce ) and [@azure/core-http](https://github.com/Azure/azure-sdk-for-js ). These dependencies need to be updated together.
Updates `xml2js` from 0.4.23 to 0.5.0
- [Commits](https://github.com/Leonidas-from-XIV/node-xml2js/commits/0.5.0 )
Updates `@vscode/vsce` from 2.15.0 to 2.19.0
- [Release notes](https://github.com/Microsoft/vsce/releases )
- [Commits](https://github.com/Microsoft/vsce/compare/v2.15.0...v2.19.0 )
Updates `@azure/core-http` from 2.2.7 to 2.3.2
- [Release notes](https://github.com/Azure/azure-sdk-for-js/releases )
- [Changelog](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/Changelog-for-next-generation.md )
- [Commits](https://github.com/Azure/azure-sdk-for-js/compare/@azure/core-http_2.2.7...@azure/core-http_2.3.2 )
---
updated-dependencies:
- dependency-name: xml2js
dependency-type: indirect
- dependency-name: "@vscode/vsce"
dependency-type: direct:development
- dependency-name: "@azure/core-http"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-09 08:44:18 +00:00
Koen Vlaswinkel
7869225cf1
Remove @types/xml2js
...
We don't seem to be using this dependency anymore, so we can remove it.
2023-06-09 10:38:19 +02:00
Koen Vlaswinkel
95828cdc61
Add @testing-library/dom as devDependency
2023-06-09 10:35:05 +02:00
Andrew Eisenberg
afb490b64b
Merge pull request #2441 from github/RasmusWL/codeql-executable-wording
...
Expand description for `codeQL.cli.executablePath`
2023-06-09 01:19:09 -07:00
dependabot[bot]
c3299f92c4
Bump eslint-plugin-jest-dom from 4.0.2 to 5.0.1 in /extensions/ql-vscode
...
Bumps [eslint-plugin-jest-dom](https://github.com/testing-library/eslint-plugin-jest-dom ) from 4.0.2 to 5.0.1.
- [Release notes](https://github.com/testing-library/eslint-plugin-jest-dom/releases )
- [Commits](https://github.com/testing-library/eslint-plugin-jest-dom/compare/v4.0.2...v5.0.1 )
---
updated-dependencies:
- dependency-name: eslint-plugin-jest-dom
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-08 13:58:25 +00:00
Koen Vlaswinkel
dc9f648452
Merge pull request #2470 from github/dependabot/npm_and_yarn/extensions/ql-vscode/faker-js/faker-8.0.2
...
Bump @faker-js/faker from 7.5.0 to 8.0.2 in /extensions/ql-vscode
2023-06-08 14:52:15 +02:00
Shati Patel
ee11805060
Update changelog (MRVA -> variant analysis) ( #2492 )
2023-06-08 12:47:59 +00:00
Koen Vlaswinkel
a24f640dc0
Replace faker.datatype.hexadecimal by faker.string.hexadecimal
2023-06-08 13:47:03 +02:00
Koen Vlaswinkel
4d2a935e80
Merge pull request #2469 from github/dependabot/npm_and_yarn/extensions/ql-vscode/css-loader-6.8.1
...
Bump css-loader from 3.1.0 to 6.8.1 in /extensions/ql-vscode
2023-06-08 12:57:59 +02:00
Koen Vlaswinkel
bbffc16b64
Replace faker.random.word by faker.word.sample
2023-06-08 12:50:42 +02:00
Koen Vlaswinkel
a4f90b7197
Replace faker.datatype.number by faker.number.int
2023-06-08 12:48:48 +02:00
Charis Kyriakou
286018ccea
Colour draft modeled methods with orange ( #2491 )
2023-06-08 11:33:51 +01:00
Koen Vlaswinkel
d2df162afd
Switch to Webpack asset modules
...
css-loader 6 deprecates the use of `file-loader`. As a replacement,
we can use asset modules which generates very similar results. This is a
fairly simple change, and this makes fonts work again.
See: https://github.com/webpack-contrib/css-loader/releases/tag/v6.0.0
See: https://webpack.js.org/guides/asset-modules/
2023-06-08 11:38:20 +02:00
dependabot[bot]
a73c39a29a
Bump css-loader from 3.1.0 to 6.8.1 in /extensions/ql-vscode
...
Bumps [css-loader](https://github.com/webpack-contrib/css-loader ) from 3.1.0 to 6.8.1.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases )
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v3.1.0...v6.8.1 )
---
updated-dependencies:
- dependency-name: css-loader
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-08 09:31:26 +00:00
dependabot[bot]
5113b04b36
Bump @faker-js/faker from 7.5.0 to 8.0.2 in /extensions/ql-vscode
...
Bumps [@faker-js/faker](https://github.com/faker-js/faker ) from 7.5.0 to 8.0.2.
- [Release notes](https://github.com/faker-js/faker/releases )
- [Changelog](https://github.com/faker-js/faker/blob/next/CHANGELOG.md )
- [Commits](https://github.com/faker-js/faker/compare/v7.5.0...v8.0.2 )
---
updated-dependencies:
- dependency-name: "@faker-js/faker"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-08 09:30:06 +00:00
Koen Vlaswinkel
8db5c6de65
Merge pull request #2488 from github/koesie10/fix-locale-lower-case
...
Add locale to `toLocaleLowerCase` calls
2023-06-08 11:14:07 +02:00
Koen Vlaswinkel
a46a8d06ec
Merge pull request #2489 from github/koesie10/add-cli-tests-timeout
...
Add timeout to CLI tests
2023-06-08 09:45:30 +02:00
Koen Vlaswinkel
3569c77626
Add timeout to CLI tests
...
It seems like some CLI tests are hanging and only completing after 6
hours when they run into the default timeout. This updates the timeout
to 30 minutes. All CLI tests should complete in 30 minutes, so this
should ensure that they are cancelled when they are stuck.
2023-06-07 15:41:42 +02:00
Koen Vlaswinkel
0b22a6f34d
Add locale to toLocaleLowerCase calls
2023-06-07 14:51:03 +02:00
Anders Starcke Henriksen
7c47a99805
Merge pull request #2486 from github/starcke/candidate-selection
...
Tweak candidate selection
2023-06-07 14:16:50 +02:00
Anders Starcke Henriksen
15c2a86725
Use Argument[this] instead of Argument[-1]
2023-06-07 13:14:31 +02:00
Anders Starcke Henriksen
e14b4c3040
Update extensions/ql-vscode/src/data-extensions-editor/auto-model.ts
...
Co-authored-by: Koen Vlaswinkel <koesie10@users.noreply.github.com >
2023-06-07 11:56:46 +02:00
Anders Starcke Henriksen
e3f192b76d
Add new test.
2023-06-07 11:24:06 +02:00
Anders Starcke Henriksen
222c0d72bd
Update tests.
2023-06-07 11:24:06 +02:00
Anders Starcke Henriksen
895c22ea85
Fix supported.
2023-06-07 11:24:02 +02:00
Nora
805d71286f
Merge pull request #2487 from github/version/bump-to-v1.8.6
...
Bump version to v1.8.6
2023-06-07 10:18:17 +02:00
github-actions[bot]
2e01836f55
Bump version to v1.8.6
2023-06-06 15:16:08 +00:00
Koen Vlaswinkel
bca8885513
Merge pull request #2484 from github/koesie10/move-webview-html
...
Move Webview HTML generation out of `interface-utils.ts`
2023-06-06 17:14:09 +02:00
Anders Starcke Henriksen
76fb55f918
Tweak candidate selection:
...
- At most 6 usages.
- Send -1 for `this` argument.
- Do not send only some arguments for candidate or sample.
2023-06-06 16:49:50 +02:00
Nora
999b24a40d
Merge pull request #2466 from github/v1.8.5
...
Release / Release (push) Has been cancelled
Release / Publish to VS Code Marketplace (push) Has been cancelled
Release / Publish to Open VSX Registry (push) Has been cancelled
v1.8.5
2023-06-06 15:15:28 +02:00
Nora
e612c8efcc
Update Changelog
2023-06-06 12:23:36 +00:00
Koen Vlaswinkel
ba9f5e35cb
Remove dependency on interface types from jumpToLocation
2023-06-06 11:27:57 +02:00
Koen Vlaswinkel
aa87fa8cda
Move functions for resolving locations
2023-06-06 11:25:43 +02:00
Koen Vlaswinkel
a98e31fffb
Merge pull request #2483 from github/koesie10/fix-locale-compare
...
Fix remaining `localeCompare` without locale set
2023-06-06 11:14:28 +02:00
Koen Vlaswinkel
461ff9bd21
Move Webview HTML generation out of interface-utils.ts
...
This moves the Webview HTML generation used by `AbstractWebview` out of
`interface-utils.ts` and into a new file `webview-html.ts` in the
`common/vscode` directory.
2023-06-06 11:12:05 +02:00
Koen Vlaswinkel
a678f8b3bc
Fix remaining localeCompare without locale set
2023-06-06 10:55:15 +02:00
Nora
cc9fb826b3
v1.8.5
2023-06-06 08:48:01 +00:00
Nora
a7a24fc0e9
Merge pull request #2476 from github/nora/use-code-search-api
...
Code search: use code search api
2023-06-06 10:29:43 +02:00
Koen Vlaswinkel
10bd774bcb
Merge pull request #2479 from github/koesie10/validate-scoped-pack-name
...
Only allow scoped extension pack names
2023-06-06 10:09:11 +02:00
Robert
ead138ee13
Merge pull request #2480 from github/robertbrignull/app-environment
...
Add EnvironmentContext so common code can do localisation
2023-06-06 08:44:12 +01:00
Nora
945594d47a
Adjust error response wording
2023-06-05 15:55:18 +00:00
Nora
876b92aa98
Move code search api call to its own file
2023-06-05 15:42:10 +00:00
Nora
b47006129d
Move octokit initialization to db panel to send log messages to the user
2023-06-05 15:42:10 +00:00
Nora
fef28806b1
Use showAndLogWarning to surface rateLimit
2023-06-05 15:42:10 +00:00
Nora
5467c50395
Implement throttling
2023-06-05 15:42:10 +00:00
Nora
6da1f936dd
Add no-language option
2023-06-05 15:42:10 +00:00
Robert
b722fb4d70
Convert to using a getter for AppEnvironmentContext.language
2023-06-05 14:04:27 +01:00
Nora
9672a0b1f1
Merge pull request #2478 from github/nora/code-search-feature-flag
...
Protect codeSearch feature for now
2023-06-05 14:33:09 +02:00
Robert
0e65c79c92
Pass in app.environment instead of vscode.env
2023-06-05 13:27:17 +01:00
Nora
897ad5bb57
Add 'codeSearch' feature flag
2023-06-05 11:55:50 +00:00
Robert
1d80cbb496
Add EnvironmentContext to App
2023-06-05 11:50:50 +01:00
Koen Vlaswinkel
b0d45cefe9
Only allow scoped extension pack names
...
When packaging an extension pack, unscoped extension pack names are not
allowed and calling `codeql pack bundle` will fail with an error. This
command will be called when running a variant analysis, so these packs
will not work for a variant analysis.
To improve the user experience, we now only allow scoped extension pack
names. This means that the user will now have to enter a scope when
creating a new extension pack.
2023-06-05 12:30:20 +02:00
Shati Patel
af9af99f09
Queries panel: display the query language in the UI ( #2472 )
2023-06-05 11:07:59 +01:00
Koen Vlaswinkel
0d390aa984
Merge pull request #2468 from github/koesie10/remove-ignore-source-archive-option
...
Remove `ignoreSourceArchive` option from databases
2023-06-05 09:41:14 +02:00
Andrew Eisenberg
610a349f26
Merge pull request #2405 from Marcono1234/simpler-location-url
...
Simplify location URLs if start and end line are the same
2023-06-02 11:07:07 -07:00
Andrew Eisenberg
afbf762d22
Merge branch 'main' into simpler-location-url
2023-06-02 10:47:23 -07:00
Charis Kyriakou
c96fd817b3
Allow unclassified methods to be marked as neutral ( #2477 )
2023-06-02 15:08:29 +00:00
Charis Kyriakou
134c4405f9
Handle 429 from auto-model service ( #2474 )
2023-06-02 12:51:40 +00:00
Koen Vlaswinkel
7250e82055
Merge pull request #2421 from github/koesie10/data-extension-editor-provenance
...
Add provenance support to data extensions editor
2023-06-02 14:13:40 +02:00
Koen Vlaswinkel
4ef520dc10
Merge pull request #2407 from github/koesie10/query-language
...
Use `QueryLanguage` type for representing query languages
2023-06-02 14:13:04 +02:00
Koen Vlaswinkel
cae72396d3
Merge pull request #2416 from github/koesie10/resolve-data-extensions-editor-queries
...
Resolve queries instead of hardcoding the path
2023-06-02 13:45:55 +02:00
Koen Vlaswinkel
e7ef449874
Add support for auto-model provenance
2023-06-02 12:21:04 +02:00
Koen Vlaswinkel
1cc77c0a26
Merge remote-tracking branch 'origin/main' into koesie10/data-extension-editor-provenance
2023-06-02 12:09:23 +02:00
Koen Vlaswinkel
c1edd08662
Remove unnecessary export on resolveQueries
2023-06-02 12:07:41 +02:00
Koen Vlaswinkel
96a28100b7
Merge remote-tracking branch 'origin/main' into koesie10/resolve-data-extensions-editor-queries
2023-06-02 12:06:18 +02:00
Koen Vlaswinkel
98844769a9
Merge remote-tracking branch 'origin/main' into koesie10/query-language
2023-06-02 12:03:16 +02:00
Nora
12615f19f8
Merge pull request #2473 from github/nora/move-cached-operation-to-common
...
Move CachedOperation to language-support contextual
2023-06-02 11:34:22 +02:00
Nora
b2adbf63eb
Move file to language-support/contextual
2023-06-02 08:33:09 +00:00
Koen Vlaswinkel
f115412cec
Merge branch 'main' into koesie10/remove-ignore-source-archive-option
2023-06-02 10:16:34 +02:00
Koen Vlaswinkel
26d27f832e
Merge pull request #2467 from github/koesie10/fix-neutral-definition
...
Fix neutral definition for CodeQL 2.13.3
2023-06-02 09:46:39 +02:00
Andrew Eisenberg
f5c96025cb
Merge pull request #2461 from aibaars/selected-line-column
...
View CFG: export selected line and column position
2023-06-01 10:15:54 -07:00
Andrew Eisenberg
51be504f6d
Merge branch 'main' into selected-line-column
2023-06-01 08:07:18 -07:00
Koen Vlaswinkel
831b2499a2
Merge branch 'main' into koesie10/fix-neutral-definition
2023-06-01 16:59:31 +02:00
github-actions[bot]
cf343785a7
Bump CLI version from v2.13.1 to v2.13.3 for integration tests ( #2465 )
...
Co-authored-by: github-actions[bot] <github-actions@github.com >
2023-06-01 15:57:18 +01:00
Koen Vlaswinkel
0e47709d10
Remove ignoreSourceArchive option from databases
...
This option was used to ignore source archives for `.testproj`
databases. It is only set to `true` or `false` when creating the
database and could not be changed, so I don't think we need this option.
It can simply be derived from the database URI. This simplifies handling
of databases a bit.
2023-06-01 15:32:30 +02:00
Koen Vlaswinkel
2b915b82e4
Fix neutral definition for CodeQL 2.13.3
...
In CodeQL 2.13.3, the definition of the neutralModel predicate has
changed to include the `kind`. This updates the definition of the
data extensions editor to match the new definition.
One caveat is that when selecting a `kind` other than `summary`, the
method will not be shown as supported. This is because a
`NeutralCallable` only calls into `neutralSummaryElement`. This matches
the previous behavior because setting the `kind` to `source` or `sink`
only says that the method is either not a source or not a sink, but not
both. Only `summary` fully models the method.
See: https://github.com/github/codeql/pull/12931
See: ff78ac98d2/java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImpl.qll (L338)
See: ff78ac98d2/java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImplSpecific.qll (L160)
2023-06-01 14:59:47 +02:00
Koen Vlaswinkel
2f61cfe693
Merge pull request #2457 from github/koesie10/auto-model-usages-sarif
...
Retrieve external API usage snippets using SARIF
2023-06-01 11:28:42 +02:00
Shati Patel
5387546e93
Don't log the resolve queries CLI command ( #2454 )
2023-06-01 09:49:35 +01:00
Koen Vlaswinkel
dd268af9e9
Use type in auto model usages query file
...
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com >
2023-06-01 10:47:16 +02:00
Robert
bc342022cb
Merge pull request #2464 from github/robertbrignull/invocation-rate-limiter
...
Move the invocation rate limiter class out of helpers.ts
2023-05-31 16:45:17 +01:00
Robert
50c46b603a
Remove MockGlobalStorage
2023-05-31 16:21:28 +01:00
Nora
157210ffc5
Merge pull request #2439 from github/nora/search-prompt
...
Feed code search results into variant analysis repo lists
2023-05-31 17:08:44 +02:00
Robert
0b6bcfdfd6
Merge pull request #2459 from github/robertbrignull/discovery-logging
...
Avoid vscode reference rfom discovery.ts
2023-05-31 15:12:43 +01:00
Robert
9b84e0f831
"Fix" distribution tests
2023-05-31 14:59:23 +01:00
Robert
e7a5def15f
Merge pull request #2462 from github/robertbrignull/cached-operation
...
Move CachedOperation to a new file
2023-05-31 14:55:52 +01:00
Robert
1f6d8f215e
Merge branch 'main' into robertbrignull/discovery-logging
2023-05-31 14:53:56 +01:00
Koen Vlaswinkel
c017530410
Fix incorrect order in BQRS unit test
2023-05-31 15:20:53 +02:00
Koen Vlaswinkel
c654bfa4c4
Add some comments for the auto model usages query
2023-05-31 15:20:53 +02:00
Koen Vlaswinkel
bce097d939
Create type for usage snippets by signature
2023-05-31 15:20:53 +02:00
Koen Vlaswinkel
1920a2c6b4
Remove use of Pick in auto model usages query
2023-05-31 15:20:53 +02:00
Robert
00bd7b7d3e
Merge pull request #2458 from github/robertbrignull/common-vscode
...
Make assert-pure.ql ignore all /vscode/ directories
2023-05-31 14:09:39 +01:00
Robert
6b4726bc2b
Move InvocationRateLimiter to common
2023-05-31 13:47:59 +01:00
Robert
79dccaa12f
Pass in a Memento instead of a full ExtensionContext
2023-05-31 13:47:59 +01:00
Robert
b9c0f2bc14
Move InvocationRateLimiter to a separate file
2023-05-31 13:47:59 +01:00
Arthur Baars
7c47cf0968
View CFG: export selected line and column position
...
Fixes : #2456
2023-05-31 14:30:37 +02:00
Robert
d30e58b2cb
Merge pull request #2453 from github/robertbrignull/refresh-promise
...
Add ability to await the discovery refresh promise
2023-05-31 13:29:35 +01:00
Nora
0739c46fed
Add comments to gh api client and fix total number of returned repos
2023-05-31 11:30:31 +00:00
Nora
42436e623b
Add JSDoc to db config store
2023-05-31 11:30:00 +00:00
Robert
8badc1c407
Merge pull request #2460 from github/robertbrignull/selection-commond-vscode
...
Move selection-commands.ts to be in the vscode directory
2023-05-31 12:27:17 +01:00
Robert
56d6f19365
Move CachedOperation to a new file
2023-05-31 11:57:26 +01:00
Koen Vlaswinkel
a4d875af8d
Fix typo
2023-05-31 12:33:51 +02:00
Robert
b7a7329aff
Move selection-commands.ts to be in the vscode directory
2023-05-31 11:33:12 +01:00
Koen Vlaswinkel
a117e09796
Use a single SARIF-compatible query instead of two separate queries
2023-05-31 12:32:41 +02:00
Robert
a4a67856a5
Avoid vscode reference rfom discovery.ts
2023-05-31 11:26:25 +01:00
Robert
b8b378ffd4
Make assert-pure.ql ignore all /vscode/ directories
2023-05-31 10:59:50 +01:00
Robert
a0e6317559
Keep all updates of currentDiscoveryPromise in refresh
2023-05-31 10:45:36 +01:00
Robert
d2bb1b844e
Fix comment to be more accurate
2023-05-31 10:45:36 +01:00
Robert
82766d1033
Rename: getCurrentRefreshPromise => waitForCurrentRefresh
2023-05-31 10:45:32 +01:00
Robert
81fb1264e4
Merge pull request #2455 from github/robertbrignull/import-path-problem
...
Expand assert-pure.ql to cover common and be a path-problem query
2023-05-31 09:15:54 +01:00
Nora
4087620bf5
Polish copy
2023-05-30 14:30:07 +00:00
Alexander Eyers-Taylor
22172d5d74
Add support for quick eval count to the query runner ( #2417 )
...
* Add support for quick eval count to the query runner
This only adds support internally to the query runner,
without any UI support.
* Fix some tests
2023-05-30 14:12:47 +01:00
Alexander Eyers-Taylor
af3be543f5
Cache MRVA queries correctly ( #2435 )
2023-05-30 14:12:26 +01:00
Koen Vlaswinkel
5c81671e67
Retrieve external API usage snippets using SARIF
2023-05-30 13:46:14 +02:00
Robert
c462bc0243
Use edges from select clause
2023-05-30 11:42:36 +01:00
Robert
e1894afb16
Extend ImportDeclaration instead of AstNode
2023-05-30 11:39:47 +01:00
Koen Vlaswinkel
5a66d6ff2d
Merge pull request #2448 from github/koesie10/auto-model
...
Add initial implementation of auto-modeling
2023-05-30 12:19:22 +02:00
Koen Vlaswinkel
d27f3d2699
Remove incorrect explanations
2023-05-30 11:21:01 +02:00
Koen Vlaswinkel
695dc3f883
Improve sorting of input/output arguments
2023-05-30 11:17:52 +02:00
Koen Vlaswinkel
558f51b962
Add comment to parsePredictedClassifications method
2023-05-30 11:04:13 +02:00
Koen Vlaswinkel
2e29d0cda4
Fix incorrect signature reconstruction
2023-05-30 10:04:33 +02:00
Andrew Eisenberg
3b4f236426
Merge pull request #2440 from JarLob/patch-1
...
Retry results download if connection times out
2023-05-26 11:31:31 -07:00
Robert
b8770a2896
Convert assert-pure.ql to be a path-problem query
2023-05-26 16:28:40 +01:00
Andrew Eisenberg
e24377f9f3
Merge pull request #2446 from github/aeisenberg/use-orig-pack-name
...
Use the original pack name for generated pack
2023-05-26 08:12:01 -07:00
Andrew Eisenberg
deb268465f
Fix failing test
2023-05-26 07:52:49 -07:00
Koen Vlaswinkel
f52ad04afe
Improve parsing of predicted classifications
2023-05-26 16:18:59 +02:00
Koen Vlaswinkel
4b54e4f31f
Use 20 candidates and 100 samples
2023-05-26 13:40:12 +02:00
Robert
1f4b19cd37
Add getCurrentRefreshPromise
2023-05-26 10:15:14 +01:00
Robert
9dd7476c90
Use refresh promise in tests
2023-05-26 10:15:14 +01:00
Robert
5405b1bf29
Convert refresh to return a promise
2023-05-26 10:15:13 +01:00
Robert
5a2cb8bc41
Convert launchDiscovery to use async
2023-05-26 10:14:19 +01:00
Robert
35a7eee3c0
Merge pull request #2449 from github/robertbrignull/queries-welcome
...
Add welcome text for the queries panel
2023-05-25 17:01:13 +01:00
Andrew Eisenberg
efabcaefe3
Update extensions/ql-vscode/src/variant-analysis/run-remote-query.ts
...
Co-authored-by: Koen Vlaswinkel <koesie10@users.noreply.github.com >
2023-05-25 08:30:24 -07:00
Robert
a27b0a469e
Merge pull request #2447 from github/robertbrignull/QueryDiscovery-tests
...
Add integration tests of QueryDiscovery
2023-05-25 16:19:37 +01:00
Robert
472b1769c5
Update extensions/ql-vscode/test/vscode-tests/minimal-workspace/queries-panel/query-discovery.test.ts
...
Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com >
2023-05-25 15:38:49 +01:00
Koen Vlaswinkel
7bbba38cfb
Merge pull request #2450 from github/koesie10/move-database-item-refresh
...
Extract `DatabaseItem.refresh` method to `DatabaseManager`
2023-05-25 16:32:01 +02:00
Koen Vlaswinkel
adcc3d0b39
Remove unnecessary if-statements before slice
2023-05-25 15:52:00 +02:00
Robert
8be2dd805b
Use path.sep
2023-05-25 14:44:05 +01:00
Koen Vlaswinkel
09fc0f3040
Extract DatabaseItem.refresh to DatabaseManager
...
This moves the `refresh` method from `DatabaseItem` to `DatabaseManager`
and makes it private. This makes the `DatabaseItem` interface smaller
and more focused and ensures that `refresh` cannot be called from
outside of the `DatabaseManager`.
2023-05-25 15:03:30 +02:00
Koen Vlaswinkel
295a08f85a
Use DatabaseItemImpl where possible in DatabaseManager
...
This will allow us to implement specific behavior on the
`DatabaseItemImpl` which is not available on the `DatabaseItem`. This
will allow us to make the surface area of the `DatabaseItem` smaller.
2023-05-25 14:36:38 +02:00
Robert
394b51f4f3
Add welcome text
2023-05-25 12:49:01 +01:00
Koen Vlaswinkel
a88e683ebf
Add initial implementation of auto-modeling
2023-05-25 13:28:32 +02:00
Nora
250089a9e3
Renaming and smaller merge comments
2023-05-25 10:02:22 +00:00
Nora
2e12b8d756
Rename command from importCodeSearch to importFromCodeSearch
2023-05-25 09:11:37 +00:00
Robert
f236e65f68
Add integration tests of QueryDiscovery
2023-05-25 09:57:52 +01:00
Robert
301149fd32
Don't create array entry if workspace contains no queries
2023-05-25 09:57:52 +01:00
Koen Vlaswinkel
b8557d337c
Merge pull request #2445 from github/koesie10/move-local-databases
...
Split up `local-databases.ts` file into multiple files
2023-05-25 09:30:23 +02:00
Andrew Eisenberg
b4506cf6e5
Use the original pack name for generated pack
...
Generated variant analysis packs will use the original name
of the pack that the query is located in. This is to support
some future work where we do extra validation of data extensions.
If the query is not in a pack, the default name is used.
2023-05-24 21:46:54 +00:00
Nora
49f3f5673d
Show progress information when sending search api request
2023-05-24 16:26:08 +00:00
Robert
ff88a8d491
Merge pull request #2444 from github/robertbrignull/QueryTreeDataProvider-tests
...
Add tests of QueryTreeDataProvider
2023-05-24 16:25:08 +01:00
Koen Vlaswinkel
0707155603
Fix imports for tests
2023-05-24 17:08:00 +02:00
Koen Vlaswinkel
c004f18720
Remove outdated comment
2023-05-24 17:04:36 +02:00
Koen Vlaswinkel
6b9c3491ec
Move local-databases.ts to local-databases/index.ts
2023-05-24 17:04:14 +02:00
Koen Vlaswinkel
d608c057a4
Remove unused getUpgradesDirectories function
2023-05-24 17:03:14 +02:00
Koen Vlaswinkel
60cfc311e5
Move DatabaseManager to separate file
2023-05-24 17:02:39 +02:00
Koen Vlaswinkel
59482c2b2c
Move DatabaseChangedEvent to separate file
2023-05-24 17:00:52 +02:00
Koen Vlaswinkel
7888d210c4
Move DatabaseResolver to separate file
2023-05-24 16:58:29 +02:00
Koen Vlaswinkel
67983c64ca
Move DatabaseContents to separate file
2023-05-24 16:55:31 +02:00
Koen Vlaswinkel
d02e53fbd2
Move DatabaseItemImpl to separate file
2023-05-24 16:53:59 +02:00
Koen Vlaswinkel
4bb4627d30
Move DatabaseItem to separate file
2023-05-24 16:52:53 +02:00
Koen Vlaswinkel
6331cddbfd
Move DatabaseOptions to separate file
2023-05-24 16:51:38 +02:00
Robert
5d7a7237a3
Merge pull request #2443 from github/robertbrignull/query-constructor
...
Remove member variables that could be local variables
2023-05-24 14:34:06 +01:00
Nora
2b4e302e29
Surface truncated repos when a list hits 1000 items
2023-05-24 10:58:13 +00:00
Nora
d07b7c8c05
Add db manager test
2023-05-24 10:57:13 +00:00
Robert
27a88032f7
Add QueryTreeDataProvider tests
2023-05-24 11:42:23 +01:00
Robert
b9ce91cff9
Add a QueryDiscoverer interface to make testing QueryTreeDataProvider easier
2023-05-24 11:42:23 +01:00
Robert
9dee2a132e
Remove member variables that could be local variables
2023-05-24 10:37:22 +01:00
jarlob
69f9ecc2f4
Delete unfinished downloads in case of retry
2023-05-24 11:25:50 +02:00
jarlob
9bd852a71b
Add error message to logging.
2023-05-24 11:20:52 +02:00
Shati Patel
7ef35af68a
Don't create "." directory in queries/tests tree view ( #2442 )
2023-05-24 10:15:34 +01:00
Nora
dd01832ebe
Add no more than 1000 items to a list plus tests
2023-05-24 08:06:31 +00:00
Nora
f76d7bfd96
Use pagination for code search api call
2023-05-24 08:05:30 +00:00
Jaroslav Lobačevski
6f6c229ca3
Update extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts
2023-05-23 23:24:18 +02:00
jarlob
65cfd851f2
Add logging
2023-05-23 23:21:51 +02:00
jarlob
32fb4e5db6
Move max retry to a constant
2023-05-23 22:47:13 +02:00
Rasmus Wriedt Larsen
c82ba1bdff
Expand description for codeQL.cli.executablePath
...
To match what the code actually does.
2023-05-23 12:05:19 +02:00
Robert
f6b0ae2032
Merge pull request #2437 from github/robertbrignull/query-event-emitter
...
Use app.createEventEmitter in QueryDiscovery
2023-05-23 10:27:20 +01:00
Jaroslav Lobačevski
e964ce6713
Retry results download if connection times out
2023-05-23 10:51:46 +02:00
Robert
57f04fcae5
Add type to onDidChangeQueriesEmitter
2023-05-23 09:46:04 +01:00
Nora
4d9e8d98b4
Ask for user input and add response to list
2023-05-23 07:13:05 +00:00
Nora
fed6158615
Add GH client method to query search endpoint
2023-05-22 15:48:41 +00:00
Robert
da5d0d2a84
Use app.createEventEmitter in QueryDiscovery
2023-05-22 14:34:44 +01:00
Robert
73f359c0d0
Merge pull request #2434 from github/robertbrignull/disposable-event-emitter
...
Mark AppEventEmitter as disposable
2023-05-22 13:54:34 +01:00
Robert
f855d81526
Make sure DbManager is also disposed
2023-05-22 13:34:48 +01:00
Robert
73e41f8d61
Mark AppEventEmitter as disposable
2023-05-22 12:28:24 +01:00
Robert
018440f266
Merge pull request #2433 from github/robertbrignull/query-discovery
...
Hook queries panel up to real data
2023-05-22 11:51:25 +01:00
Koen Vlaswinkel
189a1328cd
Merge pull request #2428 from github/koesie10/unsupported-cli-version-check
...
Add warning when using unsupported CLI version
2023-05-22 12:49:52 +02:00
Robert
cda3483b01
Use getOnDiskWorkspaceFoldersObjects early instead of getting all folders and filtering later
2023-05-22 10:51:32 +01:00
Robert
78f11397e2
Exclude src archives and other non-normal workspace folders
2023-05-22 10:42:47 +01:00
Robert
935c9b996f
Don't include bad workspace roots in the list
2023-05-22 10:41:49 +01:00
Koen Vlaswinkel
e91e9d2654
Merge branch 'main' into koesie10/unsupported-cli-version-check
2023-05-22 11:37:58 +02:00
Koen Vlaswinkel
791a445342
Update copy of deprecation warning message
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2023-05-22 11:37:42 +02:00
Koen Vlaswinkel
4ea1bb5f1c
Merge pull request #2427 from github/koesie10/export-copy-selected-text
...
Update export/copy buttons copy when repositories are selected
2023-05-22 11:36:31 +02:00
Koen Vlaswinkel
8f3fe7412e
Merge branch 'main' into koesie10/export-copy-selected-text
2023-05-22 10:52:01 +02:00
Robert
4e46d87a77
Use name from file tree instead of calculating from path
2023-05-19 17:09:21 +01:00
Robert
a8f8990793
Hook query discovery results up to query panel
2023-05-19 17:09:21 +01:00
Robert
0a534ae360
Add QueryDiscovery class
2023-05-19 17:09:21 +01:00
Robert
13f8f19339
Add resolveQueries to CodeQL CLI
2023-05-19 17:09:21 +01:00
Robert
a3f2b7b1ca
Merge pull request #2431 from github/robertbrignull/app-workspace
...
Add workspace folders to App interface
2023-05-19 17:08:59 +01:00
Robert
6371356b4b
Merge pull request #2432 from github/robertbrignull/tree-node-shared
...
Pull out node classes to shared location
2023-05-19 17:06:24 +01:00
Robert
a7f6401be7
Add workspace folders to App interface
2023-05-19 15:28:04 +01:00
Robert
a5af2f2e4b
Pull out node classes to shared location
2023-05-19 13:04:58 +01:00
Andrew Eisenberg
3ebd13df57
Merge pull request #2425 from github/aeisenberg/truncated-log-msg
...
Ensure full stack traces are included in log messages
2023-05-17 08:51:35 -07:00
Koen Vlaswinkel
d28ee6dbf1
Merge branch 'main' into koesie10/unsupported-cli-version-check
2023-05-17 17:12:23 +02:00
Andrew Eisenberg
4ad3f7cb1f
Merge branch 'main' into aeisenberg/truncated-log-msg
2023-05-17 08:08:34 -07:00
Andrew Eisenberg
0f1f00dfc8
Merge pull request #2424 from github/aeisenberg/update-changelog
...
Update changelog
2023-05-17 08:08:07 -07:00
Koen Vlaswinkel
3e9b4273c3
Update CHANGELOG
2023-05-17 16:55:11 +02:00
Robert
b47f018b69
Merge pull request #2426 from github/robertbrignull/open-on-click
...
Open query file on click
2023-05-17 15:54:11 +01:00
Koen Vlaswinkel
5a7f5c2ff1
Update CHANGELOG
2023-05-17 16:46:35 +02:00
Koen Vlaswinkel
ee2d78fbfc
Add warning when using unsupported CLI version
...
This adds a warning when the user is using an unsupported version of the
CodeQL CLI. The warning is shown once per session, and only if the
version is older than the oldest supported version.
2023-05-17 16:25:06 +02:00
shati-patel
565a7a53e0
Only implement "open file" when you click a file node (not a folder)
2023-05-17 14:43:43 +01:00
Koen Vlaswinkel
0125d10ffb
Take filtered state into account for buttons text
...
When the user filters the repositories, the buttons should reflect that
the results are filtered and that the user is not exporting or copying
all the results. If the user has selected repositories, the buttons
should still say that they are exporting selected results.
2023-05-17 15:08:55 +02:00
Koen Vlaswinkel
fa39bd1c2c
Update export/copy buttons copy when repositories are selected
...
This changes the text of the export/copy buttons on a variant analysis
when at least one repository is selected. This makes it more clear that
the user is only exporting/copying the results of the selected
repositories.
2023-05-17 15:03:28 +02:00
Nora
1955086cb6
Add new command and add it to db panel
2023-05-17 12:11:45 +00:00
Robert
ec1fda21d0
Open query file on click
2023-05-17 12:16:09 +01:00
Robert
baea36561d
Merge pull request #2423 from github/robertbrignull/query-tree-types
...
Simplify types around query panel
2023-05-17 10:39:43 +01:00
Andrew Eisenberg
55b65e33ad
Update changelog
2023-05-16 14:51:03 -07:00
Andrew Eisenberg
276e2cfdcf
Ensure full stack traces are included in log messages
...
Pass in the `fullMessage` to `internalShowAndLog` so that stack traces
aren't truncated.
2023-05-16 14:48:19 -07:00
Andrew Eisenberg
91c58f3618
Update changelog
...
For #2422 .
2023-05-16 12:32:29 -07:00
Robert
1ceccc8b4d
Avoid double-declaring fields that are inherited from TreeItem
2023-05-16 16:57:02 +01:00
Robert
b0371b5075
Simplify types on TreeDataProvider methods
2023-05-16 16:55:52 +01:00
Shati Patel
9ce95a3554
Queries panel: Expand/collapse child nodes ( #2419 )
2023-05-16 15:45:59 +00:00
Andrew Eisenberg
1dc83c5628
Merge pull request #2422 from github/aeisenberg/compare-view-quick-eval
...
Allow compare view to work with quick-eval
2023-05-16 08:41:12 -07:00
Koen Vlaswinkel
d00624cc85
Merge pull request #2420 from github/koesie10/cancel-monitor-on-404
...
Cancel monitoring variant analysis on 404 response
2023-05-16 11:57:26 +02:00
Koen Vlaswinkel
7d41cd7ae6
Rename editor-manual to manual
...
There is a defined list of of valid origin values for the provenance.
This does not include `editor`, so to make sure all values are valid we
use `manual` instead.
See ac1df4de91/java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImpl.qll (L221-L229)
2023-05-16 10:23:21 +02:00
Andrew Eisenberg
4c33c06d55
Allow compare view to work with quick-eval
...
The compare view typically works by matching the results sets of
queries. It only allows the results sets of queries with identical
names to be compared.
Manually run queries use `#select` as the default result set. However,
quick eval queries use a different, generated, name. Therefore, these
two kinds of queries cannot be compared.
This commit changes the heuristics so that if there are no identical;y
named results sets, the first result set of each query that is prefixed
with `#` is used (this is the default result set).
It also makes a slightly nicer error message if there are no comparable
results sets.
2023-05-15 15:51:48 -07:00
Andrew Eisenberg
2d8c6905bf
Merge branch 'main' into simpler-location-url
2023-05-15 10:10:42 -07:00
Koen Vlaswinkel
dc3966e113
Add provenance support to data extensions editor
...
The data extensions editor was always setting the `provenance` field of
MaD to `manual`. This will change the `provenance` to be either
`editor-manual` (for models which were added by the user),
`df-generated` (for models generated by the dataflow generator), and
`df-manual` (for models generated and then edited). This makes it easier
to trace the origin of a model.
2023-05-15 17:05:35 +02:00
Koen Vlaswinkel
2d2a1fb2d1
Add tests for variant analysis monitor
2023-05-15 15:41:15 +02:00
Koen Vlaswinkel
5b9ed39f4f
Restart variant analysis monitor when reauthenticating
2023-05-15 15:08:32 +02:00
Koen Vlaswinkel
9e74ae0bbf
Cancel monitoring variant analysis on 404
2023-05-15 15:08:32 +02:00
Koen Vlaswinkel
927a0f0691
Track currently monitoring variant analyses
2023-05-15 14:50:13 +02:00
Shati Patel
e9552df395
Create a basic tree view for the queries panel ( #2418 )
2023-05-15 11:10:51 +00:00
Koen Vlaswinkel
0f3b36cf87
Resolve queries instead of hardcoding the path
...
This will change the data extensions editor generator to resolve the
queries based on the `modelgenerator` tag. This removes the requirement
of having a `ql` folder in the workspace.
I chose to use the path instead of the `id` for now to avoid having to
resolve the query 4 times. This also avoids the need to map the language
names to the language ID in the tag (i.e. `csharp` -> `cs`).
2023-05-11 15:02:43 +02:00
Alexander Eyers-Taylor
3e6372d6fa
Better error handling for unexpected query server termination. ( #2404 )
...
* Log stdout when servers are terminated with errors.
This logs the last stdout chunk (probabaly the last line) if things
went wrong. This can sometimes be useful for debugging.
It also prints the signal when killed by a signal
(rather than printing null)
* Restart/Abort the queryserver if the process dies.
This cancels any running tasks and gives a limited number of restarts.
* Update extensions/ql-vscode/src/codeql-cli/cli.ts
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
* Update extensions/ql-vscode/src/query-server/query-server-client.ts
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
---------
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2023-05-11 12:39:31 +01:00
Shati Patel
d0ca885e80
Move Discovery class into common folder ( #2414 )
2023-05-10 16:58:26 +00:00
Shati Patel
7fd984a7d0
Add a new blank "queries" panel ( #2412 )
2023-05-10 13:23:43 +01:00
Koen Vlaswinkel
00f4bc1fda
Merge pull request #2411 from github/koesie10/remove-deprecated-url-parse
...
Remove deprecated use of `url.parse`
2023-05-10 11:09:06 +02:00
Koen Vlaswinkel
7dfa6f0f58
Merge pull request #2408 from github/koesie10/replace-deprecated-storage-path
...
Replace deprecated `storagePath` by `storageUri`
2023-05-10 11:08:52 +02:00
Koen Vlaswinkel
8a75399cb7
Merge branch 'main' into koesie10/remove-deprecated-url-parse
2023-05-10 09:30:57 +02:00
Koen Vlaswinkel
6e5188fbbe
Replace Uri.parse by Uri.file
2023-05-10 09:30:53 +02:00
Koen Vlaswinkel
87be402a57
Improve unsupported language error message
2023-05-10 09:30:11 +02:00
Koen Vlaswinkel
ddbe3cdc2b
Add test cases for containsPath
2023-05-09 14:20:15 +02:00
Koen Vlaswinkel
9290f57b62
Use normalized path for checking inclusion
2023-05-09 14:20:15 +02:00
Koen Vlaswinkel
a414213804
Replace deprecated storagePath by storageUri
...
This replaces access to the deprecated `storagePath` and
`globalStoragePath` to use `storageUri` and `globalStorageUri` instead.
2023-05-09 14:20:15 +02:00
Andrew Eisenberg
3ad006de92
Merge pull request #2401 from github/github-action/bump-cli
...
Bump CLI Version to v2.13.1 for integration tests
2023-05-09 03:58:53 -07:00
Shati Patel
e722bf3e0b
Merge branch 'main' into github-action/bump-cli
2023-05-09 11:19:48 +01:00
Koen Vlaswinkel
9e7678de7a
Remove deprecated use of url.parse
...
`url.parse` is deprecated and should be replaced by the WHATWG URL API,
so this makes that change. The `protocol` and `host` properties are
unchanged, so no other changes are needed.
2023-05-09 10:15:58 +02:00
Nora
a4f1f49506
Merge pull request #2409 from github/nora/split-codeql-goto-commands
...
Split codeQL.goto and codeQL.previewQueryHelp command
2023-05-08 17:00:21 +02:00
Nora
6deb04bd26
Split codeQL.previewQueryHelp command
2023-05-08 12:27:12 +00:00
Nora
b6df591329
Split codeQL.goto command
2023-05-08 12:15:07 +00:00
Koen Vlaswinkel
b20a65a3a7
Use QueryLanguage type for representing query languages
...
This will make both the `askForLanguage` and `findLanguage` functions
return a `QueryLanguage` instead of a `string`. This will make it harder
to make mistakes when using these functions.
There are also some other changes with regards to `QueryLanguage` such
that we never need to use `as QueryLanguage` explicitly anymore, except
for the new `isQueryLanguage` function. The only remaining place that I
know of where we're using a `string` to represent the `QueryLanguage`
is in a database item's language, but this is harder to change and may
be relied upon by language authors.
2023-05-08 13:56:11 +02:00
Marcono1234
788eb2b663
Simplify location URLs if start and end line are the same
2023-05-07 19:54:49 +02:00
Andrew Eisenberg
5084b32152
Merge branch 'main' into github-action/bump-cli
2023-05-05 16:07:33 -07:00
Robert
bf9eb2469b
Merge pull request #2370 from github/robertbrignull/undefined_codeflows
...
Avoid crashing when SARIF file contains invalid thread flow locations
2023-05-05 17:43:58 +01:00
Robert
78c4cc17e9
Revert change to generation of blank lines
2023-05-05 17:19:07 +01:00
Andrew Eisenberg
62f44c9f56
Merge pull request #2403 from github/aeisenberg/fix-integration-tests
2023-05-05 07:24:53 -07:00
Andrew Eisenberg
e4a2760470
Run integration tests on 1.77.3
...
This avoids a bug on 1.78.0 on linux. See
https://github.com/github/vscode-codeql/issues/2402
2023-05-05 14:04:32 +00:00
github-actions[bot]
67bd603327
Bump CLI version from v2.13.0 to v2.13.1 for integration tests
2023-05-04 18:10:07 +00:00
Elena Tanasoiu
3a5a81a599
Merge pull request #2359 from github/yer-a-ternary-choice-query
...
Add configuration option to turn off skeleton pack generation
2023-05-04 08:53:17 +01:00
Robert
ecfa701159
Add tests of tryGetFilePath
2023-05-03 17:24:41 +01:00
Robert
a3a6784539
Rename to teyGetFilePath to fit other methods
2023-05-03 17:20:00 +01:00
Elena Tanasoiu
9515e3bdf8
Merge branch 'main' into yer-a-ternary-choice-query
2023-05-03 17:16:50 +01:00
Robert
e097bc13fa
Merge pull request #2400 from github/robertbrignull/test-plan
...
Update the test plan and add non-MRVA cases
2023-05-03 17:12:35 +01:00
Robert
b199d9485d
Merge branch 'main' into robertbrignull/undefined_codeflows
2023-05-03 17:11:31 +01:00
Elena Tanasoiu
cc8f1fd839
Merge branch 'main' into yer-a-ternary-choice-query
2023-05-03 16:08:37 +01:00
Elena Tanasoiu
a85d9d1434
Update comment
2023-05-03 15:07:24 +00:00
Shati Patel
71611e03fe
Add config options for default sorting/filtering values in variant analysis results view ( #2392 )
2023-05-03 14:52:35 +00:00
Robert
ff20bceaa8
Add test cases of non-MRVA areas
2023-05-03 15:21:08 +01:00
Robert
5edbb1e96c
Categorise test cases as mrva / local / general
2023-05-03 14:54:56 +01:00
Robert
bcd58181bf
List pre-release checks in the order you'll want to do them
2023-05-03 14:50:02 +01:00
Robert
0f5df90ee5
Add files via upload
2023-05-03 14:41:55 +01:00
Robert
992d8dd4be
Update MRVA tests in test-plan.md
2023-05-03 14:38:41 +01:00
Elena Tanasoiu
9ecb5035e0
Reduce options to "ask" and "never"
...
And update descriptions for them.
2023-05-03 12:14:23 +00:00
Robert
70a9ee6b1d
Merge pull request #2399 from github/version/bump-to-v1.8.5
...
Bump version to v1.8.5
2023-05-03 12:35:59 +01:00
Robert
c53bebd1ce
Merge pull request #2397 from github/robertbrignull/vscode-node-version
...
Add note about how to find VSCode node version
2023-05-03 12:21:55 +01:00
github-actions[bot]
ba9bfb57d1
Bump version to v1.8.5
2023-05-03 11:09:07 +00:00
Robert
bb4060bcb6
Add note about how to find VSCode node version
2023-05-03 10:38:06 +01:00
Elena Tanasoiu
42320fcb87
Don't try to restore setting
2023-05-03 08:35:40 +00:00
Elena Tanasoiu
530ae689d3
Use strictly type choices for config setting
2023-05-03 07:58:35 +00:00
Elena Tanasoiu
c8b0b1c769
Use parent setting for "Create Query" config
2023-05-03 07:52:37 +00:00
Elena Tanasoiu
62597f1eb5
Remove extra space
2023-05-03 07:49:22 +00:00
Elena Tanasoiu
9c47a2718c
Remove "default" option
...
Since it's not defining a real option, we can get rid of it.
2023-05-03 07:35:49 +00:00
Robert
e8403cf5d2
Reject all file URIs
2023-05-02 17:08:52 +01:00
Robert
5ff5384551
Simplify adding indentation
2023-05-02 16:01:18 +01:00
Elena Tanasoiu
f10185abc8
Write correct value to setting
2023-04-27 15:42:04 +00:00
Elena Tanasoiu
d242117240
Fix comment to list correct options
...
I initially started defining an enum, but I'm not able to import it in package.json,
where the list of options is defined (under `codeQL.createQuery.autogenerateQlPacks`).
2023-04-27 12:35:06 +00:00
Elena Tanasoiu
c71a83b9c7
Correct test descriptions to say ternary instead of binary
2023-04-27 12:35:06 +00:00
Elena Tanasoiu
025ec257a5
Convert autogenerateQlPacks to use enum
2023-04-27 12:35:06 +00:00
Elena Tanasoiu
6034105462
Rename codeQL.autogenerateQlPacks -> codeQL.createQuery.autogenerateQlPacks
2023-04-27 12:35:06 +00:00
Elena Tanasoiu
9aeb520841
Rename SKELETON_WIZARD_FOLDER -> QL_PACK_LOCATION
...
To make it clear what it's supposed to be storing.
2023-04-27 12:35:06 +00:00
Elena Tanasoiu
4e2b26f285
Rename codeQL.createQuery.folder -> codeQL.createQuery.qlPackLocation
2023-04-27 12:35:06 +00:00
Elena Tanasoiu
c877f6cc60
Fix error in skeleton wizard tests
...
We modify both these options in the beforeEach(). We should reset
them in the afterEach().
2023-04-27 12:35:06 +00:00
Elena Tanasoiu
f2601432d3
Remember user's choice to not be prompted again
...
By writing the setting to our new `codeQL.autogenerateQlPacks` setting.
2023-04-27 12:35:04 +00:00
Elena Tanasoiu
8392284cc1
Introduce new dialog box with "No, never ask me again" option
2023-04-27 12:33:51 +00:00
Elena Tanasoiu
ae320d0fef
Set up new config setting for auto generating QL packs
...
In the next commit we will write to this setting when the user chooses
to disable the QL pack generation and prefers to never be asked again
about it.
2023-04-27 12:33:16 +00:00
Elena Tanasoiu
3eef0e9797
Give modal methods their own describe blocks
2023-04-27 12:33:16 +00:00
Robert
72c646c29b
Ignore invalid file paths when parsing sarif
2023-04-25 11:21:56 +01:00
Robert
274cb9a6e8
Handle codeSnippet not being defined in markdown generation
2023-04-25 10:40:33 +01:00
Robert
0394bd5e1e
Make codeSnippet optional
2023-04-25 10:40:10 +01:00
Robert
e31ef662f8
Avoid using "as ThreadFlow" to force the type system
2023-04-24 17:32:21 +01:00