-
Notifications
You must be signed in to change notification settings - Fork 766
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
Outline View not updated when adding or removing items #4693
Comments
I got the same problem. Another workaround I discovered where you don't have to close and re-open VS Code is to leave Explorer view and go to any other view, e.g. Search. Then go back to Explorer view and the outline will be updated. I automated this jumping back and forth with a keyboard shortcut. |
I've tried it again today, and it works (as of VSCode 1.81.1 and PyLance v2023.8.50). Confirmed also with my colleague who had the same problem. |
Thanks for verifying. I'll close now. |
@pslizik-ibl I can also confirm that it works now, thank you for notifying me! |
I'd like to reopen this as it has been a VERY annoying problem for me for some time now, and it still persists. I'm assuming it's due to Pylance, but not 100% sure. Regardless, having to close and reopen VSCode to get the outline back for a python file is extremely annoying. Worse, when the outline is dysfunctional, all code folding is dysfunctional as well. Note that sometimes the outline shows all functions/etc., but when clicking on an outline item you are taken to a line of code that was previously where that function existed, but no longer where it is in the updated file. Very weird behavior, but maybe a hint as to what is going on. Needless to say, code folding now folds the code in a nonsensical manner. Version: 1.86.0 (Universal) |
@marcel-goldschen-ohm you're better off opening a new issue with repro steps. This still works fine for me, so something else must be going wrong. It might be another extension interfering, or something different about your code from mine. |
Sounds good. |
Type: Bug
The Outline View is not updated when adding or removing functions (methods, classes...). The only "workaround" I'm aware of is to close and re-launch VSCode.
The problem manifests itself with Python files. I didn't try it with other languages.
The following is my configuration. However, the problem has been confirmed also on my colleague's computer.
VS Code version: Code 1.80.2 (2ccd690cbff1569e4a83d7c43d45101f817401dc, 2023-07-27T20:41:52.615Z)
OS version: Linux x64 5.15.0-78-generic
Modes:
Extensions (20)
A/B Experiments
The text was updated successfully, but these errors were encountered: