Skip to content

Turn off snippets for jedi LSP #15858

Closed
@PeterJCLaw

Description

@PeterJCLaw

Environment data

  • VS Code version: 1.55.0
  • Extension version (available under the Extensions sidebar): 2021.3.680753044
  • OS and version: Ubuntu 20.04 LTS
  • Python version: 3.7, deadsnakes
  • Type of virtual environment used: virtualenv
  • Value of the python.languageServer setting: JediLSP

Expected behaviour

class Thing: pass

Th<tab> # should complete to:
Thing|     # cursor after completed word

Actual behaviour

class Thing: pass

Th<tab> # should complete to:
Thing(|)  # cursor between completed parens

As far as I can tell this is specific to the JediLSP integration -- changing my language server to Jedi results in the expected completion.

I can maybe see why this is maybe useful if you're planning to construct an instance or calling a function, though there are many other places where callable symbols are used in which you don't want this to happen -- passing them as callbacks and type annotations for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.community askFeature request that the community expressed interest infeature-requestRequest for new features or functionalityneeds proposalNeed to make some design decisions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions