Skip to content

Intellisense missing items when using context managers #2240

@DonJayamanne

Description

@DonJayamanne
with open('log.log', 'a') as fs:
	fs.

Completion is missing write.

However it works when using open('log.log', 'a').write.

  • OS - Mac
  • Latest version of Language server https://pvsc.blob.core.windows.net/python-language-server/Python-Language-Server-osx-x64.0.1.18204.3.nupkg
  • Works when using Jedi.

See here:
fs

Metadata

Metadata

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions