Documentation
¶
Index ¶
- func ContentChange(chEvent lsp.TextDocumentContentChangeEvent) filesystem.DocumentChange
- func ConvertSymbols(uri lsp.DocumentURI, sbs []decoder.Symbol) []lsp.SymbolInformation
- func DocumentChanges(events []lsp.TextDocumentContentChangeEvent, f File) (filesystem.DocumentChanges, 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 HCLDiagsToLSP(hclDiags hcl.Diagnostics, source string) []lsp.Diagnostic
- func HCLRangeToLSP(rng hcl.Range) lsp.Range
- func HCLSeverityToLSP(severity hcl.DiagnosticSeverity) lsp.DiagnosticSeverity
- func HoverData(data *lang.HoverData, cc lsp.TextDocumentClientCapabilities) *lsp.Hover
- func TextEditsFromDocumentChanges(changes filesystem.DocumentChanges) []lsp.TextEdit
- func ToCompletionList(candidates lang.Candidates, caps lsp.TextDocumentClientCapabilities) lsp.CompletionList
- func VersionedFileHandler(doc lsp.VersionedTextDocumentIdentifier) *versionedFileHandler
- type DirHandler
- type File
- type FileHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentChange ¶ added in v0.6.0
func ContentChange(chEvent lsp.TextDocumentContentChangeEvent) filesystem.DocumentChange
func ConvertSymbols ¶ added in v0.9.0
func ConvertSymbols(uri lsp.DocumentURI, sbs []decoder.Symbol) []lsp.SymbolInformation
func DocumentChanges ¶ added in v0.6.0
func DocumentChanges(events []lsp.TextDocumentContentChangeEvent, f File) (filesystem.DocumentChanges, 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 HCLDiagsToLSP ¶ added in v0.10.0
func HCLDiagsToLSP(hclDiags hcl.Diagnostics, source string) []lsp.Diagnostic
func HCLRangeToLSP ¶ added in v0.7.0
func HCLSeverityToLSP ¶ added in v0.8.0
func HCLSeverityToLSP(severity hcl.DiagnosticSeverity) lsp.DiagnosticSeverity
func TextEditsFromDocumentChanges ¶ added in v0.11.0
func TextEditsFromDocumentChanges(changes filesystem.DocumentChanges) []lsp.TextEdit
func ToCompletionList ¶ added in v0.10.0
func ToCompletionList(candidates lang.Candidates, caps lsp.TextDocumentClientCapabilities) lsp.CompletionList
func VersionedFileHandler ¶
func VersionedFileHandler(doc lsp.VersionedTextDocumentIdentifier) *versionedFileHandler
Types ¶
type DirHandler ¶ added in v0.11.0
type FileHandler ¶
Click to show internal directories.
Click to hide internal directories.