Skip to content

Add builder-method for snippet choice - #84048

Merged
Johannes Rieken (jrieken) merged 4 commits into
microsoft:masterfrom
okmttdhr:snippet-choice-builder-method
Nov 13, 2019
Merged

Johannes Rieken (jrieken) merged 4 commits into
microsoft:masterfrom
okmttdhr:snippet-choice-builder-method

Conversation

@okmttdhr

Copy link
Copy Markdown
Contributor

This PR fixes #43643

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Nov 6, 2019 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@jrieken Johannes Rieken (jrieken) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks so far. one last thing that's left is to add the signature to the type in vscode.d.ts

@jrieken Johannes Rieken (jrieken) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good - one last thing: To expose this to extension authors, copy the new signature to the type declaration in vscode.d.ts, e.g here

appendVariable(name: string, defaultValue: string | ((snippet: SnippetString) => any)): SnippetString;

@jrieken
Johannes Rieken (jrieken) merged commit 0a0f2bf into microsoft:master Nov 13, 2019
@okmttdhr
okmttdhr, tada (okmttdhr) deleted the snippet-choice-builder-method branch November 14, 2019 13:27
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SnippetString doesn't have builder-method for Choice

3 participants