aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
Commit message (Collapse)AuthorAgeFilesLines
* switch to newer cargo-metadataAleksey Kladov2019-01-081-12/+9
|
* introduce CallInfoAleksey Kladov2019-01-081-17/+11
|
* migrate ra_lsp_server to new rowanAleksey Kladov2019-01-081-1/+1
|
* add "." as a trigger char on type formattingSimon Vandel Sillesen2019-01-061-1/+1
|
* refactorSimon Vandel Sillesen2019-01-062-35/+26
|
* indent on typing dot. fixes #439Simon Vandel Sillesen2019-01-051-22/+34
|
* introduce separate goto_defenitionAleksey Kladov2019-01-051-3/+2
|
* move hover implementation to ra_analysisAleksey Kladov2019-01-051-41/+9
|
* Merge #414bors[bot]2019-01-051-2/+25
|\ | | | | | | | | | | | | | | 414: textDocument/hover returns both type name and doc_text r=matklad a=h-michael implement #389 Co-authored-by: Hirokazu Hata <[email protected]>
| * Use both type_of and doc_text_forHirokazu Hata2019-01-051-14/+25
| |
| * Return type name when doc_text_for returns nothingHirokazu Hata2019-01-031-0/+12
| |
* | Rename ImplItem to ImplBlockFlorian Diebold2019-01-041-1/+1
| | | | | | | | | | rustc uses the name ImplItem for items in impls, not the impl {} block itself, which could lead to confusion.
* | extract area to a crateAleksey Kladov2019-01-043-14/+27
| |
* | fix testsBernardo2019-01-031-9/+14
| |
* | use lsp WorkspaceEdit instead of custom source_file_edits and file_system_editsBernardo2019-01-032-36/+37
|/
* use LocalPtr in navigation targetAleksey Kladov2019-01-031-1/+1
|
* use navigation target in APIAleksey Kladov2019-01-022-19/+25
|
* introduce navigation targetAleksey Kladov2019-01-021-5/+5
|
* Merge #165bors[bot]2018-12-311-0/+10
|\ | | | | | | | | | | | | | | | | | | | | | | 165: Make modules with tests runnable r=farodin91 a=farodin91 Fixes #154 I having problems to traverse the path to module. The main problem is that module_tree only supports `FileId` and not `Module` in files. Any idea? I need to clean up the code a bit later. Co-authored-by: Jan Jansen <[email protected]>
| * Make modules with tests runnableJan Jansen2018-12-311-0/+10
| | | | | | | | Fixes #154
* | fix icons in completionAleksey Kladov2018-12-311-1/+0
| |
* | Merge #385bors[bot]2018-12-313-4/+25
|\ \ | |/ |/| | | | | | | | | | | 385: Implement DocumentHighlight r=matklad a=DJMcNab Fixes #80. Co-authored-by: DJMcNab <[email protected]>
| * Use TryConv for conversionDJMcNab2018-12-311-2/+1
| |
| * Implement DocumentHighlightDJMcNab2018-12-313-4/+26
| |
* | Bump serde_json from 1.0.33 to 1.0.34dependabot[bot]2018-12-311-1/+1
| | | | | | | | | | | | | | Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.33 to 1.0.34. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.33...v1.0.34) Signed-off-by: dependabot[bot] <[email protected]>
* | Bump failure from 0.1.3 to 0.1.4dependabot[bot]2018-12-311-1/+1
| | | | | | | | | | | | | | | | Bumps [failure](https://github.com/rust-lang-nursery/failure) from 0.1.3 to 0.1.4. - [Release notes](https://github.com/rust-lang-nursery/failure/releases) - [Changelog](https://github.com/rust-lang-nursery/failure/blob/master/RELEASES.md) - [Commits](https://github.com/rust-lang-nursery/failure/compare/0.1.3...0.1.4) Signed-off-by: dependabot[bot] <[email protected]>
* | Bump failure_derive from 0.1.3 to 0.1.4dependabot[bot]2018-12-311-1/+1
| | | | | | | | | | | | | | Bumps [failure_derive](https://github.com/withoutboats/failure_derive) from 0.1.3 to 0.1.4. - [Release notes](https://github.com/withoutboats/failure_derive/releases) - [Commits](https://github.com/withoutboats/failure_derive/commits) Signed-off-by: dependabot[bot] <[email protected]>
* | remove backtraces from CancelledAleksey Kladov2018-12-301-1/+1
| | | | | | | | | | Hopefully we won't need them for debugging. If we do need them, it should be easy to add back.
* | Merge #375bors[bot]2018-12-301-13/+8
|\ \ | |/ |/| | | | | | | | | | | | | | | 375: Move renames into ra_analysis and rename the correct range r=DJMcNab a=DJMcNab Fixes #230. Supersedes #235. TODO: add some tests for this Co-authored-by: DJMcNab <[email protected]>
| * Move renames into ra_analysisDJMcNab2018-12-301-13/+8
| |
* | Merge #378bors[bot]2018-12-302-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | 378: migrate-to-tempdir r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | :arrow_up: tempdirAleksey Kladov2018-12-302-3/+3
| |/
* / :arrow_up: crossbeamAleksey Kladov2018-12-304-28/+39
|/ | | | closes #189
* remove runtime dependency on toolsAleksey Kladov2018-12-301-1/+1
|
* Simplify failure bail codeAleksander Vognild Burkow2018-12-291-3/+4
|
* Install rustfmt in rustfmt testAleksander Vognild Burkow2018-12-292-0/+3
|
* Add better error message for Command failureAleksander Vognild Burkow2018-12-291-1/+4
|
* Add support for formatting entire document with rustfmtAleksander Vognild Burkow2018-12-294-3/+89
| | | | | | Attempting to format a document when rustfmt isn't installed will result in an error being returned to the frontend. An alternative implementation would be returning zero replacements.
* completion for enum variantsAleksey Kladov2018-12-281-0/+1
|
* Merge #350bors[bot]2018-12-282-12/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 350: Super simple macro support r=matklad a=matklad Super simple support for macros, mostly for figuring out how to fit them into the current architecture. Expansion is hard-coded and string based (mid-term, we should try to copy-paste macro-by-example expander from rustc). Ideally, we should handle * highlighting inside the macro (done) * extend selection inside the macro * completion inside the macro * indexing structs, produced by the macro Co-authored-by: Aleksey Kladov <[email protected]>
| * switch to FileRangeAleksey Kladov2018-12-282-12/+21
| |
* | Bump serde from 1.0.82 to 1.0.83dependabot[bot]2018-12-281-1/+1
|/ | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.82 to 1.0.83. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.82...v1.0.83) Signed-off-by: dependabot[bot] <[email protected]>
* Bump languageserver-types from 0.53.0 to 0.53.1dependabot[bot]2018-12-271-1/+1
| | | | | | | | Bumps [languageserver-types](https://github.com/gluon-lang/languageserver-types) from 0.53.0 to 0.53.1. - [Release notes](https://github.com/gluon-lang/languageserver-types/releases) - [Changelog](https://github.com/gluon-lang/languageserver-types/blob/master/release.toml) - [Commits](https://github.com/gluon-lang/languageserver-types/compare/v0.53.0...v0.53.1) Signed-off-by: dependabot[bot] <[email protected]>
* Merge #325bors[bot]2018-12-271-40/+7
|\ | | | | | | | | | | | | | | | | | | 325: implement translate_offset_with_edit r=matklad a=vemoo - Implement `translate_offset_with_edit` to resolve #105 - Add proptest impls for text, offsets and edits and use them in tests for `translate_offset_with_edit` and `LineIndex` - Added benchmark for `translate_offset_with_edit` Co-authored-by: Bernardo <[email protected]>
| * change to `TextEdit` to avoid allocation and sortBernardo2018-12-251-4/+6
| | | | | | | | rename newline to step where applicable
| * use new translate_offset_with_edit for TryConvWithBernardo2018-12-251-36/+1
| | | | | | | | doc comments
| * move translate_offset_with_edit to ra_editorBernardo2018-12-252-308/+1
| |
| * initial newline translation workingBernardo2018-12-251-13/+257
| | | | | | | | | | | | todo: cleanup, simplify handle columns
| * test translate_offset_with_edit against simple impl for single editsBernardo2018-12-252-1/+64
| |
* | Merge #332bors[bot]2018-12-272-1/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 332: Struct types r=matklad a=flodiebold Infer types for struct fields, and add basic field completions. There's also some code for enums, but I focused on getting structs working. There's still ways to go before this becomes useful: There's no autoderef (or even reference types) and no inference for `self`, for example. Co-authored-by: Florian Diebold <[email protected]>