gotools/gopls/internal/settings/settings.go

type Annotation

const Nil

const Escape

const Inline

const Bounds

type Options

type ClientOptions

type ServerOptions

type BuildOptions

type UIOptions

type CodeLensSource

const CodeLensGCDetails

const CodeLensGenerate

const CodeLensRegenerateCgo

const CodeLensVulncheck

const CodeLensRunGovulncheck

const CodeLensTest

const CodeLensTidy

const CodeLensUpgradeDependency

const CodeLensVendor

type CompletionOptions

type DocumentationOptions

type LinksInHoverEnum

const LinksInHover_None

const LinksInHover_LinkTarget

const LinksInHover_Gopls

// MarshalJSON implements the json.Marshaler interface, so that the default
// values are formatted correctly in documentation. (See [Options.setOne] for
// the flexible custom unmarshalling behavior).
func (l LinksInHoverEnum) MarshalJSON() ([]byte, error) {}

type FormattingOptions

type DiagnosticOptions

type InlayHintOptions

type InlayHint

const ParameterNames

const AssignVariableTypes

const ConstantValues

const RangeVariableTypes

const CompositeLiteralTypes

const CompositeLiteralFieldNames

const FunctionTypeParameters

type NavigationOptions

type UserOptions

// EnvSlice returns Env as a slice of k=v strings.
func (u *UserOptions) EnvSlice() []string {}

// SetEnvSlice sets Env from a slice of k=v strings.
func (u *UserOptions) SetEnvSlice(env []string) {}

type InternalOptions

type SubdirWatchPatterns

const SubdirWatchPatternsOn

const SubdirWatchPatternsOff

const SubdirWatchPatternsAuto

type ImportShortcut

const BothShortcuts

const LinkShortcut

const DefinitionShortcut

func (s ImportShortcut) ShowLinks() bool {}

func (s ImportShortcut) ShowDefinition() bool {}

type Matcher

const Fuzzy

const CaseInsensitive

const CaseSensitive

type SymbolMatcher

const SymbolFuzzy

const SymbolFastFuzzy

const SymbolCaseInsensitive

const SymbolCaseSensitive

type SymbolStyle

const PackageQualifiedSymbols

const FullyQualifiedSymbols

const DynamicSymbols

type SymbolScope

const WorkspaceSymbolScope

const AllSymbolScope

type HoverKind

const SingleLine

const NoDocumentation

const SynopsisDocumentation

const FullDocumentation

const Structured

type VulncheckMode

const ModeVulncheckOff

const ModeVulncheckImports

type DiagnosticsTrigger

const DiagnosticsOnEdit

const DiagnosticsOnSave

// Set updates *options based on the provided JSON value:
// null, bool, string, number, array, or object.
// On failure, it returns one or more non-nil errors.
func (o *Options) Set(value any) (errors []error) {}

func (o *Options) ForClientCapabilities(clientInfo *protocol.ClientInfo, caps protocol.ClientCapabilities) {}

var codec

func (o *Options) Clone() *Options {}

// validateDirectoryFilter validates if the filter string
// - is not empty
// - start with either + or -
// - doesn't contain currently unsupported glob operators: *, ?
func validateDirectoryFilter(ifilter string) (string, error) {}

// setOne updates a field of o based on the name and value.
// It returns an error if the value was invalid or duplicate.
// It is the caller's responsibility to augment the error with 'name'.
func (o *Options) setOne(name string, value any) error {}

type SoftError

func (e *SoftError) Error() string {}

// softErrorf reports a soft error related to the current option.
func softErrorf(format string, args ...any) error {}

// deprecatedError reports the current setting as deprecated.
// The optional replacement is suggested to the user.
func deprecatedError(replacement string) error {}

func setBool(dest *bool, value any) error {}

func asBool(value any) (bool, error) {}

func setDuration(dest *time.Duration, value any) error {}

func setAnnotationMap(dest *map[Annotation]bool, value any) error {}

func setBoolMap[K ~string](dest *map[K]bool, value any) error {}

func asBoolMap[K ~string](value any) (map[K]bool, error) {}

func setString(dest *string, value any) error {}

func asString(value any) (string, error) {}

func setStringSlice(dest *[]string, value any) error {}

func asStringSlice(value any) ([]string, error) {}

func setEnum[S ~string](dest *S, value any, options ...S) error {}

func asEnum[S ~string](value any, options ...S) (S, error) {}