Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
d96c1fb4
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(gitcode.net)2024年7月9日维护升级公告
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d96c1fb4
编写于
5月 11, 2016
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
open editors: change configuration name
上级
266e686d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
18 deletion
+17
-18
src/vs/workbench/parts/files/browser/views/openEditorsView.ts
...vs/workbench/parts/files/browser/views/openEditorsView.ts
+3
-4
src/vs/workbench/parts/files/browser/views/workingFilesView.ts
...s/workbench/parts/files/browser/views/workingFilesView.ts
+13
-13
src/vs/workbench/parts/files/common/files.ts
src/vs/workbench/parts/files/common/files.ts
+1
-1
未找到文件。
src/vs/workbench/parts/files/browser/views/openEditorsView.ts
浏览文件 @
d96c1fb4
...
...
@@ -38,6 +38,7 @@ export class OpenEditorsView extends AdaptiveCollapsibleViewletView {
private
model
:
IEditorStacksModel
;
private
dirtyCountElement
:
HTMLElement
;
private
lastDirtyCount
:
number
;
// Use a scheduler to update the tree as many update events come at some time so to prevent over-reacting.
private
updateTreeScheduler
:
RunOnceScheduler
;
constructor
(
actionRunner
:
IActionRunner
,
settings
:
any
,
...
...
@@ -159,16 +160,14 @@ export class OpenEditorsView extends AdaptiveCollapsibleViewletView {
// }
private
onConfigurationUpdated
(
configuration
:
IFilesConfiguration
):
void
{
// TODO@isidor change configuration name
let
visibleOpenEditors
=
configuration
&&
configuration
.
explorer
&&
configuration
.
explorer
.
workingFiles
&&
configuration
.
explorer
.
workingFiles
.
maxVisible
;
let
visibleOpenEditors
=
configuration
&&
configuration
.
explorer
&&
configuration
.
explorer
.
openEditors
&&
configuration
.
explorer
.
openEditors
.
maxVisible
;
if
(
typeof
visibleOpenEditors
===
'
number
'
)
{
this
.
maxVisibleOpenEditors
=
visibleOpenEditors
;
}
else
{
this
.
maxVisibleOpenEditors
=
OpenEditorsView
.
DEFAULT_MAX_VISIBLE_OPEN_EDITORS
;
}
// TODO@isidor change configuration name
let
dynamicHeight
=
configuration
&&
configuration
.
explorer
&&
configuration
.
explorer
.
workingFiles
&&
configuration
.
explorer
.
workingFiles
.
dynamicHeight
;
let
dynamicHeight
=
configuration
&&
configuration
.
explorer
&&
configuration
.
explorer
.
openEditors
&&
configuration
.
explorer
.
openEditors
.
dynamicHeight
;
if
(
typeof
dynamicHeight
===
'
boolean
'
)
{
this
.
dynamicHeight
=
dynamicHeight
;
}
else
{
...
...
src/vs/workbench/parts/files/browser/views/workingFilesView.ts
浏览文件 @
d96c1fb4
...
...
@@ -103,19 +103,19 @@ export class WorkingFilesView extends AdaptiveCollapsibleViewletView {
}
private
onConfigurationUpdated
(
configuration
:
IFilesConfiguration
):
void
{
let
visibleWorkingFiles
=
configuration
&&
configuration
.
explorer
&&
configuration
.
explorer
.
workingFiles
&&
configuration
.
explorer
.
workingFiles
.
maxVisible
;
if
(
typeof
visibleWorkingFiles
===
'
number
'
)
{
this
.
maxVisibleWorkingFiles
=
visibleWorkingFiles
;
}
else
{
this
.
maxVisibleWorkingFiles
=
WorkingFilesView
.
DEFAULT_MAX_VISIBLE_FILES
;
}
let
dynamicHeight
=
configuration
&&
configuration
.
explorer
&&
configuration
.
explorer
.
workingFiles
&&
configuration
.
explorer
.
workingFiles
.
dynamicHeight
;
if
(
typeof
dynamicHeight
===
'
boolean
'
)
{
this
.
dynamicHeight
=
dynamicHeight
;
}
else
{
this
.
dynamicHeight
=
WorkingFilesView
.
DEFAULT_DYNAMIC_HEIGHT
;
}
//
let visibleWorkingFiles = configuration && configuration.explorer && configuration.explorer.workingFiles && configuration.explorer.workingFiles.maxVisible;
//
if (typeof visibleWorkingFiles === 'number') {
//
this.maxVisibleWorkingFiles = visibleWorkingFiles;
//
} else {
//
this.maxVisibleWorkingFiles = WorkingFilesView.DEFAULT_MAX_VISIBLE_FILES;
//
}
//
let dynamicHeight = configuration && configuration.explorer && configuration.explorer.workingFiles && configuration.explorer.workingFiles.dynamicHeight;
//
if (typeof dynamicHeight === 'boolean') {
//
this.dynamicHeight = dynamicHeight;
//
} else {
//
this.dynamicHeight = WorkingFilesView.DEFAULT_DYNAMIC_HEIGHT;
//
}
// Adjust expanded body size
this
.
expandedBodySize
=
this
.
getExpandedBodySize
(
this
.
model
);
...
...
src/vs/workbench/parts/files/common/files.ts
浏览文件 @
d96c1fb4
...
...
@@ -63,7 +63,7 @@ export abstract class FileEditorInput extends EditorInput implements IFileEditor
export
interface
IFilesConfiguration
extends
IFilesConfiguration
{
explorer
:
{
workingFile
s
:
{
openEditor
s
:
{
maxVisible
:
number
;
dynamicHeight
:
boolean
;
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录