-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Remove Definitions from References #68071
Comments
(Experimental duplicate detection) |
I don't understand this ask. Can you please provide an example |
Here's an example of sample php code with function definition and 2 calls after. There are 4 actions on functions or methods we can perform to get definition or references from context or with shortcuts, which have to do the following, when placing cursor, for example, under the last
But when you want to list all references in sidebar (3) or in popup (4), not only The similar problem with TS language were discussed in #18335 and fixed in #18338. @bmewburn, who currently maintaining PHP Intelephense extension for vscode, which actually adds |
closing as duple of #74237 |
I assume you marked this as a duplicate of #74237 under the intention that "definition" would be considered a "type"? Specific language extensions themselves could filter out the Definitions if they wanted to and it wouldn't need to be handled by VS Code itself. With the C/C++ extension and in VS, we treat definitions and declarations as just another "confirmed reference" type with no property or filter for defintion, declaration, or usage -- we could add it though: I've filed a feature request at microsoft/vscode-cpptools#4245 . |
From Intelephence #171:
Remove Definition from Reference list, since there are different.
Defined functions or methods should'n appear in reference list, because they'r not references and available from separate menu Go/Peek Definition or within shortcut.
Similar to #18338, but required for PHP as well.
The text was updated successfully, but these errors were encountered: