Documentation
¶
Overview ¶
Package tmls implements a Terramate Language Server (LSP) providing: - Go to Definition: Navigate to symbol definitions including globals, lets, and stack attributes - Find References: Locate all references to a symbol across the workspace - Rename Symbol: Rename symbols with workspace-wide refactoring support - Import Resolution: Follows import chains for global variable resolution
Index ¶
Constants ¶
View Source
const ( ErrUnrecognizedCommand errors.Kind = "terramate-ls: unknown command" ErrCreateStackUnrecognizedArg errors.Kind = "terramate-ls: terramate.createStack: unrecognized argument" ErrCreateStackNoArguments errors.Kind = "terramate-ls: terramate.createStack requires at least 1 argument" ErrCreateStackInvalidArgument errors.Kind = "terramate-ls: terramate.createStack: invalid argument" ErrCreateStackMissingRequired errors.Kind = "terramate-ls: terramate.createStack: missing required argument" ErrCreateStackFailed errors.Kind = "terramate-ls: terramate.createStack failed" )
Errors created by the commands handling.
View Source
const MethodExecuteCommand = "workspace/executeCommand"
MethodExecuteCommand is the LSP method name for invoking server commands.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v0.15.1
type Option func(*Server)
Option type for the language server.
func WithHCLOptions ¶ added in v0.15.1
WithHCLOptions sets the HCL parser options.
func WithLogger ¶ added in v0.15.1
WithLogger sets a custom logger.
Click to show internal directories.
Click to hide internal directories.