Commit Graph

1514 Commits

Author SHA1 Message Date
Robert
10f4b47019 Remove short-paths.test.ts 2024-06-13 11:03:37 +00:00
Andrew Eisenberg
088d2fa91e Fix failing tests
Also:
- Address comments in PR
- Add changelog note
2024-05-22 23:05:12 +00:00
Robert
673ea13af8 Remove the enableGhecDr flag 2024-05-22 10:42:47 +01:00
Koen Vlaswinkel
1f937ad208 Do not import from config in unit tests 2024-05-13 12:15:27 +02:00
Koen Vlaswinkel
086d8e2104 Update prompts to use GHEC-DR URL 2024-05-13 11:19:31 +02:00
Koen Vlaswinkel
9a14896a4e Use GHE auth provider if GHEC-DR URI is set 2024-05-13 11:19:31 +02:00
Koen Vlaswinkel
871fc0b817 Use GHEC-DR URL in file blob URL 2024-05-13 11:19:31 +02:00
Koen Vlaswinkel
ca092a1623 Use GHEC-DR URL in Actions workflow run URL 2024-05-13 11:19:30 +02:00
Koen Vlaswinkel
529bbe3ffa Handle GHEC-DR repository URLs 2024-05-13 11:19:30 +02:00
Koen Vlaswinkel
31b2d24ca9 Update custom errors to use GHEC-DR URL 2024-05-13 11:19:30 +02:00
Koen Vlaswinkel
0e5b460e67 Upgrade Alpine to 3.19.1 2024-04-30 16:20:19 +02:00
Koen Vlaswinkel
18f12e53c9 Upgrade E2E tests to VS Code v1.88.1 2024-04-30 16:17:51 +02:00
Koen Vlaswinkel
ac8dd9189e Always use the latest released CodeQL version in E2E tests 2024-04-30 16:11:19 +02:00
Koen Vlaswinkel
bd6862efda Fix modeled method FS test 2024-04-30 11:53:15 +02:00
Robert
58de4864c0 Pass VariantAnalysisConfig into DbManager to avoid vscode dependency 2024-04-18 09:55:21 +01:00
Robert
17ff592a60 Hide system defined lists when enterprise URI is set 2024-04-17 14:31:14 +01:00
Robert
1c267e4c28 Merge pull request #3569 from github/robertbrignull/ghec_dr_mode
Detect when the github-enterprise.uri setting is set
2024-04-17 11:06:26 +01:00
Robert
2f67ccea56 Cover all cases of URIs and feature flags 2024-04-17 10:53:17 +01:00
Robert
8abde36dcb Detect when the github-enterprise.uri setting is set 2024-04-16 17:18:49 +01:00
Charis Kyriakou
0df508d1c6 Remove support for CodeQL CLI versions older than 2.14.6 (#3562) 2024-04-16 15:27:32 +01:00
Koen Vlaswinkel
d67cf4b9f7 Remove codeQL.model.showTypeModels config
This removes the `codeQL.model.showTypeModels` setting. We will now
always show type models in the model editor. This also means that the
"auto-generation mode" needs to change to `models` to ensure that the
type models are actually shown to the user. This is done for Ruby, which
is currently the only language to show type models.
2024-04-15 16:52:27 +02:00
Koen Vlaswinkel
8c784d8391 Merge pull request #3543 from github/koesie10/pack-name-config
Add `codeQL.model.packName` setting
2024-04-10 17:03:36 +02:00
Koen Vlaswinkel
3f4ed48787 Trim whitespace and slashes in pack names 2024-04-10 15:08:35 +02:00
Charis Kyriakou
070df13947 Rename vscode-app -> extension-app file to match convention (#3545) 2024-04-08 16:11:22 +01:00
Koen Vlaswinkel
0c5b39945c Merge pull request #3544 from github/koesie10/python-parsing-unit-tests
Add unit tests for Python argument options
2024-04-08 16:36:40 +02:00
Koen Vlaswinkel
8e231d7b1d Add unit tests for Python argument options 2024-04-08 14:49:09 +02:00
Koen Vlaswinkel
bf9bfb13b7 Add codeQL.model.packName setting 2024-04-08 14:42:47 +02:00
Koen Vlaswinkel
4dc126d56d Merge pull request #3539 from github/koesie10/pack-location-config
Add `codeQL.model.packLocation` setting
2024-04-08 14:11:46 +02:00
Charis Kyriakou
6d8de1b3b8 Remove mocking of modeling events (#3542) 2024-04-08 11:19:02 +01:00
Koen Vlaswinkel
5fbd912abd Add codeQL.model.packLocation setting
This adds the `codeQL.model.packLocation` setting, which allows users to
specify the location of the CodeQL extension pack. This setting replaces
the `codeQL.model.extensionsDirectory` setting, which has been removed.

The pack location supports variable substitutions and supports both
absolute and relative paths. The default value is
`.github/codeql/extensions/${name}-${language}` which matches the
previous defaults.
2024-04-05 15:04:29 +02:00
Koen Vlaswinkel
8cb2b34992 Add helper for substituting config variables 2024-04-03 14:42:31 +02:00
Koen Vlaswinkel
ff6f6cdf8a Merge pull request #3515 from github/koesie10/tee-logger-file-handle
Use file handle in TeeLogger
2024-04-02 10:02:41 +02:00
Robert
3cae3ccc3c Merge branch 'main' into robertbrignull/database-prompting 2024-03-28 13:12:00 +00:00
Shati Patel
7a41d9c605 Add unit test for createModeledMethodKey (#3521) 2024-03-28 11:32:34 +00:00
Koen Vlaswinkel
b53b33e3b6 Use file handle in TeeLogger
This switches the `TeeLogger` from using the `appendFile` function to
manually opening and closing a file handle and calling `appendFile` on
the file handle. This results in a more efficient implementation as the
file handle is only opened once and closed once, instead of being
opened and closed for every log message. This should result in less
"too many open files" errors.
2024-03-26 15:58:44 +01:00
Charis Kyriakou
21c33b762c Added filtering and sorting in the model alerts view (#3509) 2024-03-25 17:18:09 +00:00
Charis Kyriakou
6c3b0b5bb1 Move AnalysisAlert mock creation to a factory module (#3493) 2024-03-20 12:03:06 +00:00
Charis Kyriakou
2d1c2349f8 Add 'stop evaluation' action to Model Alerts view (#3487) 2024-03-18 15:41:33 +00:00
Charis Kyriakou
115ff838c5 Add model packs to variant analyses (#3472) 2024-03-14 14:39:30 +00:00
Robert
0454130821 Merge branch 'main' into robertbrignull/remove_withInheritedProgress 2024-03-14 13:24:36 +00:00
Shati Patel
06f9f2c687 Add title to model alerts view (#3465) 2024-03-14 11:46:36 +00:00
Andrew Eisenberg
4cdbdd0d7d Merge pull request #3433 from github/aeisenberg/re-import-test-db
Import testproj databases into workspace storage
2024-03-13 12:34:01 -07:00
Robert
834b6a649e Use jest.MockedFunction 2024-03-13 18:06:44 +00:00
Robert
16b8f848b5 Delete ProgressContext 2024-03-13 17:57:08 +00:00
Koen Vlaswinkel
8bb0085992 Enable forceExit for CLI tests 2024-03-13 10:20:55 +01:00
Andrew Eisenberg
f84f792c5f Merge remote-tracking branch 'upstream/main' into aeisenberg/re-import-test-db 2024-03-12 14:50:50 -07:00
Robert
55b9b2e891 Use mocks instead of spies in tests 2024-03-12 15:44:17 +00:00
Robert
ec42728367 Only construct DatabaseFetcher once in extension.ts 2024-03-12 15:38:27 +00:00
Robert
9fa6d99f09 Have the skeleton query wizard call promptImportGithubDatabase so we can make more methods private 2024-03-12 15:32:44 +00:00
Robert
3ee081e8c6 Move commonly-used field to DatabaseFetcher constructor 2024-03-12 15:32:40 +00:00