Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
0964952b
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0964952b
编写于
7月 03, 2019
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Marking almost all product fields as readonly
上级
e6b698b4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
83 addition
and
83 deletion
+83
-83
src/vs/platform/product/browser/productService.ts
src/vs/platform/product/browser/productService.ts
+2
-2
src/vs/platform/product/common/product.ts
src/vs/platform/product/common/product.ts
+79
-79
src/vs/platform/product/node/productService.ts
src/vs/platform/product/node/productService.ts
+2
-2
未找到文件。
src/vs/platform/product/browser/productService.ts
浏览文件 @
0964952b
...
...
@@ -25,9 +25,9 @@ export class ProductService implements IProductService {
get
urlProtocol
():
string
{
return
''
;
}
get
extensionAllowedProposedApi
():
string
[]
{
return
this
.
productConfiguration
?
this
.
productConfiguration
.
extensionAllowedProposedApi
:
[];
}
get
extensionAllowedProposedApi
():
readonly
string
[]
{
return
this
.
productConfiguration
?
this
.
productConfiguration
.
extensionAllowedProposedApi
:
[];
}
get
uiExtensions
():
string
[]
|
undefined
{
return
this
.
productConfiguration
?
this
.
productConfiguration
.
uiExtensions
:
undefined
;
}
get
uiExtensions
():
readonly
string
[]
|
undefined
{
return
this
.
productConfiguration
?
this
.
productConfiguration
.
uiExtensions
:
undefined
;
}
get
enableTelemetry
():
boolean
{
return
false
;
}
...
...
src/vs/platform/product/common/product.ts
浏览文件 @
0964952b
...
...
@@ -10,103 +10,103 @@ export const IProductService = createDecorator<IProductService>('productService'
export
interface
IProductService
{
_serviceBrand
:
any
;
version
:
string
;
commit
?:
string
;
readonly
version
:
string
;
readonly
commit
?:
string
;
nameLong
:
string
;
urlProtocol
:
string
;
extensionAllowedProposedApi
:
string
[];
uiExtensions
?:
string
[];
readonly
nameLong
:
string
;
readonly
urlProtocol
:
string
;
readonly
extensionAllowedProposedApi
:
readonly
string
[];
readonly
uiExtensions
?:
readonly
string
[];
enableTelemetry
:
boolean
;
extensionsGallery
?:
{
serviceUrl
:
string
;
itemUrl
:
string
;
controlUrl
:
string
;
recommendationsUrl
:
string
;
readonly
enableTelemetry
:
boolean
;
readonly
extensionsGallery
?:
{
readonly
serviceUrl
:
string
;
readonly
itemUrl
:
string
;
readonly
controlUrl
:
string
;
re
adonly
re
commendationsUrl
:
string
;
};
sendASmile
?:
{
reportIssueUrl
:
string
;
requestFeatureUrl
:
string
;
readonly
sendASmile
?:
{
re
adonly
re
portIssueUrl
:
string
;
re
adonly
re
questFeatureUrl
:
string
;
};
}
export
interface
IProductConfiguration
{
nameShort
:
string
;
nameLong
:
string
;
applicationName
:
string
;
win32AppId
:
string
;
win32x64AppId
:
string
;
win32UserAppId
:
string
;
win32x64UserAppId
:
string
;
win32AppUserModelId
:
string
;
win32MutexName
:
string
;
darwinBundleIdentifier
:
string
;
urlProtocol
:
string
;
readonly
applicationName
:
string
;
readonly
win32AppId
:
string
;
readonly
win32x64AppId
:
string
;
readonly
win32UserAppId
:
string
;
readonly
win32x64UserAppId
:
string
;
readonly
win32AppUserModelId
:
string
;
readonly
win32MutexName
:
string
;
readonly
darwinBundleIdentifier
:
string
;
readonly
urlProtocol
:
string
;
dataFolderName
:
string
;
downloadUrl
:
string
;
updateUrl
?:
string
;
quality
?:
string
;
target
?:
string
;
commit
?:
string
;
settingsSearchBuildId
?:
number
;
settingsSearchUrl
?:
string
;
experimentsUrl
?:
string
;
date
:
string
;
extensionsGallery
?:
{
serviceUrl
:
string
;
itemUrl
:
string
;
controlUrl
:
string
;
recommendationsUrl
:
string
;
readonly
downloadUrl
:
string
;
readonly
updateUrl
?:
string
;
readonly
quality
?:
string
;
readonly
target
?:
string
;
readonly
commit
?:
string
;
readonly
settingsSearchBuildId
?:
number
;
readonly
settingsSearchUrl
?:
string
;
readonly
experimentsUrl
?:
string
;
readonly
date
:
string
;
readonly
extensionsGallery
?:
{
readonly
serviceUrl
:
string
;
readonly
itemUrl
:
string
;
readonly
controlUrl
:
string
;
re
adonly
re
commendationsUrl
:
string
;
};
extensionTips
:
{
[
id
:
string
]:
string
;
};
extensionImportantTips
:
{
[
id
:
string
]:
{
name
:
string
;
pattern
:
string
;
};
};
exeBasedExtensionTips
:
{
[
id
:
string
]:
{
friendlyName
:
string
,
windowsPath
?:
string
,
recommendations
:
string
[]
};
};
extensionKeywords
:
{
[
extension
:
string
]:
string
[];
};
extensionAllowedBadgeProviders
:
string
[];
extensionAllowedProposedApi
:
string
[];
keymapExtensionTips
:
string
[];
crashReporter
:
{
companyName
:
string
;
productName
:
string
;
readonly
exeBasedExtensionTips
:
{
[
id
:
string
]:
{
friendlyName
:
string
,
windowsPath
?:
string
,
recommendations
:
readonly
string
[]
};
};
readonly
extensionKeywords
:
{
[
extension
:
string
]:
readonly
string
[];
};
readonly
extensionAllowedBadgeProviders
:
readonly
string
[];
readonly
extensionAllowedProposedApi
:
readonly
string
[];
readonly
keymapExtensionTips
:
readonly
string
[];
readonly
crashReporter
:
{
readonly
companyName
:
string
;
readonly
productName
:
string
;
};
welcomePage
:
string
;
enableTelemetry
:
boolean
;
aiConfig
:
{
asimovKey
:
string
;
readonly
welcomePage
:
string
;
readonly
enableTelemetry
:
boolean
;
readonly
aiConfig
:
{
readonly
asimovKey
:
string
;
};
sendASmile
:
{
reportIssueUrl
:
string
,
requestFeatureUrl
:
string
readonly
sendASmile
:
{
re
adonly
re
portIssueUrl
:
string
,
re
adonly
re
questFeatureUrl
:
string
};
documentationUrl
:
string
;
releaseNotesUrl
:
string
;
keyboardShortcutsUrlMac
:
string
;
keyboardShortcutsUrlLinux
:
string
;
keyboardShortcutsUrlWin
:
string
;
introductoryVideosUrl
:
string
;
tipsAndTricksUrl
:
string
;
newsletterSignupUrl
:
string
;
twitterUrl
:
string
;
requestFeatureUrl
:
string
;
reportIssueUrl
:
string
;
licenseUrl
:
string
;
privacyStatementUrl
:
string
;
telemetryOptOutUrl
:
string
;
npsSurveyUrl
:
string
;
surveys
:
ISurveyData
[];
checksums
:
{
[
path
:
string
]:
string
;
};
checksumFailMoreInfoUrl
:
string
;
hockeyApp
:
{
'
win32-ia32
'
:
string
;
'
win32-x64
'
:
string
;
'
linux-x64
'
:
string
;
'
darwin
'
:
string
;
readonly
documentationUrl
:
string
;
re
adonly
re
leaseNotesUrl
:
string
;
readonly
keyboardShortcutsUrlMac
:
string
;
readonly
keyboardShortcutsUrlLinux
:
string
;
readonly
keyboardShortcutsUrlWin
:
string
;
readonly
introductoryVideosUrl
:
string
;
readonly
tipsAndTricksUrl
:
string
;
readonly
newsletterSignupUrl
:
string
;
readonly
twitterUrl
:
string
;
re
adonly
re
questFeatureUrl
:
string
;
re
adonly
re
portIssueUrl
:
string
;
readonly
licenseUrl
:
string
;
readonly
privacyStatementUrl
:
string
;
readonly
telemetryOptOutUrl
:
string
;
readonly
npsSurveyUrl
:
string
;
readonly
surveys
:
readonly
ISurveyData
[];
readonly
checksums
:
{
[
path
:
string
]:
string
;
};
readonly
checksumFailMoreInfoUrl
:
string
;
readonly
hockeyApp
:
{
readonly
'
win32-ia32
'
:
string
;
readonly
'
win32-x64
'
:
string
;
readonly
'
linux-x64
'
:
string
;
readonly
'
darwin
'
:
string
;
};
logUploaderUrl
:
string
;
portable
?:
string
;
uiExtensions
?:
string
[];
readonly
logUploaderUrl
:
string
;
readonly
portable
?:
string
;
readonly
uiExtensions
?:
readonly
string
[];
}
export
interface
ISurveyData
{
...
...
src/vs/platform/product/node/productService.ts
浏览文件 @
0964952b
...
...
@@ -20,9 +20,9 @@ export class ProductService implements IProductService {
get
urlProtocol
():
string
{
return
product
.
urlProtocol
;
}
get
extensionAllowedProposedApi
():
string
[]
{
return
product
.
extensionAllowedProposedApi
;
}
get
extensionAllowedProposedApi
():
readonly
string
[]
{
return
product
.
extensionAllowedProposedApi
;
}
get
uiExtensions
():
string
[]
|
undefined
{
return
product
.
uiExtensions
;
}
get
uiExtensions
():
readonly
string
[]
|
undefined
{
return
product
.
uiExtensions
;
}
get
enableTelemetry
():
boolean
{
return
product
.
enableTelemetry
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录