Skip to content

Commit

Permalink
fix: change --run-lsp to just --lsp (#1185)
Browse files Browse the repository at this point in the history
Fixes #1178
  • Loading branch information
wesbillman authored Apr 5, 2024
1 parent 01091ce commit 366a178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/ftl/cmd_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type devCmd struct {
External []string `help:"Directories for libraries that require FTL module stubs." type:"existingdir" optional:""`
Watch time.Duration `help:"Watch template directory at this frequency and regenerate on change." default:"500ms"`
NoServe bool `help:"Do not start the FTL server." default:"false"`
RunLsp bool `help:"Run the language server." default:"false"`
Lsp bool `help:"Run the language server." default:"false"`
ServeCmd serveCmd `embed:""`
languageServer *lsp.Server
}
Expand Down Expand Up @@ -61,7 +61,7 @@ func (d *devCmd) Run(ctx context.Context, projConfig projectconfig.Config) error
}

opts := []buildengine.Option{buildengine.Parallelism(d.Parallelism)}
if d.RunLsp {
if d.Lsp {
d.languageServer = lsp.NewServer(ctx)
opts = append(opts, buildengine.WithListener(buildengine.BuildStartedListenerFunc(d.OnBuildStarted)))
ctx = log.ContextWithLogger(ctx, log.FromContext(ctx).AddSink(lsp.NewLogSink(d.languageServer)))
Expand Down

0 comments on commit 366a178

Please sign in to comment.