Versions in this module Expand all Collapse all v0 v0.5.0 Nov 12, 2024 v0.4.1 Oct 7, 2024 Changes in this version + func NewContextWithProject(ctx context.Context, project *Project) context.Context + type Config struct + DevContainerConfig devcontainer.Config + type File struct + Diagnostics []protocol.Diagnostic + Lines []Line + Path string + func EmptyFile(path string) *File + func NewFile(path string, content string) *File + func (f *File) Equals(other *File) bool + func (f *File) GetContent() string + func (f *File) GetContentBytes() []byte + func (f *File) GetLine(lineNumber int) Line + func (f *File) GetLineRange(start, end int) []Line + func (f *File) ReplaceLineRange(start, end int, content string) (*File, error) + func (f *File) WithLineRange(start, end int) *File + func (f *File) WithPath(path string) *File + type Files []*File + func (fs Files) String() string + type Line struct + Content string + Number int + func NewLines(content string) []Line + type Project struct + Config Config + ContainerId string + Id ProjectId + Path string + func NewProject(id ProjectId, path string, config Config, containerId string) Project + func ProjectFromContext(ctx context.Context) (*Project, bool) + func (project *Project) FindTaskByAlias(alias string) (devcontainer.Task, error) + func (project *Project) GetTasks() []devcontainer.Task + type ProjectId = string + type TaskNotFoundError struct + func NewTaskNotFoundError(taskId string) *TaskNotFoundError + func (e TaskNotFoundError) Error() string