aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
Commit message (Collapse)AuthorAgeFilesLines
...
* Move actual include logic to ProjectRootVille Penttinen2019-03-211-25/+20
| | | | | This way the two IncludeRustFiles implementations can simply call the ProjectRoots' methods, so that the include logic is in one place.
* Improve filtering of file rootsVille Penttinen2019-03-203-29/+65
| | | | | | | | | `ProjectWorkspace::to_roots` now returns a new `ProjectRoot` which contains information regarding whether or not the given path is part of the current workspace or an external dependency. This information can then be used in `ra_batch` and `ra_lsp_server` to implement more advanced filtering. This allows us to filter some unnecessary folders from external dependencies such as tests, examples and benches.
* Upgrade ra_vfs to use new FilteringVille Penttinen2019-03-182-3/+29
| | | | | Currently this matches the previous filtering, meaning all roots are filtered using the same rules.
* LSP: Support EnumMember and Fieldkjeremy2019-03-111-0/+2
|
* Don't default publishDecorations to true on the serverFlorian Diebold2019-03-091-39/+61
| | | | | | | If the client doesn't specify this explicitly, that very likely means it doesn't know about it and so we shouldn't send decorations. In particular, the recent change to this default caused decorations to be sent to emacs, resulting in a lot of warning spam.
* Merge #948bors[bot]2019-03-071-6/+11
|\ | | | | | | | | | | | | | | | | | | | | | | 948: Fix test_missing_module_code_action_in_json_project on Windows r=matklad a=vipentti The test would fail on Windows due to the paths not being properly escaped for JSON. In addition adds extra braces around the fn main to actually introduce braces in the file. Co-authored-by: Ville Penttinen <[email protected]>
| * Fix test_missing_module_code_action_in_json_project on WindowsVille Penttinen2019-03-071-6/+11
| | | | | | | | | | | | | | | | The test would fail on Windows due to the paths not being properly escaped for JSON. In addition adds extra braces around the fn main to actually introduce braces in the file.
* | Specify derive feature for serdepcpthm2019-03-071-1/+1
|/
* when loading workspace, say how many packages were loadedAleksey Kladov2019-03-073-22/+21
| | | | | this should help to debug configuration issues, when you see `0 packages loaded` or something like that.
* Remove rust-project.json test w/ dependencies.David Wood2019-03-071-43/+0
|
* Add test demonstrating logic for handling deps.David Wood2019-03-071-1/+44
|
* Rename and change `add_roots` to return a `Vec`.David Wood2019-03-071-1/+1
|
* Initial implementation of project-lock.json.David Wood2019-03-074-18/+82
| | | | | This commit adds a initial implementation of project-lock.json, a build system agnostic method of specifying the crate graph and roots.
* Add showWorkspaceLoadedNotification to vscode clientVille Penttinen2019-03-065-21/+63
| | | | | | | | | This allows users to control whether or not they want to see the "workspace loaded" notification. This is done on the server side using InitializationOptions which are provided by the client. By default show_workspace_loaded is true, meaning the notification is sent.
* Rename feedback to show_messageVille Penttinen2019-03-053-13/+13
|
* Remove InternalFeedbackVille Penttinen2019-03-051-7/+0
|
* Send an actual ShowMessage instead of InternalFeedback in feedback()Ville Penttinen2019-03-053-20/+27
| | | | | | | This now allows us to send a notification that can be shown in the UI when the workspace has been loaded. Additionally this removes the need for internal_mode flag.
* Updateskjeremy2019-03-051-1/+1
|
* show message in client's UI if workspace fails to loadAleksey Kladov2019-03-052-8/+14
|
* Add optional range parameter to SyntaxTreeParamsVille Penttinen2019-03-032-1/+4
| | | | | When range is provided, instead of showing the syntax for the whole file, we'll show the syntax tree for the given range.
* Fix the buildkjeremy2019-02-271-1/+3
|
* Merge #901bors[bot]2019-02-271-1/+1
|\ | | | | | | | | | | | | | | | | | | 901: Add basic support for showing fn signature when hovering r=matklad a=vipentti This adds basic support for displaying function signature when hovering over a usage of a function. Additionally refactored `hover` to return `HoverResult` to ease with testing and in general to be more robust. Co-authored-by: Ville Penttinen <[email protected]>
| * Add new type HoverResult to contain the results of hoveringVille Penttinen2019-02-261-1/+1
| | | | | | | | | | This makes testing hovers easier as well as allows us to do more things with the results if needed.
* | Remove RawResponse::empty()Ville Penttinen2019-02-271-2/+5
| |
* | Work around for issue in vscode reporting a failure in requestVille Penttinen2019-02-271-5/+11
|/ | | | | | vscode would report "A request has failed" when it got "Content modified" message and this would cause a pop-up to appear. This works around the issue by returning an "empty" response that vscode can ignore.
* rename type to type_alias in the AST as wellAleksey Kladov2019-02-251-1/+1
|
* Assign IDs to assistsAleksey Kladov2019-02-242-13/+46
|
* Update lsp-types and backtracekjeremy2019-02-212-2/+2
|
* switch to crates.io vfsAleksey Kladov2019-02-181-1/+1
|
* drop unused depsAleksey Kladov2019-02-181-3/+0
|
* Don't use additional_text_edits API internallyAleksey Kladov2019-02-181-6/+26
|
* Refactor find_all_refs to return ReferenceSearchResultVille Penttinen2019-02-172-11/+29
|
* automatically wait for worker threadsAleksey Kladov2019-02-143-29/+20
| | | | closes #817
* Add support for container_name in workspace/symbol queryVille Penttinen2019-02-121-1/+1
|
* Fix typo in Cargo.toml authorsVille Penttinen2019-02-111-1/+1
| | | | Fixes typo introduced in #782
* Update authors field in Cargo.tomls to "rust-analyzer developers"Ville Penttinen2019-02-111-1/+1
| | | | This closes #777
* Implement BatchDatabase constructionFlorian Diebold2019-02-101-3/+1
|
* Remove Vfs from project modelFlorian Diebold2019-02-091-1/+5
|
* Move crate graph generation to ra_project_modelFlorian Diebold2019-02-091-82/+3
|
* Extract project model to separate crateFlorian Diebold2019-02-094-348/+4
|
* reformat the worldAleksey Kladov2019-02-0812-247/+77
|
* Some clippy cleanupskjeremy2019-02-062-24/+17
|
* Fill deprecation for LSPkjeremy2019-02-051-1/+1
|
* Merge #742bors[bot]2019-02-051-0/+1
|\ | | | | | | | | | | | | | | | | | | 742: Extern crate r=matklad a=flodiebold This implements `extern crate` declarations by lowering them to (absolute) imports, and adds support for absolute paths. It also extracts the extern prelude from the per-module item map, and handles the special case of extern crates in the crate root adding to the extern prelude. This means we finally resolve `Arc`, so it fixes #523 :smile: Co-authored-by: Florian Diebold <[email protected]>
| * Add alloc to std depsFlorian Diebold2019-02-041-0/+1
| |
* | Move commentkjeremy2019-02-041-12/+13
|/
* Future proof by explicitly matching against Nonekjeremy2019-02-041-1/+1
|
* Add commentkjeremy2019-02-041-0/+4
|
* Implement lens for impls and support resolving lenses.Jeremy Kolb2019-02-043-3/+85
|
* Add core to STD_DEPSLaurențiu Nicola2019-02-031-0/+1
| | | See #731.