Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt SnippetString API #99

Closed
jrieken opened this issue Nov 22, 2016 · 1 comment
Closed

Adopt SnippetString API #99

jrieken opened this issue Nov 22, 2016 · 1 comment
Assignees

Comments

@jrieken
Copy link

jrieken commented Nov 22, 2016

With the December release VS Code will have real API to define a CompletionItem that is inserted as snippet, for details see microsoft/vscode#3210.

In short, we now support a subset of the more common TextMate syntax: $1, $2 etc define tabstops, ${1:value} and ${2:this is${3:nested}} placeholders, and $0 is for the final tabstop.

The API for this is contained in a new type SnippetString. It can be used as the insertText of a CompletionItem.

During a transition phase we will still support the internal, unspecified snippet syntax your extension is using but eventually remove it (roughly 2 or 3 milestones from now).

The language server protocol supports the SnippetString in its next-branch - see microsoft/vscode#15577 (comment)

@gorkem gorkem added this to the Late November 2016 milestone Nov 22, 2016
@gorkem
Copy link
Contributor

gorkem commented Nov 22, 2016

@jrieken Thanks for the heads up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants