]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoMerge #4614
bors[bot] [Mon, 25 May 2020 17:47:11 +0000 (17:47 +0000)]
Merge #4614

4614: Fix some clippy perf warnings r=kjeremy a=kjeremy

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
4 years agoFix some clippy perf warnings
Jeremy Kolb [Mon, 25 May 2020 17:35:52 +0000 (13:35 -0400)]
Fix some clippy perf warnings

4 years agoFix conflict between nightly branch and tag
Aleksey Kladov [Mon, 25 May 2020 14:31:19 +0000 (16:31 +0200)]
Fix conflict between nightly branch and tag

4 years agoMerge pull request #4612 from matklad/fix-tag
Aleksey Kladov [Mon, 25 May 2020 14:29:24 +0000 (16:29 +0200)]
Merge pull request #4612 from matklad/fix-tag

Try fixing release tags

4 years agoTry fixing release tags
Aleksey Kladov [Mon, 25 May 2020 14:26:01 +0000 (16:26 +0200)]
Try fixing release tags

closes #4319

4 years agoMerge #4602 #4603
bors[bot] [Mon, 25 May 2020 14:08:21 +0000 (14:08 +0000)]
Merge #4602 #4603

4602: Add boolean literal semantic token type to package.json r=matklad a=lnicola

Closes #4583.

CC @GrayJack

4603: Add self keyword semantic token type r=matklad a=lnicola

Not sure if this is warranted a new token type or just a modifier.

---

CC #4583, @GrayJack

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoMerge #4611
bors[bot] [Mon, 25 May 2020 14:00:24 +0000 (14:00 +0000)]
Merge #4611

4611: Document `parentModule` experimental LSP request r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoDocument `parentModule` experimental LSP request
Aleksey Kladov [Mon, 25 May 2020 13:55:25 +0000 (15:55 +0200)]
Document `parentModule` experimental LSP request

4 years agoMerge #4610
bors[bot] [Mon, 25 May 2020 12:58:50 +0000 (12:58 +0000)]
Merge #4610

4610: Cleanup lsp extensions on the client side r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoCleanup lsp extensions on the client side
Aleksey Kladov [Mon, 25 May 2020 12:56:26 +0000 (14:56 +0200)]
Cleanup lsp extensions on the client side

4 years agoMerge #4607
bors[bot] [Mon, 25 May 2020 12:29:47 +0000 (12:29 +0000)]
Merge #4607

4607: Less rust-analyzer specific onEnter r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoLess rust-analyzer specific onEnter
Aleksey Kladov [Mon, 25 May 2020 12:12:53 +0000 (14:12 +0200)]
Less rust-analyzer specific onEnter

4 years agoMerge #4605
bors[bot] [Mon, 25 May 2020 10:17:40 +0000 (10:17 +0000)]
Merge #4605

4605: Reorganize TypeScript r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFlatten commands.ts
Aleksey Kladov [Mon, 25 May 2020 10:02:30 +0000 (12:02 +0200)]
Flatten commands.ts

4 years agoFlatten simple commands
Aleksey Kladov [Mon, 25 May 2020 09:10:31 +0000 (11:10 +0200)]
Flatten simple commands

4 years agoAdd self keyword semantic token type
Laurențiu Nicola [Mon, 25 May 2020 08:51:56 +0000 (11:51 +0300)]
Add self keyword semantic token type

4 years agoRemove dead code
Aleksey Kladov [Mon, 25 May 2020 08:59:54 +0000 (10:59 +0200)]
Remove dead code

4 years agoAdd boolean literals to package.json
Laurențiu Nicola [Mon, 25 May 2020 08:39:56 +0000 (11:39 +0300)]
Add boolean literals to package.json

4 years agoMerge #4601
bors[bot] [Mon, 25 May 2020 07:14:43 +0000 (07:14 +0000)]
Merge #4601

4601: Introduce `toggle inlay hints` vscode command r=matklad a=Veetaha

Users now can assign a shortcut for this command
via the general vscode
keybindings ui or `keybindings.json` file

<details>
<summary>Demo</summary>

