Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
b7b1088b
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,发现更多精彩内容 >>
提交
b7b1088b
编写于
12月 17, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Strict null check cliProcessMain
上级
113733ce
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
6 addition
and
5 deletion
+6
-5
src/tsconfig.strictNullChecks.json
src/tsconfig.strictNullChecks.json
+3
-2
src/vs/code/node/cliProcessMain.ts
src/vs/code/node/cliProcessMain.ts
+2
-2
src/vs/platform/telemetry/node/commonProperties.ts
src/vs/platform/telemetry/node/commonProperties.ts
+1
-1
未找到文件。
src/tsconfig.strictNullChecks.json
浏览文件 @
b7b1088b
...
...
@@ -170,6 +170,7 @@
"./vs/code/electron-main/sharedProcess.ts"
,
"./vs/code/electron-main/theme.ts"
,
"./vs/code/node/cli.ts"
,
"./vs/code/node/cliProcessMain.ts"
,
"./vs/code/node/paths.ts"
,
"./vs/code/node/shellEnv.ts"
,
"./vs/code/node/wait.ts"
,
...
...
@@ -670,6 +671,7 @@
"./vs/workbench/parts/terminal/node/terminalProcess.ts"
,
"./vs/workbench/parts/terminal/node/terminalProcessExtHostProxy.ts"
,
"./vs/workbench/parts/terminal/node/windowsShellHelper.ts"
,
"./vs/workbench/parts/terminal/test/electron-browser/terminalColorRegistry.test.ts"
,
"./vs/workbench/parts/terminal/test/node/terminalCommandTracker.test.ts"
,
"./vs/workbench/parts/url/electron-browser/url.contribution.ts"
,
"./vs/workbench/parts/webview/electron-browser/webviewProtocols.ts"
,
...
...
@@ -792,8 +794,7 @@
"./vs/workbench/services/title/common/titleService.ts"
,
"./vs/workbench/services/workspace/common/workspaceEditing.ts"
,
"./vs/workbench/test/common/editor/editorOptions.test.ts"
,
"./vs/workbench/test/electron-browser/api/mock.ts"
,
"./vs/workbench/parts/terminal/test/electron-browser/terminalColorRegistry.test.ts"
"./vs/workbench/test/electron-browser/api/mock.ts"
],
"exclude"
:
[
"./typings/require-monaco.d.ts"
...
...
src/vs/code/node/cliProcessMain.ts
浏览文件 @
b7b1088b
...
...
@@ -53,7 +53,7 @@ function getId(manifest: IExtensionManifest, withVersion?: boolean): string {
const
EXTENSION_ID_REGEX
=
/^
([^
.
]
+
\.
.+
)
@
(\d
+
\.\d
+
\.\d
+
(
-.*
)?)
$/
;
export
function
getIdAndVersion
(
id
:
string
):
[
string
,
string
]
{
export
function
getIdAndVersion
(
id
:
string
):
[
string
,
string
|
undefined
]
{
const
matches
=
EXTENSION_ID_REGEX
.
exec
(
id
);
if
(
matches
&&
matches
[
1
])
{
return
[
adoptToGalleryExtensionId
(
matches
[
1
]),
matches
[
2
]];
...
...
@@ -77,7 +77,7 @@ class Main {
await
this
.
setInstallSource
(
argv
[
'
install-source
'
]);
}
else
if
(
argv
[
'
list-extensions
'
])
{
await
this
.
listExtensions
(
argv
[
'
show-versions
'
]);
await
this
.
listExtensions
(
!!
argv
[
'
show-versions
'
]);
}
else
if
(
argv
[
'
install-extension
'
])
{
const
arg
=
argv
[
'
install-extension
'
];
...
...
src/vs/platform/telemetry/node/commonProperties.ts
浏览文件 @
b7b1088b
...
...
@@ -8,7 +8,7 @@ import * as os from 'os';
import
*
as
uuid
from
'
vs/base/common/uuid
'
;
import
{
readFile
}
from
'
vs/base/node/pfs
'
;
export
function
resolveCommonProperties
(
commit
:
string
|
undefined
,
version
:
string
,
machineId
:
string
,
installSourcePath
:
string
):
Promise
<
{
[
name
:
string
]:
string
|
undefined
;
}
>
{
export
function
resolveCommonProperties
(
commit
:
string
|
undefined
,
version
:
string
,
machineId
:
string
|
undefined
,
installSourcePath
:
string
):
Promise
<
{
[
name
:
string
]:
string
|
undefined
;
}
>
{
const
result
:
{
[
name
:
string
]:
string
|
undefined
;
}
=
Object
.
create
(
null
);
// __GDPR__COMMON__ "common.machineId" : { "endPoint": "MacAddressHash", "classification": "EndUserPseudonymizedInformation", "purpose": "FeatureInsight" }
result
[
'
common.machineId
'
]
=
machineId
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录