Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
960f567d
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,发现更多精彩内容 >>
未验证
提交
960f567d
编写于
7月 03, 2019
作者:
L
Logan Ramos
提交者:
GitHub
7月 03, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removes abbreviations in strongly typed telemetry events (#76478)
* Remove abbreviations * Fixed spelling mistake
上级
f7c692ab
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
48 addition
and
48 deletion
+48
-48
src/vs/base/common/actions.ts
src/vs/base/common/actions.ts
+2
-2
src/vs/platform/contextview/browser/contextMenuHandler.ts
src/vs/platform/contextview/browser/contextMenuHandler.ts
+2
-2
src/vs/platform/extensionManagement/node/extensionGalleryService.ts
...tform/extensionManagement/node/extensionGalleryService.ts
+7
-7
src/vs/platform/keybinding/common/abstractKeybindingService.ts
...s/platform/keybinding/common/abstractKeybindingService.ts
+2
-2
src/vs/platform/menubar/electron-main/menubar.ts
src/vs/platform/menubar/electron-main/menubar.ts
+2
-2
src/vs/platform/telemetry/common/telemetryService.ts
src/vs/platform/telemetry/common/telemetryService.ts
+2
-2
src/vs/platform/telemetry/common/telemetryUtils.ts
src/vs/platform/telemetry/common/telemetryUtils.ts
+9
-9
src/vs/workbench/browser/parts/compositePart.ts
src/vs/workbench/browser/parts/compositePart.ts
+2
-2
src/vs/workbench/browser/parts/editor/titleControl.ts
src/vs/workbench/browser/parts/editor/titleControl.ts
+2
-2
src/vs/workbench/browser/parts/notifications/notificationsActions.ts
...bench/browser/parts/notifications/notificationsActions.ts
+2
-2
src/vs/workbench/browser/parts/statusbar/statusbarPart.ts
src/vs/workbench/browser/parts/statusbar/statusbarPart.ts
+2
-2
src/vs/workbench/contrib/debug/browser/debugToolBar.ts
src/vs/workbench/contrib/debug/browser/debugToolBar.ts
+2
-2
src/vs/workbench/contrib/feedback/browser/feedback.ts
src/vs/workbench/contrib/feedback/browser/feedback.ts
+2
-2
src/vs/workbench/contrib/files/browser/views/explorerView.ts
src/vs/workbench/contrib/files/browser/views/explorerView.ts
+2
-2
src/vs/workbench/contrib/files/browser/views/openEditorsView.ts
.../workbench/contrib/files/browser/views/openEditorsView.ts
+2
-2
src/vs/workbench/contrib/quickopen/browser/commandsHandler.ts
...vs/workbench/contrib/quickopen/browser/commandsHandler.ts
+2
-2
src/vs/workbench/contrib/welcome/page/browser/welcomePage.ts
src/vs/workbench/contrib/welcome/page/browser/welcomePage.ts
+2
-2
src/vs/workbench/services/contextmenu/electron-browser/contextmenuService.ts
...rvices/contextmenu/electron-browser/contextmenuService.ts
+2
-2
未找到文件。
src/vs/base/common/actions.ts
浏览文件 @
960f567d
...
...
@@ -12,12 +12,12 @@ export interface ITelemetryData {
[
key
:
string
]:
any
;
}
export
type
W
B
ActionExecutedClassification
=
{
export
type
W
orkbench
ActionExecutedClassification
=
{
id
:
{
classification
:
'
SystemMetaData
'
,
purpose
:
'
FeatureInsight
'
};
from
:
{
classification
:
'
SystemMetaData
'
,
purpose
:
'
FeatureInsight
'
};
};
export
type
W
B
ActionExecutedEvent
=
{
export
type
W
orkbench
ActionExecutedEvent
=
{
id
:
string
;
from
:
string
;
};
...
...
src/vs/platform/contextview/browser/contextMenuHandler.ts
浏览文件 @
960f567d
...
...
@@ -5,8 +5,8 @@
import
'
vs/css!./contextMenuHandler
'
;
import
{
ActionRunner
,
IRunEvent
,
WorkbenchActionExecutedEvent
,
WorkbenchActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
combinedDisposable
,
DisposableStore
}
from
'
vs/base/common/lifecycle
'
;
import
{
ActionRunner
,
IRunEvent
,
WBActionExecutedEvent
,
WBActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
Menu
}
from
'
vs/base/browser/ui/menu/menu
'
;
import
{
IContextViewService
}
from
'
vs/platform/contextview/browser/contextView
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
...
...
@@ -132,7 +132,7 @@ export class ContextMenuHandler {
private
onActionRun
(
e
:
IRunEvent
):
void
{
if
(
this
.
telemetryService
)
{
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
e
.
action
.
id
,
from
:
'
contextMenu
'
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
e
.
action
.
id
,
from
:
'
contextMenu
'
});
}
this
.
contextViewService
.
hideContextView
(
false
);
...
...
src/vs/platform/extensionManagement/node/extensionGalleryService.ts
浏览文件 @
960f567d
...
...
@@ -647,26 +647,26 @@ export class ExtensionGalleryService implements IExtensionGalleryService {
}
const
message
=
getErrorMessage
(
err
);
type
GalleryServiceR
E
Classification
=
{
type
GalleryServiceR
equestError
Classification
=
{
url
:
{
classification
:
'
SystemMetaData
'
,
purpose
:
'
FeatureInsight
'
};
cdn
:
{
classification
:
'
SystemMetaData
'
,
purpose
:
'
FeatureInsight
'
,
isMeasurement
:
true
};
message
:
{
classification
:
'
CallstackOrException
'
,
purpose
:
'
FeatureInsight
'
};
};
type
GalleryServiceR
EService
Event
=
{
type
GalleryServiceR
equestError
Event
=
{
url
:
string
;
cdn
:
boolean
;
message
:
string
;
};
this
.
telemetryService
.
publicLog2
<
GalleryServiceR
EServiceEvent
,
GalleryServiceRE
Classification
>
(
'
galleryService:requestError
'
,
{
url
,
cdn
:
true
,
message
});
type
GalleryServiceCDNF
B
Classification
=
{
this
.
telemetryService
.
publicLog2
<
GalleryServiceR
equestErrorEvent
,
GalleryServiceRequestError
Classification
>
(
'
galleryService:requestError
'
,
{
url
,
cdn
:
true
,
message
});
type
GalleryServiceCDNF
allback
Classification
=
{
url
:
{
classification
:
'
SystemMetaData
'
,
purpose
:
'
FeatureInsight
'
};
message
:
{
classification
:
'
SystemMetaData
'
,
purpose
:
'
FeatureInsight
'
};
};
type
GalleryServiceCDNF
B
Event
=
{
type
GalleryServiceCDNF
allback
Event
=
{
url
:
string
;
message
:
string
;
};
this
.
telemetryService
.
publicLog2
<
GalleryServiceCDNF
BEvent
,
GalleryServiceCDNFB
Classification
>
(
'
galleryService:cdnFallback
'
,
{
url
,
message
});
this
.
telemetryService
.
publicLog2
<
GalleryServiceCDNF
allbackEvent
,
GalleryServiceCDNFallback
Classification
>
(
'
galleryService:cdnFallback
'
,
{
url
,
message
});
const
fallbackOptions
=
assign
({},
options
,
{
url
:
fallbackUrl
});
return
this
.
requestService
.
request
(
fallbackOptions
,
token
).
then
(
undefined
,
err
=>
{
...
...
@@ -675,7 +675,7 @@ export class ExtensionGalleryService implements IExtensionGalleryService {
}
const
message
=
getErrorMessage
(
err
);
this
.
telemetryService
.
publicLog2
<
GalleryServiceR
EServiceEvent
,
GalleryServiceRE
Classification
>
(
'
galleryService:requestError
'
,
{
url
:
fallbackUrl
,
cdn
:
false
,
message
});
this
.
telemetryService
.
publicLog2
<
GalleryServiceR
equestErrorEvent
,
GalleryServiceRequestError
Classification
>
(
'
galleryService:requestError
'
,
{
url
:
fallbackUrl
,
cdn
:
false
,
message
});
return
Promise
.
reject
(
err
);
});
});
...
...
src/vs/platform/keybinding/common/abstractKeybindingService.ts
浏览文件 @
960f567d
...
...
@@ -16,7 +16,7 @@ import { IResolveResult, KeybindingResolver } from 'vs/platform/keybinding/commo
import
{
ResolvedKeybindingItem
}
from
'
vs/platform/keybinding/common/resolvedKeybindingItem
'
;
import
{
INotificationService
}
from
'
vs/platform/notification/common/notification
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
interface
CurrentChord
{
keypress
:
string
;
...
...
@@ -196,7 +196,7 @@ export abstract class AbstractKeybindingService extends Disposable implements IK
}
else
{
this
.
_commandService
.
executeCommand
(
resolveResult
.
commandId
,
resolveResult
.
commandArgs
).
then
(
undefined
,
err
=>
this
.
_notificationService
.
warn
(
err
));
}
this
.
_telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
resolveResult
.
commandId
,
from
:
'
keybinding
'
});
this
.
_telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
resolveResult
.
commandId
,
from
:
'
keybinding
'
});
}
return
shouldPreventDefault
;
...
...
src/vs/platform/menubar/electron-main/menubar.ts
浏览文件 @
960f567d
...
...
@@ -21,7 +21,7 @@ import { IMenubarData, IMenubarKeybinding, MenubarMenuItem, isMenubarMenuItemSep
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
IStateService
}
from
'
vs/platform/state/common/state
'
;
import
{
ILifecycleService
}
from
'
vs/platform/lifecycle/electron-main/lifecycleMain
'
;
import
{
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
const
telemetryFrom
=
'
menu
'
;
...
...
@@ -784,7 +784,7 @@ export class Menubar {
}
private
reportMenuActionTelemetry
(
id
:
string
):
void
{
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
,
from
:
telemetryFrom
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
,
from
:
telemetryFrom
});
}
private
mnemonicLabel
(
label
:
string
):
string
{
...
...
src/vs/platform/telemetry/common/telemetryService.ts
浏览文件 @
960f567d
...
...
@@ -57,13 +57,13 @@ export class TelemetryService implements ITelemetryService {
if
(
this
.
_configurationService
)
{
this
.
_updateUserOptIn
();
this
.
_configurationService
.
onDidChangeConfiguration
(
this
.
_updateUserOptIn
,
this
,
this
.
_disposables
);
type
OptInClass
=
{
type
OptInClass
ification
=
{
optIn
:
{
classification
:
'
SystemMetaData
'
,
purpose
:
'
BusinessInsight
'
,
isMeasurement
:
true
};
};
type
OptInEvent
=
{
optIn
:
boolean
;
};
this
.
publicLog2
<
OptInEvent
,
OptInClass
>
(
'
optInStatus
'
,
{
optIn
:
this
.
_userOptIn
});
this
.
publicLog2
<
OptInEvent
,
OptInClass
ification
>
(
'
optInStatus
'
,
{
optIn
:
this
.
_userOptIn
});
this
.
_commonProperties
.
then
(
values
=>
{
const
isHashedId
=
/^
[
a-f0-9
]
+$/i
.
test
(
values
[
'
common.machineId
'
]);
...
...
src/vs/platform/telemetry/common/telemetryUtils.ts
浏览文件 @
960f567d
...
...
@@ -195,27 +195,27 @@ const configurationValueWhitelist = [
export
function
configurationTelemetry
(
telemetryService
:
ITelemetryService
,
configurationService
:
IConfigurationService
):
IDisposable
{
return
configurationService
.
onDidChangeConfiguration
(
event
=>
{
if
(
event
.
source
!==
ConfigurationTarget
.
DEFAULT
)
{
type
UpdateConfigClassification
=
{
type
UpdateConfig
uration
Classification
=
{
configurationSource
:
{
classification
:
'
SystemMetaData
'
,
purpose
:
'
FeatureInsight
'
};
configurationKeys
:
{
classification
:
'
SystemMetaData
'
,
purpose
:
'
FeatureInsight
'
};
};
type
UpdateConfigEvent
=
{
type
UpdateConfig
uration
Event
=
{
configurationSource
:
string
;
configurationKeys
:
string
[];
};
telemetryService
.
publicLog2
<
UpdateConfig
Event
,
UpdateConfig
Classification
>
(
'
updateConfiguration
'
,
{
telemetryService
.
publicLog2
<
UpdateConfig
urationEvent
,
UpdateConfiguration
Classification
>
(
'
updateConfiguration
'
,
{
configurationSource
:
ConfigurationTargetToString
(
event
.
source
),
configurationKeys
:
flattenKeys
(
event
.
sourceConfig
)
});
type
UpdateConfig
Val
Classification
=
{
type
UpdateConfig
urationValues
Classification
=
{
configurationSource
:
{
classification
:
'
SystemMetaData
'
,
purpose
:
'
FeatureInsight
'
};
configurationValues
:
{
classification
:
'
CustomerContent
'
,
purpose
:
'
FeatureInsight
'
};
};
type
UpdateConfig
Val
Event
=
{
type
UpdateConfig
urationValues
Event
=
{
configurationSource
:
string
;
configurationValues
:
{
[
key
:
string
]:
any
}[];
};
telemetryService
.
publicLog2
<
UpdateConfig
ValEvent
,
UpdateConfigVal
Classification
>
(
'
updateConfigurationValues
'
,
{
telemetryService
.
publicLog2
<
UpdateConfig
urationValuesEvent
,
UpdateConfigurationValues
Classification
>
(
'
updateConfigurationValues
'
,
{
configurationSource
:
ConfigurationTargetToString
(
event
.
source
),
configurationValues
:
flattenValues
(
event
.
sourceConfig
,
configurationValueWhitelist
)
});
...
...
@@ -226,13 +226,13 @@ export function configurationTelemetry(telemetryService: ITelemetryService, conf
export
function
keybindingsTelemetry
(
telemetryService
:
ITelemetryService
,
keybindingService
:
IKeybindingService
):
IDisposable
{
return
keybindingService
.
onDidUpdateKeybindings
(
event
=>
{
if
(
event
.
source
===
KeybindingSource
.
User
&&
event
.
keybindings
)
{
type
UpdateK
B
Classification
=
{
type
UpdateK
eybindings
Classification
=
{
bindings
:
{
classification
:
'
CustomerContent
'
,
purpose
:
'
FeatureInsight
'
};
};
type
UpdateK
B
Events
=
{
type
UpdateK
eybindings
Events
=
{
bindings
:
{
key
:
string
,
command
:
string
,
when
:
string
|
undefined
,
args
:
boolean
|
undefined
}[];
};
telemetryService
.
publicLog2
<
UpdateK
BEvents
,
UpdateKB
Classification
>
(
'
updateKeybindings
'
,
{
telemetryService
.
publicLog2
<
UpdateK
eybindingsEvents
,
UpdateKeybindings
Classification
>
(
'
updateKeybindings
'
,
{
bindings
:
event
.
keybindings
.
map
(
binding
=>
({
key
:
binding
.
key
,
command
:
binding
.
command
,
...
...
src/vs/workbench/browser/parts/compositePart.ts
浏览文件 @
960f567d
...
...
@@ -14,7 +14,7 @@ import { ToolBar } from 'vs/base/browser/ui/toolbar/toolbar';
import
{
IActionViewItem
,
ActionsOrientation
}
from
'
vs/base/browser/ui/actionbar/actionbar
'
;
import
{
ProgressBar
}
from
'
vs/base/browser/ui/progressbar/progressbar
'
;
import
{
prepareActions
}
from
'
vs/workbench/browser/actions
'
;
import
{
IAction
,
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
IAction
,
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
Part
,
IPartOptions
}
from
'
vs/workbench/browser/part
'
;
import
{
Composite
,
CompositeRegistry
}
from
'
vs/workbench/browser/composite
'
;
import
{
IComposite
}
from
'
vs/workbench/common/composite
'
;
...
...
@@ -261,7 +261,7 @@ export abstract class CompositePart<T extends Composite> extends Part {
// Log in telemetry
if
(
this
.
telemetryService
)
{
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
e
.
action
.
id
,
from
:
this
.
nameForTelemetry
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
e
.
action
.
id
,
from
:
this
.
nameForTelemetry
});
}
});
...
...
src/vs/workbench/browser/parts/editor/titleControl.ts
浏览文件 @
960f567d
...
...
@@ -8,7 +8,7 @@ import { addDisposableListener, Dimension, EventType } from 'vs/base/browser/dom
import
{
StandardMouseEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
{
ActionsOrientation
,
IActionViewItem
}
from
'
vs/base/browser/ui/actionbar/actionbar
'
;
import
{
ToolBar
}
from
'
vs/base/browser/ui/toolbar/toolbar
'
;
import
{
IAction
,
IRunEvent
,
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
IAction
,
IRunEvent
,
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
*
as
arrays
from
'
vs/base/common/arrays
'
;
import
{
ResolvedKeybinding
}
from
'
vs/base/common/keyCodes
'
;
import
{
dispose
,
DisposableStore
}
from
'
vs/base/common/lifecycle
'
;
...
...
@@ -152,7 +152,7 @@ export abstract class TitleControl extends Themable {
// Log in telemetry
if
(
this
.
telemetryService
)
{
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
e
.
action
.
id
,
from
:
'
editorPart
'
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
e
.
action
.
id
,
from
:
'
editorPart
'
});
}
}));
}
...
...
src/vs/workbench/browser/parts/notifications/notificationsActions.ts
浏览文件 @
960f567d
...
...
@@ -6,7 +6,7 @@
import
'
vs/css!./media/notificationsActions
'
;
import
{
INotificationViewItem
}
from
'
vs/workbench/common/notifications
'
;
import
{
localize
}
from
'
vs/nls
'
;
import
{
Action
,
IAction
,
ActionRunner
,
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
Action
,
IAction
,
ActionRunner
,
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
INotificationService
}
from
'
vs/platform/notification/common/notification
'
;
import
{
CLEAR_NOTIFICATION
,
EXPAND_NOTIFICATION
,
COLLAPSE_NOTIFICATION
,
CLEAR_ALL_NOTIFICATIONS
,
HIDE_NOTIFICATIONS_CENTER
}
from
'
vs/workbench/browser/parts/notifications/notificationsCommands
'
;
...
...
@@ -161,7 +161,7 @@ export class NotificationActionRunner extends ActionRunner {
}
protected
async
runAction
(
action
:
IAction
,
context
:
INotificationViewItem
):
Promise
<
any
>
{
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
action
.
id
,
from
:
'
message
'
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
action
.
id
,
from
:
'
message
'
});
// Run and make sure to notify on any error again
try
{
...
...
src/vs/workbench/browser/parts/statusbar/statusbarPart.ts
浏览文件 @
960f567d
...
...
@@ -15,7 +15,7 @@ import { IInstantiationService, ServiceIdentifier } from 'vs/platform/instantiat
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntry
,
IStatusbarEntryAccessor
}
from
'
vs/platform/statusbar/common/statusbar
'
;
import
{
IContextMenuService
}
from
'
vs/platform/contextview/browser/contextView
'
;
import
{
Action
,
IAction
,
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
Action
,
IAction
,
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
IThemeService
,
registerThemingParticipant
,
ITheme
,
ICssStyleCollector
,
ThemeColor
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
STATUS_BAR_BACKGROUND
,
STATUS_BAR_FOREGROUND
,
STATUS_BAR_NO_FOLDER_BACKGROUND
,
STATUS_BAR_ITEM_HOVER_BACKGROUND
,
STATUS_BAR_ITEM_ACTIVE_BACKGROUND
,
STATUS_BAR_PROMINENT_ITEM_FOREGROUND
,
STATUS_BAR_PROMINENT_ITEM_BACKGROUND
,
STATUS_BAR_PROMINENT_ITEM_HOVER_BACKGROUND
,
STATUS_BAR_BORDER
,
STATUS_BAR_NO_FOLDER_FOREGROUND
,
STATUS_BAR_NO_FOLDER_BORDER
}
from
'
vs/workbench/common/theme
'
;
import
{
IWorkspaceContextService
,
WorkbenchState
}
from
'
vs/platform/workspace/common/workspace
'
;
...
...
@@ -725,7 +725,7 @@ class StatusbarEntryItem extends Disposable {
activeTextEditorWidget
.
focus
();
}
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
,
from
:
'
status bar
'
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
,
from
:
'
status bar
'
});
try
{
await
this
.
commandService
.
executeCommand
(
id
,
...
args
);
}
catch
(
error
)
{
...
...
src/vs/workbench/contrib/debug/browser/debugToolBar.ts
浏览文件 @
960f567d
...
...
@@ -9,7 +9,7 @@ import * as browser from 'vs/base/browser/browser';
import
*
as
dom
from
'
vs/base/browser/dom
'
;
import
*
as
arrays
from
'
vs/base/common/arrays
'
;
import
{
StandardMouseEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
{
IAction
,
IRunEvent
,
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
IAction
,
IRunEvent
,
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
ActionBar
,
ActionsOrientation
,
Separator
}
from
'
vs/base/browser/ui/actionbar/actionbar
'
;
import
{
IWorkbenchLayoutService
}
from
'
vs/workbench/services/layout/browser/layoutService
'
;
import
{
IWorkbenchContribution
}
from
'
vs/workbench/common/contributions
'
;
...
...
@@ -141,7 +141,7 @@ export class DebugToolBar extends Themable implements IWorkbenchContribution {
// log in telemetry
if
(
this
.
telemetryService
)
{
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
e
.
action
.
id
,
from
:
'
debugActionsWidget
'
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
e
.
action
.
id
,
from
:
'
debugActionsWidget
'
});
}
}));
this
.
_register
(
dom
.
addDisposableListener
(
window
,
dom
.
EventType
.
RESIZE
,
()
=>
this
.
setCoordinates
()));
...
...
src/vs/workbench/contrib/feedback/browser/feedback.ts
浏览文件 @
960f567d
...
...
@@ -17,7 +17,7 @@ import { editorWidgetBackground, editorWidgetForeground, widgetShadow, inputBord
import
{
IAnchor
}
from
'
vs/base/browser/ui/contextview/contextview
'
;
import
{
Button
}
from
'
vs/base/browser/ui/button/button
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
IStatusbarService
}
from
'
vs/platform/statusbar/common/statusbar
'
;
import
{
IProductService
}
from
'
vs/platform/product/common/product
'
;
...
...
@@ -213,7 +213,7 @@ export class FeedbackDropdown extends Dropdown {
const
actionId
=
'
workbench.action.openIssueReporter
'
;
this
.
commandService
.
executeCommand
(
actionId
);
this
.
hide
();
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
actionId
,
from
:
'
feedback
'
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
actionId
,
from
:
'
feedback
'
});
}));
// Contact: Request a Feature
...
...
src/vs/workbench/contrib/files/browser/views/explorerView.ts
浏览文件 @
960f567d
...
...
@@ -6,7 +6,7 @@
import
*
as
nls
from
'
vs/nls
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
*
as
perf
from
'
vs/base/common/performance
'
;
import
{
Action
,
IAction
,
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
Action
,
IAction
,
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
memoize
}
from
'
vs/base/common/decorators
'
;
import
{
IFilesConfiguration
,
ExplorerFolderContext
,
FilesExplorerFocusedContext
,
ExplorerFocusedContext
,
ExplorerRootContext
,
ExplorerResourceReadonlyContext
,
IExplorerService
,
ExplorerResourceCut
,
ExplorerResourceMoveableToTrash
}
from
'
vs/workbench/contrib/files/common/files
'
;
import
{
NewFolderAction
,
NewFileAction
,
FileCopiedContext
,
RefreshExplorerView
,
CollapseExplorerView
}
from
'
vs/workbench/contrib/files/browser/fileActions
'
;
...
...
@@ -326,7 +326,7 @@ export class ExplorerView extends ViewletPanel {
// Do not react if clicking on directories
return
;
}
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
'
workbench.files.openFile
'
,
from
:
'
explorer
'
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
'
workbench.files.openFile
'
,
from
:
'
explorer
'
});
this
.
editorService
.
openEditor
({
resource
:
selection
[
0
].
resource
,
options
:
{
preserveFocus
:
e
.
editorOptions
.
preserveFocus
,
pinned
:
e
.
editorOptions
.
pinned
}
},
e
.
sideBySide
?
SIDE_GROUP
:
ACTIVE_GROUP
)
.
then
(
undefined
,
onUnexpectedError
);
}
...
...
src/vs/workbench/contrib/files/browser/views/openEditorsView.ts
浏览文件 @
960f567d
...
...
@@ -5,7 +5,7 @@
import
*
as
nls
from
'
vs/nls
'
;
import
{
RunOnceScheduler
}
from
'
vs/base/common/async
'
;
import
{
IAction
,
ActionRunner
,
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
IAction
,
ActionRunner
,
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
*
as
dom
from
'
vs/base/browser/dom
'
;
import
{
IContextMenuService
}
from
'
vs/platform/contextview/browser/contextView
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
...
...
@@ -345,7 +345,7 @@ export class OpenEditorsView extends ViewletPanel {
private
openEditor
(
element
:
OpenEditor
,
options
:
{
preserveFocus
:
boolean
;
pinned
:
boolean
;
sideBySide
:
boolean
;
}):
void
{
if
(
element
)
{
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
'
workbench.files.openFile
'
,
from
:
'
openEditors
'
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
'
workbench.files.openFile
'
,
from
:
'
openEditors
'
});
const
preserveActivateGroup
=
options
.
sideBySide
&&
options
.
preserveFocus
;
// needed for https://github.com/Microsoft/vscode/issues/42399
if
(
!
preserveActivateGroup
)
{
...
...
src/vs/workbench/contrib/quickopen/browser/commandsHandler.ts
浏览文件 @
960f567d
...
...
@@ -7,7 +7,7 @@ import * as nls from 'vs/nls';
import
*
as
arrays
from
'
vs/base/common/arrays
'
;
import
*
as
types
from
'
vs/base/common/types
'
;
import
{
Language
}
from
'
vs/base/common/platform
'
;
import
{
Action
,
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
Action
,
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
Mode
,
IEntryRunContext
,
IAutoFocus
,
IModel
,
IQuickNavigateConfiguration
}
from
'
vs/base/parts/quickopen/common/quickOpen
'
;
import
{
QuickOpenEntryGroup
,
IHighlight
,
QuickOpenModel
,
QuickOpenEntry
}
from
'
vs/base/parts/quickopen/browser/quickOpenModel
'
;
import
{
IMenuService
,
MenuId
,
MenuItemAction
}
from
'
vs/platform/actions/common/actions
'
;
...
...
@@ -297,7 +297,7 @@ abstract class BaseCommandEntry extends QuickOpenEntryGroup {
setTimeout
(
async
()
=>
{
if
(
action
&&
(
!
(
action
instanceof
Action
)
||
action
.
enabled
))
{
try
{
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
action
.
id
,
from
:
'
quick open
'
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
action
.
id
,
from
:
'
quick open
'
});
const
promise
=
action
.
run
();
if
(
promise
)
{
...
...
src/vs/workbench/contrib/welcome/page/browser/welcomePage.ts
浏览文件 @
960f567d
...
...
@@ -17,7 +17,7 @@ import { IWindowService, IURIToOpen } from 'vs/platform/windows/common/windows';
import
{
IWorkspaceContextService
,
WorkbenchState
}
from
'
vs/platform/workspace/common/workspace
'
;
import
{
IConfigurationService
,
ConfigurationTarget
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
localize
}
from
'
vs/nls
'
;
import
{
Action
,
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
Action
,
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
Schemas
}
from
'
vs/base/common/network
'
;
import
{
IBackupFileService
}
from
'
vs/workbench/services/backup/common/backup
'
;
...
...
@@ -360,7 +360,7 @@ class WelcomePage extends Disposable {
a
.
setAttribute
(
'
aria-label
'
,
localize
(
'
welcomePage.openFolderWithPath
'
,
"
Open folder {0} with path {1}
"
,
name
,
parentPath
));
a
.
href
=
'
javascript:void(0)
'
;
a
.
addEventListener
(
'
click
'
,
e
=>
{
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
'
openRecentFolder
'
,
from
:
telemetryFrom
});
...
...
src/vs/workbench/services/contextmenu/electron-browser/contextmenuService.ts
浏览文件 @
960f567d
...
...
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
IAction
,
IActionRunner
,
ActionRunner
,
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
IAction
,
IActionRunner
,
ActionRunner
,
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
Separator
}
from
'
vs/base/browser/ui/actionbar/actionbar
'
;
import
*
as
dom
from
'
vs/base/browser/dom
'
;
import
{
IContextMenuService
,
IContextViewService
}
from
'
vs/platform/contextview/browser/contextView
'
;
...
...
@@ -173,7 +173,7 @@ class NativeContextMenuService extends Disposable implements IContextMenuService
}
private
async
runAction
(
actionRunner
:
IActionRunner
,
actionToRun
:
IAction
,
delegate
:
IContextMenuDelegate
,
event
:
IContextMenuEvent
):
Promise
<
void
>
{
this
.
telemetryService
.
publicLog2
<
W
BActionExecutedEvent
,
WB
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
actionToRun
.
id
,
from
:
'
contextMenu
'
});
this
.
telemetryService
.
publicLog2
<
W
orkbenchActionExecutedEvent
,
Workbench
ActionExecutedClassification
>
(
'
workbenchActionExecuted
'
,
{
id
:
actionToRun
.
id
,
from
:
'
contextMenu
'
});
const
context
=
delegate
.
getActionsContext
?
delegate
.
getActionsContext
(
event
)
:
event
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录