Skip to content

Commit dcc158f

Browse files
committed
Changelog #144
1 parent 7d23c79 commit dcc158f

File tree

4 files changed

+94
-3
lines changed

4 files changed

+94
-3
lines changed

generated_config.adoc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,52 @@ Enables the use of rustfmt's unstable range formatting command for the
587587
`textDocument/rangeFormatting` request. The rustfmt option is unstable and only
588588
available on a nightly build.
589589
--
590+
[[rust-analyzer.semanticHighlighting.doc.comment.inject.enable]]rust-analyzer.semanticHighlighting.doc.comment.inject.enable (default: `true`)::
591+
+
592+
--
593+
Inject additional highlighting into doc comments.
594+
595+
When enabled, rust-analyzer will highlight rust source in doc comments as well as intra
596+
doc links.
597+
--
598+
[[rust-analyzer.semanticHighlighting.operator.enable]]rust-analyzer.semanticHighlighting.operator.enable (default: `true`)::
599+
+
600+
--
601+
Use semantic tokens for operators.
602+
603+
When disabled, rust-analyzer will emit semantic tokens only for operator tokens when
604+
they are tagged with modifiers.
605+
--
606+
[[rust-analyzer.semanticHighlighting.operator.specialization.enable]]rust-analyzer.semanticHighlighting.operator.specialization.enable (default: `false`)::
607+
+
608+
--
609+
Use specialized semantic tokens for operators.
610+
611+
When enabled, rust-analyzer will emit special token types for operator tokens instead
612+
of the generic `operator` token type.
613+
--
614+
[[rust-analyzer.semanticHighlighting.punctuation.enable]]rust-analyzer.semanticHighlighting.punctuation.enable (default: `false`)::
615+
+
616+
--
617+
Use semantic tokens for punctuations.
618+
619+
When disabled, rust-analyzer will emit semantic tokens only for punctuation tokens when
620+
they are tagged with modifiers or have a special role.
621+
--
622+
[[rust-analyzer.semanticHighlighting.punctuation.separate.macro.bang]]rust-analyzer.semanticHighlighting.punctuation.separate.macro.bang (default: `false`)::
623+
+
624+
--
625+
When enabled, rust-analyzer will emit a punctuation semantic token for the `!` of macro
626+
calls.
627+
--
628+
[[rust-analyzer.semanticHighlighting.punctuation.specialization.enable]]rust-analyzer.semanticHighlighting.punctuation.specialization.enable (default: `false`)::
629+
+
630+
--
631+
Use specialized semantic tokens for punctuations.
632+
633+
When enabled, rust-analyzer will emit special token types for punctuation tokens instead
634+
of the generic `punctuation` token type.
635+
--
590636
[[rust-analyzer.semanticHighlighting.strings.enable]]rust-analyzer.semanticHighlighting.strings.enable (default: `true`)::
591637
+
592638
--

generated_features.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ image::https://user-images.githubusercontent.com/48062697/113020654-b42fc800-917
223223

224224

225225
=== Find All References
226-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L41[references.rs]
226+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L42[references.rs]
227227

228228
Shows all references of the item at the cursor location
229229

@@ -607,7 +607,7 @@ image::https://user-images.githubusercontent.com/48062697/113065583-055aae80-91b
607607

608608

609609
=== Semantic Syntax Highlighting
610-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/syntax_highlighting.rs#L39[syntax_highlighting.rs]
610+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/syntax_highlighting.rs#L59[syntax_highlighting.rs]
611611

612612
rust-analyzer highlights the code semantically.
613613
For example, `Bar` in `foo::Bar` might be colored differently depending on whether `Bar` is an enum or a trait.
@@ -932,7 +932,7 @@ by overwriting the settings object mentioned above, the defaults are:
932932

933933

934934
=== View Crate Graph
935-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_crate_graph.rs#L9[view_crate_graph.rs]
935+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_crate_graph.rs#L10[view_crate_graph.rs]
936936

937937
Renders the currently loaded crate graph as an SVG graphic. Requires the `dot` tool, which
938938
is part of graphviz, to be installed.

manual.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,3 +861,14 @@ For example, if you want to run https://crates.io/crates/cargo-watch[`cargo watc
861861
"isBackground": true
862862
}
863863
```
864+
865+
==== Live Share
866+
867+
VS Code Live Share has partial support for rust-analyzer.
868+
869+
Live Share _requires_ the official Microsoft build of VS Code, OSS builds will not work correctly.
870+
871+
The host's rust-analyzer instance will be shared with all guests joining the session.
872+
The guests do not have to have the rust-analyzer extension installed for this to work.
873+
874+
If you are joining a Live Share session and _do_ have rust-analyzer installed locally, commands from the command palette will not work correctly since they will attempt to communicate with the local server.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
= Changelog #144
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:e8e598f6415461e7fe957eec1bee6afb55927d59[] +
6+
Release: release:2022-08-29[]
7+
8+
== New Features
9+
10+
* pr:12965[] (first contribution) mark `#[cfg]`-ed out associated items as inactive:
11+
+
12+
image::https://user-images.githubusercontent.com/308347/187130565-0a0f0d88-2036-44b0-93f2-daf14f837f95.png[]
13+
* pr:12976[] emit subcommand to emit SCIP.
14+
* pr:13084[], pr:13099[] add more highlighting configurations, disable some by default.
15+
16+
== Fixes
17+
18+
* pr:13021[] (first contribution) paper over panics on GATs with const generics.
19+
* pr:13092[] use correct offsets in macro inputs for reference autocompletions.
20+
* pr:13096[] accept leading `|` in more pattern positions.
21+
* pr:13100[] resolve doc links on impl blocks.
22+
* pr:13110[] make `Extract type as type alias` work on arrays using const generics.
23+
* pr:13088[] show an error when flycheck can't be restarted.
24+
* pr:13090[] do not substitute `Self` in the same impl block in `Inline call`.
25+
* pr:13095[] avoid error message when using Live Share.
26+
* pr:13133[] move empty diagnostics workaround back into the server.
27+
28+
== Internal Improvements
29+
30+
* pr:13078[] (first contribution) remove unnecessary stream writer `try_clone` in `lsp-server`.
31+
* pr:13087[] remove automatic config patching from the VS Code extension.
32+
* pr:13116[] use identity hashing for `FileId` and `CrateId`.
33+
* pr:13101[] re-export standard semantic token types and modifiers.
34+
* pr:13001[] replace `crossbeam` scoped threads with standard library ones.

0 commit comments

Comments
 (0)