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
3534: Feature: vscode impl nightlies download and installation r=Veetaha a=Veetaha
I need to test things more, but the core shape of the code is quite well-formed.
The main problem is that we save the release date only for nightlies and there are no means to get the release date of the stable extension (i.e. for this we would need to consult the github releases via a network request, or we would need to somehow save this info into package.json or any other file accessible from the extension code during the deployment step, but this will be very hard I guess).
So there is an invariant that the users can install nightly only from our extension and they can't do it manually, because when installing the nightly `.vsix` we actually save its release date to `globalState`
Closes: #3402
TODO:
- [x] More manual tests and documentation
cc @matklad@lnicola
Co-authored-by: Veetaha <gerzoh1@gmail.com>
Co-authored-by: Veetaha <veetaha2@gmail.com>
Copy file name to clipboardExpand all lines: docs/user/readme.adoc
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,25 @@ Note that we only support the latest version of VS Code.
65
65
66
66
The extension will be updated automatically as new versions become available. It will ask your permission to download the matching language server version binary if needed.
67
67
68
+
===== Nightly
69
+
70
+
We ship nightly releases for VS Code. To help us out with testing the newest code and follow the bleeding edge of our `master`, please use the following config:
71
+
72
+
[source,json]
73
+
----
74
+
{ "rust-analyzer.updates.channel": "nightly" }
75
+
----
76
+
77
+
You will be prompted to install the `nightly` extension version. Just click `Download now` and from that moment you will get automatic updates each 24 hours.
78
+
79
+
If you don't want to be asked for `Download now` every day when the new nightly version is released add the following to your `settings.json`:
"`\"stable\"` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general",
231
+
"`\"nightly\"` updates are shipped daily, they contain cutting-edge features and latest bug fixes. These releases help us get your feedback very quickly and speed up rust-analyzer development **drastically**"
232
+
],
233
+
"markdownDescription": "Choose `\"nightly\"` updates to get the latest features and bug fixes every day. While `\"stable\"` releases occur weekly and don't contain cutting-edge features from VSCode proposed APIs"
234
+
},
222
235
"rust-analyzer.updates.askBeforeDownload": {
223
236
"type": "boolean",
224
237
"default": true,
@@ -235,7 +248,7 @@
235
248
"string"
236
249
],
237
250
"default": null,
238
-
"description": "Path to rust-analyzer executable (points to bundled binary by default)"
251
+
"description": "Path to rust-analyzer executable (points to bundled binary by default). If this is set, then \"rust-analyzer.updates.channel\" setting is not used"
0 commit comments