Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
0c68c606
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0c68c606
编写于
9月 11, 2018
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add tests for oneLineAboveText and consolidate rules
上级
f9d8addc
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
109 addition
and
143 deletion
+109
-143
src/vs/editor/contrib/smartSelect/test/tokenSelectionSupport.test.ts
...or/contrib/smartSelect/test/tokenSelectionSupport.test.ts
+2
-29
src/vs/editor/test/browser/commands/shiftCommand.test.ts
src/vs/editor/test/browser/commands/shiftCommand.test.ts
+2
-29
src/vs/editor/test/browser/controller/cursor.test.ts
src/vs/editor/test/browser/controller/cursor.test.ts
+2
-25
src/vs/editor/test/common/modes/supports/javascriptOnEnterRules.ts
...itor/test/common/modes/supports/javascriptOnEnterRules.ts
+34
-0
src/vs/editor/test/common/modes/supports/onEnter.test.ts
src/vs/editor/test/common/modes/supports/onEnter.test.ts
+69
-60
未找到文件。
src/vs/editor/contrib/smartSelect/test/tokenSelectionSupport.test.ts
浏览文件 @
0c68c606
...
...
@@ -9,12 +9,12 @@ import { URI } from 'vs/base/common/uri';
import
{
Range
}
from
'
vs/editor/common/core/range
'
;
import
{
Position
}
from
'
vs/editor/common/core/position
'
;
import
{
LanguageIdentifier
}
from
'
vs/editor/common/modes
'
;
import
{
IndentAction
}
from
'
vs/editor/common/modes/languageConfiguration
'
;
import
{
TokenSelectionSupport
}
from
'
vs/editor/contrib/smartSelect/tokenSelectionSupport
'
;
import
{
MockMode
}
from
'
vs/editor/test/common/mocks/mockMode
'
;
import
{
LanguageConfigurationRegistry
}
from
'
vs/editor/common/modes/languageConfigurationRegistry
'
;
import
{
ModelServiceImpl
}
from
'
vs/editor/common/services/modelServiceImpl
'
;
import
{
TestConfigurationService
}
from
'
vs/platform/configuration/test/common/testConfigurationService
'
;
import
{
javascriptOnEnterRules
}
from
'
vs/editor/test/common/modes/supports/javascriptOnEnterRules
'
;
class
MockJSMode
extends
MockMode
{
...
...
@@ -30,34 +30,7 @@ class MockJSMode extends MockMode {
[
'
[
'
,
'
]
'
]
],
onEnterRules
:
[
{
// e.g. /** | */
beforeText
:
/^
\s
*
\/\*\*(?!\/)([^\*]
|
\*(?!\/))
*$/
,
afterText
:
/^
\s
*
\*\/
$/
,
action
:
{
indentAction
:
IndentAction
.
IndentOutdent
,
appendText
:
'
*
'
}
},
{
// e.g. /** ...|
beforeText
:
/^
\s
*
\/\*\*(?!\/)([^\*]
|
\*(?!\/))
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
appendText
:
'
*
'
}
},
{
// e.g. * ...|
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*(\ ([^\*]
|
\*(?!\/))
*
)?
$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
appendText
:
'
*
'
}
},
{
// e.g. */|
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*\/\s
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
removeText
:
1
}
},
{
// e.g. *-----*/|
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*[^/]
*
\*\/\s
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
removeText
:
1
}
}
]
onEnterRules
:
javascriptOnEnterRules
}));
}
}
...
...
src/vs/editor/test/browser/commands/shiftCommand.test.ts
浏览文件 @
0c68c606
...
...
@@ -9,12 +9,12 @@ import { ShiftCommand } from 'vs/editor/common/commands/shiftCommand';
import
{
Selection
}
from
'
vs/editor/common/core/selection
'
;
import
{
Range
}
from
'
vs/editor/common/core/range
'
;
import
{
IIdentifiedSingleEditOperation
}
from
'
vs/editor/common/model
'
;
import
{
IndentAction
}
from
'
vs/editor/common/modes/languageConfiguration
'
;
import
{
LanguageConfigurationRegistry
}
from
'
vs/editor/common/modes/languageConfigurationRegistry
'
;
import
{
getEditOperation
,
testCommand
}
from
'
vs/editor/test/browser/testCommand
'
;
import
{
withEditorModel
}
from
'
vs/editor/test/common/editorTestUtils
'
;
import
{
MockMode
}
from
'
vs/editor/test/common/mocks/mockMode
'
;
import
{
LanguageIdentifier
}
from
'
vs/editor/common/modes
'
;
import
{
javascriptOnEnterRules
}
from
'
vs/editor/test/common/modes/supports/javascriptOnEnterRules
'
;
/**
* Create single edit operation
...
...
@@ -39,34 +39,7 @@ class DocBlockCommentMode extends MockMode {
[
'
[
'
,
'
]
'
]
],
onEnterRules
:
[
{
// e.g. /** | */
beforeText
:
/^
\s
*
\/\*\*(?!\/)([^\*]
|
\*(?!\/))
*$/
,
afterText
:
/^
\s
*
\*\/
$/
,
action
:
{
indentAction
:
IndentAction
.
IndentOutdent
,
appendText
:
'
*
'
}
},
{
// e.g. /** ...|
beforeText
:
/^
\s
*
\/\*\*(?!\/)([^\*]
|
\*(?!\/))
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
appendText
:
'
*
'
}
},
{
// e.g. * ...|
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*(\ ([^\*]
|
\*(?!\/))
*
)?
$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
appendText
:
'
*
'
}
},
{
// e.g. */|
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*\/\s
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
removeText
:
1
}
},
{
// e.g. *-----*/|
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*[^/]
*
\*\/\s
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
removeText
:
1
}
}
]
onEnterRules
:
javascriptOnEnterRules
}));
}
}
...
...
src/vs/editor/test/browser/controller/cursor.test.ts
浏览文件 @
0c68c606
...
...
@@ -25,6 +25,7 @@ import { ViewModel } from 'vs/editor/common/viewModel/viewModelImpl';
import
{
NULL_STATE
}
from
'
vs/editor/common/modes/nullMode
'
;
import
{
TokenizationResult2
}
from
'
vs/editor/common/core/token
'
;
import
{
createTextModel
,
IRelaxedTextModelCreationOptions
}
from
'
vs/editor/test/common/editorTestUtils
'
;
import
{
javascriptOnEnterRules
}
from
'
vs/editor/test/common/modes/supports/javascriptOnEnterRules
'
;
const
H
=
Handler
;
...
...
@@ -3517,31 +3518,7 @@ suite('Editor Controller - Indentation Rules', () => {
// ^.*\{[^}"']*$
increaseIndentPattern
:
/^
((?!\/\/)
.
)
*
(\{[^
}"'`
]
*|
\([^
)"'`
]
*|
\[[^\]
"'`
]
*
)
$/
},
onEnterRules
:
[
{
// e.g. /** | */
beforeText
:
/^
\s
*
\/\*\*(?!\/)([^\*]
|
\*(?!\/))
*$/
,
afterText
:
/^
\s
*
\*\/
$/
,
action
:
{
indentAction
:
IndentAction
.
IndentOutdent
,
appendText
:
'
*
'
}
},
{
// e.g. /** ...|
beforeText
:
/^
\s
*
\/\*\*(?!\/)([^\*]
|
\*(?!\/))
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
appendText
:
'
*
'
}
},
{
// e.g. * ...|
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*(\ ([^\*]
|
\*(?!\/))
*
)?
$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
appendText
:
'
*
'
}
},
{
// e.g. */|
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*\/\s
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
removeText
:
1
}
},
{
// e.g. *-----*/|
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*[^/]
*
\*\/\s
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
removeText
:
1
}
}
]
onEnterRules
:
javascriptOnEnterRules
}));
}
}
...
...
src/vs/editor/test/common/modes/supports/javascriptOnEnterRules.ts
0 → 100644
浏览文件 @
0c68c606
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
{
IndentAction
}
from
'
vs/editor/common/modes/languageConfiguration
'
;
export
const
javascriptOnEnterRules
=
[
{
// e.g. /** | */
beforeText
:
/^
\s
*
\/\*\*(?!\/)([^\*]
|
\*(?!\/))
*$/
,
afterText
:
/^
\s
*
\*\/
$/
,
action
:
{
indentAction
:
IndentAction
.
IndentOutdent
,
appendText
:
'
*
'
}
},
{
// e.g. /** ...|
beforeText
:
/^
\s
*
\/\*\*(?!\/)([^\*]
|
\*(?!\/))
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
appendText
:
'
*
'
}
},
{
// e.g. * ...|
beforeText
:
/^
(\t
|
[
])
*
[
]\*([
]([^\*]
|
\*(?!\/))
*
)?
$/
,
oneLineAboveText
:
/^
(\s
*
(\/\*\*
|
\*))
.*/
,
action
:
{
indentAction
:
IndentAction
.
None
,
appendText
:
'
*
'
}
},
{
// e.g. */|
beforeText
:
/^
(\t
|
[
])
*
[
]\*\/\s
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
removeText
:
1
}
},
{
// e.g. *-----*/|
beforeText
:
/^
(\t
|
[
])
*
[
]\*[^/]
*
\*\/\s
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
removeText
:
1
}
}
];
src/vs/editor/test/common/modes/supports/onEnter.test.ts
浏览文件 @
0c68c606
...
...
@@ -7,6 +7,7 @@
import
*
as
assert
from
'
assert
'
;
import
{
CharacterPair
,
IndentAction
}
from
'
vs/editor/common/modes/languageConfiguration
'
;
import
{
OnEnterSupport
}
from
'
vs/editor/common/modes/supports/onEnter
'
;
import
{
javascriptOnEnterRules
}
from
'
vs/editor/test/common/modes/supports/javascriptOnEnterRules
'
;
suite
(
'
OnEnter
'
,
()
=>
{
...
...
@@ -49,32 +50,10 @@ suite('OnEnter', () => {
test
(
'
uses regExpRules
'
,
()
=>
{
let
support
=
new
OnEnterSupport
({
regExpRules
:
[
{
beforeText
:
/^
\s
*
\/\*\*(?!\/)([^\*]
|
\*(?!\/))
*$/
,
afterText
:
/^
\s
*
\*\/
$/
,
action
:
{
indentAction
:
IndentAction
.
IndentOutdent
,
appendText
:
'
*
'
}
},
{
beforeText
:
/^
\s
*
\/\*\*(?!\/)([^\*]
|
\*(?!\/))
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
appendText
:
'
*
'
}
},
{
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*(\ ([^\*]
|
\*(?!\/))
*
)?
$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
appendText
:
'
*
'
}
},
{
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*\/\s
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
removeText
:
1
}
},
{
beforeText
:
/^
(\t
|
(\ \ ))
*
\ \*[^/]
*
\*\/\s
*$/
,
action
:
{
indentAction
:
IndentAction
.
None
,
removeText
:
1
}
}
]
regExpRules
:
javascriptOnEnterRules
});
let
testIndentAction
=
(
beforeText
:
string
,
afterText
:
string
,
expectedIndentAction
:
IndentAction
,
expectedAppendText
:
string
,
removeText
:
number
=
0
)
=>
{
let
actual
=
support
.
onEnter
(
''
,
beforeText
,
afterText
);
let
testIndentAction
=
(
oneLineAboveText
:
string
,
beforeText
:
string
,
afterText
:
string
,
expectedIndentAction
:
IndentAction
,
expectedAppendText
:
string
,
removeText
:
number
=
0
)
=>
{
let
actual
=
support
.
onEnter
(
oneLineAboveText
,
beforeText
,
afterText
);
if
(
expectedIndentAction
===
null
)
{
assert
.
equal
(
actual
,
null
,
'
isNull:
'
+
beforeText
);
}
else
{
...
...
@@ -89,40 +68,70 @@ suite('OnEnter', () => {
}
};
testIndentAction
(
'
\t
/**
'
,
'
*/
'
,
IndentAction
.
IndentOutdent
,
'
*
'
);
testIndentAction
(
'
\t
/**
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
\t
/** * / * / * /
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
\t
/** /*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
/**
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
\t
/**/
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/***/
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/*******/
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/** * * * * */
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/** */
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/** asdfg */
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/* asdfg */
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/* asdfg */
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/** asdfg */
'
,
''
,
null
,
null
);
testIndentAction
(
'
*/
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/*
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
*
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
\t
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
'
\t
* */
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
'
\t
* * / * / * / */
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
* asdfsfagadfg
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
* asdfsfagadfg * * *
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
* /*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
* asdfsfagadfg * / * / * /
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
* asdfsfagadfg * / * / * /*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
'
\t
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
'
\t\t
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
'
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
'
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
'
\t
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
'
*--------------------------------------------------------------------------------------------*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
''
,
'
\t
/**
'
,
'
*/
'
,
IndentAction
.
IndentOutdent
,
'
*
'
);
testIndentAction
(
''
,
'
\t
/**
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
''
,
'
\t
/** * / * / * /
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
''
,
'
\t
/** /*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
''
,
'
/**
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
''
,
'
\t
/**/
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
\t
/***/
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
\t
/*******/
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
\t
/** * * * * */
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
\t
/** */
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
\t
/** asdfg */
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
\t
/* asdfg */
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
\t
/* asdfg */
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
\t
/** asdfg */
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
*/
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
\t
/*
'
,
''
,
null
,
null
);
testIndentAction
(
''
,
'
\t
*
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/**
'
,
'
\t
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
\t
* something
'
,
'
\t
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
\t
*
'
,
'
\t
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
''
,
'
\t
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
''
,
'
\t
* */
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
''
,
'
\t
* * / * / * / */
'
,
''
,
null
,
null
);
testIndentAction
(
'
\t
/**
'
,
'
\t
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
\t
* something
'
,
'
\t
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
\t
*
'
,
'
\t
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
/**
'
,
'
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
* something
'
,
'
*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
*
'
,
'
* asdfsfagadfg
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
/**
'
,
'
* asdfsfagadfg * * *
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
* something
'
,
'
* asdfsfagadfg * * *
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
*
'
,
'
* asdfsfagadfg * * *
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
/**
'
,
'
* /*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
* something
'
,
'
* /*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
*
'
,
'
* /*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
/**
'
,
'
* asdfsfagadfg * / * / * /
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
* something
'
,
'
* asdfsfagadfg * / * / * /
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
*
'
,
'
* asdfsfagadfg * / * / * /
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
/**
'
,
'
* asdfsfagadfg * / * / * /*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
* something
'
,
'
* asdfsfagadfg * / * / * /*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
'
*
'
,
'
* asdfsfagadfg * / * / * /*
'
,
''
,
IndentAction
.
None
,
'
*
'
);
testIndentAction
(
''
,
'
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
''
,
'
\t
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
''
,
'
\t\t
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
''
,
'
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
''
,
'
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
''
,
'
\t
*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
testIndentAction
(
''
,
'
*--------------------------------------------------------------------------------------------*/
'
,
''
,
IndentAction
.
None
,
null
,
1
);
// issue #43469
testIndentAction
(
'
class A {
'
,
'
* test() {
'
,
''
,
IndentAction
.
Indent
,
null
,
0
);
testIndentAction
(
''
,
'
* test() {
'
,
''
,
IndentAction
.
Indent
,
null
,
0
);
testIndentAction
(
'
'
,
'
* test() {
'
,
''
,
IndentAction
.
Indent
,
null
,
0
);
testIndentAction
(
'
class A {
'
,
'
* test() {
'
,
''
,
IndentAction
.
Indent
,
null
,
0
);
testIndentAction
(
''
,
'
* test() {
'
,
''
,
IndentAction
.
Indent
,
null
,
0
);
testIndentAction
(
'
'
,
'
* test() {
'
,
''
,
IndentAction
.
Indent
,
null
,
0
);
});
});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录