Documentation ¶
Index ¶
- type MockClient
- func (m *MockClient) GetWorkspaceSymbols(ctx context.Context, params protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error)
- func (m *MockClient) Initialize(ctx context.Context, params protocol.InitializeParams) (protocol.InitializeResult, error)
- func (m *MockClient) NotifyDidClose(ctx context.Context, params protocol.DidCloseTextDocumentParams) error
- func (m *MockClient) NotifyDidOpen(ctx context.Context, params protocol.DidOpenTextDocumentParams) error
- func (m *MockClient) NotifyInitialized(ctx context.Context) error
- func (m *MockClient) Shutdown(ctx context.Context) error
- type MockClientPool
- func (m *MockClientPool) Delete(projectId lsp.ProjectId, languageId lsp.LanguageId)
- func (m *MockClientPool) DeleteAllForProject(projectId lsp.ProjectId)
- func (m *MockClientPool) Get(projectId lsp.ProjectId, languageId lsp.LanguageId) (lsp.Client, bool)
- func (m *MockClientPool) GetAllForProject(projectId lsp.ProjectId) (map[lsp.LanguageId]lsp.Client, bool)
- func (m *MockClientPool) Set(projectId lsp.ProjectId, languageId lsp.LanguageId, client lsp.Client)
- type MockLspService
- func (m *MockLspService) CleanupProject(ctx context.Context, projectId lsp.ProjectId) error
- func (m *MockLspService) GetDiagnostics(ctx context.Context, file model.File) ([]protocol.Diagnostic, error)
- func (m *MockLspService) GetWorkspaceSymbols(ctx context.Context, query string, symbolFilter lsp.SymbolFilter) ([]lsp.SymbolInfo, error)
- func (m *MockLspService) NotifyDidClose(ctx context.Context, file model.File) error
- func (m *MockLspService) NotifyDidOpen(ctx context.Context, file model.File) error
- func (m *MockLspService) StartServer(ctx context.Context, languageId lsp.LanguageId) error
- func (m *MockLspService) StopServer(ctx context.Context, languageId lsp.LanguageId) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
func (*MockClient) GetWorkspaceSymbols ¶
func (m *MockClient) GetWorkspaceSymbols(ctx context.Context, params protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error)
func (*MockClient) Initialize ¶
func (m *MockClient) Initialize(ctx context.Context, params protocol.InitializeParams) (protocol.InitializeResult, error)
func (*MockClient) NotifyDidClose ¶
func (m *MockClient) NotifyDidClose(ctx context.Context, params protocol.DidCloseTextDocumentParams) error
func (*MockClient) NotifyDidOpen ¶
func (m *MockClient) NotifyDidOpen(ctx context.Context, params protocol.DidOpenTextDocumentParams) error
func (*MockClient) NotifyInitialized ¶
func (m *MockClient) NotifyInitialized(ctx context.Context) error
type MockClientPool ¶
func (*MockClientPool) Delete ¶
func (m *MockClientPool) Delete(projectId lsp.ProjectId, languageId lsp.LanguageId)
func (*MockClientPool) DeleteAllForProject ¶
func (m *MockClientPool) DeleteAllForProject(projectId lsp.ProjectId)
func (*MockClientPool) Get ¶
func (m *MockClientPool) Get(projectId lsp.ProjectId, languageId lsp.LanguageId) (lsp.Client, bool)
func (*MockClientPool) GetAllForProject ¶
func (m *MockClientPool) GetAllForProject(projectId lsp.ProjectId) (map[lsp.LanguageId]lsp.Client, bool)
func (*MockClientPool) Set ¶
func (m *MockClientPool) Set(projectId lsp.ProjectId, languageId lsp.LanguageId, client lsp.Client)
type MockLspService ¶
func (*MockLspService) CleanupProject ¶
func (*MockLspService) GetDiagnostics ¶
func (m *MockLspService) GetDiagnostics(ctx context.Context, file model.File) ([]protocol.Diagnostic, error)
func (*MockLspService) GetWorkspaceSymbols ¶
func (m *MockLspService) GetWorkspaceSymbols(ctx context.Context, query string, symbolFilter lsp.SymbolFilter) ([]lsp.SymbolInfo, error)
func (*MockLspService) NotifyDidClose ¶
func (*MockLspService) NotifyDidOpen ¶
func (*MockLspService) StartServer ¶
func (m *MockLspService) StartServer(ctx context.Context, languageId lsp.LanguageId) error
func (*MockLspService) StopServer ¶
func (m *MockLspService) StopServer(ctx context.Context, languageId lsp.LanguageId) error
Click to show internal directories.
Click to hide internal directories.