From fb073a5535c0db2143df137cfa290c742920446c Mon Sep 17 00:00:00 2001 From: Aldo Nogueira Date: Sun, 25 Feb 2018 16:04:21 -0300 Subject: [PATCH] Removes local variables from outline #594 --- src/actions/requests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/actions/requests.rs b/src/actions/requests.rs index 3128627ec42..dd4e5a8be9a 100644 --- a/src/actions/requests.rs +++ b/src/actions/requests.rs @@ -25,6 +25,7 @@ use span; use actions::work_pool; use actions::work_pool::WorkDescription; +use analysis::DefKind; use lsp_data; use lsp_data::*; use server; @@ -116,6 +117,7 @@ impl RequestAction for Symbols { Ok( symbols .into_iter() + .filter(|s| s.kind != DefKind::Local) // Removes local variables from the outline .map(|s| { SymbolInformation { name: s.name,