aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| |
* | 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
| |
* | :arrow_up: crossbeamAleksey Kladov2018-12-302-23/+29
|/ | | | closes #189
* Simplify failure bail codeAleksander Vognild Burkow2018-12-291-3/+4
|
* Add better error message for Command failureAleksander Vognild Burkow2018-12-291-1/+4
|
* Add support for formatting entire document with rustfmtAleksander Vognild Burkow2018-12-293-1/+35
| | | | | | 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
|
* switch to FileRangeAleksey Kladov2018-12-282-12/+21
|
* 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-251-305/+0
| |
| * 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-251-0/+61
| |
* | 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]>
| * | Add . to trigger charactersFlorian Diebold2018-12-251-1/+1
| | |
| * | Implement basic completion for fieldsFlorian Diebold2018-12-251-0/+1
| | |
| * | Do name resolution by namespace (types/values)Florian Diebold2018-12-251-0/+2
| |/
* / add cancelation module & cancelation backtracesAleksey Kladov2018-12-271-1/+1
|/
* fix warning conversionAleksey Kladov2018-12-241-3/+1
|
* Merge #326bors[bot]2018-12-242-4/+15
|\ | | | | | | | | | | | | | | 326: resolved #324: remove unnecessary braces in use statement. r=matklad a=gfreezy Add inspection for unnecessary braces in use statement Co-authored-by: gfreezy <[email protected]>
| * remove option from Diagnosticgfreezy2018-12-242-3/+3
| |
| * add serverity to vscode diagnosticsgfreezy2018-12-231-2/+13
| |
* | Merge #302bors[bot]2018-12-242-8/+11
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | 302: WIP: Support tracing lsp requests. r=DJMcNab a=DJMcNab EDIT: We need to work out a better way to handle settings before this can be merged. Help wanted TODO: Debug why decorations are sent even when highlightingOn is disabled This makes the log volume so high its impossible to work with anyway. (Continuation of #84 [#99 only disabled using it, not making sure we don't send it]). These logs can be used in https://microsoft.github.io/language-server-protocol/inspector/ Co-authored-by: DJMcNab <[email protected]>
| * Improve commentDJMcNab2018-12-231-2/+2
| |
| * Undo the previous mistaken change and make publish_decorations optionalDJMcNab2018-12-212-8/+11
| | | | | | | | | | | | | | | | See https://github.com/Microsoft/language-server-protocol/issues/567 for motivations to not require `InitializationOptions` TODO: Check if there are any other protocol extensions which should be disabled if not implemented on the client
| * Disable highlighting if disabledDJMcNab2018-12-201-2/+2
| | | | | | | | | | | | | | | | This isn't working properly because we don't dynamically disable or enable it TODO: work out why highlighting can be enabled mid session. TODO: Improve settings handling
* | less chatty loggingAleksey Kladov2018-12-221-0/+7
| |
* | less verbose debugAleksey Kladov2018-12-221-7/+38
| |
* | log timesAleksey Kladov2018-12-222-2/+3
| |
* | binding iconAleksey Kladov2018-12-211-0/+1
| |
* | moar iconsAleksey Kladov2018-12-211-0/+2
| |
* | more iconsAleksey Kladov2018-12-211-1/+14
| |
* | move completion items to convAleksey Kladov2018-12-212-27/+30
| |
* | remove explicit serde_deriveAleksey Kladov2018-12-212-3/+3
| |
* | make compleion item details privateAleksey Kladov2018-12-211-8/+14
| |
* | edits use source-root APIAleksey Kladov2018-12-212-9/+18
| |
* | hide atom edits a bitAleksey Kladov2018-12-212-7/+19
| |
* | fix SourceFileEdit nameAleksey Kladov2018-12-211-2/+2
| |
* | tweak canceled messageAleksey Kladov2018-12-211-1/+1
| |
* | fold curly blocksAleksey Kladov2018-12-201-3/+4
|/
* Merge #297bors[bot]2018-12-201-1/+1
|\ | | | | | | | | | | | | | | 297: Use ContentModified error code r=matklad a=matklad https://github.com/Microsoft/language-server-protocol/commit/25679c2e4b26cb18af8c943319d40d4f3561a340 Co-authored-by: Aleksey Kladov <[email protected]>
| * Use ContentModified error codeAleksey Kladov2018-12-201-1/+1
| | | | | | | | https://github.com/Microsoft/language-server-protocol/commit/25679c2e4b26cb18af8c943319d40d4f3561a340
* | fix testsAleksey Kladov2018-12-201-1/+2
| |
* | fix sycAleksey Kladov2018-12-202-7/+30
| |
* | swtich lsp server to vfsAleksey Kladov2018-12-207-387/+138
| |