Wrong intellisense icons for variables. #117
Labels
area-intellisense
LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
bug
Issue identified by VS Code Team member as probable bug
Milestone
From @AndyBay on May 13, 2017 11:45
Environment data
VS Code version: 1.12.1
Python Extension version: 0.6.4
Python Version: 3.6.1
OS and version: Windows 10
Currently (as seen under), arguments are using the "variable" icon and class variables are using the "reference" icon.


If we take that the icons for intellisense in Typescript is correct, and do following changes to the
out\client\providers\jediProxy.js
file.Before:
pythonVSCodeTypeMappings.set('value', vscode.CompletionItemKind.Value);
pythonVSCodeTypeMappings.set('variable', vscode.CompletionItemKind.Variable);
After:
pythonVSCodeTypeMappings.set('value', vscode.CompletionItemKind.Field);
pythonVSCodeTypeMappings.set('variable', vscode.CompletionItemKind.Property);
This change "fixes" it as far as I can tell, except for the fact that both "variables" and "class variables" use the same icon when instead they should be
variables => Variables
andclass variables => Field
.Also found these comments in the file :)
// What's this, can't remember,
// Great example of poorly written code (this whole file is a mess)
Copied from original issue: DonJayamanne/pythonVSCode#958
The text was updated successfully, but these errors were encountered: