-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: add template support for remaining node types #1897
feat: add template support for remaining node types #1897
Conversation
if (!name) { | ||
return undefined | ||
} | ||
const message = await getTemplateArgument('What would you like to message type for this fsm?', `${snakeToPascal(name)}Message`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is "What would you like to message type for this fsm?" correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/message/name the message/g
@@ -62,43 +62,53 @@ const snippetForNodeType = async (nodeType: string, item: FtlTreeItem): Promise< | |||
return ingressSnippet(item) | |||
|
|||
case 'enum': | |||
return enumSnippet | |||
return await enumSnippet() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might not need await
here since this func is awaited already.
|
||
const subscriberSnippet = `var _ = ftl.Subscription(sampleTopic, "sample_subscription") | ||
return `//ftl:export |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it's possible, but is it possible to trigger actual VSCode snippets from the extension, rather than rolling our own?
No description provided.