]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoMove imports locator to ide_db
Aleksey Kladov [Thu, 6 Feb 2020 15:26:43 +0000 (16:26 +0100)]
Move imports locator to ide_db

4 years agoAdd a fixme note
Aleksey Kladov [Thu, 6 Feb 2020 15:24:14 +0000 (16:24 +0100)]
Add a fixme note

4 years agoMove NameKind up
Aleksey Kladov [Thu, 6 Feb 2020 15:23:28 +0000 (16:23 +0100)]
Move NameKind up

4 years agoSimplify
Aleksey Kladov [Thu, 6 Feb 2020 15:00:39 +0000 (16:00 +0100)]
Simplify

4 years agoMerge #3030
bors[bot] [Thu, 6 Feb 2020 14:48:05 +0000 (14:48 +0000)]
Merge #3030

3030: Tweak goto parent module r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoTweak goto parent module
Aleksey Kladov [Thu, 6 Feb 2020 14:36:32 +0000 (15:36 +0100)]
Tweak goto parent module

4 years agoMerge #3029
bors[bot] [Thu, 6 Feb 2020 14:14:47 +0000 (14:14 +0000)]
Merge #3029

3029: Docs r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoDocs
Aleksey Kladov [Thu, 6 Feb 2020 14:08:31 +0000 (15:08 +0100)]
Docs

4 years agoCleanup
Aleksey Kladov [Thu, 6 Feb 2020 13:43:46 +0000 (14:43 +0100)]
Cleanup

4 years agoMerge #3028
bors[bot] [Thu, 6 Feb 2020 13:58:59 +0000 (13:58 +0000)]
Merge #3028

3028: Add profiling around add_impl_members r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoAdd profiling around add_impl_members
Aleksey Kladov [Thu, 6 Feb 2020 13:55:10 +0000 (14:55 +0100)]
Add profiling around add_impl_members

This intention is pretty slow for `impl Interator`, because it has a
ton of default methods which need to be substituted.

The proper fix here is to not compute the actual edit until the user
triggers the action, but that's awkward to do in the LSP right now, so
let's just put a profiling code for now.

4 years agocleanup imports
Aleksey Kladov [Thu, 6 Feb 2020 11:52:32 +0000 (12:52 +0100)]
cleanup imports

4 years agoMove to a crate
Aleksey Kladov [Thu, 6 Feb 2020 11:43:56 +0000 (12:43 +0100)]
Move to a crate

4 years agoMove change to ide-db
Aleksey Kladov [Thu, 6 Feb 2020 11:35:40 +0000 (12:35 +0100)]
Move change to ide-db

4 years agoFix test imports
Aleksey Kladov [Thu, 6 Feb 2020 11:26:10 +0000 (12:26 +0100)]
Fix test imports

4 years agoMove Query
Aleksey Kladov [Thu, 6 Feb 2020 11:24:13 +0000 (12:24 +0100)]
Move Query

4 years agoMove symbol_index
Aleksey Kladov [Thu, 6 Feb 2020 11:22:35 +0000 (12:22 +0100)]
Move symbol_index

4 years agoMove FeatureFlags
Aleksey Kladov [Thu, 6 Feb 2020 11:18:52 +0000 (12:18 +0100)]
Move FeatureFlags

4 years agoMove line_index
Aleksey Kladov [Thu, 6 Feb 2020 11:17:40 +0000 (12:17 +0100)]
Move line_index

4 years agoMove ide-db
Aleksey Kladov [Thu, 6 Feb 2020 11:08:08 +0000 (12:08 +0100)]
Move ide-db

4 years agoStart ide_db
Aleksey Kladov [Thu, 6 Feb 2020 11:07:06 +0000 (12:07 +0100)]
Start ide_db

4 years agoMerge #3024
bors[bot] [Wed, 5 Feb 2020 20:57:08 +0000 (20:57 +0000)]
Merge #3024

3024: vscode: eliminate floating promises and insane amount of resource handle leaks r=matklad a=Veetaha

