Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
2d0b37f0
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,发现更多精彩内容 >>
提交
2d0b37f0
编写于
11月 22, 2019
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Strict function work
#81574
上级
028e009e
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
9 addition
and
9 deletion
+9
-9
src/vs/base/browser/ui/menu/menu.ts
src/vs/base/browser/ui/menu/menu.ts
+3
-3
src/vs/base/browser/ui/toolbar/toolbar.ts
src/vs/base/browser/ui/toolbar/toolbar.ts
+1
-1
src/vs/base/common/iterator.ts
src/vs/base/common/iterator.ts
+1
-1
src/vs/base/parts/ipc/common/ipc.ts
src/vs/base/parts/ipc/common/ipc.ts
+1
-1
src/vs/base/parts/storage/test/node/storage.test.ts
src/vs/base/parts/storage/test/node/storage.test.ts
+1
-1
src/vs/editor/browser/editorExtensions.ts
src/vs/editor/browser/editorExtensions.ts
+2
-2
未找到文件。
src/vs/base/browser/ui/menu/menu.ts
浏览文件 @
2d0b37f0
...
...
@@ -6,7 +6,7 @@
import
'
vs/css!./menu
'
;
import
*
as
nls
from
'
vs/nls
'
;
import
*
as
strings
from
'
vs/base/common/strings
'
;
import
{
IActionRunner
,
IAction
,
Action
}
from
'
vs/base/common/actions
'
;
import
{
IActionRunner
,
IAction
,
Action
,
IActionViewItem
}
from
'
vs/base/common/actions
'
;
import
{
ActionBar
,
IActionViewItemProvider
,
ActionsOrientation
,
Separator
,
ActionViewItem
,
IActionViewItemOptions
,
BaseActionViewItem
}
from
'
vs/base/browser/ui/actionbar/actionbar
'
;
import
{
ResolvedKeybinding
,
KeyCode
}
from
'
vs/base/common/keyCodes
'
;
import
{
addClass
,
EventType
,
EventHelper
,
EventLike
,
removeTabIndexAndUpdateFocus
,
isAncestor
,
hasClass
,
addDisposableListener
,
removeClass
,
append
,
$
,
addClasses
,
removeClasses
}
from
'
vs/base/browser/dom
'
;
...
...
@@ -205,8 +205,8 @@ export class Menu extends ActionBar {
container
.
appendChild
(
this
.
scrollableElement
.
getDomNode
());
this
.
scrollableElement
.
scanDomNode
();
this
.
viewItems
.
filter
(
item
=>
!
(
item
instanceof
MenuSeparatorActionViewItem
)).
forEach
((
item
:
BaseMenu
ActionViewItem
,
index
:
number
,
array
:
any
[])
=>
{
item
.
updatePositionInSet
(
index
+
1
,
array
.
length
);
this
.
viewItems
.
filter
(
item
=>
!
(
item
instanceof
MenuSeparatorActionViewItem
)).
forEach
((
item
:
I
ActionViewItem
,
index
:
number
,
array
:
any
[])
=>
{
(
item
as
BaseMenuActionViewItem
)
.
updatePositionInSet
(
index
+
1
,
array
.
length
);
});
}
...
...
src/vs/base/browser/ui/toolbar/toolbar.ts
浏览文件 @
2d0b37f0
...
...
@@ -52,7 +52,7 @@ export class ToolBar extends Disposable {
orientation
:
options
.
orientation
,
ariaLabel
:
options
.
ariaLabel
,
actionRunner
:
options
.
actionRunner
,
actionViewItemProvider
:
(
action
:
Action
)
=>
{
actionViewItemProvider
:
(
action
:
I
Action
)
=>
{
// Return special action item for the toggle menu action
if
(
action
.
id
===
ToggleMenuAction
.
ID
)
{
...
...
src/vs/base/common/iterator.ts
浏览文件 @
2d0b37f0
...
...
@@ -271,7 +271,7 @@ export interface INavigator<T> extends INextIterator<T> {
export
class
MappedNavigator
<
T
,
R
>
extends
MappedIterator
<
T
,
R
>
implements
INavigator
<
R
>
{
constructor
(
protected
navigator
:
INavigator
<
T
>
,
fn
:
(
item
:
T
)
=>
R
)
{
constructor
(
protected
navigator
:
INavigator
<
T
>
,
fn
:
(
item
:
T
|
null
)
=>
R
)
{
super
(
navigator
,
fn
);
}
...
...
src/vs/base/parts/ipc/common/ipc.ts
浏览文件 @
2d0b37f0
...
...
@@ -553,7 +553,7 @@ export class ChannelClient implements IChannelClient, IDisposable {
}
});
const
handler
:
IHandler
=
(
res
:
IRaw
EventFireResponse
)
=>
emitter
.
fire
(
res
.
data
);
const
handler
:
IHandler
=
(
res
:
IRaw
Response
)
=>
emitter
.
fire
((
res
as
IRawEventFireResponse
)
.
data
);
this
.
handlers
.
set
(
id
,
handler
);
return
emitter
.
event
;
...
...
src/vs/base/parts/storage/test/node/storage.test.ts
浏览文件 @
2d0b37f0
...
...
@@ -294,7 +294,7 @@ suite('SQLite Storage Library', () => {
return
set
;
}
async
function
testDBBasics
(
path
:
string
,
logError
?:
(
error
:
Error
)
=>
void
)
{
async
function
testDBBasics
(
path
:
string
,
logError
?:
(
error
:
Error
|
string
)
=>
void
)
{
let
options
!
:
ISQLiteStorageDatabaseOptions
;
if
(
logError
)
{
options
=
{
...
...
src/vs/editor/browser/editorExtensions.ts
浏览文件 @
2d0b37f0
...
...
@@ -377,7 +377,7 @@ class EditorContributionRegistry {
}
public
registerEditorContribution
<
Services
extends
BrandedService
[]
>
(
id
:
string
,
ctor
:
{
new
(
editor
:
ICodeEditor
,
...
services
:
Services
):
IEditorContribution
}):
void
{
this
.
editorContributions
.
push
({
id
,
ctor
});
this
.
editorContributions
.
push
({
id
,
ctor
:
ctor
as
IEditorContributionCtor
});
}
public
getEditorContributions
():
IEditorContributionDescription
[]
{
...
...
@@ -385,7 +385,7 @@ class EditorContributionRegistry {
}
public
registerDiffEditorContribution
<
Services
extends
BrandedService
[]
>
(
id
:
string
,
ctor
:
{
new
(
editor
:
IDiffEditor
,
...
services
:
Services
):
IEditorContribution
}):
void
{
this
.
diffEditorContributions
.
push
({
id
,
ctor
});
this
.
diffEditorContributions
.
push
({
id
,
ctor
:
ctor
as
IDiffEditorContributionCtor
});
}
public
getDiffEditorContributions
():
IDiffEditorContributionDescription
[]
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录