![demo](https://user-images.githubusercontent.com/36276403/82768941-b4fd1c80-9e3a-11ea-9d5b-a40fa1e4dbc6.gif)

</details>

<details>
<summary>Howto assign a shortcut</summary>

![demo2](https://user-images.githubusercontent.com/36276403/82769350-c8a98280-9e3c-11ea-8a95-1266a539826d.gif)

</details>

Closes: #4599
Co-authored-by: veetaha <veetaha2@gmail.com>
4 years agoIntroduce `toggle inlay hints` vscode command
veetaha [Mon, 25 May 2020 00:47:33 +0000 (03:47 +0300)]
Introduce `toggle inlay hints` vscode command

Users now can assign a shortcut for this command
via the general vscode
keybindings ui or `keybinding.json file`

Closes: #4599
4 years agoMerge #4593
bors[bot] [Sun, 24 May 2020 15:05:20 +0000 (15:05 +0000)]
Merge #4593

4593: Document some rust-analyzer specific protocol extensions r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFix formatting
Aleksey Kladov [Sun, 24 May 2020 15:04:17 +0000 (17:04 +0200)]
Fix formatting

4 years agoDocument some rust-analyzer specific protocol extensions
Aleksey Kladov [Sun, 24 May 2020 15:01:40 +0000 (17:01 +0200)]
Document some rust-analyzer specific protocol extensions

4 years agoDocument matchingBrace LSP request
Aleksey Kladov [Sun, 24 May 2020 14:18:46 +0000 (16:18 +0200)]
Document matchingBrace LSP request

4 years agoMerge #4556
bors[bot] [Sun, 24 May 2020 14:20:22 +0000 (14:20 +0000)]
Merge #4556

4556: More highlighting improvements r=matthewjasper a=matthewjasper

* Separate `true` and `false` from keywords (this matches the Textmate grammar).
* Handle more cases in `highlight_name_by_syntax`.

Co-authored-by: Matthew Jasper <mjjasper1@gmail.com>
4 years agoHandle more cases in `highlight_name_by_syntax`
Matthew Jasper [Thu, 21 May 2020 16:44:45 +0000 (17:44 +0100)]
Handle more cases in `highlight_name_by_syntax`

4 years agoHighlight `true` and `false` as literals
Matthew Jasper [Thu, 21 May 2020 16:40:52 +0000 (17:40 +0100)]
Highlight `true` and `false` as literals

4 years agoFix bors config?
Aleksey Kladov [Sun, 24 May 2020 14:07:46 +0000 (16:07 +0200)]
Fix bors config?

4 years agoMerge pull request #4574 from lnicola/bump-deps
Aleksey Kladov [Sun, 24 May 2020 14:05:41 +0000 (16:05 +0200)]
Merge pull request #4574 from lnicola/bump-deps

Bump some dependencies

4 years agoReorgonise extensions docs
Aleksey Kladov [Sun, 24 May 2020 13:49:32 +0000 (15:49 +0200)]
Reorgonise extensions docs

4 years agoFix tests
Aleksey Kladov [Sun, 24 May 2020 13:47:05 +0000 (15:47 +0200)]
Fix tests

4 years agoFix Cargo.lock
Aleksey Kladov [Sun, 24 May 2020 13:42:11 +0000 (15:42 +0200)]
Fix Cargo.lock

4 years agoMerge pull request #4548 from bnjjj/fix_4464
Aleksey Kladov [Sun, 24 May 2020 13:34:35 +0000 (15:34 +0200)]
Merge pull request #4548 from bnjjj/fix_4464

add support of feature flag for runnables

4 years agoMerge pull request #4495 from vsrs/fixture_meta
Aleksey Kladov [Sun, 24 May 2020 13:32:52 +0000 (15:32 +0200)]
Merge pull request #4495 from vsrs/fixture_meta

Test fixtures parsing improvements

4 years agoMerge pull request #4474 from georgewfraser/color_attrs
Aleksey Kladov [Sun, 24 May 2020 13:32:31 +0000 (15:32 +0200)]
Merge pull request #4474 from georgewfraser/color_attrs

Color attribute functions

4 years agoBump more crates
Laurențiu Nicola [Sun, 24 May 2020 10:41:46 +0000 (13:41 +0300)]
Bump more crates

4 years agoBump more npm deps
Laurențiu Nicola [Fri, 22 May 2020 18:34:53 +0000 (21:34 +0300)]
Bump more npm deps

4 years agoBump some npm deps
Laurențiu Nicola [Fri, 22 May 2020 18:20:59 +0000 (21:20 +0300)]
Bump some npm deps

4 years agoBump rustc_lexer
Laurențiu Nicola [Fri, 22 May 2020 18:16:06 +0000 (21:16 +0300)]
Bump rustc_lexer

4 years agoMerge pull request #4590 from Julian-Wollersberger/update_unescape
Aleksey Kladov [Sun, 24 May 2020 13:27:58 +0000 (15:27 +0200)]
Merge pull request #4590 from Julian-Wollersberger/update_unescape

Update to rustc_lexer version 660

4 years agoadd support of feature flag for runnables #4464
Benjamin Coenen [Sun, 24 May 2020 11:34:34 +0000 (13:34 +0200)]
add support of feature flag for runnables #4464

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
4 years agoSome FIXMEs were outdated:
Julian Wollersberger [Sun, 24 May 2020 11:17:16 +0000 (13:17 +0200)]
Some FIXMEs were outdated:
* Done at line 243: "Add validation of `crate` keyword not appearing in the middle of the symbol path"
* Already happened: "Remove validation of unterminated literals (it is already implemented in `tokenize()`)"
* Happens in `unescape()`: "Add validation of character literal containing only a single char"
* Missing: "raw string literals and raw byte string literals"

4 years agoUpdate to rustc_lexer version 660.
Julian Wollersberger [Sun, 24 May 2020 11:12:16 +0000 (13:12 +0200)]
Update to rustc_lexer version 660.
Change `unescape_*()` to `unescape_literal()`.

4 years agoadd support of feature flag for runnables #4464
Benjamin Coenen [Sat, 23 May 2020 18:59:18 +0000 (20:59 +0200)]
add support of feature flag for runnables #4464

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
4 years agoMerge pull request #4538 from vsrs/vscode_tests
Aleksey Kladov [Sat, 23 May 2020 14:39:04 +0000 (16:39 +0200)]
Merge pull request #4538 from vsrs/vscode_tests

vscode client side tests

4 years agovscode tests configuration for more verbose output
vsrs [Sat, 23 May 2020 14:07:25 +0000 (17:07 +0300)]
vscode tests configuration for more verbose output

4 years agoOS matrix for TypeScript
vsrs [Sat, 23 May 2020 13:39:30 +0000 (16:39 +0300)]
OS matrix for TypeScript

4 years agoxvfb-action fix
vsrs [Sat, 23 May 2020 13:24:21 +0000 (16:24 +0300)]
xvfb-action fix

4 years agoTry GabrielBB/xvfb to run vscode tests
vsrs [Sat, 23 May 2020 13:13:47 +0000 (16:13 +0300)]
Try GabrielBB/xvfb to run vscode tests

4 years agoStart xvfb manually on ubuntu
vsrs [Sat, 23 May 2020 13:04:14 +0000 (16:04 +0300)]
Start xvfb manually on ubuntu

4 years agotry to run TypeScript CI on windows
vsrs [Sat, 23 May 2020 12:37:07 +0000 (15:37 +0300)]
try to run TypeScript CI on windows

4 years agoAdd `npm test` to CI
vsrs [Sat, 23 May 2020 12:20:46 +0000 (15:20 +0300)]
Add `npm test` to CI

4 years agoMerge #4555 #4575
bors[bot] [Sat, 23 May 2020 11:32:26 +0000 (11:32 +0000)]
Merge #4555 #4575

4555: VSCode: added patchelf after download for NixOS support r=matklad a=cab404

This adds Nix support, and fixes #4542

4575: Use Chalk's built-in representations for fn items and pointers r=matklad a=flodiebold

The `TypeName::FnDef` was just added; the function pointer variant has existed for a while, I just forgot about it because it's special (because fn pointers can be higher-ranked over lifetimes).

We *could* also make `FnPtr` a separate `Ty` variant instead of a `TypeCtor` variant, which would make the conversion code a bit less special-casey, but it doesn't seem worth doing right now.

Co-authored-by: Vladimir Serov <me@cab404.ru>
Co-authored-by: Cabia Rangris <me@cab404.ru>
Co-authored-by: Florian Diebold <florian.diebold@freiheit.com>
4 years agoMerge #4578
bors[bot] [Sat, 23 May 2020 11:24:28 +0000 (11:24 +0000)]
Merge #4578

4578: Remove unnecessary clone that prevented clippy from moving on r=matklad a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agoMerge #4559
bors[bot] [Sat, 23 May 2020 11:09:24 +0000 (11:09 +0000)]
Merge #4559

4559: Module name on hover shows another newline after it r=matklad a=Arthamys

This changes the display of hover information to add a newline between the module path of the item and the signature of the item, as suggested in #3813

**Before**

![before_3813](https://user-images.githubusercontent.com/11710698/82609224-5d517d80-9bbc-11ea-9a08-0a1558409c6b.png)

**After**

![after_3813](https://user-images.githubusercontent.com/11710698/82609208-562a6f80-9bbc-11ea-8cb6-4430269c5800.png)

Co-authored-by: Galilée 'Bill' Enguehard <galilee.enguehard@gmail.com>
4 years agoFix resolve_proc_macro heavy test
Galilée 'Bill' Enguehard [Sat, 23 May 2020 06:59:51 +0000 (08:59 +0200)]
Fix resolve_proc_macro heavy test

4 years agoAnd a few drive-bys
kjeremy [Fri, 22 May 2020 21:26:31 +0000 (17:26 -0400)]
And a few drive-bys

4 years agoRemove unnecessary clone that prevented clippy from moving on
kjeremy [Fri, 22 May 2020 21:13:14 +0000 (17:13 -0400)]
Remove unnecessary clone that prevented clippy from moving on

4 years agoUse Chalk's Ty::Function for function pointer types
Florian Diebold [Fri, 22 May 2020 17:13:17 +0000 (19:13 +0200)]
Use Chalk's Ty::Function for function pointer types

Function pointers can be 'higher-ranked' over lifetimes, which is why they're
not an application type in Chalk, but since we don't model lifetimes it doesn't
matter for us yet.

4 years agoUse Chalk's built-in representation of function item types
Florian Diebold [Fri, 22 May 2020 16:15:53 +0000 (18:15 +0200)]
Use Chalk's built-in representation of function item types

4 years agoMerge #4573
bors[bot] [Fri, 22 May 2020 18:16:28 +0000 (18:16 +0000)]
Merge #4573

4573: Chalk cleanups r=matklad a=flodiebold

 - split off the `Interner` impl and the conversion code into their own modules
 - use `TypeCtorId` as `AdtId` directly (instead of raw `InternId`s), and rename the type alias `StructId` -> `AdtId`
 - provide missing Chalk debug impls

Co-authored-by: Florian Diebold <florian.diebold@freiheit.com>
4 years agoUpdate tests to accept new hover formatting
Galilée 'Bill' Enguehard [Fri, 22 May 2020 18:11:24 +0000 (20:11 +0200)]
Update tests to accept new hover formatting

4 years agoFix formatting error when no modpath is present
Galilée 'Bill' Enguehard [Fri, 22 May 2020 18:10:37 +0000 (20:10 +0200)]
Fix formatting error when no modpath is present

4 years agoProvide missing Chalk debug methods
Florian Diebold [Fri, 22 May 2020 16:05:48 +0000 (18:05 +0200)]
Provide missing Chalk debug methods

4 years agoUse TypeCtorId as AdtId directly, and rename the type alias StructId -> AdtId
Florian Diebold [Fri, 22 May 2020 15:50:58 +0000 (17:50 +0200)]
Use TypeCtorId as AdtId directly, and rename the type alias StructId -> AdtId

4 years agoSplit up chalk module a bit
Florian Diebold [Fri, 22 May 2020 15:14:53 +0000 (17:14 +0200)]
Split up chalk module a bit

4 years agoMerge #4570
bors[bot] [Fri, 22 May 2020 17:31:39 +0000 (17:31 +0000)]
Merge #4570

4570: Use Chalk's built-in impls r=matklad a=flodiebold

This contains two changes:
 - Chalk has begun adding built-in representations of primitive types; use these in our type conversion logic. There's one somewhat 'iffy' part here, namely references; we don't keep track of lifetimes, but Chalk does, so it will expect a lifetime parameter on references. If we didn't provide that, it could cause crashes in Chalk code that expects the lifetime, so I rather hackily add an (always the same) lifetime placeholder during conversion. I expect that we'll fully switch to using Chalk's types everywhere before we add lifetime support, so I think this is the best solution for now.
 - let Chalk know about well-known traits (from lang items), so it can apply its built-in impls.

Before:
```
Total expressions: 181485
Expressions of unknown type: 2940 (1%)
Expressions of partially unknown type: 2884 (1%)
Type mismatches: 901
Inference: 37.821210245s, 0b allocated 0b resident
Total: 53.399467609s, 0b allocated 0b resident
```

After:
```
Total expressions: 181485
Expressions of unknown type: 2923 (1%)
Expressions of partially unknown type: 2879 (1%)
Type mismatches: 734
Inference: 39.157752509s, 0b allocated 0b resident
Total: 54.110767621s, 0b allocated 0b resident
```

(I will start splitting up `chalk.rs` in a separate PR, since it's getting pretty big...)

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Co-authored-by: Florian Diebold <florian.diebold@freiheit.com>
4 years agoMerge #4572
bors[bot] [Fri, 22 May 2020 17:14:44 +0000 (17:14 +0000)]
Merge #4572

4572: Link upstream issues r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoLink upstream issues
Aleksey Kladov [Fri, 22 May 2020 17:14:14 +0000 (19:14 +0200)]
Link upstream issues

4 years agoModify hover info to show module path separated by a line
Galilée 'Bill' Enguehard [Fri, 22 May 2020 17:04:39 +0000 (19:04 +0200)]
Modify hover info to show module path separated by a line

4 years agoAdd some tests for Chalk built-in trait impls
Florian Diebold [Fri, 22 May 2020 16:52:07 +0000 (18:52 +0200)]
Add some tests for Chalk built-in trait impls

4 years agoMerge #4571
bors[bot] [Fri, 22 May 2020 16:09:37 +0000 (16:09 +0000)]
Merge #4571

4571: KISS SourceChange r=matklad a=matklad

The idea behind requiring the label is a noble one, but we are not
really using it consistently anyway, and it should be easy to retrofit
later, should we need it.

bors r+

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoKISS SourceChange
Aleksey Kladov [Fri, 22 May 2020 16:03:08 +0000 (18:03 +0200)]
KISS SourceChange

The idea behind requiring the label is a noble one, but we are not
really using it consistently anyway, and it should be easy to retrofit
later, should we need it.

4 years agoMerge #4569
bors[bot] [Fri, 22 May 2020 15:33:12 +0000 (15:33 +0000)]
Merge #4569

4569: CodeAction groups r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoProvide Chalk well-known traits
Florian Diebold [Fri, 22 May 2020 13:55:15 +0000 (15:55 +0200)]
Provide Chalk well-known traits

4 years agoUse Chalk's built-in representations of primitive types
Florian Diebold [Mon, 18 May 2020 19:25:23 +0000 (21:25 +0200)]
Use Chalk's built-in representations of primitive types

For references, we make sure Chalk actually gets a lifetime here.

4 years agoCodeAction groups
Aleksey Kladov [Fri, 22 May 2020 15:29:55 +0000 (17:29 +0200)]
CodeAction groups

4 years agoMerge #4568
bors[bot] [Fri, 22 May 2020 15:08:19 +0000 (15:08 +0000)]
Merge #4568

4568: Update Chalk r=matklad a=flodiebold

As always, this just makes compilation work, we don't use the newly available
functionality yet.

Co-authored-by: Florian Diebold <florian.diebold@freiheit.com>
4 years agoUpdate Chalk
Florian Diebold [Fri, 22 May 2020 14:40:42 +0000 (16:40 +0200)]
Update Chalk

As always, this just makes compilation work, we don't use the newly available
functionality yet.

4 years agoMerge #4516
bors[bot] [Fri, 22 May 2020 13:12:57 +0000 (13:12 +0000)]
Merge #4516

4516: LSP: Two stage initialization r=kjeremy a=kjeremy

Fills in server information.

Derives CodeAction capabilities from the client. If code action literals
are unsupported we fall back to the "simple support" which just sends back
commands (this is already supported in our config). The difference being
that we did not adjust our server capabilities so that if the client was
checking for `CodeActionProvider: "true"` in the response that would have failed.

Part of #144
Fixes #4130 (the specific case called out in that issue)

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agoadd support of feature flag for runnables #4464
Benjamin Coenen [Fri, 22 May 2020 07:23:31 +0000 (09:23 +0200)]
add support of feature flag for runnables #4464

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
4 years agoMerge #4560
bors[bot] [Thu, 21 May 2020 22:45:18 +0000 (22:45 +0000)]
Merge #4560

4560: Use WorkspaceEdit for ssr r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUse WorkspaceEdit for ssr
Aleksey Kladov [Thu, 21 May 2020 22:28:49 +0000 (00:28 +0200)]
Use WorkspaceEdit for ssr

4 years agoMerge branch 'master' of github.com:rust-analyzer/rust-analyzer into modname_spacing
Galilée 'Bill' Enguehard [Thu, 21 May 2020 21:27:38 +0000 (23:27 +0200)]
Merge branch 'master' of github.com:rust-analyzer/rust-analyzer into modname_spacing

4 years agoAdd extra newline after module path in hover info
Galilée 'Bill' Enguehard [Thu, 21 May 2020 10:06:29 +0000 (12:06 +0200)]
Add extra newline after module path in hover info

Closes issue #3813

4 years agoMerge branch 'nix-patchelf' of github.com:cab404/rust-analyzer into nix-patchelf
Vladimir Serov [Thu, 21 May 2020 18:33:30 +0000 (21:33 +0300)]
Merge branch 'nix-patchelf' of github.com:cab404/rust-analyzer into nix-patchelf

4 years agoeditors/vscode: forgotten await in os check
Vladimir Serov [Thu, 21 May 2020 18:32:27 +0000 (21:32 +0300)]
editors/vscode: forgotten await in os check

4 years agoeditors/vscode: patchelf-ing without intermediate files
Vladimir Serov [Thu, 21 May 2020 18:30:56 +0000 (21:30 +0300)]
editors/vscode: patchelf-ing without intermediate files

4 years agoMerge #4557
bors[bot] [Thu, 21 May 2020 18:05:58 +0000 (18:05 +0000)]
Merge #4557

4557: Formalize JoinLines protocol extension r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFormalize JoinLines protocol extension
Aleksey Kladov [Thu, 21 May 2020 17:50:23 +0000 (19:50 +0200)]
Formalize JoinLines protocol extension

4 years agoUpdate editors/code/src/main.ts
Cabia Rangris [Thu, 21 May 2020 15:50:28 +0000 (17:50 +0200)]
Update editors/code/src/main.ts

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
4 years agoeditor/vscode: lint
Vladimir Serov [Thu, 21 May 2020 15:49:30 +0000 (18:49 +0300)]
editor/vscode: lint

4 years agoeditors/vscode: removing original file after patching
Vladimir Serov [Thu, 21 May 2020 15:45:37 +0000 (18:45 +0300)]
editors/vscode: removing original file after patching

4 years agoeditors/vscode: added patchelf after download
Vladimir Serov [Thu, 21 May 2020 15:26:50 +0000 (18:26 +0300)]
editors/vscode: added patchelf after download

4 years agoMerge #4553
bors[bot] [Thu, 21 May 2020 14:14:53 +0000 (14:14 +0000)]
Merge #4553

4553: Cleanup r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoCleanup
Aleksey Kladov [Thu, 21 May 2020 14:11:37 +0000 (16:11 +0200)]
Cleanup

4 years agoCleanup TextEdit
Aleksey Kladov [Thu, 21 May 2020 13:56:18 +0000 (15:56 +0200)]
Cleanup TextEdit

4 years agoMerge #4552
bors[bot] [Thu, 21 May 2020 13:10:00 +0000 (13:10 +0000)]
Merge #4552

4552: Transition OnEnter to WorkspaceSnippetEdit r=matklad a=matklad

This also changes our handiling of snippet edits on the client side.
`editor.insertSnippet` unfortunately forces indentation, which we
really don't want to have to deal with. So, let's just implement our
manual hacky way of dealing with a simple subset of snippets we
actually use in rust-analyzer

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRemove dead code for handling cursor positions
Aleksey Kladov [Thu, 21 May 2020 12:34:27 +0000 (14:34 +0200)]
Remove dead code for handling cursor positions

4 years agoTransition OnEnter to WorkspaceSnippetEdit
Aleksey Kladov [Thu, 21 May 2020 12:26:44 +0000 (14:26 +0200)]
Transition OnEnter to WorkspaceSnippetEdit

This also changes our handiling of snippet edits on the client side.
`editor.insertSnippet` unfortunately forces indentation, which we
really don't want to have to deal with. So, let's just implement our
manual hacky way of dealing with a simple subset of snippets we
actually use in rust-analyzer