Skip to content

Language Server Snippets Definitions #3354

Closed

Description

It seems that vscode-cpptools has recently transitioned from providing the language snippets in a JSON file to providing them via the language server (per #2945). However, I'm unable to find the definition of these snippets provided by the server to the client.

Can someone please point me to the definition of the snippets made available by the language server?

Activity

  1. sean-mcmanus commented on Mar 25, 2019

    @sean-mcmanus
    Contributor

    The definitions are the same as https://github.com/Microsoft/vscode-cpptools/pull/2945/files#diff-4dc437ededb03985714ad3b401f14ec1 . We moved them in order to enable information from our lexer to programmatically enable/disable the snippets depending on the context.

    We added the C_Cpp.suggestSnippets setting if you want to disable those. We could probably add some setting to some custom snippets file, but that isn't currently a high priority for us...if someone wants to create a pull request for that, we might be able to make the server side changes ourselves.

  2. sean-mcmanus commented on Apr 29, 2019

    @sean-mcmanus
    Contributor

    We'll track making the snippets editable via #3556 .

  3. locked and limited conversation to collaborators on Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions