]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoAdd a comment
Jeremy Kolb [Thu, 24 Jan 2019 01:13:36 +0000 (20:13 -0500)]
Add a comment

5 years agoFix snap
Jeremy A. Kolb [Wed, 23 Jan 2019 23:50:46 +0000 (18:50 -0500)]
Fix snap

5 years agoAdd a bunch of new documentation to completions
Jeremy A. Kolb [Wed, 23 Jan 2019 22:46:14 +0000 (17:46 -0500)]
Add a bunch of new documentation to completions

5 years agoAdd way of getting docs from the code model and use for completion
Jeremy A. Kolb [Wed, 23 Jan 2019 21:22:10 +0000 (16:22 -0500)]
Add way of getting docs from the code model and use for completion

5 years agoMake EnumVariant a DocCommentsOwner
Jeremy A. Kolb [Wed, 23 Jan 2019 20:59:19 +0000 (15:59 -0500)]
Make EnumVariant a DocCommentsOwner

5 years agoMerge #617 #618
bors[bot] [Wed, 23 Jan 2019 19:15:50 +0000 (19:15 +0000)]
Merge #617 #618

617: Use npm ci instead of install r=matklad a=h-michael

fix #422

`npm install` is always recreate `package-lock.json`.
So we might use `npm ci` with `install-code`

https://docs.npmjs.com/cli/ci.html#description

618: Add install-lsp subcommand r=matklad a=h-michael

related https://github.com/rust-analyzer/rust-analyzer/pull/617#issuecomment-456914650

Co-authored-by: Hirokazu Hata <h.hata.ai.t@gmail.com>
5 years agoMerge #619
bors[bot] [Wed, 23 Jan 2019 19:09:48 +0000 (19:09 +0000)]
Merge #619

619: More correct raw ident handling r=matklad a=jrobsonchase

Also added the suggested test from #616.

It passed before the change to `scan_ident`, but at least now it should ensure that the behavior stays the same.

Co-authored-by: Josh Robson Chase <josh@robsonchase.com>
5 years agoMore correct raw ident handling
Josh Robson Chase [Wed, 23 Jan 2019 18:55:31 +0000 (13:55 -0500)]
More correct raw ident handling

5 years agoAdd install-lsp subcommand
Hirokazu Hata [Wed, 23 Jan 2019 18:41:23 +0000 (03:41 +0900)]
Add install-lsp subcommand

5 years agoMerge #616
bors[bot] [Wed, 23 Jan 2019 18:30:00 +0000 (18:30 +0000)]
Merge #616

616: Lex raw idents correctly r=matklad a=jrobsonchase

One question:

What's the intent of the text by the `IDENT` node under `NAME`? Should it be the actual token text or the semantic name?

Closes #611

Co-authored-by: Josh Robson Chase <josh@robsonchase.com>
5 years agoUse npm ci instead of install
Hirokazu Hata [Wed, 23 Jan 2019 18:23:15 +0000 (03:23 +0900)]
Use npm ci instead of install

5 years agoUse IDENT for both raw and normal idents
Josh Robson Chase [Wed, 23 Jan 2019 18:14:34 +0000 (13:14 -0500)]
Use IDENT for both raw and normal idents

5 years agoAdd raw idents to lexer and parser
Josh Robson Chase [Wed, 23 Jan 2019 17:15:47 +0000 (12:15 -0500)]
Add raw idents to lexer and parser

5 years agoMerge #615
bors[bot] [Wed, 23 Jan 2019 17:51:28 +0000 (17:51 +0000)]
Merge #615

615: Bumpup lsp-types to v0.55.0 r=DJMcNab a=h-michael

https://github.com/gluon-lang/lsp-types/compare/v0.54.0...v0.55.0

Co-authored-by: Hirokazu Hata <h.hata.ai.t@gmail.com>
5 years agoFix target_selection_range type
Hirokazu Hata [Wed, 23 Jan 2019 17:47:30 +0000 (02:47 +0900)]
Fix target_selection_range type

5 years agoBumpup lsp-types to v0.55.0
Hirokazu Hata [Wed, 23 Jan 2019 17:40:12 +0000 (02:40 +0900)]
Bumpup lsp-types to v0.55.0

5 years agodrop obsolete comment
Aleksey Kladov [Wed, 23 Jan 2019 17:45:32 +0000 (20:45 +0300)]
drop obsolete comment

