Aleksey Kladov
aed535fa7a
Use the right arch name for x86 (32 bit)
2020-03-25 10:51:03 +01:00
Aleksey Kladov
be4977da7f
Don't try to enable proposed API's on stable
2020-03-24 09:34:54 +01:00
Aleksey Kladov
4b5435b52b
Make from-source install use cargo installed binary by default
2020-03-20 13:07:12 +01:00
Aleksey Kladov
3d1cb5e20f
Simplify extension tag sniffing
2020-03-19 09:37:03 +01:00
Aleksey Kladov
fb6e655de8
Rewrite auto-update
...
Everything now happens in main.ts, in the bootstrap family of
functions. The current flow is:
* check everything only on extension installation.
* if the user is on nightly channel, try to download the nightly
extension and reload.
* when we install nightly extension, we persist its release id, so
that we can check if the current release is different.
* if server binary was not downloaded by the current version of the
extension, redownload it (we persist the version of ext that
downloaded the server).
2020-03-19 09:04:59 +01:00
Aleksey Kladov
ae662617a2
Separate persistent mutable state from config
...
That way, we clearly see which things are not change, and we also
clearly see which things are persistent.
2020-03-16 22:02:11 +01:00
bors[bot]
200c275c2e
Merge #3534
...
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>
2020-03-16 10:26:31 +00:00
Veetaha
607d017229
vscode-postrefactor: unhandled promise rejections shall not pass 2
2020-03-14 02:01:46 +02:00
Veetaha
028a4aa99f
vscode-postrefactor: unhandled promise rejections shall not pass
2020-03-14 02:01:46 +02:00
Veetaha
1e73811fbe
vscode: amend server installation logic to account for nightlies
2020-03-14 02:01:46 +02:00
Hannes De Valkeneer
e903fd0d97
feat: add debug code lens
...
Refs #3539
2020-03-11 22:26:47 +01:00
Aleksey Kladov
225ef6dea2
Config to switch to semantic tokens
2020-02-26 16:03:30 +01:00
Aleksey Kladov
b12cbd6062
Don't break onEnter if rust-analyzer fails to start
...
closes #3253
2020-02-24 12:32:15 +01:00
Aleksey Kladov
49844ab717
Extract client-side logging
2020-02-22 16:03:47 +01:00
Edwin Cheng
4e48a73f9c
Improve server version info
2020-02-21 18:33:45 +08:00
Veetaha
7379964048
vscode: press ; to respect semicolons
2020-02-17 22:09:44 +02:00
Aleksey Kladov
89afb1a841
Remove two stage constuction
2020-02-17 14:11:01 +01:00
Aleksey Kladov
978bea2b31
Fix link to the manual
2020-02-17 14:04:32 +01:00
Aleksey Kladov
ee4e41cbea
Push IO and error handling up
2020-02-17 14:03:33 +01:00
Aleksey Kladov
d24e612106
Simplify startup
2020-02-17 13:40:47 +01:00
Aleksey Kladov
dcdbbddd16
Simplify TS reload logic
...
Fixes #3164
2020-02-17 13:40:47 +01:00
Mikhail Modin
f8f454ab5c
Init implementation of structural search replace
2020-02-14 21:45:42 +00:00
Veetaha
b89b22e43e
vscode: yet another refactor commit
2020-02-05 00:13:46 +02:00
Gregoire Geis
b70ad7e5f3
Remove enableEnhancedTyping and type overriding infrastructure.
2020-02-03 20:24:50 +01:00
Gregoire Geis
23ef22dd48
Add regular onEnter command, allowing onEnter to be called without overriding the type command.
2020-02-03 20:18:10 +01:00
Veetaha
4bf5f59560
vscode: fix type
2020-02-02 21:38:49 +02:00
Veetaha
8184752470
vscode refactoring: use more laconic export snytax, split huge string to several lines
2020-02-02 21:37:22 +02:00
Kirill Bulatov
78a21253b4
Apply the api design suggestions
2020-01-15 20:17:17 +02:00
Aleksey Kladov
ef24721640
Fixes to progress display
2019-12-31 21:13:30 +01:00
Aleksey Kladov
6368b40dd9
Work around synchrnonisation issue
2019-12-31 18:38:22 +01:00
Aleksey Kladov
087af54069
Refactor server lifecycle
2019-12-31 18:32:17 +01:00
Aleksey Kladov
433000be34
Move config to Ctx
2019-12-31 17:28:01 +01:00
Aleksey Kladov
e4b588868f
Refactor status activation
2019-12-31 17:22:43 +01:00
Aleksey Kladov
68b7d84974
Restore internal applySourceChange command
2019-12-30 23:46:13 +01:00
Aleksey Kladov
233f1dd2a8
Privatize highlighting
2019-12-30 23:17:56 +01:00
Aleksey Kladov
efbbc903e6
Add config to Ctx
2019-12-30 21:32:04 +01:00
Aleksey Kladov
7646dc046e
Encapsulate highlighting activation
2019-12-30 21:32:04 +01:00
Aleksey Kladov
9ead314005
Encapsulate inlay hints activation
2019-12-30 20:24:30 +01:00
Aleksey Kladov
6cc55e4c5c
status is not a command
2019-12-30 20:16:07 +01:00
Aleksey Kladov
7b199f6a4b
Hints are not commands
2019-12-30 20:10:40 +01:00
Aleksey Kladov
3d008a78d0
Move all commands to ctx
2019-12-30 20:07:04 +01:00
Aleksey Kladov
6b118c9b8d
Refactor runables
2019-12-30 19:58:44 +01:00
Aleksey Kladov
94be27fc44
Move expand macro to the new context
2019-12-30 19:31:07 +01:00
Aleksey Kladov
ca5c59507f
Refactor show syntax tree action
2019-12-30 19:07:59 +01:00
Aleksey Kladov
9bfeac708d
Move parentModule to the new Ctx
2019-12-30 19:07:59 +01:00
Aleksey Kladov
5aebf1081d
Refactor applySourceChange
2019-12-30 19:07:59 +01:00
Aleksey Kladov
83d2527880
Move joinLines to the new Ctx
2019-12-30 19:07:59 +01:00
Aleksey Kladov
5dd9edaeaf
Move matching brace to new Ctx
2019-12-30 15:23:55 +01:00
Aleksey Kladov
57df9bed70
Run prettier
2019-12-30 15:11:30 +01:00
Aleksey Kladov
29e86c0c72
More second command to Ctx
2019-12-30 14:53:43 +01:00