aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* Merge #933bors[bot]2019-03-062-12/+45
|\ | | | | | | | | | | | | | | | | | | 933: Check installed extension r=matklad a=c410-f3r Fixes #918. Edit: Windows encoding for Unicode is UTF-16 so String::from_utf8 will probably fail unless `Vec<u8>` is already UTF-8 somehow, which I don't know for sure. Co-authored-by: Caio <[email protected]>
| * Check installed extensionCaio2019-03-052-12/+45
| |
* | 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-055-6/+6
| |
* | dont produce giant debug dumpsAleksey Kladov2019-03-051-1/+8
| |
* | show message in client's UI if workspace fails to loadAleksey Kladov2019-03-053-8/+32
| |
* | Merge #930bors[bot]2019-03-054-7/+188
|\ \ | | | | | | | | | | | | | | | | | | | | | 930: Add support for parsing multiple if and while-let patterns r=matklad a=vipentti Co-authored-by: Ville Penttinen <[email protected]>
| * | Introduce pattern_list to parse pipe separated patternsVille Penttinen2019-03-052-10/+18
| | | | | | | | | | | | | | | pattern_list comes in two variants, one uses the default PAT_RECOVERY_SET as the recovery set, while other allows the user to provide a recovery set.
| * | Add support for parsing multiple if and while-let patternsVille Penttinen2019-03-043-1/+174
| |/
* | Merge #912bors[bot]2019-03-054-24/+116
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | 912: Make goto definition/hover work for associated items r=matklad a=kjeremy Just functions so far. Looking for comments. Fixes #911 Towards #832 Co-authored-by: kjeremy <[email protected]> Co-authored-by: Jeremy Kolb <[email protected]>
| * Use impl_froms!kjeremy2019-03-041-13/+3
| |
| * Make ExpOrPatId privatekjeremy2019-03-042-4/+7
| |
| * FormatJeremy Kolb2019-03-041-7/+2
| |
| * Add NavigationTarget::from_impl_itemJeremy Kolb2019-03-042-14/+22
| |
| * Remove commented out codeJeremy Kolb2019-03-041-9/+0
| |
| * Use ImplItems instead of just FunctionJeremy Kolb2019-03-043-40/+65
| |
| * Make goto definition/hover resolve constructorskjeremy2019-03-043-7/+87
| |
* | allow `mut ident` patterns in trait methodsAleksey Kladov2019-03-043-12/+28
| | | | | | | | closes #928
* | allow aliases in underscoresAleksey Kladov2019-03-044-2/+21
|/ | | | | | | | this helps with use foo::Trait as _; syntax
* Merge #926bors[bot]2019-03-043-1/+56
|\ | | | | | | | | | | | | | | 926: allow vararg functions r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * allow vararg functionsAleksey Kladov2019-03-043-1/+56
| |
* | improve error recoveryAleksey Kladov2019-03-044-59/+77
| | | | | | | | parse the contents of error block as an expression
* | extract block contents into a functionAleksey Kladov2019-03-041-2/+6
|/
* Merge #916bors[bot]2019-03-044-72/+220
|\ | | | | | | | | | | | | | | 916: Error handling for macros r=matklad a=detrumi Part of #720 Co-authored-by: Wilco Kusee <[email protected]>
| * Add expander unit testsWilco Kusee2019-03-031-4/+69
| |
| * Add parser unit testsWilco Kusee2019-03-033-6/+58
| |
| * Split parse and expand errorsWilco Kusee2019-03-034-72/+74
| |
| * FormattingWilco Kusee2019-03-021-10/+20
| |
| * Replace option with result in mbeWilco Kusee2019-03-024-74/+93
| |
* | Allow syntax strings to contain test markersVille Penttinen2019-03-041-1/+3
| | | | | | | | | | We simply remove all the CUSTOM_MARKERS before attempting to parse the file. This allows for the syntax selection to work with most of the test strings.
* | Implement syntax tree support for syntax inside stringVille Penttinen2019-03-043-8/+206
| | | | | | | | | | | | This allows us to select a string or portions of it and try parsing it as rust syntax. This is mostly helpful when developing tests where the test itself contains some rust syntax as a string.
* | Add optional range parameter to SyntaxTreeParamsVille Penttinen2019-03-034-5/+148
| | | | | | | | | | When range is provided, instead of showing the syntax for the whole file, we'll show the syntax tree for the given range.
* | Inline type inference test snapshotsFlorian Diebold2019-03-0359-1504/+1096
| |
* | Represent unknown types as {unknown} instead of [unknown]Florian Diebold2019-03-0329-172/+172
| | | | | | | | Since the latter could actually be a real type...
* | Add a bunch of tests for type inference involving traitsFlorian Diebold2019-03-0213-0/+403
| | | | | | | | None of them works correctly yet, of course.
* | Merge #908bors[bot]2019-03-021-8/+27
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 908: Enable markup for hover on expressions which resolve using type_of r=matklad a=vipentti This adds highlighting when hovering over items which are resolved using `type_of`. This adds basic highlighting, discussed in #904. Co-authored-by: Ville Penttinen <[email protected]>
| * | Enable markup for hover on expressions which resolve using type_ofVille Penttinen2019-02-281-8/+27
| | | | | | | | | | | | | | | This adds highlighting when hovering over items which are resolved using `type_of`.
* | | Merge #915bors[bot]2019-03-0216-133/+108
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 915: Bring BodySyntaxMapping in line with other source-map instances r=flodiebold a=matklad * rename to SourceMap * don't store the actual body inline, just return a pair r? @flodiebold Co-authored-by: Aleksey Kladov <[email protected]>
| * | | remove commentAleksey Kladov2019-03-021-1/+0
| | | |
| * | | remove second way to get the bodyAleksey Kladov2019-03-022-5/+1
| | | |
| * | | rename syntax_mapping as wellAleksey Kladov2019-03-026-19/+18
| | | |
| * | | align lower module query namesAleksey Kladov2019-03-027-23/+15
| | | |
| * | | rename scopesAleksey Kladov2019-03-024-9/+9
| | | |
| * | | rename to source_mapAleksey Kladov2019-03-022-17/+13
| | | |
| * | | dont store body inside source mapAleksey Kladov2019-03-025-61/+54
| | | |
| * | | rename syntax-mapping -> source-mapAleksey Kladov2019-03-0211-32/+32
| | |/ | |/|
* / | A bit of cleanup in ty.rsFlorian Diebold2019-03-021-28/+1
|/ /