Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Add support for SimpleNamespace Intellisense autocompletion #2108

Open
kbehlers opened this issue Jul 30, 2020 · 0 comments
Open

Add support for SimpleNamespace Intellisense autocompletion #2108

kbehlers opened this issue Jul 30, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@kbehlers
Copy link

Currently SimpleNamespace doesn't populate autocomplete suggestions for set attributes

Environment data

VSCode

Version: 1.47.2
Commit: 17299e413d5590b14ab0340ea477cdd86ff13daf
Date: 2020-07-15T18:18:50.054Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.7.0

Python Extension

Name: Python
Id: ms-python.python
Version: 2020.7.96456
Publisher: Microsoft

Language Server Settings

{
  "python.languageServer": "Microsoft",
}

Code Example

from types import SimpleNamespace
colors = SimpleNamespace(red='red', blue='blue')
# this should autocomplete, it doesn't find `red` or `blue` as options
colors.red

Screenshot

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant