From 36f5e22d41db3f3cf03d1c6b77f63b6c42aba1ae Mon Sep 17 00:00:00 2001 From: Michael <47316908+zarathir@users.noreply.github.com> Date: Tue, 15 Nov 2022 19:10:44 +0100 Subject: [PATCH] add codelens and sticky headers for Dart (#1690) --- CHANGELOG.md | 2 ++ lapce-core/src/language.rs | 12 ++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c9e0d92..c491895a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ - [#1700](https://github.com/lapce/lapce/pull/1700): Add prisma syntax and highlighting - [#1702](https://github.com/lapce/lapce/pull/1702): Improved svelte treesitter queries +- [#1690](https://github.com/lapce/lapce/pull/1690): Add codelens and sticky headers for Dart + ### Bug Fixes ## 0.2.3 diff --git a/lapce-core/src/language.rs b/lapce-core/src/language.rs index 07e8996b..c5ca306c 100644 --- a/lapce-core/src/language.rs +++ b/lapce-core/src/language.rs @@ -301,8 +301,16 @@ pub enum LapceLanguage { injection: None, comment: "//", indent: " ", - code_lens: (DEFAULT_CODE_LENS_LIST, DEFAULT_CODE_LENS_IGNORE_LIST), - sticky_headers: &[], + code_lens: ( + &["program", "class_definition"], + &[ + "program", + "import_or_export", + "comment", + "documentation_comment", + ], + ), + sticky_headers: &["class_definition"], extensions: &["dart"], }, #[cfg(feature = "lang-dockerfile")]