From 366a1784abe67ffa2d046e9cd81b8343aaba83c4 Mon Sep 17 00:00:00 2001 From: Wes Date: Fri, 5 Apr 2024 11:31:42 -0700 Subject: [PATCH] fix: change --run-lsp to just --lsp (#1185) Fixes #1178 --- cmd/ftl/cmd_dev.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ftl/cmd_dev.go b/cmd/ftl/cmd_dev.go index 1466f9eb21..d1a57edaf8 100644 --- a/cmd/ftl/cmd_dev.go +++ b/cmd/ftl/cmd_dev.go @@ -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 } @@ -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)))