Commit Graph

4789 Commits

Author SHA1 Message Date
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
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
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
a678f8b3bc Fix remaining localeCompare without locale set 2023-06-06 10:55:15 +02: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