提交 0183d84f 编写于 作者: A Alex Dima

Fixes Microsoft/monaco-editor#1120

上级 6cce81ce
......@@ -220,10 +220,6 @@ export interface EnterAction {
* Describe what to do with the indentation.
*/
indentAction: IndentAction;
/**
* Describe whether to outdent current line.
*/
outdentCurrentLine?: boolean;
/**
* Describes text to be appended after the new line and after the indentation.
*/
......
......@@ -1105,14 +1105,13 @@ class SurroundingMode extends MockMode {
class OnEnterMode extends MockMode {
private static readonly _id = new LanguageIdentifier('onEnterMode', 3);
constructor(indentAction: IndentAction, outdentCurrentLine?: boolean) {
constructor(indentAction: IndentAction) {
super(OnEnterMode._id);
this._register(LanguageConfigurationRegistry.register(this.getLanguageIdentifier(), {
onEnterRules: [{
beforeText: /.*/,
action: {
indentAction: indentAction,
outdentCurrentLine: outdentCurrentLine
indentAction: indentAction
}
}]
}));
......
......@@ -4618,10 +4618,6 @@ declare namespace monaco.languages {
* Describe what to do with the indentation.
*/
indentAction: IndentAction;
/**
* Describe whether to outdent current line.
*/
outdentCurrentLine?: boolean;
/**
* Describes text to be appended after the new line and after the indentation.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册