Vladimir Serov
f7cf3b5503
editors/code: fix crash due to missing ID= field
...
Assuming ID=linux in isNixOs by default. You can get away with
default "", but why do that if there's a default value in spec?)
Also removed toLowerCase — it really shouldn't be needed.
Fixes #11709
2022-03-15 07:11:24 +03:00
Vladimir Serov
ce4b61003d
editors/code: fix nixos detection
...
Problem: NixOS started using quotes around it's id field in /etc/os-release
Solution: Parially parsing os-release, and detecting, whether `nixos` appears anywhere in "ID=" field\
See https://github.com/rust-analyzer/rust-analyzer/issues/11695
Closes #11695
2022-03-13 00:38:41 +03:00
Laurențiu Nicola
0182f74516
Fix server path on NixOS
2021-12-30 14:50:54 +02:00
Laurențiu Nicola
af2bbce8d9
Spelling fix
2021-12-23 14:04:46 +02:00
Laurențiu Nicola
5bed9d6188
Simplify conflict check
2021-12-23 14:04:15 +02:00
Laurențiu Nicola
f872419847
Drop kalitaalexey.vscode-rust check
2021-12-23 14:04:15 +02:00
Laurențiu Nicola
c0d0ceefb2
Don't check for platform details
2021-12-23 14:04:15 +02:00
Laurențiu Nicola
8b304a72f6
Remove ETXTBUSY check, we don't overwrite binaries
2021-12-23 13:10:50 +02:00
Laurențiu Nicola
3835b3790e
Improve NixOS handling
2021-12-23 13:10:50 +02:00
Laurențiu Nicola
e97569c998
Drop extensionUri copy
2021-12-23 09:36:55 +02:00
Laurențiu Nicola
d5b4aa3037
Remove server download and update checks
2021-12-23 08:24:58 +02:00
Laurențiu Nicola
9c74f646f4
Publish platform-specific Code VSIXes
2021-12-18 22:49:11 +02:00
Laurențiu Nicola
262a698875
Prepare Code extension for bundling
2021-12-18 17:44:16 +02:00
Jonas Schievink
deb5c1426d
internal: add "Shuffle Crate Graph" command
2021-12-07 16:37:19 +01:00
Laurențiu Nicola
7d815b862f
Refactor proxy settings
2021-11-28 10:54:35 +02:00
Laurențiu Nicola
2f5149886d
Respect http.proxyStrictSSL
2021-11-27 07:29:44 +02:00
bors[bot]
c88277f676
Merge #10421
...
10421: minor: Bump npm non-dev deps r=lnicola a=lnicola
Fixes #10407
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-10-02 16:43:24 +00:00
Laurențiu Nicola
502fa1755a
Remove temporary file on exception
2021-10-02 10:07:50 +03:00
Laurențiu Nicola
2c7b50217e
Overwrite file when running patchelf
2021-10-02 10:05:39 +03:00
Laurențiu Nicola
aa88d7e0d6
Bump npm non-dev deps
2021-10-02 07:38:44 +03:00
hamidreza kalbasi
0dbaf64b12
add vscode native onEnterRules
2021-09-28 20:23:25 +03:30
Ryan Levick
ac50e35325
Give better error message when the rust-analyzer binar path was set in the user's config but the binary is invalid
2021-08-03 14:03:49 +02:00
Jonas Schievink
5f13fb9db9
Add "View Crate Graph (Full)"
2021-07-02 00:10:33 +02:00
wxb1ank
a6b0c056de
Use .then()
for Thenable
2021-06-15 14:03:34 -04:00
wxb1ank
56e128a979
fix: clean-up #8951
2021-06-15 13:29:02 -04:00
wxb1ank
0448b73646
migrate from fs
to vscode.FileSystem
API
2021-06-02 12:11:32 -04:00
wxb1ank
3ca7f61a8d
internal: use vscode.FileSystem API in main.ts
2021-06-02 12:07:13 -04:00
Kirill Bulatov
60e7817e9c
Fix opening single files
2021-05-31 21:37:08 +03:00
Kirill Bulatov
a05163db14
Create tasks for all workspaces
2021-05-26 01:11:52 +03:00
Kirill Bulatov
c1f6a5a0b0
Fix ts lint errors
2021-05-23 23:47:58 +03:00
Kirill Bulatov
b3383b0661
Send detached files info to server via init params
2021-05-23 22:46:20 +03:00
Kirill Bulatov
d9a5490646
Start rust-analyzer server for arbitrary rust files
2021-05-23 22:46:20 +03:00
Kirill Bulatov
daedcc2b77
More style fixes
2021-05-23 13:57:04 +03:00
Kirill Bulatov
223dbd2187
Style fix
2021-05-23 13:43:06 +03:00
Kirill Bulatov
230ed3304a
Better releaseId naming
2021-05-23 11:51:35 +03:00
Kirill Bulatov
be3e997ddf
Remove nightly release id from local storage for stable extensions
2021-05-23 11:49:34 +03:00
Kirill Bulatov
b8635a8e60
Download nightly extension when configured and run from stable extension version
2021-05-23 11:28:06 +03:00
Jonas Schievink
271ec6b990
Add a "Debug ItemTree" LSP request
2021-05-21 23:59:52 +02:00
Jonas Schievink
a85a2c4d15
Allow viewing the crate graph in a webview
2021-05-11 16:15:31 +02:00
ivan770
7d60458495
Item up and down movers
2021-03-18 11:22:27 +02:00
bors[bot]
7accf6bc37
Merge #7799
...
7799: Related tests r=matklad a=vsrs
![tests](https://user-images.githubusercontent.com/62505555/109397453-a9013680-7947-11eb-8b11-ac03079f7645.gif )
This adds an ability to look for tests for the item under the cursor: function, constant, data type, etc
The LSP part is bound to change. But the feature itself already works and I'm looking for a feedback :)
Co-authored-by: vsrs <vit@conrlab.com>
2021-03-13 13:50:35 +00:00
Kam Y. Tse
77b7c96aea
Make extension respect http proxy settings
2021-03-07 18:21:48 +08:00
vsrs
669e117644
Add LSP request and VSCode command
2021-02-27 20:04:43 +03:00
Laurențiu Nicola
23a8fc5284
Try to detect musl distros in the Code extension
2021-02-20 18:44:28 +02:00
Yaroslav Bolyukin
471795b019
fix: tolerate spaces in nix binary patching
...
If path to original file contains space (I.e on code insiders, where
default data directory is ~/Code - Insiders/), then there is syntax
error evaluating src arg.
Instead pass path as str, and coerce to path back in nix expression
Signed-off-by: Yaroslav Bolyukin <iam@lach.pw>
2021-02-13 23:11:00 +03:00
bors[bot]
82a1b91f20
Merge #7625
...
7625: Add **Copy Run Command Line** command for vscode r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-02-10 11:38:56 +00:00
Aleksey Kladov
97166e2ad9
Add **Copy Run Command Line** command for vscode
...
This is useful when you want to, e.g., run a specific test in a terminal
with `--release`.
2021-02-10 14:37:27 +03:00
Sahandevs
91dd61b9a6
use await instead
2021-02-09 17:42:46 +03:30
Sahandevs
3a0234d60f
format
2021-02-07 21:59:06 +03:30
Sahandevs
1bb4e973ff
handle Thenable type rejects
2021-02-07 21:52:32 +03:30