From 36cb58f76d702d87f445ee7eefe26a0bc1ee3811 Mon Sep 17 00:00:00 2001 From: Sergey Parilin Date: Fri, 22 Mar 2019 15:54:26 +0300 Subject: structure moved to ra_ide_api ra_ide_api_light removed completely --- docs/dev/architecture.md | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'docs') diff --git a/docs/dev/architecture.md b/docs/dev/architecture.md index f990d5bf0..890b18fcd 100644 --- a/docs/dev/architecture.md +++ b/docs/dev/architecture.md @@ -130,19 +130,6 @@ APIs in this crate are IDE centric: they take text offsets as input and produce offsets and strings as output. This works on top of rich code model powered by `hir`. -### `crates/ra_ide_api_light` - -All IDE features which can be implemented if you only have access to a single -file. `ra_ide_api_light` could be used to enhance editing of Rust code without -the need to fiddle with build-systems, file synchronization and such. - -In a sense, `ra_ide_api_light` is just a bunch of pure functions which take a -syntax tree as input. - -The tests for `ra_ide_api_light` are `#[cfg(test)] mod tests` unit-tests spread -throughout its modules. - - ### `crates/ra_lsp_server` An LSP implementation which wraps `ra_ide_api` into a langauge server protocol. -- cgit v1.2.3 From 2ca1b2bc8fd14cb78c869551c35713603ca785f3 Mon Sep 17 00:00:00 2001 From: gfreezy Date: Mon, 25 Mar 2019 23:14:30 +0800 Subject: add desc and examples for inline variable action --- docs/user/features.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'docs') diff --git a/docs/user/features.md b/docs/user/features.md index b9d2aa84f..59ee3dbd5 100644 --- a/docs/user/features.md +++ b/docs/user/features.md @@ -270,6 +270,21 @@ fn foo() { } ``` +- Inline local variable: + +```rust +// before: +fn foo() { + let a<|> = 1 + 1; + let b = a * 10; +} + +// after: +fn foo() { + let b = (1 + 1) * 10; +} +``` + -- Remove `dbg!` ```rust -- cgit v1.2.3 From 8cb3041a0cbd64b7ddc46fbf81a3c0088af7bcf2 Mon Sep 17 00:00:00 2001 From: gfreezy Date: Mon, 25 Mar 2019 23:15:52 +0800 Subject: markdown syntax --- docs/user/features.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/user/features.md b/docs/user/features.md index 59ee3dbd5..7173d88e9 100644 --- a/docs/user/features.md +++ b/docs/user/features.md @@ -210,7 +210,7 @@ fn main() { } ``` --- Fill struct fields +- Fill struct fields ```rust // before: @@ -285,7 +285,7 @@ fn foo() { } ``` --- Remove `dbg!` +- Remove `dbg!` ```rust // before: -- cgit v1.2.3