Skip to content

Remove or disable code snippets #14781

@jakebailey

Description

@jakebailey

This is more of an anti-feature request; I'm proposing that the code snippets included in the extension be removed, or at least that the default snippetSuggestions setting for Python be set to "none".

The code snippets were likely useful before good quality analysis. These days, we have LSs that provide completions for things like overriding methods, and I'm a bit suspicious of the usefulness of the other snippets (like "add an if statement").

The code snippets use regex rules (if any rules at all) and often lead to undesirable behavior when offered in the wrong context. This is worse when an LS explicitly returns "nothing", and VS Code adds the snippets in making the completion list just snippets. This leads to bugs being reported thinking that it's an issue with the LS, when it's really VS Code injecting the rules. They also get fuzzy matched, which makes them more likely to be selected.

See these (there's another Pylance one I'm having trouble finding):

Metadata

Metadata

Assignees

Labels

area-editor-*User-facing catch-allfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions