Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
7b295d53
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,发现更多精彩内容 >>
提交
7b295d53
编写于
4月 11, 2019
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/master' into joao/mixin
上级
2351ab38
6730f710
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
22 deletion
+19
-22
src/vs/editor/contrib/referenceSearch/referencesWidget.ts
src/vs/editor/contrib/referenceSearch/referencesWidget.ts
+0
-3
src/vs/workbench/services/extensions/test/node/rpcProtocol.test.ts
...rkbench/services/extensions/test/node/rpcProtocol.test.ts
+19
-19
未找到文件。
src/vs/editor/contrib/referenceSearch/referencesWidget.ts
浏览文件 @
7b295d53
...
...
@@ -368,9 +368,6 @@ export class ReferenceWidget extends PeekViewWidget {
if
(
e
.
browserEvent
instanceof
KeyboardEvent
)
{
// todo@joh make this a command
goto
=
true
;
}
else
if
(
e
.
browserEvent
instanceof
MouseEvent
)
{
aside
=
e
.
browserEvent
.
ctrlKey
||
e
.
browserEvent
.
metaKey
||
e
.
browserEvent
.
altKey
;
goto
=
e
.
browserEvent
.
detail
===
2
;
}
if
(
aside
)
{
onEvent
(
e
.
elements
[
0
],
'
side
'
);
...
...
src/vs/workbench/services/extensions/test/node/rpcProtocol.test.ts
浏览文件 @
7b295d53
...
...
@@ -70,15 +70,15 @@ suite('RPCProtocol', () => {
});
test
(
'
passing buffer as argument
'
,
function
(
done
)
{
delegate
=
(
a1
:
Buffer
,
a2
:
number
)
=>
{
assert
.
ok
(
Buffer
.
isBuffer
(
a1
)
);
return
a1
[
a2
];
delegate
=
(
a1
:
VS
Buffer
,
a2
:
number
)
=>
{
assert
.
ok
(
a1
instanceof
VSBuffer
);
return
a1
.
buffer
[
a2
];
};
let
b
=
Buffer
.
allocUnsafe
(
4
);
b
[
0
]
=
1
;
b
[
1
]
=
2
;
b
[
2
]
=
3
;
b
[
3
]
=
4
;
let
b
=
VSBuffer
.
alloc
(
4
);
b
.
buffer
[
0
]
=
1
;
b
.
buffer
[
1
]
=
2
;
b
.
buffer
[
2
]
=
3
;
b
.
buffer
[
3
]
=
4
;
bProxy
.
$m
(
b
,
2
).
then
((
res
:
number
)
=>
{
assert
.
equal
(
res
,
3
);
done
(
null
);
...
...
@@ -87,19 +87,19 @@ suite('RPCProtocol', () => {
test
(
'
returning a buffer
'
,
function
(
done
)
{
delegate
=
(
a1
:
number
,
a2
:
number
)
=>
{
let
b
=
Buffer
.
allocUnsafe
(
4
);
b
[
0
]
=
1
;
b
[
1
]
=
2
;
b
[
2
]
=
3
;
b
[
3
]
=
4
;
let
b
=
VSBuffer
.
alloc
(
4
);
b
.
buffer
[
0
]
=
1
;
b
.
buffer
[
1
]
=
2
;
b
.
buffer
[
2
]
=
3
;
b
.
buffer
[
3
]
=
4
;
return
b
;
};
bProxy
.
$m
(
4
,
1
).
then
((
res
:
Buffer
)
=>
{
assert
.
ok
(
Buffer
.
isBuffer
(
res
)
);
assert
.
equal
(
res
[
0
],
1
);
assert
.
equal
(
res
[
1
],
2
);
assert
.
equal
(
res
[
2
],
3
);
assert
.
equal
(
res
[
3
],
4
);
bProxy
.
$m
(
4
,
1
).
then
((
res
:
VS
Buffer
)
=>
{
assert
.
ok
(
res
instanceof
VSBuffer
);
assert
.
equal
(
res
.
buffer
[
0
],
1
);
assert
.
equal
(
res
.
buffer
[
1
],
2
);
assert
.
equal
(
res
.
buffer
[
2
],
3
);
assert
.
equal
(
res
.
buffer
[
3
],
4
);
done
(
null
);
},
done
);
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录