@kusto/monaco-kusto
Version:
CSL, KQL plugin for the Monaco Editor
37 lines (36 loc) • 1.36 kB
TypeScript
import type { OnDidProvideCompletionItems } from '../types';
export interface LanguageSettings {
includeControlCommands?: boolean;
newlineAfterPipe?: boolean;
openSuggestionDialogAfterPreviousSuggestionAccepted?: boolean;
disabledCompletionItems?: string[];
onDidProvideCompletionItems?: OnDidProvideCompletionItems;
enableHover?: boolean;
formatter?: FormatterOptions;
syntaxErrorAsMarkDown?: SyntaxErrorAsMarkDownOptions;
enableQueryWarnings?: boolean;
enableQuerySuggestions?: boolean;
disabledDiagnosticCodes?: string[];
quickFixCodeActions?: QuickFixCodeActionOptions[];
enableQuickFixes?: boolean;
documentationBaseUrl?: boolean;
/**
* will be added to the end of the documentation url in suggestions
*/
documentationSuffix?: string;
completionOptions: CompletionOptions;
}
export interface FormatterOptions {
indentationSize?: number;
pipeOperatorStyle?: FormatterPlacementStyle;
}
export interface SyntaxErrorAsMarkDownOptions {
header?: string;
icon?: string;
enableSyntaxErrorAsMarkDown?: boolean;
}
export type QuickFixCodeActionOptions = 'Extract Expression' | 'Extract Function' | 'Change to' | 'FixAll';
export type FormatterPlacementStyle = 'None' | 'NewLine' | 'Smart';
export type CompletionOptions = {
includeExtendedSyntax: boolean;
};