Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
781b1b7a
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,发现更多精彩内容 >>
提交
781b1b7a
编写于
5月 18, 2018
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
grid - remove "structural" from group change event
上级
1c2ffea3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
12 deletion
+3
-12
src/vs/workbench/browser/parts/editor2/nextEditorGroupView.ts
...vs/workbench/browser/parts/editor2/nextEditorGroupView.ts
+3
-3
src/vs/workbench/services/group/common/nextEditorGroupsService.ts
...orkbench/services/group/common/nextEditorGroupsService.ts
+0
-1
src/vs/workbench/services/group/test/browser/nextEditorGroupsService.test.ts
...rvices/group/test/browser/nextEditorGroupsService.test.ts
+0
-8
未找到文件。
src/vs/workbench/browser/parts/editor2/nextEditorGroupView.ts
浏览文件 @
781b1b7a
...
@@ -364,7 +364,7 @@ export class NextEditorGroupView extends Themable implements INextEditorGroupVie
...
@@ -364,7 +364,7 @@ export class NextEditorGroupView extends Themable implements INextEditorGroupVie
this
.
updateContainer
();
this
.
updateContainer
();
// Event
// Event
this
.
_onDidGroupChange
.
fire
({
kind
:
GroupChangeKind
.
EDITOR_OPEN
,
editor
,
structural
:
true
});
this
.
_onDidGroupChange
.
fire
({
kind
:
GroupChangeKind
.
EDITOR_OPEN
,
editor
});
}
}
private
onDidEditorClose
(
event
:
EditorCloseEvent
):
void
{
private
onDidEditorClose
(
event
:
EditorCloseEvent
):
void
{
...
@@ -403,7 +403,7 @@ export class NextEditorGroupView extends Themable implements INextEditorGroupVie
...
@@ -403,7 +403,7 @@ export class NextEditorGroupView extends Themable implements INextEditorGroupVie
// Event
// Event
this
.
_onDidCloseEditor
.
fire
(
event
);
this
.
_onDidCloseEditor
.
fire
(
event
);
this
.
_onDidGroupChange
.
fire
({
kind
:
GroupChangeKind
.
EDITOR_CLOSE
,
editor
,
structural
:
true
});
this
.
_onDidGroupChange
.
fire
({
kind
:
GroupChangeKind
.
EDITOR_CLOSE
,
editor
});
}
}
private
onDidEditorDispose
(
editor
:
EditorInput
):
void
{
private
onDidEditorDispose
(
editor
:
EditorInput
):
void
{
...
@@ -768,7 +768,7 @@ export class NextEditorGroupView extends Themable implements INextEditorGroupVie
...
@@ -768,7 +768,7 @@ export class NextEditorGroupView extends Themable implements INextEditorGroupVie
this
.
titleAreaControl
.
pinEditor
(
editor
);
this
.
titleAreaControl
.
pinEditor
(
editor
);
// Event
// Event
this
.
_onDidGroupChange
.
fire
({
kind
:
GroupChangeKind
.
EDITOR_MOVE
,
editor
,
structural
:
true
});
this
.
_onDidGroupChange
.
fire
({
kind
:
GroupChangeKind
.
EDITOR_MOVE
,
editor
});
}
}
private
doMoveOrCopyEditorAcrossGroups
(
editor
:
EditorInput
,
target
:
INextEditorGroupView
,
moveOptions
:
IMoveEditorOptions
=
Object
.
create
(
null
),
keepCopy
?:
boolean
):
void
{
private
doMoveOrCopyEditorAcrossGroups
(
editor
:
EditorInput
,
target
:
INextEditorGroupView
,
moveOptions
:
IMoveEditorOptions
=
Object
.
create
(
null
),
keepCopy
?:
boolean
):
void
{
...
...
src/vs/workbench/services/group/common/nextEditorGroupsService.ts
浏览文件 @
781b1b7a
...
@@ -253,7 +253,6 @@ export enum GroupChangeKind {
...
@@ -253,7 +253,6 @@ export enum GroupChangeKind {
export
interface
IGroupChangeEvent
{
export
interface
IGroupChangeEvent
{
kind
:
GroupChangeKind
;
kind
:
GroupChangeKind
;
structural
?:
boolean
;
editor
?:
IEditorInput
;
editor
?:
IEditorInput
;
}
}
...
...
src/vs/workbench/services/group/test/browser/nextEditorGroupsService.test.ts
浏览文件 @
781b1b7a
...
@@ -151,7 +151,6 @@ suite('Editor groups service (editor2)', () => {
...
@@ -151,7 +151,6 @@ suite('Editor groups service (editor2)', () => {
let
rootGroupActiveChangeCounter
=
0
;
let
rootGroupActiveChangeCounter
=
0
;
const
rootGroupChangeListener
=
rootGroup
.
onDidGroupChange
(
e
=>
{
const
rootGroupChangeListener
=
rootGroup
.
onDidGroupChange
(
e
=>
{
if
(
e
.
kind
===
GroupChangeKind
.
GROUP_ACTIVE
)
{
if
(
e
.
kind
===
GroupChangeKind
.
GROUP_ACTIVE
)
{
assert
.
notEqual
(
e
.
structural
,
true
);
rootGroupActiveChangeCounter
++
;
rootGroupActiveChangeCounter
++
;
}
}
});
});
...
@@ -159,7 +158,6 @@ suite('Editor groups service (editor2)', () => {
...
@@ -159,7 +158,6 @@ suite('Editor groups service (editor2)', () => {
let
rightGroupActiveChangeCounter
=
0
;
let
rightGroupActiveChangeCounter
=
0
;
const
rightGroupChangeListener
=
rightGroup
.
onDidGroupChange
(
e
=>
{
const
rightGroupChangeListener
=
rightGroup
.
onDidGroupChange
(
e
=>
{
if
(
e
.
kind
===
GroupChangeKind
.
GROUP_ACTIVE
)
{
if
(
e
.
kind
===
GroupChangeKind
.
GROUP_ACTIVE
)
{
assert
.
notEqual
(
e
.
structural
,
true
);
rightGroupActiveChangeCounter
++
;
rightGroupActiveChangeCounter
++
;
}
}
});
});
...
@@ -273,7 +271,6 @@ suite('Editor groups service (editor2)', () => {
...
@@ -273,7 +271,6 @@ suite('Editor groups service (editor2)', () => {
let
labelChangeCounter
=
0
;
let
labelChangeCounter
=
0
;
const
labelChangeListener
=
downGroup
.
onDidGroupChange
(
e
=>
{
const
labelChangeListener
=
downGroup
.
onDidGroupChange
(
e
=>
{
if
(
e
.
kind
===
GroupChangeKind
.
GROUP_LABEL
)
{
if
(
e
.
kind
===
GroupChangeKind
.
GROUP_LABEL
)
{
assert
.
notEqual
(
e
.
structural
,
true
);
labelChangeCounter
++
;
labelChangeCounter
++
;
}
}
});
});
...
@@ -386,19 +383,15 @@ suite('Editor groups service (editor2)', () => {
...
@@ -386,19 +383,15 @@ suite('Editor groups service (editor2)', () => {
let
editorPinCounter
=
0
;
let
editorPinCounter
=
0
;
const
editorGroupChangeListener
=
group
.
onDidGroupChange
(
e
=>
{
const
editorGroupChangeListener
=
group
.
onDidGroupChange
(
e
=>
{
if
(
e
.
kind
===
GroupChangeKind
.
EDITOR_OPEN
)
{
if
(
e
.
kind
===
GroupChangeKind
.
EDITOR_OPEN
)
{
assert
.
equal
(
e
.
structural
,
true
);
assert
.
ok
(
e
.
editor
);
assert
.
ok
(
e
.
editor
);
editorDidOpenCounter
++
;
editorDidOpenCounter
++
;
}
else
if
(
e
.
kind
===
GroupChangeKind
.
EDITOR_ACTIVE
)
{
}
else
if
(
e
.
kind
===
GroupChangeKind
.
EDITOR_ACTIVE
)
{
assert
.
notEqual
(
e
.
structural
,
true
);
assert
.
ok
(
e
.
editor
);
assert
.
ok
(
e
.
editor
);
activeEditorChangeCounter
++
;
activeEditorChangeCounter
++
;
}
else
if
(
e
.
kind
===
GroupChangeKind
.
EDITOR_CLOSE
)
{
}
else
if
(
e
.
kind
===
GroupChangeKind
.
EDITOR_CLOSE
)
{
assert
.
equal
(
e
.
structural
,
true
);
assert
.
ok
(
e
.
editor
);
assert
.
ok
(
e
.
editor
);
editorCloseCounter1
++
;
editorCloseCounter1
++
;
}
else
if
(
e
.
kind
===
GroupChangeKind
.
EDITOR_PIN
)
{
}
else
if
(
e
.
kind
===
GroupChangeKind
.
EDITOR_PIN
)
{
assert
.
notEqual
(
e
.
structural
,
true
);
assert
.
ok
(
e
.
editor
);
assert
.
ok
(
e
.
editor
);
editorPinCounter
++
;
editorPinCounter
++
;
}
}
...
@@ -605,7 +598,6 @@ suite('Editor groups service (editor2)', () => {
...
@@ -605,7 +598,6 @@ suite('Editor groups service (editor2)', () => {
let
editorMoveCounter
=
0
;
let
editorMoveCounter
=
0
;
const
editorGroupChangeListener
=
group
.
onDidGroupChange
(
e
=>
{
const
editorGroupChangeListener
=
group
.
onDidGroupChange
(
e
=>
{
if
(
e
.
kind
===
GroupChangeKind
.
EDITOR_MOVE
)
{
if
(
e
.
kind
===
GroupChangeKind
.
EDITOR_MOVE
)
{
assert
.
equal
(
e
.
structural
,
true
);
assert
.
ok
(
e
.
editor
);
assert
.
ok
(
e
.
editor
);
editorMoveCounter
++
;
editorMoveCounter
++
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录