aboutsummaryrefslogtreecommitdiff
path: root/editors/code
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge #4711bors[bot]2020-06-021-2/+2
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | 4711: Disable rust-analyzer.{cargo,checkOnSave}.allFeatures by default r=matklad a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]>
| | * Disable rust-analyzer.{cargo,checkOnSave}.allFeatures by defaultLaurențiu Nicola2020-06-021-2/+2
| | |
* | | Preliminary implementation of lazy CodeAssitsMikhail Rakhmanov2020-06-024-38/+65
|/ /
* | Move run commands to commands.tsAleksey Kladov2020-06-023-133/+134
| |
* | Merge #4580bors[bot]2020-06-027-59/+107
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | 4580: Fix invoking cargo without consulting CARGO env var or standard installation paths r=matklad a=Veetaha Followup for #4329 The pr essentially fixes [this bug](https://youtu.be/EzQ7YIIo1rY?t=2189) cc @lefticus Co-authored-by: veetaha <[email protected]>
| * Change Runnable.bin -> Runnable.kindveetaha2020-05-317-59/+104
| | | | | | | | | | | | As per matklad, we now pass the responsibility for finding the binary to the frontend. Also, added caching for finding the binary path to reduce the amount of filesystem interactions.
| * Fix invoking cargo without consulting CARGO or standard installation pathsveetaha2020-05-312-4/+7
| |
* | Always derive from `process.env` when spawning a child process/shell executionAlin Sinpalean2020-05-311-1/+1
|/ | | | | | | | | | This is useful when an extension (e.g. Nix Environment Selector) or launch configuration sets one or more environment variables. When `env` is not explicitly specified in the options passed to `child_process.spawn()` or `vscode.ShellExecution()`, then `process.env` gets applied automatically. But when an explicit `env` is set, it should inherit from `process.env` rather than replace it completely.
* Add `inRustProject` when-clause for commands.vsrs2020-05-273-1/+76
|
* Merge #4625 #4629bors[bot]2020-05-271-4/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4625: Partially fix displaying inlay hints in Github PR diff views r=matklad a=Veetaha See the comment in https://github.com/rust-analyzer/rust-analyzer/issues/4608#issuecomment-63424257 It partially fixes the left side of diff view (the one where old code is displayed), but the diff editor with new code changes still has `file` scheme and will proceed displaying inlay hints... 4629: Fix the `should_panic` snippet r=matklad a=eminence Closes #4628 Co-authored-by: veetaha <[email protected]> Co-authored-by: Andrew Chin <[email protected]>
| * Partially fix displaying inlay hints in Github PR diff viewsveetaha2020-05-261-4/+5
| |
* | Add question mark operatorYuki Kodama2020-05-251-1/+1
|/
*-. Merge #4602 #4603bors[bot]2020-05-251-0/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]>
| | * Add self keyword semantic token typeLaurențiu Nicola2020-05-251-0/+5
| | |
| * | Add boolean literals to package.jsonLaurențiu Nicola2020-05-251-0/+5
| |/
* | Document `parentModule` experimental LSP requestAleksey Kladov2020-05-252-4/+4
| |
* | Cleanup lsp extensions on the client sideAleksey Kladov2020-05-256-127/+88
| |
* | Less rust-analyzer specific onEnterAleksey Kladov2020-05-253-7/+9
| |
* | Flatten commands.tsAleksey Kladov2020-05-254-109/+103
| |
* | Flatten simple commandsAleksey Kladov2020-05-2510-301/+242
| |
* | Remove dead codeAleksey Kladov2020-05-254-106/+54
|/
* Introduce `toggle inlay hints` vscode commandveetaha2020-05-255-1/+19
| | | | | | | | Users now can assign a shortcut for this command via the general vscode keybindings ui or `keybinding.json file` Closes: #4599
* Merge #4593bors[bot]2020-05-242-6/+5
|\ | | | | | | | | | | | | | | | | | | | | 4593: Document some rust-analyzer specific protocol extensions r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * Document matchingBrace LSP requestAleksey Kladov2020-05-242-6/+5
| |
* | Highlight `true` and `false` as literalsMatthew Jasper2020-05-241-0/+3
|/
* Merge pull request #4574 from lnicola/bump-depsAleksey Kladov2020-05-242-244/+342
|\ | | | | Bump some dependencies
| * Bump more npm depsLaurențiu Nicola2020-05-242-240/+338
| |
| * Bump some npm depsLaurențiu Nicola2020-05-242-39/+39
| |
* | Merge pull request #4474 from georgewfraser/color_attrsAleksey Kladov2020-05-242-1/+13
|\ \ | |/ |/| Color attribute functions
| * Color attribute functionsGeorge Fraser2020-05-192-1/+13
| |
* | Merge pull request #4538 from vsrs/vscode_testsAleksey Kladov2020-05-239-32/+956
|\ \ | | | | | | vscode client side tests
| * | Apply suggestions from @Veetaha code reviewvsrs2020-05-213-53/+44
| | |
| * | vscode client side testsvsrs2020-05-209-32/+965
| | |
* | | Merge #4555 #4575bors[bot]2020-05-231-1/+48
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]> Co-authored-by: Cabia Rangris <[email protected]> Co-authored-by: Florian Diebold <[email protected]>
| * \ \ Merge branch 'nix-patchelf' of github.com:cab404/rust-analyzer into nix-patchelfVladimir Serov2020-05-211-1/+1
| |\ \ \
| | * | | Update editors/code/src/main.tsCabia Rangris2020-05-211-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Jeremy Kolb <[email protected]>
| * | | | editors/vscode: forgotten await in os checkVladimir Serov2020-05-211-1/+1
| | | | |
| * | | | editors/vscode: patchelf-ing without intermediate filesVladimir Serov2020-05-211-5/+5
| |/ / /
| * | | editor/vscode: lintVladimir Serov2020-05-211-21/+21
| | | |
| * | | editors/vscode: removing original file after patchingVladimir Serov2020-05-211-1/+1
| | | |
| * | | editors/vscode: added patchelf after downloadVladimir Serov2020-05-211-1/+48
| |/ /
* | | CodeAction groupsAleksey Kladov2020-05-223-14/+43
| | |
* | | Use WorkspaceEdit for ssrAleksey Kladov2020-05-212-5/+3
| | |
* | | Formalize JoinLines protocol extensionAleksey Kladov2020-05-212-6/+10
| | |
* | | Merge #4552bors[bot]2020-05-214-31/+53
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]>
| * | | Transition OnEnter to WorkspaceSnippetEditAleksey Kladov2020-05-214-31/+53
| |/ / | | | | | | | | | | | | | | | | | | | | | 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
* / / Fix phrasing in inlay hints settingsLaurențiu Nicola2020-05-211-4/+4
|/ /
* | Debug lens fix for a binary.vsrs2020-05-201-4/+8
| |
* | Fix client-side snippetsAleksey Kladov2020-05-191-1/+2
| |
* | Implement client-side of SnippetTextEditAleksey Kladov2020-05-193-2/+81
| |