Skip to content

Test: Support tab completion for snippets #9698

Closed

Description

@Tyriar

Test for #9579:

There is a new configuration property editor.tabCompletion which defaults to false. When set to true verify that

  • pressing the Tab key when the cursor follows a snippet prefix expands the snippet
  • reason about the name of this setting (tabCompletion) - rationale was that folks know this feature as tab completion
  • make sure things are live: run the Preferences: Snippet to define a new snippet and make sure it works without restart
  • use prefixes with non-word characters like c'l and make sure it works

Activity

  1. gerane commented on Jul 25, 2016

    @gerane

    Daniel Imms (@Tyriar) Would this work for extension snippets as well? Meaning if you have an extension that creates a new snippet, would it still require a restart for the new extension snippet to be loaded?

  2. jrieken commented on Jul 25, 2016

    @jrieken
    Contributor

    yes - in order to activate extension you need to reload the editor

  3. aeschli commented on Jul 26, 2016

    @aeschli
    Contributor

    I like it, I think we should enable it by default.
    The conflict with Emmet is not really a problem given that we have no default snippets for html and the user just needs to pick non conflicting snippet names.

  4. jrieken commented on Jul 26, 2016

    @jrieken
    Contributor

    Martin Aeschlimann (@aeschli) Ideas about the name tabCompletion vs snippetTabCompletion?

  5. joaomoreno commented on Jul 26, 2016

    @joaomoreno
    Contributor

    I like the current proposal, but I think adding the prefix snippet would benefit it as the feature only revolves around snippets...

  6. aeschli commented on Jul 26, 2016

    @aeschli
    Contributor

    I'd stick with tabCompletion, it seems to be an established term e.g. in shells. snippetTabCompletion is a strange construct, maybe rather snippetCompletionOnTab or snippetExpansionOnTab

  7. Tyriar commented on Jul 27, 2016

    @Tyriar
    ContributorAuthor

    Closing this off since the test is complete.

  8. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions