Skip to content

Wrong intellisense icons for variables. #117

Closed
@DonJayamanne

Description

@DonJayamanne

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.
intellisense_pre_change_1
intellisense_pre_change_2

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);

intellisense_post_change_1
intellisense_post_change_2

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 and class 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

Metadata

Metadata

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions