Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
4cd256d4
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,发现更多精彩内容 >>
提交
4cd256d4
编写于
7月 27, 2016
作者:
S
Sandeep Somavarapu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix #7204
上级
8ba1d2ee
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
14 deletion
+10
-14
src/vs/workbench/parts/markers/browser/markersPanel.ts
src/vs/workbench/parts/markers/browser/markersPanel.ts
+9
-11
src/vs/workbench/parts/markers/browser/markersPanelActions.ts
...vs/workbench/parts/markers/browser/markersPanelActions.ts
+1
-3
未找到文件。
src/vs/workbench/parts/markers/browser/markersPanel.ts
浏览文件 @
4cd256d4
...
@@ -24,7 +24,7 @@ import { Panel } from 'vs/workbench/browser/panel';
...
@@ -24,7 +24,7 @@ import { Panel } from 'vs/workbench/browser/panel';
import
{
IAction
}
from
'
vs/base/common/actions
'
;
import
{
IAction
}
from
'
vs/base/common/actions
'
;
import
{
IWorkbenchEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
{
IWorkbenchEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
Constants
from
'
vs/workbench/parts/markers/common/constants
'
;
import
Constants
from
'
vs/workbench/parts/markers/common/constants
'
;
import
{
IProblemsConfiguration
,
MarkersModel
,
Marker
,
Resource
}
from
'
vs/workbench/parts/markers/common/markersModel
'
;
import
{
IProblemsConfiguration
,
MarkersModel
,
Marker
,
Resource
,
FilterOptions
}
from
'
vs/workbench/parts/markers/common/markersModel
'
;
import
{
Controller
}
from
'
vs/workbench/parts/markers/browser/markersTreeController
'
;
import
{
Controller
}
from
'
vs/workbench/parts/markers/browser/markersTreeController
'
;
import
Tree
=
require
(
'
vs/base/parts/tree/browser/tree
'
);
import
Tree
=
require
(
'
vs/base/parts/tree/browser/tree
'
);
import
TreeImpl
=
require
(
'
vs/base/parts/tree/browser/treeImpl
'
);
import
TreeImpl
=
require
(
'
vs/base/parts/tree/browser/treeImpl
'
);
...
@@ -124,9 +124,8 @@ export class MarkersPanel extends Panel {
...
@@ -124,9 +124,8 @@ export class MarkersPanel extends Panel {
return
this
.
actions
;
return
this
.
actions
;
}
}
p
ublic
refreshPanel
(
updateTitleArea
:
boolean
=
false
):
TPromise
<
any
>
{
p
rivate
refreshPanel
(
updateTitleArea
:
boolean
=
false
):
TPromise
<
any
>
{
this
.
collapseAllAction
.
enabled
=
this
.
markersModel
.
hasFilteredResources
();
this
.
collapseAllAction
.
enabled
=
this
.
markersModel
.
hasFilteredResources
();
this
.
refreshAutoExpanded
();
if
(
updateTitleArea
)
{
if
(
updateTitleArea
)
{
this
.
updateTitleArea
();
this
.
updateTitleArea
();
}
}
...
@@ -140,6 +139,13 @@ export class MarkersPanel extends Panel {
...
@@ -140,6 +139,13 @@ export class MarkersPanel extends Panel {
return
TPromise
.
as
(
null
);
return
TPromise
.
as
(
null
);
}
}
public
updateFilter
(
filter
:
string
)
{
this
.
markersModel
.
update
(
new
FilterOptions
(
filter
));
this
.
autoExpanded
=
new
Set
.
ArraySet
<
string
>
();
this
.
refreshPanel
();
this
.
autoReveal
();
}
private
createMessageBox
(
parent
:
HTMLElement
):
void
{
private
createMessageBox
(
parent
:
HTMLElement
):
void
{
this
.
messageBoxContainer
=
dom
.
append
(
parent
,
dom
.
emmet
(
'
.message-box-container
'
));
this
.
messageBoxContainer
=
dom
.
append
(
parent
,
dom
.
emmet
(
'
.message-box-container
'
));
this
.
messageBox
=
dom
.
append
(
this
.
messageBoxContainer
,
dom
.
emmet
(
'
span
'
));
this
.
messageBox
=
dom
.
append
(
this
.
messageBoxContainer
,
dom
.
emmet
(
'
span
'
));
...
@@ -231,14 +237,6 @@ export class MarkersPanel extends Panel {
...
@@ -231,14 +237,6 @@ export class MarkersPanel extends Panel {
dom
.
toggleClass
(
this
.
messageBoxContainer
,
'
hidden
'
,
this
.
markersModel
.
hasFilteredResources
());
dom
.
toggleClass
(
this
.
messageBoxContainer
,
'
hidden
'
,
this
.
markersModel
.
hasFilteredResources
());
}
}
private
refreshAutoExpanded
():
void
{
this
.
markersModel
.
nonFilteredResources
.
forEach
((
resource
)
=>
{
if
(
this
.
tree
.
isExpanded
(
resource
))
{
this
.
autoExpanded
.
unset
(
resource
.
uri
.
toString
());
}
});
}
private
autoExpand
():
void
{
private
autoExpand
():
void
{
this
.
markersModel
.
filteredResources
.
forEach
((
resource
)
=>
{
this
.
markersModel
.
filteredResources
.
forEach
((
resource
)
=>
{
if
(
this
.
autoExpanded
.
contains
(
resource
.
uri
.
toString
()))
{
if
(
this
.
autoExpanded
.
contains
(
resource
.
uri
.
toString
()))
{
...
...
src/vs/workbench/parts/markers/browser/markersPanelActions.ts
浏览文件 @
4cd256d4
...
@@ -16,7 +16,6 @@ import {IContextViewService} from 'vs/platform/contextview/browser/contextView';
...
@@ -16,7 +16,6 @@ import {IContextViewService} from 'vs/platform/contextview/browser/contextView';
import
{
TogglePanelAction
}
from
'
vs/workbench/browser/panel
'
;
import
{
TogglePanelAction
}
from
'
vs/workbench/browser/panel
'
;
import
Messages
from
'
vs/workbench/parts/markers/common/messages
'
;
import
Messages
from
'
vs/workbench/parts/markers/common/messages
'
;
import
Constants
from
'
vs/workbench/parts/markers/common/constants
'
;
import
Constants
from
'
vs/workbench/parts/markers/common/constants
'
;
import
{
FilterOptions
}
from
'
vs/workbench/parts/markers/common/markersModel
'
;
import
{
MarkersPanel
}
from
'
vs/workbench/parts/markers/browser/markersPanel
'
;
import
{
MarkersPanel
}
from
'
vs/workbench/parts/markers/browser/markersPanel
'
;
import
{
IPartService
}
from
'
vs/workbench/services/part/common/partService
'
;
import
{
IPartService
}
from
'
vs/workbench/services/part/common/partService
'
;
import
{
IPanelService
}
from
'
vs/workbench/services/panel/common/panelService
'
;
import
{
IPanelService
}
from
'
vs/workbench/services/panel/common/panelService
'
;
...
@@ -121,8 +120,7 @@ export class FilterInputBoxActionItem extends BaseActionItem {
...
@@ -121,8 +120,7 @@ export class FilterInputBoxActionItem extends BaseActionItem {
}
}
private
updateFilter
(
filter
:
string
)
{
private
updateFilter
(
filter
:
string
)
{
this
.
markersPanel
.
markersModel
.
update
(
new
FilterOptions
(
filter
));
this
.
markersPanel
.
updateFilter
(
filter
);
this
.
markersPanel
.
refreshPanel
();
this
.
delayer
.
trigger
(
this
.
reportFilteringUsed
.
bind
(
this
));
this
.
delayer
.
trigger
(
this
.
reportFilteringUsed
.
bind
(
this
));
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录