Interface LanguageConfiguration
Expand description
interface LanguageConfiguration {
__electricCharacterSupport?: {
docComment?: IDocComment;
};
autoCloseBefore?: string;
autoClosingPairs?: IAutoClosingPairConditional[];
brackets?: CharacterPair[];
colorizedBracketPairs?: CharacterPair[];
comments?: CommentRule;
folding?: FoldingRules;
indentationRules?: IndentationRule;
onEnterRules?: OnEnterRule[];
surroundingPairs?: IAutoClosingPair[];
wordPattern?: RegExp;
}Properties§
__ electric Character Support?: { ... }Deprecated Do not use.
auto Close Before?: stringDefines what characters must be after the cursor for bracket or quote autoclosing to occur when using the 'languageDefined' autoclosing setting.
This is typically the set of characters which can not start an expression, such as whitespace, closing brackets, non-unary operators, etc.
auto Closing Pairs?: IAutoClosingPairConditional[]The language's auto closing pairs. The 'close' character is automatically inserted with the 'open' character is typed. If not set, the configured brackets will be used.
brackets?: CharacterPair[]The language's brackets. This configuration implicitly affects pressing Enter around these brackets.
colorized Bracket Pairs?: CharacterPair[]Defines a list of bracket pairs that are colorized depending on their nesting level. If not set, the configured brackets will be used.
comments?: CommentRuleThe language's comment settings.
folding?: FoldingRulesThe language's folding rules.
indentation Rules?: IndentationRuleThe language's indentation settings.
on Enter Rules?: OnEnterRule[]The language's rules to be evaluated when pressing Enter.
surrounding Pairs?: IAutoClosingPair[]The language's surrounding pairs. When the 'open' character is typed on a selection, the selected string is surrounded by the open and close characters. If not set, the autoclosing pairs settings will be used.
word Pattern?: RegExpThe language's word definition. If the language supports Unicode identifiers (e.g. JavaScript), it is preferable to provide a word definition that uses exclusion of known separators. e.g.: A regex that matches anything except known separators (and dot is allowed to occur in a floating point number): /(-?\d*.\d\w*)|([^`~!@#%^&*()-=+[{]}\|;:'",.<>/?\s]+)/g
The language configuration interface defines the contract between extensions and various editor features, like automatic bracket insertion, automatic indentation etc.