5 years agoMerge #614
bors[bot] [Wed, 23 Jan 2019 17:24:15 +0000 (17:24 +0000)]
Merge #614

614: Add supported LSP features to README.md r=matklad a=h-michael

Co-authored-by: Hirokazu Hata <h.hata.ai.t@gmail.com>
5 years agoAdd supported LSP features to README.md
Hirokazu Hata [Wed, 23 Jan 2019 17:16:20 +0000 (02:16 +0900)]
Add supported LSP features to README.md

5 years agoMerge #613
bors[bot] [Wed, 23 Jan 2019 16:50:36 +0000 (16:50 +0000)]
Merge #613

613: assign DefIds when lowering r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agoassign DefIds when lowering
Aleksey Kladov [Wed, 23 Jan 2019 16:49:11 +0000 (19:49 +0300)]
assign DefIds when lowering

5 years agoMerge #612
bors[bot] [Wed, 23 Jan 2019 15:31:59 +0000 (15:31 +0000)]
Merge #612

612: Some random refactorings r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agointroduced better typed AstPtr
Aleksey Kladov [Wed, 23 Jan 2019 15:26:02 +0000 (18:26 +0300)]
introduced better typed AstPtr

5 years agorefactor
Aleksey Kladov [Wed, 23 Jan 2019 15:09:45 +0000 (18:09 +0300)]
refactor

5 years agosimiplify
Aleksey Kladov [Wed, 23 Jan 2019 14:57:41 +0000 (17:57 +0300)]
simiplify

5 years agobetter names
Aleksey Kladov [Wed, 23 Jan 2019 14:52:26 +0000 (17:52 +0300)]
better names

5 years agoMerge #610
bors[bot] [Wed, 23 Jan 2019 14:37:57 +0000 (14:37 +0000)]
Merge #610

610: move SyntaxPtr to ra_syntax r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agomove SyntaxPtr to ra_syntax
Aleksey Kladov [Wed, 23 Jan 2019 14:37:10 +0000 (17:37 +0300)]
move SyntaxPtr to ra_syntax

5 years agoMerge #608
bors[bot] [Wed, 23 Jan 2019 13:25:44 +0000 (13:25 +0000)]
Merge #608

608: Complete parens r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agodon't insert parens for self methods
Aleksey Kladov [Wed, 23 Jan 2019 13:21:20 +0000 (16:21 +0300)]
don't insert parens for self methods

5 years agomove completion item tests closer to the code
Aleksey Kladov [Wed, 23 Jan 2019 13:05:13 +0000 (16:05 +0300)]
move completion item tests closer to the code

this is the reason why we need marks: the tests were spread across two
files, because I've forgotten that there were tests already

5 years agoMerge #606
bors[bot] [Wed, 23 Jan 2019 12:40:36 +0000 (12:40 +0000)]
Merge #606

606: generalize marking infrastructure r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agogeneralize marking infrastructure
Aleksey Kladov [Wed, 23 Jan 2019 12:36:29 +0000 (15:36 +0300)]
generalize marking infrastructure

5 years agoMerge #605
bors[bot] [Wed, 23 Jan 2019 12:05:12 +0000 (12:05 +0000)]
Merge #605

605: :arrow_up: insta r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years ago:arrow_up: insta
Aleksey Kladov [Wed, 23 Jan 2019 11:48:57 +0000 (14:48 +0300)]
:arrow_up: insta

5 years agoMerge #603
bors[bot] [Wed, 23 Jan 2019 07:45:08 +0000 (07:45 +0000)]
Merge #603

603: fix completion bugs r=gfreezy a=gfreezy

The result is as below.

