Documentation ¶
Index ¶
- func CompletionItem(candidate lang.CompletionCandidate, pos hcl.Pos, snippetSupport bool) lsp.CompletionItem
- func CompletionList(candidates lang.CompletionCandidates, pos hcl.Pos, ...) lsp.CompletionList
- func FileChange(chEvent lsp.TextDocumentContentChangeEvent, f File) (*fileChange, error)
- func FileChanges(events []lsp.TextDocumentContentChangeEvent, f File) (filesystem.FileChanges, error)
- func FileFromDocumentItem(doc lsp.TextDocumentItem) *file
- func FileHandlerFromDirPath(dirPath string) *fileHandler
- func FileHandlerFromDirURI(dirUri lsp.DocumentURI) *fileHandler
- func FileHandlerFromDocumentURI(docUri lsp.DocumentURI) *fileHandler
- func FileHandlerFromPath(path string) *fileHandler
- func FilePositionFromDocumentPosition(params lsp.TextDocumentPositionParams, f File) (*filePosition, error)
- func TextEdits(changes filesystem.FileChanges) []lsp.TextEdit
- func VersionedFileHandler(doc lsp.VersionedTextDocumentIdentifier) *versionedFileHandler
- type File
- type FileHandler
- type InvalidLspPosErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompletionItem ¶
func CompletionItem(candidate lang.CompletionCandidate, pos hcl.Pos, snippetSupport bool) lsp.CompletionItem
func CompletionList ¶
func CompletionList(candidates lang.CompletionCandidates, pos hcl.Pos, caps lsp.TextDocumentClientCapabilities) lsp.CompletionList
func FileChange ¶
func FileChanges ¶
func FileChanges(events []lsp.TextDocumentContentChangeEvent, f File) (filesystem.FileChanges, error)
func FileFromDocumentItem ¶
func FileFromDocumentItem(doc lsp.TextDocumentItem) *file
func FileHandlerFromDirPath ¶ added in v0.4.0
func FileHandlerFromDirPath(dirPath string) *fileHandler
func FileHandlerFromDirURI ¶ added in v0.4.0
func FileHandlerFromDirURI(dirUri lsp.DocumentURI) *fileHandler
func FileHandlerFromDocumentURI ¶ added in v0.4.0
func FileHandlerFromDocumentURI(docUri lsp.DocumentURI) *fileHandler
func FileHandlerFromPath ¶
func FileHandlerFromPath(path string) *fileHandler
func FilePositionFromDocumentPosition ¶
func FilePositionFromDocumentPosition(params lsp.TextDocumentPositionParams, f File) (*filePosition, error)
func TextEdits ¶
func TextEdits(changes filesystem.FileChanges) []lsp.TextEdit
func VersionedFileHandler ¶
func VersionedFileHandler(doc lsp.VersionedTextDocumentIdentifier) *versionedFileHandler
Types ¶
type FileHandler ¶
type InvalidLspPosErr ¶
func (*InvalidLspPosErr) Error ¶
func (e *InvalidLspPosErr) Error() string
Click to show internal directories.
Click to hide internal directories.