Skip to content

Autocompletion triggered inside strings and comments #34

Closed
@ivan-baldin

Description

@ivan-baldin

Environment data

VS Code version: 1.18.0
Python Extension version:
Python Version: 0.8.0
OS and version: Ubuntu 16.04 based Linux and Windows 10

Actual behavior

vscode tries to provide auto complete suggestions inside python strings every time period is pressed. This doesn't happen in c/c++ files, don't know about other file types. Also comments doesn't seem to be affected.

Settings tweaks tested with no effect:

  • "editor.quickSuggestions": {"other": false, "comments": false, "strings": false}
  • "editor.wordBasedSuggestions": false

Period triggered suggestions are pretty messed up in general, e.g. typing 1. results in suggestion list and, if, in, is, not, or. Very useful.

Expected behavior

Strings shouldn't be treated as code in general. Let me write docstrings in peace.

Steps to reproduce:

  1. Create new file
  2. Select language mode: Python
  3. Type ".

Logs

Nothing related.

Metadata

Metadata

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions