Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
5c02b503
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,发现更多精彩内容 >>
提交
5c02b503
编写于
3月 19, 2019
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
extHost.protocol should not depend on extHostTypes, #70319
上级
888415c1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
85 addition
and
71 deletion
+85
-71
src/vs/workbench/api/electron-browser/mainThreadEditor.ts
src/vs/workbench/api/electron-browser/mainThreadEditor.ts
+7
-23
src/vs/workbench/api/node/extHost.protocol.ts
src/vs/workbench/api/node/extHost.protocol.ts
+11
-7
src/vs/workbench/api/node/extHostTextEditor.ts
src/vs/workbench/api/node/extHostTextEditor.ts
+4
-4
src/vs/workbench/api/node/extHostTextEditors.ts
src/vs/workbench/api/node/extHostTextEditors.ts
+1
-1
src/vs/workbench/api/node/extHostTypeConverters.ts
src/vs/workbench/api/node/extHostTypeConverters.ts
+26
-0
src/vs/workbench/test/electron-browser/api/extHostTextEditor.test.ts
...bench/test/electron-browser/api/extHostTextEditor.test.ts
+36
-36
未找到文件。
src/vs/workbench/api/electron-browser/mainThreadEditor.ts
浏览文件 @
5c02b503
...
@@ -10,11 +10,10 @@ import { RenderLineNumbersType, TextEditorCursorStyle, cursorStyleToString } fro
...
@@ -10,11 +10,10 @@ import { RenderLineNumbersType, TextEditorCursorStyle, cursorStyleToString } fro
import
{
IRange
,
Range
}
from
'
vs/editor/common/core/range
'
;
import
{
IRange
,
Range
}
from
'
vs/editor/common/core/range
'
;
import
{
ISelection
,
Selection
}
from
'
vs/editor/common/core/selection
'
;
import
{
ISelection
,
Selection
}
from
'
vs/editor/common/core/selection
'
;
import
*
as
editorCommon
from
'
vs/editor/common/editorCommon
'
;
import
*
as
editorCommon
from
'
vs/editor/common/editorCommon
'
;
import
{
EndOfLineSequence
,
IIdentifiedSingleEditOperation
,
ISingleEditOperation
,
ITextModel
,
ITextModelUpdateOptions
}
from
'
vs/editor/common/model
'
;
import
{
IIdentifiedSingleEditOperation
,
ISingleEditOperation
,
ITextModel
,
ITextModelUpdateOptions
}
from
'
vs/editor/common/model
'
;
import
{
IModelService
}
from
'
vs/editor/common/services/modelService
'
;
import
{
IModelService
}
from
'
vs/editor/common/services/modelService
'
;
import
{
SnippetController2
}
from
'
vs/editor/contrib/snippet/snippetController2
'
;
import
{
SnippetController2
}
from
'
vs/editor/contrib/snippet/snippetController2
'
;
import
{
IApplyEditsOptions
,
IEditorPropertiesChangeData
,
IResolvedTextEditorConfiguration
,
ITextEditorConfigurationUpdate
,
IUndoStopOptions
,
TextEditorRevealType
}
from
'
vs/workbench/api/node/extHost.protocol
'
;
import
{
IApplyEditsOptions
,
IEditorPropertiesChangeData
,
IResolvedTextEditorConfiguration
,
ITextEditorConfigurationUpdate
,
IUndoStopOptions
,
TextEditorRevealType
}
from
'
vs/workbench/api/node/extHost.protocol
'
;
import
{
EndOfLine
,
TextEditorLineNumbersStyle
}
from
'
vs/workbench/api/node/extHostTypes
'
;
import
{
IEditor
}
from
'
vs/workbench/common/editor
'
;
import
{
IEditor
}
from
'
vs/workbench/common/editor
'
;
import
{
withNullAsUndefined
}
from
'
vs/base/common/types
'
;
import
{
withNullAsUndefined
}
from
'
vs/base/common/types
'
;
...
@@ -57,28 +56,17 @@ export class MainThreadTextEditorProperties {
...
@@ -57,28 +56,17 @@ export class MainThreadTextEditorProperties {
}
}
let
cursorStyle
:
TextEditorCursorStyle
;
let
cursorStyle
:
TextEditorCursorStyle
;
let
lineNumbers
:
TextEditorLineNumbersStyl
e
;
let
lineNumbers
:
RenderLineNumbersTyp
e
;
if
(
codeEditor
)
{
if
(
codeEditor
)
{
const
codeEditorOpts
=
codeEditor
.
getConfiguration
();
const
codeEditorOpts
=
codeEditor
.
getConfiguration
();
cursorStyle
=
codeEditorOpts
.
viewInfo
.
cursorStyle
;
cursorStyle
=
codeEditorOpts
.
viewInfo
.
cursorStyle
;
lineNumbers
=
codeEditorOpts
.
viewInfo
.
renderLineNumbers
;
switch
(
codeEditorOpts
.
viewInfo
.
renderLineNumbers
)
{
case
RenderLineNumbersType
.
Off
:
lineNumbers
=
TextEditorLineNumbersStyle
.
Off
;
break
;
case
RenderLineNumbersType
.
Relative
:
lineNumbers
=
TextEditorLineNumbersStyle
.
Relative
;
break
;
default
:
lineNumbers
=
TextEditorLineNumbersStyle
.
On
;
break
;
}
}
else
if
(
previousProperties
)
{
}
else
if
(
previousProperties
)
{
cursorStyle
=
previousProperties
.
options
.
cursorStyle
;
cursorStyle
=
previousProperties
.
options
.
cursorStyle
;
lineNumbers
=
previousProperties
.
options
.
lineNumbers
;
lineNumbers
=
previousProperties
.
options
.
lineNumbers
;
}
else
{
}
else
{
cursorStyle
=
TextEditorCursorStyle
.
Line
;
cursorStyle
=
TextEditorCursorStyle
.
Line
;
lineNumbers
=
TextEditorLineNumbersStyl
e
.
On
;
lineNumbers
=
RenderLineNumbersTyp
e
.
On
;
}
}
const
modelOptions
=
model
.
getOptions
();
const
modelOptions
=
model
.
getOptions
();
...
@@ -377,10 +365,10 @@ export class MainThreadTextEditor {
...
@@ -377,10 +365,10 @@ export class MainThreadTextEditor {
if
(
typeof
newConfiguration
.
lineNumbers
!==
'
undefined
'
)
{
if
(
typeof
newConfiguration
.
lineNumbers
!==
'
undefined
'
)
{
let
lineNumbers
:
'
on
'
|
'
off
'
|
'
relative
'
;
let
lineNumbers
:
'
on
'
|
'
off
'
|
'
relative
'
;
switch
(
newConfiguration
.
lineNumbers
)
{
switch
(
newConfiguration
.
lineNumbers
)
{
case
TextEditorLineNumbersStyl
e
.
On
:
case
RenderLineNumbersTyp
e
.
On
:
lineNumbers
=
'
on
'
;
lineNumbers
=
'
on
'
;
break
;
break
;
case
TextEditorLineNumbersStyl
e
.
Relative
:
case
RenderLineNumbersTyp
e
.
Relative
:
lineNumbers
=
'
relative
'
;
lineNumbers
=
'
relative
'
;
break
;
break
;
default
:
default
:
...
@@ -459,11 +447,7 @@ export class MainThreadTextEditor {
...
@@ -459,11 +447,7 @@ export class MainThreadTextEditor {
return
false
;
return
false
;
}
}
if
(
opts
.
setEndOfLine
===
EndOfLine
.
CRLF
)
{
this
.
_model
.
pushEOL
(
opts
.
setEndOfLine
);
this
.
_model
.
pushEOL
(
EndOfLineSequence
.
CRLF
);
}
else
if
(
opts
.
setEndOfLine
===
EndOfLine
.
LF
)
{
this
.
_model
.
pushEOL
(
EndOfLineSequence
.
LF
);
}
const
transformedEdits
=
edits
.
map
((
edit
):
IIdentifiedSingleEditOperation
=>
{
const
transformedEdits
=
edits
.
map
((
edit
):
IIdentifiedSingleEditOperation
=>
{
return
{
return
{
...
...
src/vs/workbench/api/node/extHost.protocol.ts
浏览文件 @
5c02b503
...
@@ -8,12 +8,12 @@ import { SerializedError } from 'vs/base/common/errors';
...
@@ -8,12 +8,12 @@ import { SerializedError } from 'vs/base/common/errors';
import
{
IDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
IDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
Severity
from
'
vs/base/common/severity
'
;
import
Severity
from
'
vs/base/common/severity
'
;
import
{
URI
,
UriComponents
}
from
'
vs/base/common/uri
'
;
import
{
URI
,
UriComponents
}
from
'
vs/base/common/uri
'
;
import
{
TextEditorCursorStyle
}
from
'
vs/editor/common/config/editorOptions
'
;
import
{
TextEditorCursorStyle
,
RenderLineNumbersType
}
from
'
vs/editor/common/config/editorOptions
'
;
import
{
IPosition
}
from
'
vs/editor/common/core/position
'
;
import
{
IPosition
}
from
'
vs/editor/common/core/position
'
;
import
{
IRange
}
from
'
vs/editor/common/core/range
'
;
import
{
IRange
}
from
'
vs/editor/common/core/range
'
;
import
{
ISelection
,
Selection
}
from
'
vs/editor/common/core/selection
'
;
import
{
ISelection
,
Selection
}
from
'
vs/editor/common/core/selection
'
;
import
*
as
editorCommon
from
'
vs/editor/common/editorCommon
'
;
import
*
as
editorCommon
from
'
vs/editor/common/editorCommon
'
;
import
{
ISingleEditOperation
}
from
'
vs/editor/common/model
'
;
import
{
ISingleEditOperation
,
EndOfLineSequence
}
from
'
vs/editor/common/model
'
;
import
{
IModelChangedEvent
}
from
'
vs/editor/common/model/mirrorTextModel
'
;
import
{
IModelChangedEvent
}
from
'
vs/editor/common/model/mirrorTextModel
'
;
import
*
as
modes
from
'
vs/editor/common/modes
'
;
import
*
as
modes
from
'
vs/editor/common/modes
'
;
import
{
CharacterPair
,
CommentRule
,
EnterAction
}
from
'
vs/editor/common/modes/languageConfiguration
'
;
import
{
CharacterPair
,
CommentRule
,
EnterAction
}
from
'
vs/editor/common/modes/languageConfiguration
'
;
...
@@ -29,7 +29,6 @@ import { IPatternInfo, IRawFileMatch2, IRawQuery, IRawTextQuery, ISearchComplete
...
@@ -29,7 +29,6 @@ import { IPatternInfo, IRawFileMatch2, IRawQuery, IRawTextQuery, ISearchComplete
import
{
StatusbarAlignment
as
MainThreadStatusBarAlignment
}
from
'
vs/platform/statusbar/common/statusbar
'
;
import
{
StatusbarAlignment
as
MainThreadStatusBarAlignment
}
from
'
vs/platform/statusbar/common/statusbar
'
;
import
{
ITelemetryInfo
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
ITelemetryInfo
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
ThemeColor
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
ThemeColor
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
EndOfLine
,
IFileOperationOptions
,
TextEditorLineNumbersStyle
}
from
'
vs/workbench/api/node/extHostTypes
'
;
import
{
EditorViewColumn
}
from
'
vs/workbench/api/shared/editor
'
;
import
{
EditorViewColumn
}
from
'
vs/workbench/api/shared/editor
'
;
import
{
TaskDTO
,
TaskExecutionDTO
,
TaskFilterDTO
,
TaskHandleDTO
,
TaskProcessEndedDTO
,
TaskProcessStartedDTO
,
TaskSystemInfoDTO
,
TaskSetDTO
}
from
'
vs/workbench/api/shared/tasks
'
;
import
{
TaskDTO
,
TaskExecutionDTO
,
TaskFilterDTO
,
TaskHandleDTO
,
TaskProcessEndedDTO
,
TaskProcessStartedDTO
,
TaskSystemInfoDTO
,
TaskSetDTO
}
from
'
vs/workbench/api/shared/tasks
'
;
import
{
ITreeItem
,
IRevealOptions
}
from
'
vs/workbench/common/views
'
;
import
{
ITreeItem
,
IRevealOptions
}
from
'
vs/workbench/common/views
'
;
...
@@ -194,7 +193,7 @@ export interface ITextEditorConfigurationUpdate {
...
@@ -194,7 +193,7 @@ export interface ITextEditorConfigurationUpdate {
indentSize
?:
number
|
'
tabSize
'
;
indentSize
?:
number
|
'
tabSize
'
;
insertSpaces
?:
boolean
|
'
auto
'
;
insertSpaces
?:
boolean
|
'
auto
'
;
cursorStyle
?:
TextEditorCursorStyle
;
cursorStyle
?:
TextEditorCursorStyle
;
lineNumbers
?:
TextEditorLineNumbersStyl
e
;
lineNumbers
?:
RenderLineNumbersTyp
e
;
}
}
export
interface
IResolvedTextEditorConfiguration
{
export
interface
IResolvedTextEditorConfiguration
{
...
@@ -202,7 +201,7 @@ export interface IResolvedTextEditorConfiguration {
...
@@ -202,7 +201,7 @@ export interface IResolvedTextEditorConfiguration {
indentSize
:
number
;
indentSize
:
number
;
insertSpaces
:
boolean
;
insertSpaces
:
boolean
;
cursorStyle
:
TextEditorCursorStyle
;
cursorStyle
:
TextEditorCursorStyle
;
lineNumbers
:
TextEditorLineNumbersStyl
e
;
lineNumbers
:
RenderLineNumbersTyp
e
;
}
}
export
enum
TextEditorRevealType
{
export
enum
TextEditorRevealType
{
...
@@ -218,7 +217,7 @@ export interface IUndoStopOptions {
...
@@ -218,7 +217,7 @@ export interface IUndoStopOptions {
}
}
export
interface
IApplyEditsOptions
extends
IUndoStopOptions
{
export
interface
IApplyEditsOptions
extends
IUndoStopOptions
{
setEndOfLine
:
EndOfLine
;
setEndOfLine
:
EndOfLine
Sequence
;
}
}
export
interface
ITextDocumentShowOptions
{
export
interface
ITextDocumentShowOptions
{
...
@@ -868,7 +867,12 @@ export interface WorkspaceSymbolsDto extends IdObject {
...
@@ -868,7 +867,12 @@ export interface WorkspaceSymbolsDto extends IdObject {
export
interface
ResourceFileEditDto
{
export
interface
ResourceFileEditDto
{
oldUri
?:
UriComponents
;
oldUri
?:
UriComponents
;
newUri
?:
UriComponents
;
newUri
?:
UriComponents
;
options
?:
IFileOperationOptions
;
options
?:
{
overwrite
?:
boolean
;
ignoreIfExists
?:
boolean
;
ignoreIfNotExists
?:
boolean
;
recursive
?:
boolean
;
};
}
}
export
interface
ResourceTextEditDto
{
export
interface
ResourceTextEditDto
{
...
...
src/vs/workbench/api/node/extHostTextEditor.ts
浏览文件 @
5c02b503
...
@@ -158,7 +158,7 @@ export class ExtHostTextEditorOptions implements vscode.TextEditorOptions {
...
@@ -158,7 +158,7 @@ export class ExtHostTextEditorOptions implements vscode.TextEditorOptions {
this
.
_indentSize
=
source
.
indentSize
;
this
.
_indentSize
=
source
.
indentSize
;
this
.
_insertSpaces
=
source
.
insertSpaces
;
this
.
_insertSpaces
=
source
.
insertSpaces
;
this
.
_cursorStyle
=
source
.
cursorStyle
;
this
.
_cursorStyle
=
source
.
cursorStyle
;
this
.
_lineNumbers
=
source
.
lineNumbers
;
this
.
_lineNumbers
=
TypeConverters
.
TextEditorLineNumbersStyle
.
to
(
source
.
lineNumbers
)
;
}
}
public
get
tabSize
():
number
|
string
{
public
get
tabSize
():
number
|
string
{
...
@@ -295,7 +295,7 @@ export class ExtHostTextEditorOptions implements vscode.TextEditorOptions {
...
@@ -295,7 +295,7 @@ export class ExtHostTextEditorOptions implements vscode.TextEditorOptions {
}
}
this
.
_lineNumbers
=
value
;
this
.
_lineNumbers
=
value
;
warnOnError
(
this
.
_proxy
.
$trySetOptions
(
this
.
_id
,
{
warnOnError
(
this
.
_proxy
.
$trySetOptions
(
this
.
_id
,
{
lineNumbers
:
value
lineNumbers
:
TypeConverters
.
TextEditorLineNumbersStyle
.
from
(
value
)
}));
}));
}
}
...
@@ -354,7 +354,7 @@ export class ExtHostTextEditorOptions implements vscode.TextEditorOptions {
...
@@ -354,7 +354,7 @@ export class ExtHostTextEditorOptions implements vscode.TextEditorOptions {
if
(
this
.
_lineNumbers
!==
newOptions
.
lineNumbers
)
{
if
(
this
.
_lineNumbers
!==
newOptions
.
lineNumbers
)
{
this
.
_lineNumbers
=
newOptions
.
lineNumbers
;
this
.
_lineNumbers
=
newOptions
.
lineNumbers
;
hasUpdate
=
true
;
hasUpdate
=
true
;
bulkConfigurationUpdate
.
lineNumbers
=
newOptions
.
lineNumbers
;
bulkConfigurationUpdate
.
lineNumbers
=
TypeConverters
.
TextEditorLineNumbersStyle
.
from
(
newOptions
.
lineNumbers
)
;
}
}
}
}
...
@@ -607,7 +607,7 @@ export class ExtHostTextEditor implements vscode.TextEditor {
...
@@ -607,7 +607,7 @@ export class ExtHostTextEditor implements vscode.TextEditor {
});
});
return
this
.
_proxy
.
$tryApplyEdits
(
this
.
_id
,
editData
.
documentVersionId
,
edits
,
{
return
this
.
_proxy
.
$tryApplyEdits
(
this
.
_id
,
editData
.
documentVersionId
,
edits
,
{
setEndOfLine
:
editData
.
setEndOfLine
,
setEndOfLine
:
TypeConverters
.
EndOfLine
.
from
(
editData
.
setEndOfLine
)
,
undoStopBefore
:
editData
.
undoStopBefore
,
undoStopBefore
:
editData
.
undoStopBefore
,
undoStopAfter
:
editData
.
undoStopAfter
undoStopAfter
:
editData
.
undoStopAfter
});
});
...
...
src/vs/workbench/api/node/extHostTextEditors.ts
浏览文件 @
5c02b503
...
@@ -118,7 +118,7 @@ export class ExtHostEditors implements ExtHostEditorsShape {
...
@@ -118,7 +118,7 @@ export class ExtHostEditors implements ExtHostEditorsShape {
if
(
data
.
options
)
{
if
(
data
.
options
)
{
this
.
_onDidChangeTextEditorOptions
.
fire
({
this
.
_onDidChangeTextEditorOptions
.
fire
({
textEditor
:
textEditor
,
textEditor
:
textEditor
,
options
:
data
.
options
options
:
{
...
data
.
options
,
lineNumbers
:
TypeConverters
.
TextEditorLineNumbersStyle
.
to
(
data
.
options
.
lineNumbers
)
}
});
});
}
}
if
(
data
.
selections
)
{
if
(
data
.
selections
)
{
...
...
src/vs/workbench/api/node/extHostTypeConverters.ts
浏览文件 @
5c02b503
...
@@ -29,6 +29,7 @@ import { parse } from 'vs/base/common/marshalling';
...
@@ -29,6 +29,7 @@ import { parse } from 'vs/base/common/marshalling';
import
{
cloneAndChange
}
from
'
vs/base/common/objects
'
;
import
{
cloneAndChange
}
from
'
vs/base/common/objects
'
;
import
{
LogLevel
as
_MainLogLevel
}
from
'
vs/platform/log/common/log
'
;
import
{
LogLevel
as
_MainLogLevel
}
from
'
vs/platform/log/common/log
'
;
import
{
coalesce
}
from
'
vs/base/common/arrays
'
;
import
{
coalesce
}
from
'
vs/base/common/arrays
'
;
import
{
RenderLineNumbersType
}
from
'
vs/editor/common/config/editorOptions
'
;
export
interface
PositionLike
{
export
interface
PositionLike
{
line
:
number
;
line
:
number
;
...
@@ -883,6 +884,31 @@ export namespace TextDocumentSaveReason {
...
@@ -883,6 +884,31 @@ export namespace TextDocumentSaveReason {
}
}
}
}
export
namespace
TextEditorLineNumbersStyle
{
export
function
from
(
style
:
vscode
.
TextEditorLineNumbersStyle
):
RenderLineNumbersType
{
switch
(
style
)
{
case
types
.
TextEditorLineNumbersStyle
.
Off
:
return
RenderLineNumbersType
.
Off
;
case
types
.
TextEditorLineNumbersStyle
.
Relative
:
return
RenderLineNumbersType
.
Relative
;
case
types
.
TextEditorLineNumbersStyle
.
On
:
default
:
return
RenderLineNumbersType
.
On
;
}
}
export
function
to
(
style
:
RenderLineNumbersType
):
vscode
.
TextEditorLineNumbersStyle
{
switch
(
style
)
{
case
RenderLineNumbersType
.
Off
:
return
types
.
TextEditorLineNumbersStyle
.
Off
;
case
RenderLineNumbersType
.
Relative
:
return
types
.
TextEditorLineNumbersStyle
.
Relative
;
case
RenderLineNumbersType
.
On
:
default
:
return
types
.
TextEditorLineNumbersStyle
.
On
;
}
}
}
export
namespace
EndOfLine
{
export
namespace
EndOfLine
{
export
function
from
(
eol
:
vscode
.
EndOfLine
):
EndOfLineSequence
|
undefined
{
export
function
from
(
eol
:
vscode
.
EndOfLine
):
EndOfLineSequence
|
undefined
{
...
...
src/vs/workbench/test/electron-browser/api/extHostTextEditor.test.ts
浏览文件 @
5c02b503
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
*--------------------------------------------------------------------------------------------*/
import
*
as
assert
from
'
assert
'
;
import
*
as
assert
from
'
assert
'
;
import
{
TextEditorLineNumbersStyle
,
Range
}
from
'
vs/workbench/api/node/extHostTypes
'
;
import
{
TextEditorLineNumbersStyle
,
Range
}
from
'
vs/workbench/api/node/extHostTypes
'
;
import
{
TextEditorCursorStyle
}
from
'
vs/editor/common/config/editorOptions
'
;
import
{
TextEditorCursorStyle
,
RenderLineNumbersType
}
from
'
vs/editor/common/config/editorOptions
'
;
import
{
MainThreadTextEditorsShape
,
IResolvedTextEditorConfiguration
,
ITextEditorConfigurationUpdate
}
from
'
vs/workbench/api/node/extHost.protocol
'
;
import
{
MainThreadTextEditorsShape
,
IResolvedTextEditorConfiguration
,
ITextEditorConfigurationUpdate
}
from
'
vs/workbench/api/node/extHost.protocol
'
;
import
{
ExtHostTextEditorOptions
,
ExtHostTextEditor
}
from
'
vs/workbench/api/node/extHostTextEditor
'
;
import
{
ExtHostTextEditorOptions
,
ExtHostTextEditor
}
from
'
vs/workbench/api/node/extHostTextEditor
'
;
import
{
ExtHostDocumentData
}
from
'
vs/workbench/api/node/extHostDocumentData
'
;
import
{
ExtHostDocumentData
}
from
'
vs/workbench/api/node/extHostDocumentData
'
;
...
@@ -91,7 +91,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -91,7 +91,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
});
});
...
@@ -118,7 +118,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -118,7 +118,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -130,7 +130,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -130,7 +130,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
tabSize
:
1
}]);
assert
.
deepEqual
(
calls
,
[{
tabSize
:
1
}]);
});
});
...
@@ -142,7 +142,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -142,7 +142,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
tabSize
:
2
}]);
assert
.
deepEqual
(
calls
,
[{
tabSize
:
2
}]);
});
});
...
@@ -154,7 +154,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -154,7 +154,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
tabSize
:
2
}]);
assert
.
deepEqual
(
calls
,
[{
tabSize
:
2
}]);
});
});
...
@@ -166,7 +166,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -166,7 +166,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
tabSize
:
'
auto
'
}]);
assert
.
deepEqual
(
calls
,
[{
tabSize
:
'
auto
'
}]);
});
});
...
@@ -178,7 +178,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -178,7 +178,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -190,7 +190,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -190,7 +190,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -202,7 +202,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -202,7 +202,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -214,7 +214,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -214,7 +214,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -226,7 +226,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -226,7 +226,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -238,7 +238,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -238,7 +238,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
1
,
indentSize
:
1
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
indentSize
:
1
}]);
assert
.
deepEqual
(
calls
,
[{
indentSize
:
1
}]);
});
});
...
@@ -250,7 +250,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -250,7 +250,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
2
,
indentSize
:
2
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
indentSize
:
2
}]);
assert
.
deepEqual
(
calls
,
[{
indentSize
:
2
}]);
});
});
...
@@ -262,7 +262,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -262,7 +262,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
2
,
indentSize
:
2
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
indentSize
:
2
}]);
assert
.
deepEqual
(
calls
,
[{
indentSize
:
2
}]);
});
});
...
@@ -274,7 +274,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -274,7 +274,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
indentSize
:
'
tabSize
'
}]);
assert
.
deepEqual
(
calls
,
[{
indentSize
:
'
tabSize
'
}]);
});
});
...
@@ -286,7 +286,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -286,7 +286,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -298,7 +298,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -298,7 +298,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -310,7 +310,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -310,7 +310,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -322,7 +322,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -322,7 +322,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -334,7 +334,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -334,7 +334,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -346,7 +346,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -346,7 +346,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -358,7 +358,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -358,7 +358,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
true
,
insertSpaces
:
true
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
insertSpaces
:
true
}]);
assert
.
deepEqual
(
calls
,
[{
insertSpaces
:
true
}]);
});
});
...
@@ -370,7 +370,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -370,7 +370,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -382,7 +382,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -382,7 +382,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
true
,
insertSpaces
:
true
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
insertSpaces
:
true
}]);
assert
.
deepEqual
(
calls
,
[{
insertSpaces
:
true
}]);
});
});
...
@@ -394,7 +394,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -394,7 +394,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
insertSpaces
:
'
auto
'
}]);
assert
.
deepEqual
(
calls
,
[{
insertSpaces
:
'
auto
'
}]);
});
});
...
@@ -406,7 +406,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -406,7 +406,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -418,7 +418,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -418,7 +418,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Block
,
cursorStyle
:
TextEditorCursorStyle
.
Block
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
cursorStyle
:
TextEditorCursorStyle
.
Block
}]);
assert
.
deepEqual
(
calls
,
[{
cursorStyle
:
TextEditorCursorStyle
.
Block
}]);
});
});
...
@@ -430,7 +430,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -430,7 +430,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -442,9 +442,9 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -442,9 +442,9 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
Off
lineNumbers
:
RenderLineNumbersTyp
e
.
Off
});
});
assert
.
deepEqual
(
calls
,
[{
lineNumbers
:
TextEditorLineNumbersStyl
e
.
Off
}]);
assert
.
deepEqual
(
calls
,
[{
lineNumbers
:
RenderLineNumbersTyp
e
.
Off
}]);
});
});
test
(
'
can do bulk updates 0
'
,
()
=>
{
test
(
'
can do bulk updates 0
'
,
()
=>
{
...
@@ -459,7 +459,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -459,7 +459,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[]);
assert
.
deepEqual
(
calls
,
[]);
});
});
...
@@ -474,7 +474,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -474,7 +474,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
true
,
insertSpaces
:
true
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
tabSize
:
'
auto
'
,
insertSpaces
:
true
}]);
assert
.
deepEqual
(
calls
,
[{
tabSize
:
'
auto
'
,
insertSpaces
:
true
}]);
});
});
...
@@ -489,7 +489,7 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -489,7 +489,7 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
cursorStyle
:
TextEditorCursorStyle
.
Line
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
On
lineNumbers
:
RenderLineNumbersTyp
e
.
On
});
});
assert
.
deepEqual
(
calls
,
[{
tabSize
:
3
,
insertSpaces
:
'
auto
'
}]);
assert
.
deepEqual
(
calls
,
[{
tabSize
:
3
,
insertSpaces
:
'
auto
'
}]);
});
});
...
@@ -504,9 +504,9 @@ suite('ExtHostTextEditorOptions', () => {
...
@@ -504,9 +504,9 @@ suite('ExtHostTextEditorOptions', () => {
indentSize
:
4
,
indentSize
:
4
,
insertSpaces
:
false
,
insertSpaces
:
false
,
cursorStyle
:
TextEditorCursorStyle
.
Block
,
cursorStyle
:
TextEditorCursorStyle
.
Block
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
Relative
lineNumbers
:
RenderLineNumbersTyp
e
.
Relative
});
});
assert
.
deepEqual
(
calls
,
[{
cursorStyle
:
TextEditorCursorStyle
.
Block
,
lineNumbers
:
TextEditorLineNumbersStyl
e
.
Relative
}]);
assert
.
deepEqual
(
calls
,
[{
cursorStyle
:
TextEditorCursorStyle
.
Block
,
lineNumbers
:
RenderLineNumbersTyp
e
.
Relative
}]);
});
});
});
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录