view

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")
View Source
var (
	ErrRepackingSettings = errors.New("failed repacking settings")
)
View Source
var ViewManager *view

Functions

func Init

func Init(server *lsp.Server)

func IsPbHeader

func IsPbHeader(document_uri defines.DocumentUri) bool

func IsProtoFile

func IsProtoFile(document_uri defines.DocumentUri) bool

func StringsSliceFromInterface

func StringsSliceFromInterface(in interface{}) ([]string, error)

Types

type Diagnositcs

type Diagnositcs struct {
	Method string                           `json:"method"`
	Params defines.PublishDiagnosticsParams `json:"params"`
}

type File

type File interface {
	URI() defines.DocumentUri
	Read(ctx context.Context) ([]byte, string, error)
	ReadLine(line int) string

	Saved() bool
	// TODO: Fix appropriate function name.
	SetSaved(saved bool)
}

File represents a source file of any type.

type ProtoFile

type ProtoFile interface {
	File
	Proto() parser.Proto
	SetProto(proto parser.Proto)
}

type Settings

type Settings struct {
	AdditionalProtoDirs []string
}

func SettingsFromInterface

func SettingsFromInterface(in interface{}) (*Settings, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL