TypeQLiteCodeActionProvider
Defined in: libs/language/src/typeqlite-edits.ts:143
Quick fixes, only where the fix is mechanical and the diagnostic’s code says which fix it is.
- An annotation the position does not admit, or one repeated, is removed.
- An unknown label, or a reference that did not resolve, can be changed to the nearest names the workspace defines of the right kind.
duplicate-owns (which of two disagreeing owns is meant) and reserved-keyword (what the new
name should be) are the writer’s to decide, so they get no fix.
Implements
Section titled “Implements”Member summary
Section titled “Member summary”Constructors
| Name | Description |
|---|---|
| new TypeQLiteCodeActionProvider() | Created with the language’s services by TypeQLiteModule. |
Methods
| Name | Description |
|---|---|
| getCodeActions() | Handle a code action request. |
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TypeQLiteCodeActionProvider(
services):TypeQLiteCodeActionProvider
Defined in: libs/language/src/typeqlite-edits.ts:152
Created with the language’s services by TypeQLiteModule.
Parameters
Section titled “Parameters”services
Section titled “services”Langium’s services, with the label resolver.
Returns
Section titled “Returns”TypeQLiteCodeActionProvider
Methods
Section titled “Methods”getCodeActions()
Section titled “getCodeActions()”getCodeActions(
document,params):CodeAction[]
Defined in: libs/language/src/typeqlite-edits.ts:157
Handle a code action request.
Parameters
Section titled “Parameters”document
Section titled “document”params
Section titled “params”CodeActionParams
Returns
Section titled “Returns”Throws
Section titled “Throws”OperationCancelled if cancellation is detected during execution
Throws
Section titled “Throws”ResponseError if an error is detected that should be sent as response to the client
Implementation of
Section titled “Implementation of”CodeActionProvider.getCodeActions
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.