Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
c393e6a3
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,发现更多精彩内容 >>
提交
c393e6a3
编写于
8月 28, 2020
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debt - use some "import type" syntax to ensure the module is not getting loaded
上级
8a3a3d85
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
18 addition
and
22 deletion
+18
-22
src/vs/base/parts/storage/node/storage.ts
src/vs/base/parts/storage/node/storage.ts
+1
-1
src/vs/code/test/electron-main/nativeHelpers.test.ts
src/vs/code/test/electron-main/nativeHelpers.test.ts
+2
-3
src/vs/platform/credentials/node/credentialsService.ts
src/vs/platform/credentials/node/credentialsService.ts
+2
-2
src/vs/workbench/electron-browser/window.ts
src/vs/workbench/electron-browser/window.ts
+1
-1
src/vs/workbench/services/accessibility/electron-browser/accessibilityService.ts
...es/accessibility/electron-browser/accessibilityService.ts
+10
-12
src/vs/workbench/services/extensions/node/proxyResolver.ts
src/vs/workbench/services/extensions/node/proxyResolver.ts
+2
-3
未找到文件。
src/vs/base/parts/storage/node/storage.ts
浏览文件 @
c393e6a3
...
...
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
Database
,
Statement
}
from
'
vscode-sqlite3
'
;
import
type
{
Database
,
Statement
}
from
'
vscode-sqlite3
'
;
import
{
Event
}
from
'
vs/base/common/event
'
;
import
{
timeout
}
from
'
vs/base/common/async
'
;
import
{
mapToString
,
setToString
}
from
'
vs/base/common/map
'
;
...
...
src/vs/code/test/electron-main/nativeHelpers.test.ts
浏览文件 @
c393e6a3
...
...
@@ -28,9 +28,8 @@ suite('Windows Native Helpers', () => {
});
test
(
'
vscode-windows-ca-certs
'
,
async
()
=>
{
const
windowsCerts
=
await
new
Promise
<
any
>
((
resolve
,
reject
)
=>
{
require
([
'
vscode-windows-ca-certs
'
],
resolve
,
reject
);
});
// @ts-ignore Windows only
const
windowsCerts
=
await
import
(
'
vscode-windows-ca-certs
'
);
assert
.
ok
(
windowsCerts
,
'
Unable to load vscode-windows-ca-certs dependency.
'
);
});
...
...
src/vs/platform/credentials/node/credentialsService.ts
浏览文件 @
c393e6a3
...
...
@@ -3,15 +3,15 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
type
*
as
keytar
from
'
keytar
'
;
import
{
ICredentialsService
}
from
'
vs/platform/credentials/common/credentials
'
;
import
{
IdleValue
}
from
'
vs/base/common/async
'
;
type
KeytarModule
=
typeof
import
(
'
keytar
'
);
export
class
KeytarCredentialsService
implements
ICredentialsService
{
declare
readonly
_serviceBrand
:
undefined
;
private
readonly
_keytar
=
new
IdleValue
<
Promise
<
KeytarModule
>>
(()
=>
import
(
'
keytar
'
));
private
readonly
_keytar
=
new
IdleValue
<
Promise
<
typeof
keytar
>>
(()
=>
import
(
'
keytar
'
));
async
getPassword
(
service
:
string
,
account
:
string
):
Promise
<
string
|
null
>
{
const
keytar
=
await
this
.
_keytar
.
value
;
...
...
src/vs/workbench/electron-browser/window.ts
浏览文件 @
c393e6a3
...
...
@@ -610,7 +610,7 @@ class NativeMenubarControl extends MenubarControl {
@
IStorageService
storageService
:
IStorageService
,
@
INotificationService
notificationService
:
INotificationService
,
@
IPreferencesService
preferencesService
:
IPreferencesService
,
@
IWorkbenchEnvironmentService
protected
readonly
environmentService
:
I
Native
WorkbenchEnvironmentService
,
@
IWorkbenchEnvironmentService
protected
readonly
environmentService
:
IWorkbenchEnvironmentService
,
@
IAccessibilityService
accessibilityService
:
IAccessibilityService
,
@
IMenubarService
private
readonly
menubarService
:
IMenubarService
,
@
IHostService
hostService
:
IHostService
,
...
...
src/vs/workbench/services/accessibility/electron-browser/accessibilityService.ts
浏览文件 @
c393e6a3
...
...
@@ -41,23 +41,21 @@ export class NativeAccessibilityService extends AccessibilityService implements
this
.
setAccessibilitySupport
(
environmentService
.
configuration
.
accessibilitySupport
?
AccessibilitySupport
.
Enabled
:
AccessibilitySupport
.
Disabled
);
}
alwaysUnderlineAccessKeys
():
Promise
<
boolean
>
{
a
sync
a
lwaysUnderlineAccessKeys
():
Promise
<
boolean
>
{
if
(
!
isWindows
)
{
return
Promise
.
resolve
(
false
)
;
return
false
;
}
return
new
Promise
<
boolean
>
(
async
(
resolve
)
=>
{
const
Registry
=
await
import
(
'
vscode-windows-registry
'
);
let
value
;
let
value
:
string
|
undefined
=
undefined
;
try
{
value
=
Registry
.
GetStringRegKey
(
'
HKEY_CURRENT_USER
'
,
'
Control Panel
\\
Accessibility
\\
Keyboard Preference
'
,
'
On
'
);
}
catch
{
resolve
(
false
)
;
return
false
;
}
resolve
(
value
===
'
1
'
);
});
return
value
===
'
1
'
;
}
setAccessibilitySupport
(
accessibilitySupport
:
AccessibilitySupport
):
void
{
...
...
src/vs/workbench/services/extensions/node/proxyResolver.ts
浏览文件 @
c393e6a3
...
...
@@ -493,9 +493,8 @@ async function readCaCertificates() {
}
async
function
readWindowsCaCertificates
()
{
const
winCA
=
await
new
Promise
<
any
>
((
resolve
,
reject
)
=>
{
require
([
'
vscode-windows-ca-certs
'
],
resolve
,
reject
);
});
// @ts-ignore Windows only
const
winCA
=
await
import
(
'
vscode-windows-ca-certs
'
);
let
ders
:
any
[]
=
[];
const
store
=
winCA
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录