...

Source file src/cuelang.org/go/cmd/cuepls/main.go

Documentation: cuelang.org/go/cmd/cuepls

     1  // Copyright 2019 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // cuepls (pronounced “CUE please”) is an LSP server for CUE.
     6  // The Language Server Protocol allows any text editor to be extended with
     7  // IDE-like features; see https://langserver.org/ for details.
     8  package main
     9  
    10  import (
    11  	"context"
    12  	"os"
    13  
    14  	"cuelang.org/go/internal/golangorgx/gopls/cmd"
    15  	"cuelang.org/go/internal/golangorgx/gopls/hooks"
    16  	"cuelang.org/go/internal/golangorgx/telemetry/counter"
    17  	"cuelang.org/go/internal/golangorgx/tools/tool"
    18  )
    19  
    20  func main() {
    21  	counter.Open() // Enable telemetry counter writing.
    22  	ctx := context.Background()
    23  	tool.Main(ctx, cmd.New(hooks.Options), os.Args[1:])
    24  }
    25  

View as plain text