Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
10cea073
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,发现更多精彩内容 >>
提交
10cea073
编写于
9月 03, 2017
作者:
K
kieferrm
提交者:
Kai Maetzel
9月 25, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
first batch events
上级
32681611
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
188 addition
and
0 deletion
+188
-0
src/vs/code/electron-main/menus.ts
src/vs/code/electron-main/menus.ts
+6
-0
src/vs/editor/contrib/gotoError/browser/gotoError.ts
src/vs/editor/contrib/gotoError/browser/gotoError.ts
+8
-0
src/vs/editor/contrib/referenceSearch/browser/referencesController.ts
...r/contrib/referenceSearch/browser/referencesController.ts
+12
-0
src/vs/editor/contrib/suggest/browser/completionModel.ts
src/vs/editor/contrib/suggest/browser/completionModel.ts
+8
-0
src/vs/editor/contrib/suggest/browser/suggestController.ts
src/vs/editor/contrib/suggest/browser/suggestController.ts
+8
-0
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
+30
-0
src/vs/platform/contextview/browser/contextMenuHandler.ts
src/vs/platform/contextview/browser/contextMenuHandler.ts
+6
-0
src/vs/platform/extensionManagement/common/extensionManagementUtil.ts
...orm/extensionManagement/common/extensionManagementUtil.ts
+15
-0
src/vs/platform/extensionManagement/node/extensionGalleryService.ts
...tform/extensionManagement/node/extensionGalleryService.ts
+41
-0
src/vs/platform/opener/browser/openerService.ts
src/vs/platform/opener/browser/openerService.ts
+5
-0
src/vs/platform/telemetry/browser/errorTelemetry.ts
src/vs/platform/telemetry/browser/errorTelemetry.ts
+10
-0
src/vs/platform/telemetry/common/telemetryUtils.ts
src/vs/platform/telemetry/common/telemetryUtils.ts
+22
-0
src/vs/platform/update/electron-main/updateService.ts
src/vs/platform/update/electron-main/updateService.ts
+17
-0
未找到文件。
src/vs/code/electron-main/menus.ts
浏览文件 @
10cea073
...
...
@@ -1239,6 +1239,12 @@ export class CodeMenu {
}
private
reportMenuActionTelemetry
(
id
:
string
):
void
{
/* __GDPR__
"workbencActionExecuted" : {
"id" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"from": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
telemetryService
.
publicLog
(
'
workbenchActionExecuted
'
,
{
id
,
from
:
telemetryFrom
});
}
...
...
src/vs/editor/contrib/gotoError/browser/gotoError.ts
浏览文件 @
10cea073
...
...
@@ -406,6 +406,14 @@ class MarkerNavigationAction extends EditorAction {
}
let
model
=
controller
.
getOrCreateModel
();
/* __GDPR__
"zoneWidgetShown" : {
"mode" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"${include}": [
"${EditorTelemetryData}"
]
}
*/
telemetryService
.
publicLog
(
'
zoneWidgetShown
'
,
{
mode
:
'
go to error
'
,
...
editor
.
getTelemetryData
()
});
if
(
model
)
{
if
(
this
.
_isNext
)
{
...
...
src/vs/editor/contrib/referenceSearch/browser/referencesController.ts
浏览文件 @
10cea073
...
...
@@ -161,6 +161,12 @@ export class ReferencesController implements editorCommon.IEditorContribution {
const
startTime
=
Date
.
now
();
this
.
_disposables
.
push
({
dispose
:
()
=>
{
/* __GDPR__
"zoneWidgetShown" : {
"mode" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"elapsedTime": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
_telemetryService
.
publicLog
(
'
zoneWidgetShown
'
,
{
mode
:
'
reference search
'
,
elapsedTime
:
Date
.
now
()
-
startTime
...
...
@@ -191,6 +197,12 @@ export class ReferencesController implements editorCommon.IEditorContribution {
const
onDone
=
stopwatch
(
fromPromise
(
promise
));
const
mode
=
this
.
_editor
.
getModel
().
getLanguageIdentifier
().
language
;
/* __GDPR__
"findReferences" : {
"durarion" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"mode": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
onDone
(
duration
=>
this
.
_telemetryService
.
publicLog
(
'
findReferences
'
,
{
duration
,
mode
...
...
src/vs/editor/contrib/suggest/browser/completionModel.ts
浏览文件 @
10cea073
...
...
@@ -16,6 +16,14 @@ export interface ICompletionItem extends ISuggestionItem {
idx
?:
number
;
}
/* __GDPR__FRAGMENT__
"ICompletionStats" : {
"suggestionCount" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"snippetCount": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"textCount": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
export
interface
ICompletionStats
{
suggestionCount
:
number
;
snippetCount
:
number
;
...
...
src/vs/editor/contrib/suggest/browser/suggestController.ts
浏览文件 @
10cea073
...
...
@@ -197,6 +197,14 @@ export class SuggestController implements IEditorContribution {
}
this
.
_alertCompletionItem
(
item
);
/* __GDPR__
"suggestSnippetInsert" : {
"suggestionType" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"${include}": [
"${EditorTelemetryData}"
]
}
*/
this
.
_telemetryService
.
publicLog
(
'
suggestSnippetInsert
'
,
{
...
this
.
_editor
.
getTelemetryData
(),
suggestionType
:
suggestion
.
type
});
}
...
...
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
浏览文件 @
10cea073
...
...
@@ -728,6 +728,15 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
}
else
{
const
{
stats
}
=
this
.
completionModel
;
stats
[
'
wasAutomaticallyTriggered
'
]
=
!!
isAuto
;
/* __GDPR__
"suggestWidget" : {
"wasAutomaticallyTriggered" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"${include}": [
"${ICompletionStats}",
"${EditorTelemetryData}"
]
}
*/
this
.
telemetryService
.
publicLog
(
'
suggestWidget
'
,
{
...
stats
,
...
this
.
editor
.
getTelemetryData
()
});
this
.
focusedItem
=
null
;
...
...
@@ -855,6 +864,13 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
this
.
details
.
element
.
style
.
borderColor
=
this
.
detailsFocusBorderColor
;
}
}
/* __GDPR__
"suggestWidget:toggleDetailsFocus" : {
"${include}": [
"${EditorTelemetryData}"
]
}
*/
this
.
telemetryService
.
publicLog
(
'
suggestWidget:toggleDetailsFocus
'
,
this
.
editor
.
getTelemetryData
());
}
...
...
@@ -869,6 +885,13 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
removeClass
(
this
.
element
,
'
docs-side
'
);
removeClass
(
this
.
element
,
'
docs-below
'
);
this
.
editor
.
layoutContentWidget
(
this
);
/* __GDPR__
"suggestWidget:collapseDetails" : {
"${include}": [
"${EditorTelemetryData}"
]
}
*/
this
.
telemetryService
.
publicLog
(
'
suggestWidget:collapseDetails
'
,
this
.
editor
.
getTelemetryData
());
}
else
{
if
(
this
.
state
!==
State
.
Open
&&
this
.
state
!==
State
.
Details
)
{
...
...
@@ -877,6 +900,13 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
this
.
updateExpandDocsSetting
(
true
);
this
.
showDetails
();
/* __GDPR__
"suggestWidget:expandDetails" : {
"${include}": [
"${EditorTelemetryData}"
]
}
*/
this
.
telemetryService
.
publicLog
(
'
suggestWidget:expandDetails
'
,
this
.
editor
.
getTelemetryData
());
}
...
...
src/vs/platform/contextview/browser/contextMenuHandler.ts
浏览文件 @
10cea073
...
...
@@ -44,6 +44,12 @@ export class ContextMenuHandler {
this
.
toDispose
.
push
(
this
.
actionRunner
.
addListener
(
EventType
.
BEFORE_RUN
,
(
e
:
any
)
=>
{
if
(
this
.
telemetryService
)
{
/* __GDPR__
"workbenchActionExecuted" : {
"id" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"from": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
telemetryService
.
publicLog
(
'
workbenchActionExecuted
'
,
{
id
:
e
.
action
.
id
,
from
:
'
contextMenu
'
});
}
...
...
src/vs/platform/extensionManagement/common/extensionManagementUtil.ts
浏览文件 @
10cea073
...
...
@@ -62,6 +62,21 @@ export function getLocalExtensionTelemetryData(extension: ILocalExtension): any
};
}
/* __GDPR__FRAGMENT__
"GalleryExtensionTelemetryData" : {
"id" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"name": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"galleryId": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"publisherId": { "endPoint": "none", "classification": "PublicNonPersonalData", "purpose": "FeatureInsight" },
"publisherName": { "endPoint": "none", "classification": "PublicNonPersonalData", "purpose": "FeatureInsight" },
"publisherDisplayName": { "endPoint": "none", "classification": "PublicPersonalData", "purpose": "FeatureInsight" },
"dependencies": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"${include}": [
"${GalleryExtensionTelemetryData2}"
]
}
*/
export
function
getGalleryExtensionTelemetryData
(
extension
:
IGalleryExtension
):
any
{
return
{
id
:
extension
.
id
,
...
...
src/vs/platform/extensionManagement/node/extensionGalleryService.ts
浏览文件 @
10cea073
...
...
@@ -263,6 +263,13 @@ function toExtension(galleryExtension: IRawGalleryExtension, extensionsGalleryUr
dependencies
:
getDependencies
(
version
),
engine
:
getEngine
(
version
)
},
/* __GDPR__FRAGMENT__
"GalleryExtensionTelemetryData2" : {
"index" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"searchText": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"querySource": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
telemetryData
:
{
index
:
((
query
.
pageNumber
-
1
)
*
query
.
pageSize
)
+
index
,
searchText
:
query
.
searchText
,
...
...
@@ -311,6 +318,12 @@ export class ExtensionGalleryService implements IExtensionGalleryService {
let
text
=
options
.
text
||
''
;
const
pageSize
=
getOrDefault
(
options
,
o
=>
o
.
pageSize
,
50
);
/* __GDPR__
"galleryService:query" : {
"type" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"text": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
telemetryService
.
publicLog
(
'
galleryService:query
'
,
{
type
,
text
});
let
query
=
new
Query
()
...
...
@@ -426,6 +439,14 @@ export class ExtensionGalleryService implements IExtensionGalleryService {
const
zipPath
=
path
.
join
(
tmpdir
(),
uuid
.
generateUuid
());
const
data
=
getGalleryExtensionTelemetryData
(
extension
);
const
startTime
=
new
Date
().
getTime
();
/* __GDPR__
"galleryService:downloadVSIX" : {
"duration": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "PerformanceAndHealth," },
"${include}": [
"${GalleryExtensionTelemetryData}"
]
}
*/
const
log
=
(
duration
:
number
)
=>
this
.
telemetryService
.
publicLog
(
'
galleryService:downloadVSIX
'
,
assign
(
data
,
{
duration
}));
return
this
.
getAsset
(
extension
.
assets
.
download
)
...
...
@@ -566,7 +587,20 @@ export class ExtensionGalleryService implements IExtensionGalleryService {
}
const
message
=
getErrorMessage
(
err
);
/* __GDPR__
"galleryService:requestError" : {
"url" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"cdn": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"message": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
telemetryService
.
publicLog
(
'
galleryService:requestError
'
,
{
url
,
cdn
:
true
,
message
});
/* __GDPR__
"galleryService:cdnFallback" : {
"url" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"message": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
telemetryService
.
publicLog
(
'
galleryService:cdnFallback
'
,
{
url
,
message
});
const
fallbackOptions
=
assign
({},
options
,
{
url
:
fallbackUrl
});
...
...
@@ -576,6 +610,13 @@ export class ExtensionGalleryService implements IExtensionGalleryService {
}
const
message
=
getErrorMessage
(
err
);
/* __GDPR__
"galleryService:requestError" : {
"url" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"cdn": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"message": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
telemetryService
.
publicLog
(
'
galleryService:requestError
'
,
{
url
:
fallbackUrl
,
cdn
:
false
,
message
});
return
TPromise
.
wrapError
<
IRequestContext
>
(
err
);
});
...
...
src/vs/platform/opener/browser/openerService.ts
浏览文件 @
10cea073
...
...
@@ -30,6 +30,11 @@ export class OpenerService implements IOpenerService {
open
(
resource
:
URI
,
options
?:
{
openToSide
?:
boolean
}):
TPromise
<
any
>
{
/* __GDPR__
"openerService" : {
"scheme" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
_telemetryService
.
publicLog
(
'
openerService
'
,
{
scheme
:
resource
.
scheme
});
const
{
scheme
,
path
,
query
,
fragment
}
=
resource
;
...
...
src/vs/platform/telemetry/browser/errorTelemetry.ts
浏览文件 @
10cea073
...
...
@@ -143,6 +143,16 @@ export default class ErrorTelemetry {
private
_flushBuffer
():
void
{
for
(
let
error
of
this
.
_buffer
)
{
/* __GDPR__
"UnhandledError" : {
"message" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"name": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"stack": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"id": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"line": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"column": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
}
*/
this
.
_telemetryService
.
publicLog
(
'
UnhandledError
'
,
error
);
}
this
.
_buffer
.
length
=
0
;
...
...
src/vs/platform/telemetry/common/telemetryUtils.ts
浏览文件 @
10cea073
...
...
@@ -180,10 +180,22 @@ const configurationValueWhitelist = [
export
function
configurationTelemetry
(
telemetryService
:
ITelemetryService
,
configurationService
:
IConfigurationService
):
IDisposable
{
return
configurationService
.
onDidUpdateConfiguration
(
event
=>
{
if
(
event
.
source
!==
ConfigurationSource
.
Default
)
{
/* __GDPR__
"updateConfiguration" : {
"configurationSource" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"configurationKeys": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
telemetryService
.
publicLog
(
'
updateConfiguration
'
,
{
configurationSource
:
ConfigurationSource
[
event
.
source
],
configurationKeys
:
flattenKeys
(
event
.
sourceConfig
)
});
/* __GDPR__
"updateConfigurationValues" : {
"configurationSource" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"configurationValues": { "endPoint": "none", "classification": "CustomerContent", "purpose": "FeatureInsight" }
}
*/
telemetryService
.
publicLog
(
'
updateConfigurationValues
'
,
{
configurationSource
:
ConfigurationSource
[
event
.
source
],
configurationValues
:
flattenValues
(
event
.
sourceConfig
,
configurationValueWhitelist
)
...
...
@@ -194,6 +206,11 @@ export function configurationTelemetry(telemetryService: ITelemetryService, conf
export
function
lifecycleTelemetry
(
telemetryService
:
ITelemetryService
,
lifecycleService
:
ILifecycleService
):
IDisposable
{
return
lifecycleService
.
onShutdown
(
event
=>
{
/* __GDPR__
"shutdown" : {
"reason" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
telemetryService
.
publicLog
(
'
shutdown
'
,
{
reason
:
ShutdownReason
[
event
]
});
});
}
...
...
@@ -201,6 +218,11 @@ export function lifecycleTelemetry(telemetryService: ITelemetryService, lifecycl
export
function
keybindingsTelemetry
(
telemetryService
:
ITelemetryService
,
keybindingService
:
IKeybindingService
):
IDisposable
{
return
keybindingService
.
onDidUpdateKeybindings
(
event
=>
{
if
(
event
.
source
===
KeybindingSource
.
User
&&
event
.
keybindings
)
{
/* __GDPR__
"updateKeybindings" : {
"bindings": { "endPoint": "none", "classification": "CustomerContent", "purpose": "FeatureInsight" }
}
*/
telemetryService
.
publicLog
(
'
updateKeybindings
'
,
{
bindings
:
event
.
keybindings
.
map
(
binding
=>
({
key
:
binding
.
key
,
...
...
src/vs/platform/update/electron-main/updateService.ts
浏览文件 @
10cea073
...
...
@@ -164,6 +164,11 @@ export class UpdateService implements IUpdateService {
if
(
!
update
)
{
this
.
_onUpdateNotAvailable
.
fire
(
explicit
);
this
.
state
=
State
.
Idle
;
/* __GDPR__
"update:notAvailable" : {
"explicit" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
telemetryService
.
publicLog
(
'
update:notAvailable
'
,
{
explicit
});
}
else
if
(
update
.
url
)
{
...
...
@@ -177,6 +182,13 @@ export class UpdateService implements IUpdateService {
this
.
_availableUpdate
=
data
;
this
.
_onUpdateAvailable
.
fire
({
url
:
update
.
url
,
version
:
update
.
version
});
this
.
state
=
State
.
UpdateAvailable
;
/* __GDPR__
"update:available" : {
"explicit" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"version": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"currentVersion": { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
telemetryService
.
publicLog
(
'
update:available
'
,
{
explicit
,
version
:
update
.
version
,
currentVersion
:
product
.
commit
});
}
else
{
...
...
@@ -189,6 +201,11 @@ export class UpdateService implements IUpdateService {
this
.
_availableUpdate
=
data
;
this
.
_onUpdateReady
.
fire
(
data
);
this
.
state
=
State
.
UpdateDownloaded
;
/* __GDPR__
"update:downloaded" : {
"version" : { "endPoint": "none", "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
this
.
telemetryService
.
publicLog
(
'
update:downloaded
'
,
{
version
:
update
.
version
});
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录