Khm, yeah ...

Co-authored-by: Veetaha <gerzoh1@gmail.com>
4 years agovscode: eliminate floating promises and insane amount of resource handle leaks
Veetaha [Wed, 5 Feb 2020 20:39:47 +0000 (22:39 +0200)]
vscode: eliminate floating promises and insane amount of resource handle leaks

4 years agoMerge #3015
bors[bot] [Wed, 5 Feb 2020 20:29:50 +0000 (20:29 +0000)]
Merge #3015

3015: vscode: yet another refactor commit r=matklad a=Veetaha

It compiles, it runs in dev extension host, It bundles, it runs when bundled and installed.
Removed 5 lines of code as you like less code, especially TypeScript code)

Co-authored-by: Veetaha <gerzoh1@gmail.com>
4 years agovscode: removed changes to integrity hash in package-lock.json
Veetaha [Wed, 5 Feb 2020 19:38:19 +0000 (21:38 +0200)]
vscode: removed changes to integrity hash in package-lock.json

4 years agoMerge #3018
bors[bot] [Wed, 5 Feb 2020 13:20:32 +0000 (13:20 +0000)]
Merge #3018

3018: Refactor if-let -> match assist to use ast::make r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRefactor if-let -> match assist to use ast::make
Aleksey Kladov [Wed, 5 Feb 2020 09:50:07 +0000 (10:50 +0100)]
Refactor if-let -> match assist to use ast::make

4 years agoMerge #3019
bors[bot] [Wed, 5 Feb 2020 12:44:00 +0000 (12:44 +0000)]
Merge #3019

3019: Better cursor placement when merging arms r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoBetter cursor placement when merging arms
Aleksey Kladov [Wed, 5 Feb 2020 12:41:43 +0000 (13:41 +0100)]
Better cursor placement when merging arms

4 years agoMerge #3016
bors[bot] [Wed, 5 Feb 2020 12:32:59 +0000 (12:32 +0000)]
Merge #3016

3016: Fix unneeded `.` in `docs/user/README.md` r=kjeremy a=fusillicode

I hope I got the typo right ðŸ˜…

Thanks a lot of this wonderful project ðŸ™‡

Co-authored-by: Gian D <fusillicode@users.noreply.github.com>
4 years agoMerge match arms works with many arms
Aleksey Kladov [Wed, 5 Feb 2020 10:53:33 +0000 (11:53 +0100)]
Merge match arms works with many arms

4 years agoMerge #3017
bors[bot] [Wed, 5 Feb 2020 10:49:25 +0000 (10:49 +0000)]
Merge #3017

3017: Normalize dashes in crate names r=matklad a=SomeoneToIgnore

A follow-up for https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Yet.20another.20auto.20import.20bug

In theory, I could have used the same new type in the `Dependency` `name`  field, but since the `add_dep` method that actually adds a dependency is private, it seems like an unnecessary change now.

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
4 years agoApply the reviews suggestions
Kirill Bulatov [Wed, 5 Feb 2020 10:47:28 +0000 (12:47 +0200)]
Apply the reviews suggestions

4 years agoCleanup
Aleksey Kladov [Wed, 5 Feb 2020 10:46:05 +0000 (11:46 +0100)]
Cleanup

4 years agoFurther fix `docs/user/README.md`
Gian D [Wed, 5 Feb 2020 10:09:08 +0000 (11:09 +0100)]
Further fix `docs/user/README.md`

Co-Authored-By: Laurențiu Nicola <lnicola@users.noreply.github.com>
4 years agoNormalize dashes in crate names
Kirill Bulatov [Wed, 5 Feb 2020 09:53:54 +0000 (11:53 +0200)]
Normalize dashes in crate names

4 years agoFix unneeded `.` in `docs/user/README.md`
Gian D [Wed, 5 Feb 2020 09:38:53 +0000 (10:38 +0100)]
Fix unneeded `.` in `docs/user/README.md`

