From 800a644f6abdfd912098df4792b953b5ead9e5c7 Mon Sep 17 00:00:00 2001 From: Will Stott Date: Fri, 6 Dec 2019 18:07:06 +0000 Subject: [PATCH 1/9] Exclude function calls from the symbol lists... no way to make them references without changing scope names. --- Symbol List.tmPreferences | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Symbol List.tmPreferences diff --git a/Symbol List.tmPreferences b/Symbol List.tmPreferences new file mode 100644 index 00000000..92263104 --- /dev/null +++ b/Symbol List.tmPreferences @@ -0,0 +1,19 @@ + + + + name + Symbol List + scope + + source.ts meta.function-call, + source.ts new.expr + + settings + + showInIndexedSymbolList + 0 + showInSymbolList + 0 + + + \ No newline at end of file From d6e72b765c5de22ad120920e347d7adb16a2d574 Mon Sep 17 00:00:00 2001 From: Will Stott Date: Mon, 16 Dec 2019 19:30:31 +0000 Subject: [PATCH 2/9] Exclude type annotations from the symbol lists --- Symbol List.tmPreferences | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Symbol List.tmPreferences b/Symbol List.tmPreferences index 92263104..152534c4 100644 --- a/Symbol List.tmPreferences +++ b/Symbol List.tmPreferences @@ -6,7 +6,8 @@ scope source.ts meta.function-call, - source.ts new.expr + source.ts new.expr, + source.ts meta.type.annotation settings From 0cada1de31adf67f16660850302a051be07dba65 Mon Sep 17 00:00:00 2001 From: Will Stott Date: Mon, 16 Dec 2019 19:42:58 +0000 Subject: [PATCH 3/9] Exclude type parameters from the symbol lists as the generic names cannot be distinguished given the scopes available in the tmLanguage. Also flatten the list of type names, not sure why I was using source.ts in the first place. --- Symbol List.tmPreferences | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Symbol List.tmPreferences b/Symbol List.tmPreferences index 152534c4..17a2f92d 100644 --- a/Symbol List.tmPreferences +++ b/Symbol List.tmPreferences @@ -5,9 +5,10 @@ Symbol List scope - source.ts meta.function-call, - source.ts new.expr, - source.ts meta.type.annotation + meta.function-call.ts, + new.expr.ts, + meta.type.annotation.ts, + meta.type.parameters.ts settings From a0013eea5acef330538a806251a5395500912b97 Mon Sep 17 00:00:00 2001 From: Will Stott Date: Mon, 16 Dec 2019 19:52:11 +0000 Subject: [PATCH 4/9] Ignore return types as for some reason they are not type annotations in the tmLanguage... --- Symbol List.tmPreferences | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Symbol List.tmPreferences b/Symbol List.tmPreferences index 17a2f92d..1b01780d 100644 --- a/Symbol List.tmPreferences +++ b/Symbol List.tmPreferences @@ -8,7 +8,8 @@ meta.function-call.ts, new.expr.ts, meta.type.annotation.ts, - meta.type.parameters.ts + meta.type.parameters.ts, + meta.return.type.ts settings From 1e6acbb3e17f0cd55425ec3004b7acde77943c41 Mon Sep 17 00:00:00 2001 From: Will Stott Date: Mon, 16 Dec 2019 22:01:18 +0000 Subject: [PATCH 5/9] Turns out I missed it... but there is a showInIndexedReferenceList setting. --- Symbol List.tmPreferences | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Symbol List.tmPreferences b/Symbol List.tmPreferences index 1b01780d..3b3278c0 100644 --- a/Symbol List.tmPreferences +++ b/Symbol List.tmPreferences @@ -17,6 +17,8 @@ 0 showInSymbolList 0 + showInIndexedReferenceList + 1 \ No newline at end of file From e984af83466fed474f225904d837766dd824a344 Mon Sep 17 00:00:00 2001 From: Will Stott Date: Tue, 17 Dec 2019 21:07:43 +0000 Subject: [PATCH 6/9] Refactor Symbol/Reference List tmPreferences files - my super basic test files seems pretty reasonable like this. Will need extended testing on a proper project to be sure - or an automated tested solution. --- Reference List Customizations 1.tmPreferences | 15 +++++++++++++++ Reference List Customizations 2.tmPreferences | 15 +++++++++++++++ ...rences => Symbol List Exclusions.tmPreferences | 4 ---- 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 Reference List Customizations 1.tmPreferences create mode 100644 Reference List Customizations 2.tmPreferences rename Symbol List.tmPreferences => Symbol List Exclusions.tmPreferences (78%) diff --git a/Reference List Customizations 1.tmPreferences b/Reference List Customizations 1.tmPreferences new file mode 100644 index 00000000..0c966a7d --- /dev/null +++ b/Reference List Customizations 1.tmPreferences @@ -0,0 +1,15 @@ + + + + scope + + meta.definition.function.ts, + meta.definition.method.ts + + settings + + showInIndexedReferenceList + 0 + + + \ No newline at end of file diff --git a/Reference List Customizations 2.tmPreferences b/Reference List Customizations 2.tmPreferences new file mode 100644 index 00000000..870431b7 --- /dev/null +++ b/Reference List Customizations 2.tmPreferences @@ -0,0 +1,15 @@ + + + + scope + + entity.name.type.ts, + entity.name.function.ts + + settings + + showInIndexedReferenceList + 1 + + + \ No newline at end of file diff --git a/Symbol List.tmPreferences b/Symbol List Exclusions.tmPreferences similarity index 78% rename from Symbol List.tmPreferences rename to Symbol List Exclusions.tmPreferences index 3b3278c0..6ac4bba3 100644 --- a/Symbol List.tmPreferences +++ b/Symbol List Exclusions.tmPreferences @@ -1,8 +1,6 @@ - name - Symbol List scope meta.function-call.ts, @@ -17,8 +15,6 @@ 0 showInSymbolList 0 - showInIndexedReferenceList - 1 \ No newline at end of file From e4ceb42bad7d09c61679c077c481a571895fbcbe Mon Sep 17 00:00:00 2001 From: Will Stott Date: Wed, 8 Jan 2020 16:45:59 +0530 Subject: [PATCH 7/9] Don't let "as Type" clauses show as Type definitions --- Symbol List Exclusions.tmPreferences | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Symbol List Exclusions.tmPreferences b/Symbol List Exclusions.tmPreferences index 6ac4bba3..e16926db 100644 --- a/Symbol List Exclusions.tmPreferences +++ b/Symbol List Exclusions.tmPreferences @@ -7,7 +7,8 @@ new.expr.ts, meta.type.annotation.ts, meta.type.parameters.ts, - meta.return.type.ts + meta.return.type.ts, + entity.name.type.ts settings From 00f56ce9ae50a9a541cccf0f5936fc3b5694bd7c Mon Sep 17 00:00:00 2001 From: Will Stott Date: Wed, 8 Jan 2020 16:54:14 +0530 Subject: [PATCH 8/9] Remove redundant symbol list scope exclusions --- Symbol List Exclusions.tmPreferences | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Symbol List Exclusions.tmPreferences b/Symbol List Exclusions.tmPreferences index e16926db..23cce6e4 100644 --- a/Symbol List Exclusions.tmPreferences +++ b/Symbol List Exclusions.tmPreferences @@ -3,12 +3,8 @@ scope - meta.function-call.ts, - new.expr.ts, - meta.type.annotation.ts, - meta.type.parameters.ts, - meta.return.type.ts, - entity.name.type.ts + entity.name.type.ts, + meta.function-call.ts settings From 046f5f6758f78ca26409dc1acc2588543f1a8bd9 Mon Sep 17 00:00:00 2001 From: Will Stott Date: Thu, 9 Jan 2020 05:44:11 +0530 Subject: [PATCH 9/9] Re-name Reference List customization files. Newlines at end of files --- ...eferences => Indexed Reference List Exclusions.tmPreferences | 2 +- ...eferences => Indexed Reference List Inclusions.tmPreferences | 2 +- Symbol List Exclusions.tmPreferences | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename Reference List Customizations 1.tmPreferences => Indexed Reference List Exclusions.tmPreferences (97%) rename Reference List Customizations 2.tmPreferences => Indexed Reference List Inclusions.tmPreferences (97%) diff --git a/Reference List Customizations 1.tmPreferences b/Indexed Reference List Exclusions.tmPreferences similarity index 97% rename from Reference List Customizations 1.tmPreferences rename to Indexed Reference List Exclusions.tmPreferences index 0c966a7d..b181c48b 100644 --- a/Reference List Customizations 1.tmPreferences +++ b/Indexed Reference List Exclusions.tmPreferences @@ -12,4 +12,4 @@ 0 - \ No newline at end of file + diff --git a/Reference List Customizations 2.tmPreferences b/Indexed Reference List Inclusions.tmPreferences similarity index 97% rename from Reference List Customizations 2.tmPreferences rename to Indexed Reference List Inclusions.tmPreferences index 870431b7..aba52a52 100644 --- a/Reference List Customizations 2.tmPreferences +++ b/Indexed Reference List Inclusions.tmPreferences @@ -12,4 +12,4 @@ 1 - \ No newline at end of file + diff --git a/Symbol List Exclusions.tmPreferences b/Symbol List Exclusions.tmPreferences index 23cce6e4..7b9f139a 100644 --- a/Symbol List Exclusions.tmPreferences +++ b/Symbol List Exclusions.tmPreferences @@ -14,4 +14,4 @@ 0 - \ No newline at end of file +