Skip to content

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.

Constructors

Name Description
new TypeQLiteCodeActionProvider() Created with the language’s services by TypeQLiteModule.

Methods

Name Description
getCodeActions() Handle a code action request.

new TypeQLiteCodeActionProvider(services): TypeQLiteCodeActionProvider

Defined in: libs/language/src/typeqlite-edits.ts:152

Created with the language’s services by TypeQLiteModule.

TypeQLiteLabelServices

Langium’s services, with the label resolver.

TypeQLiteCodeActionProvider

getCodeActions(document, params): CodeAction[]

Defined in: libs/language/src/typeqlite-edits.ts:157

Handle a code action request.

LangiumDocument

CodeActionParams

CodeAction[]

OperationCancelled if cancellation is detected during execution

ResponseError if an error is detected that should be sent as response to the client

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.