Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Move rust-analyzer extension into this repository #816

Merged
merged 1,092 commits into from
Jul 13, 2020
Merged
Changes from all commits
Commits
Show all changes
1092 commits
Select commit Hold shift + click to select a range
ecec2ff
Merge #3899
bors[bot] Apr 8, 2020
bb3f3f1
vscode: fix indent
Veetaha Apr 11, 2020
d19ea71
vscode: fix typing bug in config
Veetaha Apr 11, 2020
bd60f79
Merge #3942
bors[bot] Apr 11, 2020
6d9b08a
fix: inlay hints config desyncronization between the frontend and the…
Veetaha Apr 11, 2020
a857960
Fix parentModule shortcut conflict
CodeSandwich Apr 13, 2020
60e26c9
Bump @types/vscode and vscode-languageclient
kjeremy Apr 14, 2020
9e8ecb4
Merge #3962
bors[bot] Apr 15, 2020
8c9ff90
Merge #3948
bors[bot] Apr 16, 2020
655405c
Add config for proc_macro
edwin0cheng Apr 12, 2020
596d83c
Add proc-macro cli command for rust-analyzer
edwin0cheng Apr 16, 2020
e399eb2
Add semantic tag for unresolved references
matklad Apr 18, 2020
53df4e1
Jump to sourceChanges in other files
TimoFreiberg Apr 20, 2020
7cd5d79
Fix .rast tmGrammar to account for numbers in identifiers
Veetaha Apr 21, 2020
b1624ab
Work around crlf in syntax tree
Veetaha Apr 21, 2020
200c4b6
Refactor the workaround a bit
Veetaha Apr 21, 2020
f42ca82
Merge #4081
bors[bot] Apr 22, 2020
92e4e9b
npm update
kjeremy Apr 22, 2020
b3075a6
Align the name of proc-macro enabling flag
matklad Apr 22, 2020
63d0913
Merge #4090
bors[bot] Apr 22, 2020
9ce349e
tasks.json Support
Apr 23, 2020
5ddab19
Disable onEnter command by default
matklad Apr 23, 2020
5eddb72
Merge #4107
bors[bot] Apr 23, 2020
a62c088
Merge #3998 #4006
bors[bot] Apr 24, 2020
3216338
Remove unnecessary async from vscode language client creation
Veetaha Apr 25, 2020
c59febd
Remove dead code
matklad Apr 25, 2020
ced7f9d
Merge #4145
bors[bot] Apr 25, 2020
e2a58e2
Started rust-analyzer.cargo.defaultTarget implementation
FuriouZz Apr 26, 2020
c71e230
[config] rename cargo.defaultTarget
FuriouZz Apr 27, 2020
661100a
ms-vscode.cpptools debugger support, initial version.
vsrs Apr 28, 2020
6bbbbe9
Build extension too
jonas-schievink Apr 28, 2020
d5d6223
Configuration settings and source maps support
vsrs Apr 29, 2020
ec2a958
better configuration enum items
vsrs Apr 29, 2020
30e34cb
MS C++ tools on linux
vsrs Apr 29, 2020
e4890e1
pass Cargo errors to the Debug output channel
vsrs Apr 30, 2020
4db8a87
Fixed tsfmt and eslint errors.
vsrs Apr 30, 2020
5a225f5
Removed unnecessary extraArgs for cargo invocation
vsrs Apr 30, 2020
edea6e1
fixed lint warning
vsrs Apr 30, 2020
3ce47d4
Merge #4222
bors[bot] Apr 30, 2020
a1ea3f0
Remove `workspaceLoaded` setting
eminence May 1, 2020
51f792b
Specify cotributed semanticTokenTypes in package.json
matklad May 4, 2020
f1fd2d6
Fix typo in markdownDescription
szunami May 4, 2020
021670b
Merge #4301
bors[bot] May 4, 2020
352bbda
Rename `defaultTarget` to target
FuriouZz May 5, 2020
d3cf946
Merge #4166
bors[bot] May 5, 2020
6ae6b4a
add the allFeatures flag (true by default)
guigui64 May 5, 2020
4907dad
Merge #4328
bors[bot] May 5, 2020
0cc7a6e
Drop dead code and a dependency!
Veetaha May 5, 2020
48a355b
Merge #4330
bors[bot] May 5, 2020
a17b9b8
Preliminary refactoring of cargo.ts
Veetaha May 5, 2020
1113b4f
Fix cargo not found on macos bug at vscode extension side
Veetaha May 5, 2020
28bc043
Uniformed way to get Debug Lens target executable.
vsrs May 6, 2020
24bb254
package.json: Minor configuration spelling fix
seanbright May 6, 2020
8ecea80
Better mapping to TextMate scopes for keywords
matklad May 6, 2020
59670a4
Add additional debug options
vsrs May 7, 2020
60699f4
Add separate settings for each debug engine.
vsrs May 7, 2020
f11e293
Add CodeLLDB Rust visualization
vsrs May 7, 2020
d7f124f
Use the correct color for structs
matklad May 7, 2020
e09e605
Add master config for inlayHints to make disabling easy
matklad May 8, 2020
d1b6644
Merge #4372
bors[bot] May 8, 2020
c4363d8
Merge #4329
bors[bot] May 8, 2020
334537d
"rust-analyzer.debug.openDebugPane"
vsrs May 8, 2020
1aa04bb
Merge remote-tracking branch 'upstream/master' into uniformed_debug_lens
vsrs May 8, 2020
9ff04e6
Word fix
edwin0cheng May 10, 2020
91de2de
Fix "show syntax tree" command
Veetaha May 10, 2020
d84d42f
Tweak the textmate fallback scopes to be consistent with builtin Text…
georgewfraser May 9, 2020
31baedc
Import built-in textmate grammar, with no changes
georgewfraser May 9, 2020
d8d6b42
Color lifetimes like types
georgewfraser May 9, 2020
5c8a869
Color sigil like keyword
georgewfraser May 9, 2020
fb34d38
Color core types as types, not keywords
georgewfraser May 9, 2020
5f655c8
No longer true
georgewfraser May 9, 2020
0c41671
Color `as` as a keyword
georgewfraser May 10, 2020
35dca04
Change lifetimes back to keyword-ish, tweak builtins for consistency …
georgewfraser May 10, 2020
6d8e6b1
Put sigil back to keyword.operator
georgewfraser May 10, 2020
4755e09
"rust-analyzer.debug" command
vsrs May 11, 2020
78bc5a8
"rust-analyzer.newDebugConfig" command
vsrs May 11, 2020
e912cd2
DebugConfiguration simplification.
vsrs May 11, 2020
d86c899
Use .rust suffix on scopes
georgewfraser May 12, 2020
c02a2ba
Merge #4436
bors[bot] May 12, 2020
d64bd7d
Mark up statics and mutables
georgewfraser May 9, 2020
b69962d
Leave statics alone
georgewfraser May 12, 2020
945bccb
vscode engine 1.45
kjeremy May 12, 2020
eb6ba4f
Merge #4083
bors[bot] May 13, 2020
b7dc912
Bump packages
kjeremy May 12, 2020
059b606
Merge #4440
bors[bot] May 13, 2020
a72de96
Use launch.json in Debug Lens sessions.
vsrs May 13, 2020
3874556
Merge #4400
bors[bot] May 13, 2020
f7f0010
Remove "rust-analyzer.debug.useLaunchJson" option
vsrs May 14, 2020
61a4f4f
Make some stuff public so that they can be reused by other tools
pksunkara Apr 24, 2020
20ebece
Runnable quick pick with buttons
vsrs May 14, 2020
7012361
Fix "rust-analyzer.debug" for QuickPick binaries.
vsrs May 14, 2020
41fa559
Multiple binaries support for launch.json.
vsrs May 14, 2020
ac91053
Mixed "bin" and "test" artifacts workaround.
vsrs May 14, 2020
5e05be1
Multiple binaries support for launch.json.
vsrs May 14, 2020
3f1beba
Fix runnable naming in the client side fallback.
vsrs May 14, 2020
d1284f9
Fix occasional test run during debug configuration
vsrs May 15, 2020
87459b0
Merge #4448
bors[bot] May 15, 2020
1ceeb15
Color macros (fixes #4462)
georgewfraser May 16, 2020
0d5c81f
CodeLens configuration options.
vsrs May 17, 2020
c8c37d4
Runnable QuickPick with debuggees only
vsrs May 17, 2020
06a3633
code formatting
vsrs May 17, 2020
0215aea
Relax VS Code version requirement
matklad May 17, 2020
b82c786
Merge #4496
bors[bot] May 17, 2020
c4c8afd
Add "rust-analyzer.lens.enable"
vsrs May 18, 2020
e2ccf24
Merge #4499
bors[bot] May 18, 2020
c90e2d9
Color attribute functions
georgewfraser May 13, 2020
f1f1e26
Add snippetTextEdit protocol extension
matklad May 17, 2020
e218fda
Implement client-side of SnippetTextEdit
matklad May 17, 2020
e0b5b24
Merge #4494
bors[bot] May 19, 2020
38d6a5f
Fix client-side snippets
matklad May 19, 2020
9bc944b
Merge #4519
bors[bot] May 19, 2020
3bdd08b
Debug lens fix for a binary.
vsrs May 20, 2020
7726328
vscode client side tests
vsrs May 20, 2020
58b0606
Apply suggestions from @Veetaha code review
vsrs May 21, 2020
d011e7f
Fix phrasing in inlay hints settings
lnicola May 21, 2020
4fcc293
Merge #4550
bors[bot] May 21, 2020
d0d558e
Transition OnEnter to WorkspaceSnippetEdit
matklad May 21, 2020
e7655c8
Merge #4552
bors[bot] May 21, 2020
11db211
editors/vscode: added patchelf after download
cab404 May 21, 2020
2616f4e
editors/vscode: removing original file after patching
cab404 May 21, 2020
dfa6996
editor/vscode: lint
cab404 May 21, 2020
cb3bea7
Update editors/code/src/main.ts
cab404 May 21, 2020
706da08
Formalize JoinLines protocol extension
matklad May 21, 2020
7447541
Merge #4557
bors[bot] May 21, 2020
a098862
editors/vscode: patchelf-ing without intermediate files
cab404 May 21, 2020
e61f4c8
editors/vscode: forgotten await in os check
cab404 May 21, 2020
1bd6ddc
Merge branch 'nix-patchelf' of github.com:cab404/rust-analyzer into n…
cab404 May 21, 2020
e0be537
Use WorkspaceEdit for ssr
matklad May 21, 2020
3afc651
Merge #4560
bors[bot] May 21, 2020
9c0a78e
CodeAction groups
matklad May 22, 2020
b7b5cc6
Merge #4569
bors[bot] May 22, 2020
55c69f2
Merge #4555 #4575
bors[bot] May 23, 2020
b306538
Merge pull request #4538 from vsrs/vscode_tests
matklad May 23, 2020
bc323c6
Bump some npm deps
lnicola May 22, 2020
579ddbf
Bump more npm deps
lnicola May 22, 2020
9efcfa1
Merge pull request #4474 from georgewfraser/color_attrs
matklad May 24, 2020
7f6a686
Merge pull request #4574 from lnicola/bump-deps
matklad May 24, 2020
71fdedd
Highlight `true` and `false` as literals
matthewjasper May 21, 2020
81b9ec3
Merge #4556
bors[bot] May 24, 2020
f328dad
Document matchingBrace LSP request
matklad May 24, 2020
f16f4be
Merge #4593
bors[bot] May 24, 2020
8c42b62
Introduce `toggle inlay hints` vscode command
Veetaha May 25, 2020
1a68bff
Merge #4601
bors[bot] May 25, 2020
dc78853
Add boolean literals to package.json
lnicola May 25, 2020
a162deb
Remove dead code
matklad May 25, 2020
be680d1
Add self keyword semantic token type
lnicola May 25, 2020
0dea356
Flatten simple commands
matklad May 25, 2020
761f8ff
Flatten commands.ts
matklad May 25, 2020
e633992
Merge #4605
bors[bot] May 25, 2020
2f80176
Less rust-analyzer specific onEnter
matklad May 25, 2020
74cfa8e
Merge #4607
bors[bot] May 25, 2020
cc3e5a9
Cleanup lsp extensions on the client side
matklad May 25, 2020
36f8797
Merge #4610
bors[bot] May 25, 2020
99e2265
Document `parentModule` experimental LSP request
matklad May 25, 2020
c5ae79e
Merge #4611
bors[bot] May 25, 2020
57f23a6
Merge #4602 #4603
bors[bot] May 25, 2020
28f6809
Add question mark operator
kuy May 25, 2020
c82b7a1
Partially fix displaying inlay hints in Github PR diff views
Veetaha May 26, 2020
4b766dc
Merge #4625 #4629
bors[bot] May 27, 2020
8d48e0c
Add `inRustProject` when-clause for commands.
vsrs May 27, 2020
b8b283b
Fix invoking cargo without consulting CARGO or standard installation …
Veetaha May 23, 2020
03d1257
Change Runnable.bin -> Runnable.kind
Veetaha May 31, 2020
3a52d64
Always derive from `process.env` when spawning a child process/shell …
alin-at-dfinity May 31, 2020
980e90d
Merge #4580
bors[bot] Jun 2, 2020
c559303
Move run commands to commands.ts
matklad Jun 2, 2020
34f4ed4
New runnables API
matklad Jun 2, 2020
e2ae1cd
Spec better runnables
matklad Jun 2, 2020
d80b609
Disable rust-analyzer.{cargo,checkOnSave}.allFeatures by default
lnicola Jun 2, 2020
6e19421
Merge #4711
bors[bot] Jun 2, 2020
06c4d3f
Merge #4710
bors[bot] Jun 2, 2020
6a58f49
Preliminary implementation of lazy CodeAssits
mcrakhman Jun 2, 2020
5d66a48
Merge remote-tracking branch 'upstream/master' into compute-lazy-assits
mcrakhman Jun 2, 2020
5d6501e
Document rust-project.json
matklad Jun 3, 2020
3ca7e74
Fix review comments
mcrakhman Jun 3, 2020
e7cf311
Merge branch 'master' into compute-lazy-assits
mcrakhman Jun 3, 2020
d786f5d
Merge #4717
bors[bot] Jun 3, 2020
7458b4d
Add hover actions as LSP extension
vsrs Jun 3, 2020
df4ce07
Add hover actions LSP extension documentation.
vsrs Jun 3, 2020
95c8e53
Remove hover contents marking as trusted.
vsrs Jun 5, 2020
ea2c73b
Fix Run lens.
vsrs Jun 6, 2020
dfd816e
Add Run|Debug hover actions
vsrs Jun 6, 2020
d21e8a7
Fix VSCode settings
vincentisambart Jun 7, 2020
2175bff
Merge #4780
bors[bot] Jun 7, 2020
48dd17f
Merge #4773
bors[bot] Jun 8, 2020
93a6a23
Added the rust-analyzer.checkOnSave.features option.
clemenswasser Jun 10, 2020
6904db0
Most of the checkOnSafe options now default to the cargo equivalent.
clemenswasser Jun 10, 2020
628c0f2
checkOnSafe.features and checkOnSafe.allFeatures now work identically.
clemenswasser Jun 10, 2020
3a94b2c
Warnings as hint or info
GabbeV Jun 16, 2020
dbf91e1
Fix rust-analyzer.debug.openDebugPane option
vsrs Jun 10, 2020
64f9ff5
Add `rust-analyzer.gotoLocation` command
vsrs Jun 10, 2020
ba6dfc6
Migrate flycheck to fully-lsp-compatible progress reports (introduce …
Veetaha May 10, 2020
e802ac0
Update workaround comment
Veetaha Jun 19, 2020
fa1691a
Download artifacts into tmp dir
Veetaha Jun 20, 2020
0b4bc63
Hotfix skipping the first chunks of the artifacts
Veetaha Jun 22, 2020
6540f0c
Merge #4989
bors[bot] Jun 22, 2020
9e62c77
Make bootstrap error message more informative and better-fitting
Veetaha Jun 22, 2020
cce6168
Never disable error logging on the frontend
Veetaha Jun 22, 2020
f7e0b7d
Decouple http file stream logic from temp dir logic
Veetaha Jun 22, 2020
586fac0
Disrecommend trace.server: "verbose" for regular users
Veetaha Jun 22, 2020
b265eca
Merge #4992 #4993 #4994 #4997 #4998
bors[bot] Jun 23, 2020
d6b0e54
Add custom cargo runners
vsrs Jun 18, 2020
62d2f58
Switch to ShellExecution instead of full Task
vsrs Jun 19, 2020
7b7c185
Fix ts lints
vsrs Jun 24, 2020
7fcecfa
Don't mess with messy temp dir and just download into extension dir
Veetaha Jun 24, 2020
ebbe487
Remove namedExports config
lnicola Jun 24, 2020
0a6b65e
Append 10 random hex chars to temp artifact files
Veetaha Jun 24, 2020
d320276
Merge #5025
bors[bot] Jun 24, 2020
2e8817e
Merge branch 'Veetaha-feat/sync-branch'
matklad Jun 25, 2020
74ac621
Merge #5046
bors[bot] Jun 25, 2020
2cb8b60
Merge #5017
bors[bot] Jun 26, 2020
26f6d90
Fix SSR prompt following #4919
davidlattimore Jun 27, 2020
5e164d8
Add light-weight snapshot testing library with editor integration
matklad Jun 27, 2020
edab901
Bump some npm deps
lnicola Jun 27, 2020
9d468eb
Bump @rollup/plugin-commonjs
lnicola Jun 27, 2020
b28e66b
Downgrade @types/node
lnicola Jun 28, 2020
140a34f
Show notification while SSR is in progress
davidlattimore Jun 29, 2020
71744a2
Use newer @types/node
lnicola Jun 29, 2020
674f82b
Merge #5119
bors[bot] Jun 29, 2020
929aac4
Merge #5101
bors[bot] Jun 30, 2020
2a70d42
Fix a typo
mbrobbel Jun 30, 2020
2796410
Be more strict with `@types/node`
lnicola Jul 1, 2020
c0daf00
Merge #5098
bors[bot] Jul 1, 2020
abccc6c
Add reload workspace command
matklad Jul 1, 2020
32a96fd
Always install required nightly extension if current one is not nightly
Veetaha Jul 2, 2020
1694a69
Force showing extension activation error pop-up notification
Veetaha Jul 2, 2020
6e9ac77
Merge #5089 #5161 #5184 #5185 #5186
bors[bot] Jul 2, 2020
f0dc8ed
Implement StatusBar
matklad Jul 2, 2020
e0c90b0
Merge #5188
bors[bot] Jul 2, 2020
ca24ad1
Pass CodeActionKind through our middleware to populate menus
kjeremy Jun 28, 2020
b4539e1
Add runnable env support.
vsrs Jul 2, 2020
64efbbe
Add tests
vsrs Jul 2, 2020
b919dfc
code linting
vsrs Jul 2, 2020
acec5cf
Fix workspaceRoot
vsrs Jul 3, 2020
374d0de
Fix typo in description of vscode setting
Nashenas88 Jul 3, 2020
4882eff
Merge #5202
bors[bot] Jul 3, 2020
a756eea
Merge #5203
bors[bot] Jul 3, 2020
954d8d4
Improve client logging (use output channel and more log levels)
Veetaha Jul 5, 2020
2c88563
Dispose logger on extension deactivation
Veetaha Jul 5, 2020
7b6be11
Revert "Dispose logger on extension deactivation"
Veetaha Jul 5, 2020
1586fab
Fix: allow for binaries from $PATH to pass validity check
Veetaha Jul 6, 2020
2cc0d8a
Disable ES module interop
lnicola Jul 6, 2020
5f755a2
Consider EPERM error as other vscode processes using rust-analyzer
Veetaha Jul 7, 2020
5b90408
Merge #5235 #5236 #5241
bors[bot] Jul 7, 2020
f4c9ac5
Add a command to compute memory usage statistics
Jul 7, 2020
a42bc0c
Gzip artifacts
Veetaha Jun 21, 2020
e4cb0f3
Merge #4972
bors[bot] Jul 7, 2020
b396bc8
Workaround rollup messing up default imports
Veetaha Jul 8, 2020
a8719b1
Merge #5262
bors[bot] Jul 8, 2020
fe3ef97
Automatically reload project info on Cargo.toml changes
matklad Jul 10, 2020
f823336
Copy rust-analyzer vscode extension
matklad Jul 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions rust-analyzer/editors/code/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module.exports = {
"env": {
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"camelcase": ["error"],
"eqeqeq": ["error", "always", { "null": "ignore" }],
"no-console": ["error"],
"prefer-const": "error",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/semi": [
"error",
"always"
],
"@typescript-eslint/no-unnecessary-type-assertion": "error"
}
};
5 changes: 5 additions & 0 deletions rust-analyzer/editors/code/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
out
node_modules
.vscode-test/
*.vsix
bundle
8 changes: 8 additions & 0 deletions rust-analyzer/editors/code/.vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**
!out/src/main.js
!package.json
!package-lock.json
!ra_syntax_tree.tmGrammar.json
!rust.tmGrammar.json
!icon.png
!README.md
5 changes: 5 additions & 0 deletions rust-analyzer/editors/code/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# rust-analyzer

Provides support for rust-analyzer: novel LSP server for the Rust programming language.

See https://rust-analyzer.github.io/ for more information.
Binary file added rust-analyzer/editors/code/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,580 changes: 2,580 additions & 0 deletions rust-analyzer/editors/code/package-lock.json

Large diffs are not rendered by default.

Loading