4 years agovscode: yet another refactor commit
Veetaha [Tue, 4 Feb 2020 22:13:46 +0000 (00:13 +0200)]
vscode: yet another refactor commit

4 years agoMerge #2948
bors[bot] [Tue, 4 Feb 2020 16:12:05 +0000 (16:12 +0000)]
Merge #2948

2948: Allow add_explicit_type to replace a placeholder type r=matklad a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
4 years agoMerge #3011
bors[bot] [Tue, 4 Feb 2020 15:39:22 +0000 (15:39 +0000)]
Merge #3011

3011: Update aho-corasick (removes unsafety) and serde_json r=matklad a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
4 years agoUpdate aho-corasick (removes unsafety) and serde_json
kjeremy [Tue, 4 Feb 2020 15:37:01 +0000 (10:37 -0500)]
Update aho-corasick (removes unsafety) and serde_json

4 years agoMerge #3010
bors[bot] [Tue, 4 Feb 2020 12:42:32 +0000 (12:42 +0000)]
Merge #3010

3010: minor, if let else -> match r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agominor, if let else -> match
Aleksey Kladov [Tue, 4 Feb 2020 12:41:56 +0000 (13:41 +0100)]
minor, if let else -> match

4 years agoMerge #3009
bors[bot] [Tue, 4 Feb 2020 12:23:37 +0000 (12:23 +0000)]
Merge #3009

3009: Make sure that newly created nodes are the root of the tree r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoMake sure that newly created nodes are the root of the tree
Aleksey Kladov [Tue, 4 Feb 2020 12:22:32 +0000 (13:22 +0100)]
Make sure that newly created nodes are the root of the tree

4 years agoMerge #2981
bors[bot] [Tue, 4 Feb 2020 09:52:57 +0000 (09:52 +0000)]
Merge #2981

2981: vscode: Add ability to call onEnter without overriding "type". r=matklad a=71

Before this PR, the only way to get enhanced typing (right now, only with `onEnter`) was to override VS Code's `type` command. This leads to issues with extensions like [VsCodeVim](https://github.com/VSCodeVim/Vim) that need to override `type` as well.

This PR adds an additional command, `onEnter`. This command can be used with the following keybinding, which allows the user to get smart `onEnter` behavior without overriding `type`.

```json
{
    "key": "enter",
    "command": "rust-analyzer.onEnter",
    "when": "editorTextFocus && editorLangId == rust"
}
```

Co-authored-by: Gregoire Geis <git@gregoirege.is>
Co-authored-by: Grégoire Geis <git@gregoirege.is>
4 years agoMerge #2962
bors[bot] [Tue, 4 Feb 2020 09:44:31 +0000 (09:44 +0000)]
Merge #2962

2962: Differentiate underscore alias from named aliases r=matklad a=zombiefungus

pre for Fixing Issue 2736
edited to avoid autoclosing the issue

Co-authored-by: zombiefungus <divmermarlav@gmail.com>
4 years agoMerge two if statements into one in editors/code/src/commands/on_enter.ts.
Grégoire Geis [Tue, 4 Feb 2020 00:44:12 +0000 (01:44 +0100)]
Merge two if statements into one in editors/code/src/commands/on_enter.ts.

Co-Authored-By: Veetaha <veetaha2@gmail.com>
4 years agoMerge #2911
bors[bot] [Mon, 3 Feb 2020 22:51:17 +0000 (22:51 +0000)]
Merge #2911

2911: Implement collecting errors while tokenizing r=matklad a=Veetaha

Now we are collecting errors from `rustc_lexer` and returning them in `ParsedToken { token, error }` and `ParsedTokens { tokens, errors }` structures **([UPD]: this is now simplified, see updates bellow)**.

The main changes are introduced in `ra_syntax/parsing/lexer.rs`. It now exposes the following functions and types:

