Closed KubaJastrz closed 5 years ago
I've made simple test case similiar to one above:
$div: div;
.one {
&__two { color: #000; }
}
.three { color: #000; }
#four { color: #000; }
#{$div} { color: #000; }
.#{$div} { color: #000; }
##{$div} { color: #000; }
span { color: #000; }
Here is .tmPreferences
file that targets all of them (except #{$div}
- maybe an edge case, but works in REPL):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Goto Symbol</string>
<key>scope</key>
<string>meta.selector.css (entity.other.attribute-name, entity.other.attribute-name.id, entity.other.attribute-name.class)</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
</dict>
</dict>
</plist>
Preview:
I think there is something in your setup that's causing this. Can you list your installed packages, settings, etc.?
This is what is should look like on a basic install:
I'm gonna double check my packages folder. But just to confirm - this package doesn't contain any custom symbol rules, right?
Edit: I haven't found anything that could override that behavior :/ Edit 2: I'll do clean install tomorrow and check there if it's working correctly
I'm experiencing this issue as well. Tried removing other packages, but nothing seemed to fix it. Not much else has been customized outside of that.
I can’t help unless
Can you list your installed packages, settings, etc.?
My packages: A File Icon
, ChangeQuotes
, DocBlockr
, Emmet
, GitGutter
, GitSavvy
, JsPrettier
, Package Control
, PackageResourceViewer
, Sass
, ScopeAlways
, SideBarEnhancements
, SublimeLinter
, SublimeLinter-contrib-sass-lint
, SublimeLinter-tslint
, Terminal
, TypeScript
There are not settings that could affect subilme's behavior, except *.tmPreferences
files with <key>showInSymbolList</key>
. I have scanned most of the packages already and haven't found any conflicts with this package.
CSS package has these:
<key>scope</key>
<string>source.css entity.other.attribute-name.class, source.css entity.other.attribute-name.id</string>
<key>settings</key>
<dict>
<key>showInIndexedSymbolList</key>
<string>1</string>
<key>symbolIndexTransformation</key>
<string>/[#.]([A-Za-z0-9_~]+)/$1/;</string>
</dict>
<key>scope</key>
<string>source.css meta.selector</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>s/^\s*/CSS: /; s/\s+/ /g</string>
</dict>
There are not settings that could affect subilme's behavior
You’d be surprised. Again, please share your settings.
The only package that is installed is this one. All default settings.
Thanks, I think I found the culprit now.
I'm not sure if I'm missing something, but go to symbol functionality stopped working a while ago.
Here's how it looks in the v2.3.8:
I tracked down the #32 issue and e5d82f41b7f46cea41de53448777f433cf861cb6 that was supposedly fixing it. But I believe that the core of the problem lays in b048ae6707dccf8b80dabb7ae955de59530e474c, where Symbol definitions where removed completely.