served.commands.code_actions

Undocumented in source.

Members

Functions

addDScannerDiagnostics
void addDScannerDiagnostics(CodeAction[] ret, WorkspaceD.Instance instance, Document document, Diagnostic diagnostic, CodeActionParams params)
Undocumented in source. Be warned that the author may not have intended to support it.
addDubDiagnostics
void addDubDiagnostics(CodeAction[] ret, WorkspaceD.Instance instance, Document document, Diagnostic diagnostic, CodeActionParams params)
Undocumented in source. Be warned that the author may not have intended to support it.
addSyntaxDiagnostics
void addSyntaxDiagnostics(CodeAction[] ret, WorkspaceD.Instance instance, Document document, Diagnostic diagnostic, CodeActionParams params)
Undocumented in source. Be warned that the author may not have intended to support it.
implementMethods
TextEdit[] implementMethods(ImplementMethodsParams params)

Implements the interfaces or abstract classes of a specified class/interface. The given position must be on/inside the identifier of any subclass after the colon (:) in a class definition.

provideCodeActions
CodeAction[] provideCodeActions(CodeActionParams params)
Undocumented in source. Be warned that the author may not have intended to support it.
sortImports
TextEdit[] sortImports(SortImportsParams params)

Command to sort all user imports in a block at a given position in given code. Returns a list of changes to apply. (Replaces the whole block currently if anything changed, otherwise empty)

Static variables

implementInterfaceSnippets
bool implementInterfaceSnippets;

Flag to make dcdext.implementAll return snippets

regexQuoteChars
auto regexQuoteChars;
Undocumented in source.

Variables

importRegex
auto importRegex;
Undocumented in source.
moduleRegex
auto moduleRegex;
Undocumented in source.
noProperty
auto noProperty;
Undocumented in source.
undefinedIdentifier
auto undefinedIdentifier;
Undocumented in source.
undefinedTemplate
auto undefinedTemplate;
Undocumented in source.
whitespace
auto whitespace;
Undocumented in source.

Meta