```rust
pub fn tokenize(text: &str) -> ParsedTokens;
pub fn tokenize_append(text: &str, parsed_tokens_to_append_to: &mut ParsedTokens);
pub fn first_token(text: &str) -> Option<ParsedToken>; // allows any number of tokens in text
pub fn single_token(text: &str) -> Option<ParsedToken>; // allows only a single token in text

pub struct ParsedToken  { pub token: Token,       pub error: Option<SyntaxError> }
pub struct ParsedTokens { pub tokens: Vec<Token>, pub errors: Vec<SyntaxError>   }

pub enum TokenizeError { /* Simple enum which reflects rustc_lexer tokenization errors */ }
```
In the first commit I implemented it with iterators, but then decided that since this crate is ad hoc for `rust-analyzer` and we clearly see the places of its usage it would be better to simplify it to vectors.

This is currently WIP, because I want to add tests for error messages generated by the lexer.
I'd like to listen to you thoughts how to define these tests in `ra_syntax/test-data` dir.

Related issues: #223

**[UPD]**

After the PR review the API was simplified:
```rust
pub fn tokenize(text: &str) -> (Vec<Token>, Vec<SyntaxError>);
// Both lex functions do not check for unescape errors
pub fn lex_single_syntax_kind(text: &str) -> Option<(SyntaxKind, Option<SyntaxError>)>;
pub fn lex_single_valid_syntax_kind(text: &str) -> Option<SyntaxKind>;

// This will be removed in the next PR in favour of simlifying `SyntaxError` to `(String, TextRange)`
pub enum TokenizeError { /* Simple enum which reflects rustc_lexer tokenization errors */ }

// this is private, but may be made public if such demand would exist in future (least privilege principle)
fn lex_first_token(text: &str) -> Option<(Token, Option<SyntaxError>)>;
```

Co-authored-by: Veetaha <gerzoh1@gmail.com>
4 years agora_syntax: added tests for tokenization errors
Veetaha [Sat, 1 Feb 2020 20:25:01 +0000 (22:25 +0200)]
ra_syntax: added tests for tokenization errors

4 years agora_syntax: add backticks around tokens specimen
Veetaha [Wed, 29 Jan 2020 22:18:21 +0000 (00:18 +0200)]
ra_syntax: add backticks around tokens specimen

4 years agora_syntax: removed unnecessary init statement from reparsing tests
Veetaha [Tue, 28 Jan 2020 05:23:26 +0000 (07:23 +0200)]
ra_syntax: removed unnecessary init statement from reparsing tests

4 years agora_syntax: rename first_token() -> lex_first_token()
Veetaha [Tue, 28 Jan 2020 05:18:35 +0000 (07:18 +0200)]
ra_syntax: rename first_token() -> lex_first_token()

4 years agora_syntax: fixed a typo in doc comment
Veetaha [Tue, 28 Jan 2020 05:13:18 +0000 (07:13 +0200)]
ra_syntax: fixed a typo in doc comment

4 years agora_syntax: refactored the lexer design as per @matklad and @kiljacken PR review
Veetaha [Tue, 28 Jan 2020 05:09:13 +0000 (07:09 +0200)]
ra_syntax: refactored the lexer design as per @matklad and @kiljacken PR review

