You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+32-7Lines changed: 32 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,9 @@ Here are a few things you can do that will increase the likelihood of your pull
29
29
30
30
## Setting up a local build
31
31
32
-
Make sure you have installed recent versions of vscode (>= v1.52), node (>=12.16), and npm (>= 7.5.2). Earlier versions will probably work, but we no longer test against them.
32
+
Make sure you have installed recent versions of vscode, node, and npm. Check the `engines` block in [`package.json`](https://github.com/github/vscode-codeql/blob/main/extensions/ql-vscode/package.json) file for compatible versions. Earlier versions may work, but we no longer test against them.
33
+
34
+
To automatically switch to the correct version of node, we recommend using [nvm](https://github.com/nvm-sh/nvm), which will pick-up the node version from `.nvmrc`.
33
35
34
36
### Installing all packages
35
37
@@ -56,8 +58,6 @@ We recommend that you keep `npm run watch` running in the backgound and you only
56
58
57
59
1. on first checkout
58
60
2. whenever any of the non-TypeScript resources have changed
59
-
3. on any change to files included in one of the webviews
60
-
-**Important**: This is easy to forget. You must explicitly run `npm run build` whenever one of the files in the webview is changed. These are the files in the `src/view` and `src/compare/view` folders.
61
61
62
62
### Installing the extension
63
63
@@ -95,31 +95,56 @@ Running from a terminal, you _must_ set the `TEST_CODEQL_PATH` variable to point
95
95
96
96
### Running the integration tests
97
97
98
-
The _Launch Integration Tests - With CLI_ tests require a CLI instance in order to run. There are several environment variables you can use to configure this.
98
+
You will need to run CLI tests using a task from inside of VS Code called _Launch Integration Tests - With CLI_.
99
+
100
+
The CLI integration tests require the CodeQL standard libraries in order to run so you will need to clone a local copy of the `github/codeql` repository.
99
101
100
-
From inside of VSCode, open the `launch.json` file and in the _Launch Integration Tests - With CLI_ uncomment and change the environment variables appropriate for your purpose.
102
+
From inside of VSCode, open the `launch.json` file and in the _Launch Integration Tests - With CLI_task, uncomment the `"${workspaceRoot}/../codeql"` line. If necessary, replace value with a path to your checkout, and then run the task.
101
103
102
104
## Releasing (write access required)
103
105
104
106
1. Double-check the `CHANGELOG.md` contains all desired change comments and has the version to be released with date at the top.
105
107
* Go through all recent PRs and make sure they are properly accounted for.
106
108
* Make sure all changelog entries have links back to their PR(s) if appropriate.
109
+
1. Double-check that the node version we're using matches the one used for VS Code. If it doesn't, you will then need to update the node version in the following files:
110
+
*`.nvmrc` - this will enable `nvm` to automatically switch to the correct node version when you're in the project folder
111
+
*`.github/workflows/main.yml` - all the "node-version: <version>" settings
112
+
*`.github/workflows/release.yml` - the "node-version: <version>" setting
107
113
1. Double-check that the extension `package.json` and `package-lock.json` have the version you intend to release. If you are doing a patch release (as opposed to minor or major version) this should already be correct.
108
114
1. Create a PR for this release:
109
115
* This PR will contain any missing bits from steps 1 and 2. Most of the time, this will just be updating `CHANGELOG.md` with today's date.
110
116
* Create a new branch for the release named after the new version. For example: `v1.3.6`
111
117
* Create a new commit with a message the same as the branch name.
112
118
* Create a PR for this branch.
113
119
* Wait for the PR to be merged into `main`
114
-
1. Trigger a release build on Actions by adding a new tag on branch `main` named after the release, as above. Note that when you push to upstream, you will need to fully qualify the ref. A command like this will work:
120
+
1. Switch to `main` and add a new tag on the `main` branch with your new version (named after the release), e.g.
121
+
```bash
122
+
git checkout main
123
+
git tag v1.3.6
124
+
```
125
+
126
+
If you've accidentally created a badly named tag, you can delete it via
127
+
```bash
128
+
git tag -d badly-named-tag
129
+
```
130
+
1. Push the new tag up:
131
+
132
+
a. If you're using a fork of the repo:
115
133
116
134
```bash
117
135
git push upstream refs/tags/v1.3.6
118
136
```
137
+
138
+
b. If you're working straight in this repo:
139
+
140
+
```bash
141
+
git push origin refs/tags/v1.3.6
142
+
```
143
+
144
+
This will trigger [a release build](https://github.com/github/vscode-codeql/releases) on Actions.
119
145
120
146
* **IMPORTANT** Make sure you are on the `main` branch and your local checkout is fully updated when you add the tag.
121
147
* If you accidentally add the tag to the wrong ref, you can just force push it to the right one later.
122
-
123
148
1. Monitor the status of the release build in the `Release` workflow in the Actions tab.
124
149
1. Download the VSIX from the draft GitHub release at the top of [the releases page](https://github.com/github/vscode-codeql/releases) that is created when the release build finishes.
125
150
1. Unzip the `.vsix` and inspect its `package.json` to make sure the version is what you expect,
Copy file name to clipboardExpand all lines: extensions/ql-vscode/CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,25 @@
2
2
3
3
## [UNRELEASED]
4
4
5
+
## 1.6.9 - 20 July 2022
6
+
7
+
No user facing changes.
8
+
9
+
## 1.6.8 - 29 June 2022
10
+
11
+
- Fix a bug where quick queries cannot be compiled if the core libraries are not in the workspace. [#1411](https://github.com/github/vscode-codeql/pull/1411)
12
+
- Fix a bug where quick evaluation of library files would display an error message when using CodeQL CLI v2.10.0. [#1412](https://github.com/github/vscode-codeql/pull/1412)
13
+
14
+
## 1.6.7 - 15 June 2022
15
+
16
+
- Prints end-of-query evaluator log summaries to the Query Log. [#1349](https://github.com/github/vscode-codeql/pull/1349)
17
+
- Be consistent about casing in Query History menu. [#1369](https://github.com/github/vscode-codeql/pull/1369)
18
+
- Fix quoting string columns in exported CSV results. [#1379](https://github.com/github/vscode-codeql/pull/1379)
19
+
20
+
## 1.6.6 - 17 May 2022
21
+
22
+
No user facing changes.
23
+
5
24
## 1.6.5 - 25 April 2022
6
25
7
26
- Re-enable publishing to open-vsx. [#1285](https://github.com/github/vscode-codeql/pull/1285)
0 commit comments