From 24b51971c25b0679e42183863f7481fea32a8e64 Mon Sep 17 00:00:00 2001 From: Andreas Arvidsson Date: Tue, 28 Jan 2025 21:07:04 +0100 Subject: [PATCH] Exclude parameterized from name scope (#2781) Fixes #1209 ## Checklist - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet --- .../typescript.core/name.variable.scope | 24 +++++++++++++++++++ queries/javascript.core.scm | 1 + 2 files changed, 25 insertions(+) create mode 100644 data/fixtures/scopes/typescript.core/name.variable.scope diff --git a/data/fixtures/scopes/typescript.core/name.variable.scope b/data/fixtures/scopes/typescript.core/name.variable.scope new file mode 100644 index 0000000000..b435326b58 --- /dev/null +++ b/data/fixtures/scopes/typescript.core/name.variable.scope @@ -0,0 +1,24 @@ +export type Aaa = Bbb; +--- + +[Content] = 0:12-0:15 + >---< +0| export type Aaa = Bbb; + +[Removal] = 0:12-0:16 + >----< +0| export type Aaa = Bbb; + +[Leading delimiter] = 0:11-0:12 + >-< +0| export type Aaa = Bbb; + +[Trailing delimiter] = 0:15-0:16 + >-< +0| export type Aaa = Bbb; + +[Domain] = 0:0-0:27 + >---------------------------< +0| export type Aaa = Bbb; + +[Insertion delimiter] = " " diff --git a/queries/javascript.core.scm b/queries/javascript.core.scm index 4b976160ca..510179ed0c 100644 --- a/queries/javascript.core.scm +++ b/queries/javascript.core.scm @@ -18,6 +18,7 @@ abstract_method_signature public_field_definition field_definition + generic_type ) )