Documentation
¶
Overview ¶
Package store implements a store for HCL documents open in the editor and tracks unsaved changes for each of them.
Index ¶
- type Store
- func (s *Store) Close(dh document.Handle) error
- func (s *Store) Get(dh document.Handle) (*document.Document, error)
- func (s *Store) HasOpenDocuments(dirHandle document.DirHandle) bool
- func (s *Store) IsDocumentOpen(dh document.Handle) bool
- func (s *Store) List(dirHandle document.DirHandle) []*document.Document
- func (s *Store) Open(dh document.Handle, langId string, version int, text []byte) error
- func (s *Store) Update(dh document.Handle, newText []byte, newVersion int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the document store.
func (*Store) Get ¶
Get returns the document for the supplied handle or an error if the document could not be found.
func (*Store) HasOpenDocuments ¶
HasOpenDocuments returns true if the supplied directory has any open documents.
func (*Store) IsDocumentOpen ¶
IsDocumentOpen returns true if it has been opened in the store.
Click to show internal directories.
Click to hide internal directories.