-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Description
I've tried to list powershell functions in Symbol List (Ctrl-R) by adding additional preferences file. It didn't work, although this approach worked fine for my custom language syntax. How should it be done properly in this case?
I have added Packages\PowerShell\Support\PowershellSymbols.tmPreferences
with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Functions</string>
<key>scope</key>
<string>source.powershell</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
s/\s*Function (\S*)/Func $1/g;
</string>
</dict>
<key>uuid</key>
<string>06532840-4879-11df-9879-0800200c9a66</string>
</dict>
</plist>