rust-analyzer/crates
bors[bot] 57ed622ec4
Merge #5089 #5161 #5184 #5185 #5186
5089: Disable auto-complete on comments r=matklad a=BGluth

Resolves #4907 by disabling any auto-completion on comments.

As flodiebold [pointed out](https://github.com/rust-analyzer/rust-analyzer/issues/4907#issuecomment-648439979), in the future we may want to support some form of auto-completion within doc comments, but for now it was suggested to just disable auto-completion on them entirely.

The implementation involves adding a new field `is_comment` to `CompletionContext` and checking if the immediate token we auto-completed on is a comment. I couldn't see a case where we need to check any of the ancestors, but let me know if this is not sufficient. I also wasn't sure if it was necessary to add a new field to this struct, but I decided it's probably the best option if we want to potentially do auto-completion on doc comments in the future.

Finally, the three tests I added should I think ideally not filter results by `CompletionKind::Keyword`, but if I want to get unfiltered results, I need access to a non-public function [get_all_completion_items](9a4d02faf9/crates/ra_ide/src/completion/test_utils.rs (L32-L39)) which I don't know if I should make public just for this.



5161: SSR: Add initial support for placeholder constraints r=matklad a=davidlattimore



5184: Always install required nightly extension if current one is not nightly r=matklad a=Veetaha

This is weird, but having switched back to stable by uninstalling the extension appears that vscode doesn't destroy the `PersistentState` and thus changing to `nightly` channel doesn't work because the last check for nightly extension was less than 1 hour ago. The simple solution is to skip this check if we know that the current extension version is not nightly.

5185: Force showing extension activation error pop-up notification r=matklad a=Veetaha

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/5091

5186: fix: correct pd/ppd/tfn/tmod completion doc r=matklad a=fannheyward

a33eefa3b2/crates/ra_ide/src/completion/complete_snippet.rs (L23-L24)

Co-authored-by: BGluth <gluthb@gmail.com>
Co-authored-by: David Lattimore <dml@google.com>
Co-authored-by: Veetaha <veetaha2@gmail.com>
Co-authored-by: Heyward Fann <fannheyward@gmail.com>
2020-07-02 09:12:46 +00:00
..
expect Move test data to test_data directory 2020-07-01 11:26:09 +02:00
flycheck Log flycheck command 2020-07-01 14:49:13 +02:00
paths Be more explicit about absolute paths at various places 2020-06-24 14:39:34 +02:00
ra_arena Shrink arenas after building ItemTree 2020-06-24 16:54:21 +02:00
ra_assists Reuse Semantics instances 2020-07-01 15:27:01 +03:00
ra_cfg add support of feature flag for runnables #4464 2020-05-23 20:59:18 +02:00
ra_db Add a transitive deps iterator to CrateGraph 2020-07-01 15:18:51 +02:00
ra_fmt Introduce EffectExpr 2020-05-02 11:21:39 +02:00
ra_hir Merge #5149 2020-07-01 18:41:06 +00:00
ra_hir_def ItemTree: Lower fields despite invalid type 2020-07-01 19:24:39 +02:00
ra_hir_expand Merge #5154 #5157 2020-07-01 08:11:23 +00:00
ra_hir_ty Merge #5149 2020-07-01 18:41:06 +00:00
ra_ide Merge #5089 #5161 #5184 #5185 #5186 2020-07-02 09:12:46 +00:00
ra_ide_db Merge #5175 2020-07-01 17:12:06 +00:00
ra_mbe Simlify with matches!() 2020-06-28 04:03:59 +03:00
ra_parser Simlify with matches!() 2020-06-28 04:03:59 +03:00
ra_proc_macro proc_macro: add ability to log to stderr and view output in vscode 2020-04-23 01:57:02 +03:00
ra_proc_macro_srv Colorize more test fixtures 2020-07-01 19:05:34 +03:00
ra_prof Simplify profiler impl (bubble up Option and shorten code 2020-04-26 00:55:49 +03:00
ra_project_model Automatically reload project on config change 2020-07-01 16:42:14 +02:00
ra_ssr SSR: Use T! instead of SyntaxKind::* where possible 2020-07-02 09:19:58 +10:00
ra_syntax Unify magic env var name 2020-07-01 12:31:03 +02:00
ra_text_edit Formalize JoinLines protocol extension 2020-05-21 20:05:33 +02:00
ra_toolchain Better exe probing 2020-06-27 02:04:33 +02:00
ra_tt Simlify with matches!() 2020-06-28 04:03:59 +03:00
rust-analyzer Fold multiline calls 2020-07-01 18:27:58 +02:00
stdx More principled indentation trimming in fixtures 2020-06-23 23:33:41 +02:00
test_utils Fold multiline calls 2020-07-01 18:27:58 +02:00
vfs FileSetConfig works with empty set of roots 2020-07-01 09:06:51 +02:00
vfs-notify Naming 2020-06-28 22:35:18 +02:00