before:
![image](https://user-images.githubusercontent.com/510012/51483467-0f641400-1dd4-11e9-9921-ef21d15cc343.png)

after:
![image](https://user-images.githubusercontent.com/510012/51483433-fb201700-1dd3-11e9-9730-c2a5d3dd5f5a.png)

Co-authored-by: gfreezy <gfreezy@gmail.com>
5 years agofix completion bugs
gfreezy [Wed, 23 Jan 2019 05:21:29 +0000 (13:21 +0800)]
fix completion bugs

5 years agoMerge #598
bors[bot] [Wed, 23 Jan 2019 07:27:09 +0000 (07:27 +0000)]
Merge #598

598: Add function signature to CompletionItem detail r=matklad a=kjeremy

Co-authored-by: Jeremy A. Kolb <jkolb@ara.com>
5 years agoMove label from hir to ide_api
Jeremy A. Kolb [Tue, 22 Jan 2019 23:20:40 +0000 (18:20 -0500)]
Move label from hir to ide_api

5 years agoMerge #602
bors[bot] [Tue, 22 Jan 2019 22:25:22 +0000 (22:25 +0000)]
Merge #602

602: add status command r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agodocument status command
Aleksey Kladov [Tue, 22 Jan 2019 21:39:21 +0000 (00:39 +0300)]
document status command

5 years agoad status command
Aleksey Kladov [Tue, 22 Jan 2019 21:15:03 +0000 (00:15 +0300)]
ad status command

5 years agoMerge #601
bors[bot] [Tue, 22 Jan 2019 21:46:11 +0000 (21:46 +0000)]
Merge #601

601: Simplify CallInfo label and documentation r=matklad a=kjeremy

Co-authored-by: Jeremy A. Kolb <jkolb@ara.com>
5 years agoSimplify CallInfo label and documentation
Jeremy A. Kolb [Tue, 22 Jan 2019 21:28:02 +0000 (16:28 -0500)]
Simplify CallInfo label and documentation

5 years agoMerge #600
bors[bot] [Tue, 22 Jan 2019 20:37:27 +0000 (20:37 +0000)]
Merge #600

600: :arrow_up: rowan r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years ago:arrow_up: rowan
Aleksey Kladov [Tue, 22 Jan 2019 20:37:03 +0000 (23:37 +0300)]
:arrow_up: rowan

5 years agoMerge #599
bors[bot] [Tue, 22 Jan 2019 17:56:00 +0000 (17:56 +0000)]
Merge #599

599: Allow placeholder parameters in trait function definitions r=matklad a=regiontog

fixes #597

Co-authored-by: Erlend Tobiassen <erlend.tobiassen@gmail.com>
5 years agoAdd test for placeholder parameters in trait fn defs
Erlend Tobiassen [Tue, 22 Jan 2019 17:46:15 +0000 (18:46 +0100)]
Add test for placeholder parameters in trait fn defs

5 years agoAllow placeholder parameters in trait fn defs
Erlend Tobiassen [Tue, 22 Jan 2019 17:33:53 +0000 (18:33 +0100)]
Allow placeholder parameters in trait fn defs

5 years agoAdd function signature to CompletionItem detail
Jeremy A. Kolb [Tue, 22 Jan 2019 15:54:50 +0000 (10:54 -0500)]
Add function signature to CompletionItem detail

5 years agoMerge #593
bors[bot] [Tue, 22 Jan 2019 15:06:32 +0000 (15:06 +0000)]
Merge #593

593: Docs for completion r=matklad a=kjeremy

The first commit adds documentation support to CompletionItems.

The second one I am unsure about. Is that the right way to add docs for functions? If so should I do something similar for other `hir` types and CompletionItems?

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
Co-authored-by: Jeremy A. Kolb <jkolb@ara.com>
5 years agoUpdate snaps
Jeremy A. Kolb [Tue, 22 Jan 2019 14:51:29 +0000 (09:51 -0500)]
Update snaps

5 years agoMove docs to Function
Jeremy Kolb [Tue, 22 Jan 2019 13:55:05 +0000 (08:55 -0500)]
Move docs to Function

5 years agoMerge #592
bors[bot] [Tue, 22 Jan 2019 13:49:33 +0000 (13:49 +0000)]
Merge #592

592: Allow types to the left of `:` in where predicates r=matklad a=regiontog

Adresses #584

Co-authored-by: Erlend Tobiassen <erlend.tobiassen@gmail.com>
5 years agoNo need for is_type_start
Erlend Tobiassen [Tue, 22 Jan 2019 13:46:06 +0000 (14:46 +0100)]
No need for is_type_start

5 years agoPrefer TYPE_FIRST
Erlend Tobiassen [Tue, 22 Jan 2019 13:36:57 +0000 (14:36 +0100)]
Prefer TYPE_FIRST

5 years agoUpdate tests after allowing where predicate to accept types
Erlend Tobiassen [Tue, 22 Jan 2019 13:32:23 +0000 (14:32 +0100)]
Update tests after allowing where predicate to accept types

5 years agoMerge #594
bors[bot] [Tue, 22 Jan 2019 13:27:17 +0000 (13:27 +0000)]
Merge #594

594: fold macros r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agofold macros
Aleksey Kladov [Tue, 22 Jan 2019 13:26:32 +0000 (16:26 +0300)]
fold macros

5 years agoOptimistically bail out of where clause loop if not at start of a type or lifetime
Erlend Tobiassen [Tue, 22 Jan 2019 12:17:10 +0000 (13:17 +0100)]
Optimistically bail out of where clause loop if not at start of a type or lifetime

5 years agoThread documentation through FnSignature and CompletionItem
Jeremy Kolb [Tue, 22 Jan 2019 02:42:37 +0000 (21:42 -0500)]
Thread documentation through FnSignature and CompletionItem

5 years agoTeach CompletionItem about documentation
Jeremy Kolb [Tue, 22 Jan 2019 02:41:39 +0000 (21:41 -0500)]
Teach CompletionItem about documentation

5 years agoDon't leave a marker hanging without completing it.
Erlend Tobiassen [Tue, 22 Jan 2019 00:25:00 +0000 (01:25 +0100)]
Don't leave a marker hanging without completing it.

5 years agoAllow types to the left of : in where predicates.
Erlend Tobiassen [Tue, 22 Jan 2019 00:11:35 +0000 (01:11 +0100)]
Allow types to the left of : in where predicates.

5 years agoMerge #591
bors[bot] [Mon, 21 Jan 2019 22:29:25 +0000 (22:29 +0000)]
Merge #591

591: :arrow_up: insta r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years ago:arrow_up: insta
Aleksey Kladov [Mon, 21 Jan 2019 22:28:57 +0000 (01:28 +0300)]
:arrow_up: insta

5 years agoMerge #590
bors[bot] [Mon, 21 Jan 2019 22:16:33 +0000 (22:16 +0000)]
Merge #590

590: Use insta for ty tests r=matklad a=flodiebold

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
5 years agoMerge #588
bors[bot] [Mon, 21 Jan 2019 22:10:43 +0000 (22:10 +0000)]
Merge #588

588: Fix .not postfix completion r=matklad a=flodiebold

The postfix snippets are awesome! I don't think the `.not` one is supposed to always replace the receiver by literally `!not` :smile:

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
5 years agoUse insta for ty tests
Florian Diebold [Mon, 21 Jan 2019 21:52:35 +0000 (22:52 +0100)]
Use insta for ty tests

5 years agoFix .not postfix completion
Florian Diebold [Mon, 21 Jan 2019 21:33:30 +0000 (22:33 +0100)]
Fix .not postfix completion

5 years agoMerge #586
bors[bot] [Mon, 21 Jan 2019 20:47:01 +0000 (20:47 +0000)]
Merge #586

586: Fix panic trying to get substs on unknown type r=matklad a=flodiebold

Fixes #585.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
5 years agoFix panic trying to get substs on unknown type
Florian Diebold [Mon, 21 Jan 2019 20:42:19 +0000 (21:42 +0100)]
Fix panic trying to get substs on unknown type

Fixes #585.

5 years agomention guide in architecture
Aleksey Kladov [Mon, 21 Jan 2019 08:26:15 +0000 (11:26 +0300)]
mention guide in architecture

5 years agoadd illustrations
Aleksey Kladov [Mon, 21 Jan 2019 08:18:40 +0000 (11:18 +0300)]
add illustrations

5 years agoApply suggestions from code review
Pascal Hertleif [Sun, 20 Jan 2019 20:28:29 +0000 (22:28 +0200)]
Apply suggestions from code review

Co-Authored-By: matklad <aleksey.kladov@gmail.com>
5 years agocreate a reference cycle by linking the video
Aleksey Kladov [Sun, 20 Jan 2019 17:32:07 +0000 (20:32 +0300)]
create a reference cycle by linking the video

5 years agoreach fixed-point for rust-analyzer spelling
Aleksey Kladov [Sun, 20 Jan 2019 17:31:05 +0000 (20:31 +0300)]
reach fixed-point for rust-analyzer spelling

5 years agofix a ton of typos
Aleksey Kladov [Sun, 20 Jan 2019 13:00:46 +0000 (16:00 +0300)]
fix a ton of typos

5 years agofix the tag
Aleksey Kladov [Sun, 20 Jan 2019 12:46:36 +0000 (15:46 +0300)]
fix the tag

5 years agocomplete completion section
Aleksey Kladov [Sun, 20 Jan 2019 12:43:43 +0000 (15:43 +0300)]
complete completion section

5 years agostart completions walkthrough
Aleksey Kladov [Sat, 19 Jan 2019 20:06:33 +0000 (23:06 +0300)]
start completions walkthrough

5 years agowrite about type inference
Aleksey Kladov [Sat, 19 Jan 2019 19:53:57 +0000 (22:53 +0300)]
write about type inference

5 years agosource map pattern
Aleksey Kladov [Sat, 19 Jan 2019 19:31:28 +0000 (22:31 +0300)]
source map pattern

5 years agoguide about recursive macto magic
Aleksey Kladov [Sat, 19 Jan 2019 18:44:18 +0000 (21:44 +0300)]
guide about recursive macto magic

5 years agostart chapter about interners
Aleksey Kladov [Sat, 19 Jan 2019 17:20:45 +0000 (20:20 +0300)]
start chapter about interners

5 years agofinish modules section
Aleksey Kladov [Sat, 19 Jan 2019 13:10:32 +0000 (16:10 +0300)]
finish modules section

5 years agoadd guide
Aleksey Kladov [Sat, 19 Jan 2019 12:51:46 +0000 (15:51 +0300)]
add guide

5 years agoMerge #582
bors[bot] [Mon, 21 Jan 2019 08:12:14 +0000 (08:12 +0000)]
Merge #582

582: Postfix completion r=matklad a=gfreezy

resolved #525

Co-authored-by: gfreezy <gfreezy@gmail.com>
5 years agoMerge #581
bors[bot] [Mon, 21 Jan 2019 07:26:45 +0000 (07:26 +0000)]
Merge #581

581: Typo fix r=DJMcNab a=gfreezy

Co-authored-by: gfreezy <gfreezy@gmail.com>
5 years agopostfix completion
gfreezy [Mon, 21 Jan 2019 05:19:51 +0000 (13:19 +0800)]
postfix completion

5 years agotypos fix
gfreezy [Mon, 21 Jan 2019 02:35:18 +0000 (10:35 +0800)]
typos fix

5 years agoMerge #574
bors[bot] [Sun, 20 Jan 2019 18:27:23 +0000 (18:27 +0000)]
Merge #574

574: refactor completions to use TextEdit instead of InsertText r=matklad a=gfreezy

1. migrate from `insertText` to `TextEdit` from `CompleteItem`
2. use `insta` to test completions

Co-authored-by: gfreezy <gfreezy@gmail.com>
5 years agoMerge #580
bors[bot] [Sun, 20 Jan 2019 18:17:18 +0000 (18:17 +0000)]
Merge #580

580: extend selection expands macros and can totally panic r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agoextend selection expands macros and can totally panic
Aleksey Kladov [Sun, 20 Jan 2019 18:05:01 +0000 (21:05 +0300)]
extend selection expands macros and can totally panic

5 years agosomewhat better name
Aleksey Kladov [Sun, 20 Jan 2019 18:01:11 +0000 (21:01 +0300)]
somewhat better name

5 years agomake matching brace consistent
Aleksey Kladov [Sun, 20 Jan 2019 17:59:46 +0000 (20:59 +0300)]
make matching brace consistent

5 years agouse with_db consistently
Aleksey Kladov [Sun, 20 Jan 2019 17:55:08 +0000 (20:55 +0300)]
use with_db consistently

5 years agoMerge #579
bors[bot] [Sun, 20 Jan 2019 17:26:26 +0000 (17:26 +0000)]
Merge #579

579: Fix panic on inferring field access on an enum r=matklad a=flodiebold

Seen while skipping through https://youtu.be/ANKBNiSWyfc ;)

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
5 years agoFix panic on inferring field access on an enum
Florian Diebold [Sun, 20 Jan 2019 17:08:25 +0000 (18:08 +0100)]
Fix panic on inferring field access on an enum

5 years agofix tests
gfreezy [Sun, 20 Jan 2019 09:28:10 +0000 (17:28 +0800)]
fix tests