Aleksey Kladov
7bc60f512e
feat: define problem matcher for panics in VS Code
...
Now in VS Code "go to next error" (`F8`) will bring you to the source of
a panic.
2023-05-06 16:49:42 +01:00
Erik Steiger
91b4a169cd
Fix formatting
2023-05-05 14:49:42 +02:00
Erik Steiger
06cfeb47b2
Sort rust dependencies in tree view
2023-05-05 14:41:03 +02:00
Bruno Ortiz
0aed507f16
fixing TS linting, removing import
2023-05-02 11:06:28 -03:00
Bruno Ortiz
bcb21311ea
Accepting review suggestions
2023-05-02 11:06:25 -03:00
Bruno Ortiz
072f69e4c1
fixing ts linting and rust test
2023-05-02 11:01:53 -03:00
Bruno Ortiz
bd2160f014
final rabasing fixes
2023-05-02 11:01:53 -03:00
Bruno Ortiz
66fe84d936
accepting review suggestions
2023-05-02 11:01:41 -03:00
Bruno Ortiz
fe7874af90
reveal only when tree is visible
2023-05-02 10:59:31 -03:00
Bruno Ortiz
a3081a6774
Adding crate_root_path to crate_graph
2023-05-02 10:59:31 -03:00
Bruno Ortiz
8e687f7afb
improving code to work with multi-workspaces
2023-05-02 10:59:31 -03:00
Bruno Ortiz
1b8288ff96
Fixing naming from graph to list
2023-05-02 10:59:29 -03:00
Bruno Ortiz
061940dad9
running prettier
2023-05-02 10:56:47 -03:00
Bruno Ortiz
fc57339fdf
removing unused code
2023-05-02 10:56:13 -03:00
Lukas Wirth
299382dacd
WIP: Add lsp-ext scaffold
2023-05-02 10:56:13 -03:00
Lukas Wirth
af999f152b
Reformat VSCode client code
2023-05-02 10:56:13 -03:00
bruno-ortiz
d1721b11e9
removing unused function
2023-05-02 10:56:13 -03:00
bruno-ortiz
ee54c6558d
fixing linting problemas
2023-05-02 10:56:13 -03:00
bruno-ortiz
f8215dd426
fixing stblib loading
2023-05-02 10:56:13 -03:00
bruno-ortiz
d01fc6405b
Creating rust dependencies tree view
2023-05-02 10:56:13 -03:00
Bruno Ortiz
09e0a00d36
fetching dependencies from the server
2023-05-02 10:56:09 -03:00
Lukas Wirth
1201b156d8
WIP: Add lsp-ext scaffold
2023-05-02 10:52:33 -03:00
Lukas Wirth
16cba19ff3
Remove unnecessary openFile command
2023-05-02 10:48:38 -03:00
Lukas Wirth
76432d39cb
Reformat VSCode client code
2023-05-02 10:48:38 -03:00
bruno-ortiz
364308d1dc
removing unused function
2023-05-02 10:48:38 -03:00
bruno-ortiz
77a4bfd34f
fixing linting problemas
2023-05-02 10:48:38 -03:00
bruno-ortiz
68aa20bb8a
fixing stblib loading
2023-05-02 10:48:38 -03:00
bruno-ortiz
795a1cbe89
Creating rust dependencies tree view
2023-05-02 10:48:33 -03:00
Lukas Wirth
a64626d99e
Highlight closure captures when cursor is on pipe
2023-05-02 08:59:40 +02:00
hkalbasi
6312fbf521
MIR episode 4
2023-05-01 23:23:10 +03:30
Lukas Wirth
cf8f13b531
fix: Fix restart server button trying to start instead of restart the server
2023-04-28 21:34:31 +02:00
Nagy Botond
36281e0745
using VSCode's native parameterHints.enabled setting
2023-04-20 22:13:33 +03:00
Nagy Botond
770734fdbb
Automatic parameter hints trigger can be toggled on/off
2023-04-20 19:41:15 +03:00
Josh Soref
bc7d84c3ce
Spelling
...
* a rule
* access
* after
* amount
* annotations
* assignment
* assist
* associated
* attribute
* borrowed
* built-in type
* clarification
* command
* const
* constructor
* corresponding
* counterparts
* curlies
* dependencies
* deterministic
* diagnostic
* duplicates
* edge
* edited
* efficient
* elsewhere
* execution
* expression
* extensions
* extracted
* fill
* github
* helper
* heuristic
* incomplete
* indent end
* inlay
* invocation
* lifetime
* looking
* maybe
* move
* mutability
* mutable
* necessarily
* necessary
* negative
* nonexistent
* occurred
* offsets
* offsetted
* overridden
* parameters
* params
* params_and_where_preds_in_scope
* paredit
* parent
* parentheses
* prepended if
* punctuation
* receive
* receiver
* referring
* repeated
* representing
* semantically
* separately
* shouldnot
* siblings
* similar
* something's
* statement
* struct
* structure
* surprise
* the
* this
* transparent
* unimplemented
* unnamed
* unnecessary
* unneeded
* unreachable
* unterminated
* utilities
* variant
* variants
* visibility
* work around (v)
* workaround
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-19 09:45:55 -04:00
Lukas Wirth
34177d8552
minor: Allow copying the graphviz source from the view crategraph webview
2023-04-13 22:01:57 +02:00
Lukas Wirth
7a6d5c680c
fix: Fix view crate graph being broken due to webworker usage
2023-04-13 17:38:12 +02:00
David Barsky
b99c129b74
fix: when running the "discoverProjectCommand", use the Rust file's
...
parent directory instead of the workspace folder.
2023-04-10 09:36:38 -04:00
Lukas Wirth
98a673c4a8
fix: Fix project linking popup appearing for modules that can be linked to a crate
2023-04-09 10:17:58 +02:00
Lukas Wirth
7989a94391
fix: Fix relative path creation using the wrong path accessor
2023-04-04 08:20:35 +02:00
Lukas Wirth
4243eeeb2b
fix: Fix vscode project linking popup buttons being swapped
2023-04-04 07:55:09 +02:00
Ryo Yoshida
613e008593
Don't append "!" to non-bang macro name
2023-04-02 20:13:34 +09:00
Rungsikorn Rungsikavarnich
fb9a1dd87e
Missing runnable env on debug target
...
Fix bug in Rust Analyzer where runnable debugging did not pass
environment variable from configuration to child process of Cargo
on binary build stage
2023-03-30 15:39:49 +09:00
bors
5bba438c9c
Auto merge of #14366 - Veykril:linked-proj, r=Veykril
...
feat: Pop a notification prompting the user to add a Cargo.toml of unlinked file to the linkedProjects
cc https://github.com/rust-lang/rust-analyzer/issues/13226 https://github.com/rust-lang/rust-analyzer/issues/9661
2023-03-28 07:05:43 +00:00
David Barsky
ef422406ef
finish renaming rust-analyzer/reloadProcMacros
to rust-analyzer/rebuildProcMacros
2023-03-26 15:12:25 -04:00
Lukas Wirth
ee02213e65
Handle proc macro fetching via OpQueue
2023-03-26 09:33:41 +02:00
Lukas Wirth
e9fb2ffe45
Add lsp command for rebuilding proc macros
2023-03-25 16:50:31 +01:00
Lukas Wirth
3622fb6456
Fix lints
2023-03-25 14:14:12 +01:00
x2cf
9745a25d57
Fix VS Code status message formatting error
2023-03-21 14:56:07 +08:00
Lukas Wirth
66636939a6
feat: Pop a notification prompting the user to add a Cargo.toml of unlinked file to the linkedProjects
2023-03-16 16:26:19 +01:00
bors
c15335c8b0
Auto merge of #14307 - davidbarsky:davidbarsky/add-cargo-style-project-discovery-for-buck-and-bazel-sickos, r=Veykril
...
Add Cargo-style project discovery for Buck and Bazel Users
This feature requires the user to add a command that generates a `rust-project.json` from a set of files. Project discovery can be invoked in two ways:
1. At extension activation time, which includes the generated `rust-project.json` as part of the linkedProjects argument in `InitializeParams`.
2. Through a new command titled "rust-analyzer: Add current file to workspace", which makes use of a new, rust-analyzer-specific LSP request that adds the workspace without erasing any existing workspaces. Note that there is no mechanism to _remove_ workspaces other than "quit the rust-analyzer server".
Few notes:
- I think that the command-running functionality _could_ merit being placed into its own extension (and expose it via extension contribution points) to provide build-system idiomatic progress reporting and status handling, but I haven't (yet) made an extension that does this nor does Buck expose this sort of functionality.
- This approach would _just work_ for Bazel. I'll try and get the tool that's responsible for Buck integration open-sourced soon.
- On the testing side of things, I've used this in around my employer's Buck-powered monorepo and it's a nice experience. That being said, I can't think of an open-source repository where this can be tested in public, so you might need to trust me on this one.
I'd love to get feedback on:
- Naming of LSP extensions/new commands. I'm not too pleased with how "rust-analyzer: Add current file to workspace" is named, in that it's creating a _new_ workspace. I think that this command being added should be gated on `rust-analyzer.discoverProjectCommand` on being set, so I can add this in sequent commits.
- My Typescript. It's not particularly good.
- Suggestions on handling folders with _both_ Cargo and non-Cargo build systems and if I make activation a bit better.
(I previously tried to add this functionality entirely within rust-analyzer-the-LSP server itself, but matklad was right—an extension side approach is much, much easier.)
2023-03-14 17:48:49 +00:00