Skip to content

Commit 2eb420b

Browse files
authored
Merge branch 'main' into koesie10/react-strict-mode
2 parents 2a0fd46 + 980e27a commit 2eb420b

File tree

62 files changed

+2644
-1588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2644
-1588
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ jobs:
199199
run: echo "cli-versions=$(cat ./extensions/ql-vscode/supported_cli_versions.json | jq -rc)" >> $GITHUB_OUTPUT
200200
outputs:
201201
cli-versions: ${{ steps.set-variables.outputs.cli-versions }}
202+
202203
cli-test:
203204
name: CLI Test
204205
runs-on: ${{ matrix.os }}

.github/workflows/release.yml

Lines changed: 7 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -67,49 +67,19 @@ jobs:
6767

6868
# TODO Run tests, or check that a test run on the same branch succeeded.
6969

70-
- name: Create release
71-
id: create-release
72-
uses: actions/create-release@v1.0.0
73-
env:
74-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75-
with:
76-
tag_name: ${{ github.ref }}
77-
release_name: Release ${{ github.ref }}
78-
# This gives us a chance to manually review the created release before publishing it,
79-
# as well as to test the release workflow by pushing temporary tags.
80-
# Once we have set all required release metadata in this step, we can set this to `false`.
81-
draft: true
82-
prerelease: false
83-
84-
- name: Upload release asset
85-
uses: actions/upload-release-asset@v1.0.1
86-
if: success()
87-
env:
88-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89-
with:
90-
# Get the `upload_url` from the `create-release` step above.
91-
upload_url: ${{ steps.create-release.outputs.upload_url }}
92-
# Get the `vsix_path` and `ref_name` from the `prepare-artifacts` step above.
93-
asset_path: ${{ steps.prepare-artifacts.outputs.vsix_path }}
94-
asset_name: ${{ format('vscode-codeql-{0}.vsix', steps.prepare-artifacts.outputs.ref_name) }}
95-
asset_content_type: application/zip
96-
9770
- name: Create sourcemap ZIP file
9871
run: |
9972
cd dist/vscode-codeql/out
10073
zip -r ../../vscode-codeql-sourcemaps.zip *.map
10174
102-
- name: Upload sourcemap ZIP file
103-
uses: actions/upload-release-asset@v1.0.1
104-
if: success()
75+
- name: Create release
76+
id: create-release
77+
run: |
78+
gh release create ${{ github.ref_name }} --draft --title "Release ${{ github.ref_name }}" \
79+
'${{ steps.prepare-artifacts.outputs.vsix_path }}#${{ format('vscode-codeql-{0}.vsix', steps.prepare-artifacts.outputs.ref_name) }}' \
80+
'dist/vscode-codeql-sourcemaps.zip#${{ format('vscode-codeql-sourcemaps-{0}.zip', steps.prepare-artifacts.outputs.ref_name) }}'
10581
env:
10682
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107-
with:
108-
# Get the `upload_url` from the `create-release` step above.
109-
upload_url: ${{ steps.create-release.outputs.upload_url }}
110-
asset_path: dist/vscode-codeql-sourcemaps.zip
111-
asset_name: ${{ format('vscode-codeql-sourcemaps-{0}.zip', steps.prepare-artifacts.outputs.ref_name) }}
112-
asset_content_type: application/zip
11383

11484
###
11585
# Do Post release work: version bump and changelog PR
@@ -164,10 +134,7 @@ jobs:
164134

165135
- name: Publish to Registry
166136
run: |
167-
npx vsce publish -p $VSCE_TOKEN --packagePath *.vsix || \
168-
echo "Failed to publish to VS Code Marketplace. \
169-
If this was an authentication problem, please make sure the \
170-
auth token hasn't expired."
137+
npx vsce publish -p $VSCE_TOKEN --packagePath *.vsix
171138
172139
open-vsx-publish:
173140
name: Publish to Open VSX Registry

extensions/ql-vscode/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [UNRELEASED]
44

5+
- Restart the CodeQL language server whenever the _CodeQL: Restart Query Server_ command is invoked. This avoids bugs where the CLI version changes to support new language features, but the language server is not updated. [#2238](https://github.com/github/vscode-codeql/pull/2238)
6+
57
## 1.8.1 - 23 March 2023
68

79
- Show data flow paths of a variant analysis in a new tab. [#2172](https://github.com/github/vscode-codeql/pull/2172) & [#2182](https://github.com/github/vscode-codeql/pull/2182)

0 commit comments

Comments
 (0)