4 years agora_syntax: remove backticks from TokenizeError message since that is not Markdown ;(
Veetaha [Sun, 26 Jan 2020 23:41:48 +0000 (01:41 +0200)]
ra_syntax: remove backticks from TokenizeError message since that is not Markdown ;(

4 years agoadd better docs for tokenize errors
Veetaha [Sun, 26 Jan 2020 23:38:16 +0000 (01:38 +0200)]
add better docs for tokenize errors

4 years agora_syntax: moved ParsedToken derive attribute under the doc comment
Veetaha [Sun, 26 Jan 2020 20:33:09 +0000 (22:33 +0200)]
ra_syntax: moved ParsedToken derive attribute under the doc comment

4 years agora_syntax: fixed doc comment
Veetaha [Sun, 26 Jan 2020 20:32:23 +0000 (22:32 +0200)]
ra_syntax: fixed doc comment

4 years agoReimplemented lexer with vectors instead of iterators
Veetaha [Sun, 26 Jan 2020 18:44:49 +0000 (20:44 +0200)]
Reimplemented lexer with vectors instead of iterators

4 years agora_syntax: changed added diagnostics information returned from tokenize() (implemente...
Veetaha [Fri, 24 Jan 2020 01:39:23 +0000 (03:39 +0200)]
ra_syntax: changed added diagnostics information returned from tokenize() (implemented with iterators)

4 years agovscode: Only handle enter if the suggest widget is hidden.
Gregoire Geis [Mon, 3 Feb 2020 21:26:20 +0000 (22:26 +0100)]
vscode: Only handle enter if the suggest widget is hidden.

4 years agoRemove enableEnhancedTyping and type overriding infrastructure.
Gregoire Geis [Mon, 3 Feb 2020 19:24:50 +0000 (20:24 +0100)]
Remove enableEnhancedTyping and type overriding infrastructure.

4 years agoChange default enhanced typing behavior from using type to using keybindings.
Gregoire Geis [Sun, 2 Feb 2020 14:58:53 +0000 (15:58 +0100)]
Change default enhanced typing behavior from using type to using keybindings.

4 years agoAdd regular onEnter command, allowing onEnter to be called without overriding the...
Gregoire Geis [Sun, 2 Feb 2020 01:21:04 +0000 (02:21 +0100)]
Add regular onEnter command, allowing onEnter to be called without overriding the type command.

4 years agoMerge #3003
bors[bot] [Mon, 3 Feb 2020 17:11:36 +0000 (17:11 +0000)]
Merge #3003

3003: Remove rollup-typescript r=matklad a=matklad

It seems like just calling typescript directly is simpler and more reliable?

@Veetaha what do you think about this approach?

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRemove unnecessary flags
Aleksey Kladov [Mon, 3 Feb 2020 17:03:36 +0000 (18:03 +0100)]
Remove unnecessary flags

4 years agoRemove rollup-typescript
Aleksey Kladov [Mon, 3 Feb 2020 16:39:34 +0000 (17:39 +0100)]
Remove rollup-typescript

It seems like just calling typescript directly is simpler and more reliable?

4 years agoMerge #3002
bors[bot] [Mon, 3 Feb 2020 15:49:56 +0000 (15:49 +0000)]
Merge #3002

3002: Update some rollup packages r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUpdate some rollup packages
Aleksey Kladov [Mon, 3 Feb 2020 15:49:25 +0000 (16:49 +0100)]
Update some rollup packages

4 years agoMerge #3001
bors[bot] [Mon, 3 Feb 2020 15:38:27 +0000 (15:38 +0000)]
Merge #3001

3001: Use simple prng instead of a dependency r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoUse simple prng instead of a dependency
Aleksey Kladov [Mon, 3 Feb 2020 15:37:12 +0000 (16:37 +0100)]
Use simple prng instead of a dependency

closes #2999

4 years agoMerge #2997
bors[bot] [Mon, 3 Feb 2020 14:34:16 +0000 (14:34 +0000)]
Merge #2997

2997: Use proper import name in the label r=matklad a=SomeoneToIgnore

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
4 years agoMerge #2998
bors[bot] [Mon, 3 Feb 2020 14:26:22 +0000 (14:26 +0000)]
Merge #2998

2998: Remove recent improvements to the build script r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoRemove recent improvements to the build script
Aleksey Kladov [Mon, 3 Feb 2020 13:57:14 +0000 (14:57 +0100)]
Remove recent improvements to the build script

tslib as a dev dependency and commonjs modules are definitely *wrong*
in the ideal world, **but** in the real world that's the only
combination that works. See

https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Problems.20with.20TypeScript.20build

4 years agoUse proper import name in the label
Kirill Bulatov [Mon, 3 Feb 2020 13:44:28 +0000 (15:44 +0200)]
Use proper import name in the label

4 years agoMerge #2994
bors[bot] [Mon, 3 Feb 2020 13:01:58 +0000 (13:01 +0000)]
Merge #2994

2994: Small cleanup r=matklad a=SomeoneToIgnore

A follow-up to https://github.com/rust-analyzer/rust-analyzer/pull/2990#discussion_r374044482

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
4 years agoMerge #2995
bors[bot] [Mon, 3 Feb 2020 12:54:44 +0000 (12:54 +0000)]
Merge #2995

2995: Fix build of typscript extension r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agoFix build of typscript extension
Aleksey Kladov [Mon, 3 Feb 2020 12:54:12 +0000 (13:54 +0100)]
Fix build of typscript extension

4 years agoSimplify paths searches
Kirill Bulatov [Mon, 3 Feb 2020 11:56:03 +0000 (13:56 +0200)]
Simplify paths searches

4 years agoFix inlay hints test snippet compilation
Kirill Bulatov [Mon, 3 Feb 2020 11:35:14 +0000 (13:35 +0200)]
Fix inlay hints test snippet compilation

4 years agoMerge #2959
bors[bot] [Mon, 3 Feb 2020 11:27:31 +0000 (11:27 +0000)]
Merge #2959

2959: Rework how we send diagnostics to client r=matklad a=kiljacken

The previous way of sending from the thread pool suffered from stale diagnostics due to being canceled before we could clear the old ones.

The key change is moving to sending diagnostics from the main loop thread, but doing all the hard work in the thread pool. This should provide the best of both worlds, with little to no of the downsides.

This should hopefully fix a lot of issues, but we'll need testing in each individual issue to be sure.

Co-authored-by: Emil Lauridsen <mine809@gmail.com>
4 years agoUpdate snapshot tests due to removed SuggestedFix
Emil Lauridsen [Mon, 3 Feb 2020 11:24:57 +0000 (12:24 +0100)]
Update snapshot tests due to removed SuggestedFix

4 years agoRemove stray todo
Emil Lauridsen [Mon, 3 Feb 2020 11:18:06 +0000 (12:18 +0100)]
Remove stray todo

4 years agoMerge #2990
bors[bot] [Mon, 3 Feb 2020 11:10:55 +0000 (11:10 +0000)]
Merge #2990

2990: Use name only when searching for an import candidate r=me a=SomeoneToIgnore

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
4 years agoAllow add_explicit_type to replace a placeholder type
Laurențiu Nicola [Wed, 29 Jan 2020 20:34:52 +0000 (22:34 +0200)]
Allow add_explicit_type to replace a placeholder type

4 years agoRework how we send diagnostics to client.
Emil Lauridsen [Fri, 31 Jan 2020 18:23:25 +0000 (19:23 +0100)]
Rework how we send diagnostics to client.

The previous way of sending from the thread pool suffered from stale
diagnostics due to being canceled before we could clear the old ones.

The key change is moving to sending diagnostics from the main loop
thread, but doing all the hard work in the thread pool. This should
provide the best of both worlds, with little to no of the downsides.

This should hopefully fix a lot of issues, but we'll need testing in
each individual issue to be sure.

4 years agoMerge #2993
bors[bot] [Mon, 3 Feb 2020 08:54:04 +0000 (08:54 +0000)]
Merge #2993

2993: vscode: fix bundling by switching to es2015 target modules system r=matklad a=Veetaha

Quick fix

Co-authored-by: Veetaha <gerzoh1@gmail.com>
4 years agovscode: fix bundling by switching to es2015 target modules system
Veetaha [Mon, 3 Feb 2020 08:50:19 +0000 (10:50 +0200)]
vscode: fix bundling by switching to es2015 target modules system

4 years agoMerge #2991
bors[bot] [Sun, 2 Feb 2020 22:21:23 +0000 (22:21 +0000)]
Merge #2991

2991: vscode: updated rollup typescript so it typechecks the bundle r=Veetaha a=Veetaha

See [this happy update](https://github.com/rollup/plugins/blob/master/packages/typescript/CHANGELOG.md#v300) from `@rollup/typescript-plugin` changelog)

I also added a utility script to view the latest dependencies versions (`dry-run` variant) and update them in batch. Beware, that it bumps versions even if the major version of them has changed (for updating only within one major version there is a cli option, but I didn't want add a whole bunch of scripts)
Some of the dependencies major versions are out of date:
```
~/my/projects/rust-analyzer/editors/code (feature/refactoring-vscode-ext) $ npm run bump-deps:dry-run

> rust-analyzer@0.1.0 bump-deps:dry-run /home/veetaha/my/projects/rust-analyzer/editors/code
> npm-check-updates

Checking /home/veetaha/my/projects/rust-analyzer/editors/code/package.json
[====================] 16/16 100%

 jsonc-parser                    ^2.1.0  â†’   ^2.2.0
 @rollup/plugin-commonjs        ^11.0.1  â†’  ^11.0.2
 @rollup/plugin-node-resolve     ^6.1.0  â†’   ^7.1.0
 @types/node                  ^12.12.25  â†’  ^13.7.0
 rollup                         ^1.30.1  â†’  ^1.31.0
 tslint                         ^5.20.1  â†’   ^6.0.0
 vsce                           ^1.71.0  â†’  ^1.72.0
```

Co-authored-by: Veetaha <gerzoh1@gmail.com>
4 years agovscode: dropped npm-check-updates script
Veetaha [Sun, 2 Feb 2020 21:47:52 +0000 (23:47 +0200)]
vscode: dropped npm-check-updates script

4 years agovscode: updated rollup typescript so it typechecks the bundle
Veetaha [Sun, 2 Feb 2020 21:38:04 +0000 (23:38 +0200)]
vscode: updated rollup typescript so it typechecks the bundle

4 years agoMerge #2989
bors[bot] [Sun, 2 Feb 2020 21:27:58 +0000 (21:27 +0000)]
Merge #2989

2989: vscode extension: migrate from any to unknown where possible r=Veetaha a=Veetaha

`unknown` type is the stricter version of `any` and it should always be prefered (like `const` over `let`).
It lets you assign any value to it, but doesn't let you carry out arbitrary operations on them without an explicit type check (like `typeof unknownValue === 'string'`).

Co-authored-by: Veetaha <gerzoh1@gmail.com>
4 years agoUse name only when searching for an import candidate
Kirill Bulatov [Sun, 2 Feb 2020 21:24:43 +0000 (23:24 +0200)]
Use name only when searching for an import candidate

4 years agovscode: use void where possible
Veetaha [Sun, 2 Feb 2020 21:23:01 +0000 (23:23 +0200)]
vscode: use void where possible

4 years agovscode: fix, fallback to any for cmd type
Veetaha [Sun, 2 Feb 2020 20:36:12 +0000 (22:36 +0200)]
vscode: fix, fallback to any for cmd type

4 years agovscode extension: migrate from any to unknown where possible
Veetaha [Sun, 2 Feb 2020 20:19:59 +0000 (22:19 +0200)]
vscode extension: migrate from any to unknown where possible

4 years agoMerge #2987
bors[bot] [Sun, 2 Feb 2020 19:40:28 +0000 (19:40 +0000)]
Merge #2987

2987: vscode refactoring: use more laconic export snytax, split huge string literal r=matklad a=Veetaha

Co-authored-by: Veetaha <gerzoh1@gmail.com>
4 years agovscode: fix type
Veetaha [Sun, 2 Feb 2020 19:38:49 +0000 (21:38 +0200)]
vscode: fix type

4 years agovscode refactoring: use more laconic export snytax, split huge string to several...
Veetaha [Sun, 2 Feb 2020 19:37:22 +0000 (21:37 +0200)]
vscode refactoring: use more laconic export snytax, split huge string to several lines