Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Fix symbol lists using tmPreferences files #4

Merged
merged 9 commits into from
Jan 14, 2020
15 changes: 15 additions & 0 deletions Reference List Customizations 1.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>
meta.definition.function.ts,
meta.definition.method.ts
</string>
<key>settings</key>
<dict>
<key>showInIndexedReferenceList</key>
<string>0</string>
</dict>
</dict>
</plist>
Copy link
Owner

@braver braver Jan 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Can't these two Reference List Customizations sit in the same file? (I dunno, just a question). Or at least give them a name that functionally differentiates them, other than simple numbering.
  • I think the file should be called Indexed Reference List.tmPreferences to be in line with other packages.
  • I kinda like having that newline at the end.

Copy link
Author

@willstott101 willstott101 Jan 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I can't see any way to make them the same file in the plist format. They have to be loaded in a specific order which is why I used numbers, however I can re-name to Exclusions and Inclusions still keeping the order.
  • Ok re-named on my laptop.
  • Added newlines on my laptop.

Have done the changes in an airport without wifi and replying on my phone... so won't be till later that I can actually push.

15 changes: 15 additions & 0 deletions Reference List Customizations 2.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>
entity.name.type.ts,
entity.name.function.ts
</string>
<key>settings</key>
<dict>
<key>showInIndexedReferenceList</key>
<string>1</string>
</dict>
</dict>
</plist>
17 changes: 17 additions & 0 deletions Symbol List Exclusions.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>
entity.name.type.ts,
meta.function-call.ts
</string>
<key>settings</key>
<dict>
<key>showInIndexedSymbolList</key>
<integer>0</integer>
<key>showInSymbolList</key>
<integer>0</integer>
</dict>
</dict>
</plist>