generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lsp autocomplete and hover items to match current FTL (#3965)
Fixes #3963 --------- Co-authored-by: Copilot <[email protected]>
- Loading branch information
1 parent
b5f43e7
commit 0950eae
Showing
16 changed files
with
140 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
Declare a subscription to a topic. | ||
|
||
A subscription consumes events from a topic, starting either from the beginning of the topic or only new events. | ||
|
||
```go | ||
var _ = ftl.Subscription(invoicesTopic, "emailInvoices") | ||
//ftl:subscribe payments.invoices from=beginning | ||
func SendInvoiceEmail(ctx context.Context, in Invoice) error { | ||
// Process the invoice event | ||
return nil | ||
} | ||
``` | ||
|
||
See https://block.github.io/ftl/docs/reference/pubsub/ | ||
--- | ||
|
||
var _ = ftl.Subscription(${1:topicVar}, "${2:subscriptionName}") | ||
//ftl:subscribe ${1:topicName} from=${2:beginning} | ||
func ${3:OnEvent}(ctx context.Context, in ${4:EventType}) error { | ||
${5:// TODO: Implement} | ||
return nil | ||
} | ||
|
Oops, something went wrong.