Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
044a5f92
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,发现更多精彩内容 >>
提交
044a5f92
编写于
7月 02, 2019
作者:
C
Christof Marti
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove suppressImplicitAnyIndexErrors (#76442)
上级
41ae43ed
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
9 deletion
+11
-9
src/vs/workbench/api/browser/mainThreadQuickOpen.ts
src/vs/workbench/api/browser/mainThreadQuickOpen.ts
+4
-4
src/vs/workbench/api/common/extHost.protocol.ts
src/vs/workbench/api/common/extHost.protocol.ts
+2
-0
src/vs/workbench/api/common/extHostQuickOpen.ts
src/vs/workbench/api/common/extHostQuickOpen.ts
+3
-3
src/vs/workbench/browser/parts/quickinput/quickInputList.ts
src/vs/workbench/browser/parts/quickinput/quickInputList.ts
+1
-1
src/vs/workbench/browser/parts/quickinput/quickInputUtils.ts
src/vs/workbench/browser/parts/quickinput/quickInputUtils.ts
+1
-1
未找到文件。
src/vs/workbench/api/browser/mainThreadQuickOpen.ts
浏览文件 @
044a5f92
...
...
@@ -174,13 +174,13 @@ export class MainThreadQuickOpen implements MainThreadQuickOpenShape {
params
[
param
].
forEach
((
item
:
TransferQuickPickItems
)
=>
{
handlesToItems
.
set
(
item
.
handle
,
item
);
});
input
[
param
]
=
params
[
param
];
(
input
as
any
)
[
param
]
=
params
[
param
];
}
else
if
(
param
===
'
activeItems
'
||
param
===
'
selectedItems
'
)
{
input
[
param
]
=
params
[
param
]
(
input
as
any
)
[
param
]
=
params
[
param
]
.
filter
((
handle
:
number
)
=>
handlesToItems
.
has
(
handle
))
.
map
((
handle
:
number
)
=>
handlesToItems
.
get
(
handle
));
}
else
if
(
param
===
'
buttons
'
)
{
input
[
param
]
=
params
.
buttons
!
.
map
(
button
=>
{
(
input
as
any
)
[
param
]
=
params
.
buttons
!
.
map
(
button
=>
{
if
(
button
.
handle
===
-
1
)
{
return
this
.
_quickInputService
.
backButton
;
}
...
...
@@ -195,7 +195,7 @@ export class MainThreadQuickOpen implements MainThreadQuickOpenShape {
};
});
}
else
{
input
[
param
]
=
params
[
param
];
(
input
as
any
)
[
param
]
=
params
[
param
];
}
}
return
Promise
.
resolve
(
undefined
);
...
...
src/vs/workbench/api/common/extHost.protocol.ts
浏览文件 @
044a5f92
...
...
@@ -425,6 +425,8 @@ export type TransferQuickInput = TransferQuickPick | TransferInputBox;
export
interface
BaseTransferQuickInput
{
[
key
:
string
]:
any
;
id
:
number
;
type
?:
'
quickPick
'
|
'
inputBox
'
;
...
...
src/vs/workbench/api/common/extHostQuickOpen.ts
浏览文件 @
044a5f92
...
...
@@ -458,14 +458,14 @@ function getLightIconUri(iconPath: QuickInputButton['iconPath']) {
||
iconPath
instanceof
URI
)
{
return
getIconUri
(
iconPath
);
}
return
getIconUri
(
iconPath
[
'
light
'
]
);
return
getIconUri
(
(
iconPath
as
any
).
light
);
}
return
undefined
;
}
function
getDarkIconUri
(
iconPath
:
QuickInputButton
[
'
iconPath
'
])
{
if
(
iconPath
&&
!
(
iconPath
instanceof
ThemeIcon
)
&&
iconPath
[
'
dark
'
]
)
{
return
getIconUri
(
iconPath
[
'
dark
'
]
);
if
(
iconPath
&&
!
(
iconPath
instanceof
ThemeIcon
)
&&
(
iconPath
as
any
).
dark
)
{
return
getIconUri
(
(
iconPath
as
any
).
dark
);
}
return
undefined
;
}
...
...
src/vs/workbench/browser/parts/quickinput/quickInputList.ts
浏览文件 @
044a5f92
...
...
@@ -456,7 +456,7 @@ export class QuickInputList {
what
=
'
Last
'
;
}
this
.
list
[
'
focus
'
+
what
]();
(
this
.
list
as
any
)
[
'
focus
'
+
what
]();
this
.
list
.
reveal
(
this
.
list
.
getFocus
()[
0
]);
}
...
...
src/vs/workbench/browser/parts/quickinput/quickInputUtils.ts
浏览文件 @
044a5f92
...
...
@@ -8,7 +8,7 @@ import * as dom from 'vs/base/browser/dom';
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
IdGenerator
}
from
'
vs/base/common/idGenerator
'
;
const
iconPathToClass
=
{};
const
iconPathToClass
:
Record
<
string
,
string
>
=
{};
const
iconClassGenerator
=
new
IdGenerator
(
'
quick-input-button-icon-
'
);
export
function
getIconClass
(
iconPath
:
{
dark
:
URI
;
light
?:
URI
;
}
|
undefined
):
string
|
undefined
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录