-
Notifications
You must be signed in to change notification settings - Fork 770
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
Outliner no alerting if functions or classes are doubled #6992
Comments
Hi! Could you clarify a bit more the expected and actual behavior? |
I never know that in code if long have more this same names (python don't care this). microsoft/vscode#49925 (comment)
|
So are you expecting something in the UI to warn you that there are two things called |
Yes, or just list this same in elements list in outliner (Then more easy to find similar code parts, it can be case where was paste part far from current [eg. not only double paste], as wrong place, etc.). Soo red color for font, counter how many duplicated |
Can you clarify what you mean by "outliner"? A screenshot might be helpful. |
There's only one The Outline pane only shows declarations, not assignments. So the fact that Reassigning existing variables is a very common thing. And even assigning the same value to the same variable in multiple places is not unusual -- for example, assigning The feature you're requesting seems like it would be more appropriate for a linter rather than a language server and type checker. I'm going to move it to our enhancements discussions area though and if we get enough up-votes on it we will reconsider. |
Seems like there's a problem with GitHub's "Convert to discussion" feature at the moment. I'll move this later. |
Can you provide a real-world example that shows the issue that you're talking about? |
Closing in favor of #7003. |
Type: Bug
Behaviour
There is misunderstanding witch functions is called when debugging.
Steps to reproduce:
create class
Extension version: 2025.0.0
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.22631
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
The text was updated successfully, but these errors were encountered: