Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
1fd0d453
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,发现更多精彩内容 >>
提交
1fd0d453
编写于
7月 26, 2019
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename contentDimension
上级
b8bb6558
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
10 deletion
+10
-10
src/vs/workbench/browser/parts/editor/editorPart.ts
src/vs/workbench/browser/parts/editor/editorPart.ts
+5
-5
src/vs/workbench/contrib/watermark/browser/watermark.ts
src/vs/workbench/contrib/watermark/browser/watermark.ts
+2
-2
src/vs/workbench/services/editor/common/editorGroupsService.ts
...s/workbench/services/editor/common/editorGroupsService.ts
+1
-1
src/vs/workbench/test/workbenchTestServices.ts
src/vs/workbench/test/workbenchTestServices.ts
+2
-2
未找到文件。
src/vs/workbench/browser/parts/editor/editorPart.ts
浏览文件 @
1fd0d453
...
@@ -199,8 +199,8 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
...
@@ -199,8 +199,8 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
//#region IEditorGroupsService
//#region IEditorGroupsService
private
_
d
imension
:
Dimension
;
private
_
contentD
imension
:
Dimension
;
get
dimension
():
Dimension
{
return
this
.
_d
imension
;
}
get
contentDimension
():
Dimension
{
return
this
.
_contentD
imension
;
}
get
activeGroup
():
IEditorGroupView
{
get
activeGroup
():
IEditorGroupView
{
return
this
.
_activeGroup
;
return
this
.
_activeGroup
;
...
@@ -409,7 +409,7 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
...
@@ -409,7 +409,7 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
this
.
doCreateGridControlWithState
(
gridDescriptor
,
activeGroup
.
id
,
currentGroupViews
);
this
.
doCreateGridControlWithState
(
gridDescriptor
,
activeGroup
.
id
,
currentGroupViews
);
// Layout
// Layout
this
.
doLayout
(
this
.
_
d
imension
);
this
.
doLayout
(
this
.
_
contentD
imension
);
// Update container
// Update container
this
.
updateContainer
();
this
.
updateContainer
();
...
@@ -933,10 +933,10 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
...
@@ -933,10 +933,10 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
}
}
private
doLayout
(
dimension
:
Dimension
):
void
{
private
doLayout
(
dimension
:
Dimension
):
void
{
this
.
_
d
imension
=
dimension
;
this
.
_
contentD
imension
=
dimension
;
// Layout Grid
// Layout Grid
this
.
centeredLayoutWidget
.
layout
(
this
.
_
dimension
.
width
,
this
.
_d
imension
.
height
);
this
.
centeredLayoutWidget
.
layout
(
this
.
_
contentDimension
.
width
,
this
.
_contentD
imension
.
height
);
// Event
// Event
this
.
_onDidLayout
.
fire
(
dimension
);
this
.
_onDidLayout
.
fire
(
dimension
);
...
...
src/vs/workbench/contrib/watermark/browser/watermark.ts
浏览文件 @
1fd0d453
...
@@ -173,7 +173,7 @@ export class WatermarkContribution extends Disposable implements IWorkbenchContr
...
@@ -173,7 +173,7 @@ export class WatermarkContribution extends Disposable implements IWorkbenchContr
dom
.
prepend
(
container
.
firstElementChild
as
HTMLElement
,
this
.
watermark
);
dom
.
prepend
(
container
.
firstElementChild
as
HTMLElement
,
this
.
watermark
);
this
.
_register
(
this
.
keybindingService
.
onDidUpdateKeybindings
(
update
));
this
.
_register
(
this
.
keybindingService
.
onDidUpdateKeybindings
(
update
));
this
.
_register
(
this
.
editorGroupsService
.
onDidLayout
(
dimension
=>
this
.
handleEditorPartSize
(
container
,
dimension
)));
this
.
_register
(
this
.
editorGroupsService
.
onDidLayout
(
dimension
=>
this
.
handleEditorPartSize
(
container
,
dimension
)));
this
.
handleEditorPartSize
(
container
,
this
.
editorGroupsService
.
d
imension
);
this
.
handleEditorPartSize
(
container
,
this
.
editorGroupsService
.
contentD
imension
);
}
}
private
handleEditorPartSize
(
container
:
HTMLElement
,
dimension
:
IDimension
):
void
{
private
handleEditorPartSize
(
container
:
HTMLElement
,
dimension
:
IDimension
):
void
{
...
@@ -214,4 +214,4 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
...
@@ -214,4 +214,4 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
'
description
'
:
nls
.
localize
(
'
tips.enabled
'
,
"
When enabled, will show the watermark tips when no editor is open.
"
)
'
description
'
:
nls
.
localize
(
'
tips.enabled
'
,
"
When enabled, will show the watermark tips when no editor is open.
"
)
},
},
}
}
});
});
\ No newline at end of file
src/vs/workbench/services/editor/common/editorGroupsService.ts
浏览文件 @
1fd0d453
...
@@ -179,7 +179,7 @@ export interface IEditorGroupsService {
...
@@ -179,7 +179,7 @@ export interface IEditorGroupsService {
/**
/**
* The size of the editor groups area.
* The size of the editor groups area.
*/
*/
readonly
d
imension
:
IDimension
;
readonly
contentD
imension
:
IDimension
;
/**
/**
* An active group is the default location for new editors to open.
* An active group is the default location for new editors to open.
...
...
src/vs/workbench/test/workbenchTestServices.ts
浏览文件 @
1fd0d453
...
@@ -667,7 +667,7 @@ export class TestEditorGroupsService implements IEditorGroupsService {
...
@@ -667,7 +667,7 @@ export class TestEditorGroupsService implements IEditorGroupsService {
whenRestored
:
Promise
<
void
>
=
Promise
.
resolve
(
undefined
);
whenRestored
:
Promise
<
void
>
=
Promise
.
resolve
(
undefined
);
willRestoreEditors
=
false
;
willRestoreEditors
=
false
;
d
imension
=
{
width
:
800
,
height
:
600
};
contentD
imension
=
{
width
:
800
,
height
:
600
};
get
activeGroup
():
IEditorGroup
{
get
activeGroup
():
IEditorGroup
{
return
this
.
groups
[
0
];
return
this
.
groups
[
0
];
...
@@ -1622,4 +1622,4 @@ export class RemoteFileSystemProvider implements IFileSystemProvider {
...
@@ -1622,4 +1622,4 @@ export class RemoteFileSystemProvider implements IFileSystemProvider {
write
(
fd
:
number
,
pos
:
number
,
data
:
Uint8Array
,
offset
:
number
,
length
:
number
):
Promise
<
number
>
{
return
this
.
diskFileSystemProvider
.
write
!
(
fd
,
pos
,
data
,
offset
,
length
);
}
write
(
fd
:
number
,
pos
:
number
,
data
:
Uint8Array
,
offset
:
number
,
length
:
number
):
Promise
<
number
>
{
return
this
.
diskFileSystemProvider
.
write
!
(
fd
,
pos
,
data
,
offset
,
length
);
}
private
toFileResource
(
resource
:
URI
):
URI
{
return
resource
.
with
({
scheme
:
Schemas
.
file
,
authority
:
''
});
}
private
toFileResource
(
resource
:
URI
):
URI
{
return
resource
.
with
({
scheme
:
Schemas
.
file
,
authority
:
''
});
}
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录