Versions in this module Expand all Collapse all v0 v0.5.0 Nov 12, 2024 Changes in this version type Manager + DocumentOutline func(ctx context.Context, projectId, path string) (lsp.DocumentOutline, error) type ManagerImpl + func (pm ManagerImpl) DocumentOutline(ctx context.Context, projectId, path string) (lsp.DocumentOutline, error) v0.4.1 Oct 7, 2024 Changes in this version + const MaxDiagnosticsDelay + type CreateProjectRequest struct + DevContainer *devcontainer.Config + Languages []lsp.LanguageId + Repository Repository + type InMemoryStore struct + func NewInMemoryStore(store map[string]*model.Project) *InMemoryStore + func (s *InMemoryStore) CreateProject(project *model.Project) error + func (s *InMemoryStore) DeleteProject(id string) error + func (s *InMemoryStore) GetProject(id string) (*model.Project, error) + func (s *InMemoryStore) GetProjects() ([]*model.Project, error) + func (s *InMemoryStore) UpdateProject(project *model.Project) error + type Manager interface + ApplyPatch func(ctx context.Context, projectId, path, patch string) (*model.File, error) + Cleanup func(ctx context.Context) error + CreateFile func(ctx context.Context, projectId, path, content string) (*model.File, error) + CreateProject func(ctx context.Context, request CreateProjectRequest) <-chan result.Result[model.Project] + CreateTask func(ctx context.Context, projectId model.ProjectId, command string) (TaskResult, error) + DeleteFile func(ctx context.Context, projectId, path string) error + DeleteProject func(ctx context.Context, projectId model.ProjectId) error + GetProject func(ctx context.Context, projectId model.ProjectId) (model.Project, error) + GetProjects func(ctx context.Context) ([]*model.Project, error) + ListFiles func(ctx context.Context, projectId string, opts ...files.ListFileOption) (model.Files, error) + ReadFile func(ctx context.Context, projectId, path string) (*model.File, error) + ResolveTaskAlias func(ctx context.Context, projectId model.ProjectId, alias string) (devcontainer.Task, error) + SearchSymbols func(ctx context.Context, projectId model.ProjectId, query string, ...) ([]lsp.SymbolInfo, error) + UpdateFile func(ctx context.Context, projectId, path, content string) (*model.File, error) + UpdateLines func(ctx context.Context, projectId, path string, lineDiff files.LineDiffChunk) (*model.File, error) + func NewProjectManager(devContainerRunner devcontainer.Runner, projectStore Store, ...) Manager + type ManagerImpl struct + func (pm ManagerImpl) ApplyPatch(ctx context.Context, projectId, path, patch string) (*model.File, error) + func (pm ManagerImpl) Cleanup(ctx context.Context) error + func (pm ManagerImpl) CreateFile(ctx context.Context, projectId, path, content string) (*model.File, error) + func (pm ManagerImpl) CreateProject(ctx context.Context, request CreateProjectRequest) <-chan result.Result[model.Project] + func (pm ManagerImpl) CreateTask(ctx context.Context, projectId string, command string) (TaskResult, error) + func (pm ManagerImpl) DeleteFile(ctx context.Context, projectId, path string) error + func (pm ManagerImpl) DeleteProject(ctx context.Context, projectId string) error + func (pm ManagerImpl) GetProject(ctx context.Context, projectId string) (model.Project, error) + func (pm ManagerImpl) GetProjects(ctx context.Context) ([]*model.Project, error) + func (pm ManagerImpl) ListFiles(ctx context.Context, projectId string, opts ...files.ListFileOption) (model.Files, error) + func (pm ManagerImpl) ReadFile(ctx context.Context, projectId, path string) (*model.File, error) + func (pm ManagerImpl) ResolveTaskAlias(ctx context.Context, projectId string, alias string) (devcontainer.Task, error) + func (pm ManagerImpl) SearchSymbols(ctx context.Context, projectId model.ProjectId, query string, ...) ([]lsp.SymbolInfo, error) + func (pm ManagerImpl) UpdateFile(ctx context.Context, projectId, path, content string) (*model.File, error) + func (pm ManagerImpl) UpdateLines(ctx context.Context, projectId, path string, lineDiff files.LineDiffChunk) (*model.File, error) + type ProjectAlreadyExistsError struct + func NewProjectAlreadyExistsError(projectId string) *ProjectAlreadyExistsError + func (e ProjectAlreadyExistsError) Error() string + type ProjectNotFoundError struct + func NewProjectNotFoundError(projectId string) *ProjectNotFoundError + func (e ProjectNotFoundError) Error() string + type Repository struct + Commit *string + Url string + type Store interface + CreateProject func(project *model.Project) error + DeleteProject func(id string) error + GetProject func(id string) (*model.Project, error) + GetProjects func() ([]*model.Project, error) + UpdateProject func(project *model.Project) error + type TaskResult struct + ExitCode int + StdErr string + StdOut string