-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Build 2018.8.0-alpha0: outline: __init__ method attributes incorrect #2384
Comments
Why are they show outside the class? |
I'm not clear what point you are trying to make. Outline is much better (shows method in class) but it has bugs as per my description. |
@brettcannon - LSP returns information as list, not as a tree. Any nesting is some VSC 'heuristic' most probably based on names. LSP does not support https://code.visualstudio.com/updates/v1_25#_document-symbols. VS Code features do not reflect in LSP at all, LSP is not specific to VS Code and is changed on case by case basis.
|
Looks like LSP 3.10 just got it https://microsoft.github.io/language-server-protocol/specification#version_3_10_0 But we may need microsoft/vscode-languageserver-node#389 |
vscode Insiders
manually installed vscode-python 2018.8.0-alpha0
Good news is that outline shows the methods inside the class.
I think there are a number of bugs with what it displays.
There seems to be some issue with attributes.
In the following you see a number of attributes.
dCache*. these are all defined in the init method. Why are they show outside the class?
If you click on the attribute, it brings you to line 1 of the file, which is a comment.
here is the init

For this method the local variables are withing the method.

In this example its confused with "cls" which is used for a class method.
The text was updated successfully, but these errors were encountered: