Skip to content

Commit

Permalink
fix(lsp): quotes missing and duplicated prompt for same var. (#1803)
Browse files Browse the repository at this point in the history
  • Loading branch information
gak committed Jun 17, 2024
1 parent 5eee8e9 commit c11b08c
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lsp/markdown/completion/configDeclare.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ var defaultUser = ftl.Config[string]("defaultUser")

See https://tbd54566975.github.io/ftl/docs/reference/secretsconfig/
---
var ${1:configVar} = ftl.Config[${2:Type}](${1:configVar})
var ${1:configVar} = ftl.Config[${2:Type}]("${1:configVar}")
1 change: 0 additions & 1 deletion lsp/markdown/completion/cron.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ func ${1:Name}(ctx context.Context) error {
${3:// TODO: Implement}
return nil
}
```
1 change: 0 additions & 1 deletion lsp/markdown/completion/cronExpression.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ func ${1:Name}(ctx context.Context) error {
${7:// TODO: Implement}
return nil
}
```
1 change: 0 additions & 1 deletion lsp/markdown/completion/fsmDeclare.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ var ${1:FSM} = ftl.FSM(
ftl.Start(${2:verbState}),
ftl.Transition(${2:fromVerbState}, ${3:toVerbState}),
)
```
2 changes: 1 addition & 1 deletion lsp/markdown/completion/secretDeclare.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ var apiKey = ftl.Secret[string]("apiKey")

See https://tbd54566975.github.io/ftl/docs/reference/secretsconfig/
---
var ${1:secretVar} = ftl.Secret[${2:Type}](${3:secretVar})
var ${1:secretVar} = ftl.Secret[${2:Type}]("${1:secretVar}")
1 change: 0 additions & 1 deletion lsp/markdown/completion/typeAlias.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ See https://tbd54566975.github.io/ftl/docs/reference/types/
---
//ftl:typealias
type ${1:Alias} ${2:Type}
```

0 comments on commit c11b08c

Please sign in to comment.