-
Notifications
You must be signed in to change notification settings - Fork 236
GoTo Definition shows all function calling in file #604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is this only for the Sublime "GoTo definition"? Does the TypeScript one (F12) work as expected for you? |
This actually happens in 'Go To Symbol' which navigates across symbols in a given file, (F12) 'Go To Definition' works as expected |
Here's a workaround to display only method names in the symbol list by setting up a configuration file for SublimeText that excludes bindables, method calls, etc.:
The next time you press "ctrl-r" in a TypeScript file, you'll only get the method names displayed. |
@saskoh Thanks, works great. |
Why has this not made it to the actual package? |
For anyone that stumbles on this, you can create a It can also have any name you want. I have Also, there are a few other scopes that should be ignored aside from the ones @saskoh listed. This is what I'm working with right now: <?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>Symbol List</string>
<key>scope</key>
<string>meta.function-call.ts, meta.parameters.ts, meta.decorator.ts, meta.var.expr.ts, meta.block.ts, meta.field.declaration.ts</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>0</integer>
<key>showInIndexedSymbolList</key>
<integer>0</integer>
</dict>
</dict>
</plist> |
The above XML snippets didn't give me very many symbols to navigate to. I copied the following from the #727 PR:
|
GoTo Definition by cmd+r on Mac shows all function calling in open file of project. The tool is useless now, if there are multiple calling of one method in current file.
The text was updated successfully, but these errors were encountered: