Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
93795d96
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,体验更适合开发者的 AI 搜索 >>
提交
93795d96
编写于
1月 11, 2021
作者:
M
meganrogge
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
:broom:
上级
a4b183f5
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
14 deletion
+10
-14
src/vs/platform/notification/common/notificationRegistry.ts
src/vs/platform/notification/common/notificationRegistry.ts
+0
-4
src/vs/platform/notification/test/common/testNotificationService.ts
...tform/notification/test/common/testNotificationService.ts
+1
-4
src/vs/workbench/browser/parts/notifications/notificationsActions.ts
...bench/browser/parts/notifications/notificationsActions.ts
+3
-3
src/vs/workbench/browser/parts/notifications/notificationsCommands.ts
...ench/browser/parts/notifications/notificationsCommands.ts
+2
-2
src/vs/workbench/contrib/userDataSync/browser/userDataSyncTrigger.ts
...bench/contrib/userDataSync/browser/userDataSyncTrigger.ts
+4
-1
未找到文件。
src/vs/platform/notification/common/notificationRegistry.ts
浏览文件 @
93795d96
...
...
@@ -10,10 +10,6 @@ export class NotificationRegistry {
static
_notifications
:
INotificationItem
[]
=
[];
constructor
()
{
}
getDefaultNotifications
():
INotificationItem
[]
{
return
Registry
.
knows
(
'
notifications
'
)
?
Registry
.
as
(
'
notifications
'
)
:
[];
}
static
registerNotification
(
notification
:
INotificationItem
):
void
{
this
.
_notifications
.
push
(
notification
);
}
...
...
src/vs/platform/notification/test/common/testNotificationService.ts
浏览文件 @
93795d96
...
...
@@ -3,13 +3,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
INotificationService
,
INotificationHandle
,
NoOpNotification
,
Severity
,
INotification
,
IPromptChoice
,
IPromptOptions
,
IStatusMessageOptions
,
NotificationsFilter
,
INotificationItem
}
from
'
vs/platform/notification/common/notification
'
;
import
{
INotificationService
,
INotificationHandle
,
NoOpNotification
,
Severity
,
INotification
,
IPromptChoice
,
IPromptOptions
,
IStatusMessageOptions
,
NotificationsFilter
}
from
'
vs/platform/notification/common/notification
'
;
import
{
Disposable
,
IDisposable
}
from
'
vs/base/common/lifecycle
'
;
export
class
TestNotificationService
implements
INotificationService
{
getNotifications
():
INotificationItem
[]
{
return
[];
}
declare
readonly
_serviceBrand
:
undefined
;
...
...
src/vs/workbench/browser/parts/notifications/notificationsActions.ts
浏览文件 @
93795d96
...
...
@@ -9,7 +9,7 @@ import { localize } from 'vs/nls';
import
{
Action
,
IAction
,
ActionRunner
,
WorkbenchActionExecutedEvent
,
WorkbenchActionExecutedClassification
}
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
,
MANAGE_NOTIFICATIONS
_CENTER
}
from
'
vs/workbench/browser/parts/notifications/notificationsCommands
'
;
import
{
CLEAR_NOTIFICATION
,
EXPAND_NOTIFICATION
,
COLLAPSE_NOTIFICATION
,
CLEAR_ALL_NOTIFICATIONS
,
HIDE_NOTIFICATIONS_CENTER
,
MANAGE_NOTIFICATIONS
}
from
'
vs/workbench/browser/parts/notifications/notificationsCommands
'
;
import
{
ICommandService
}
from
'
vs/platform/commands/common/commands
'
;
import
{
IClipboardService
}
from
'
vs/platform/clipboard/common/clipboardService
'
;
import
{
Codicon
}
from
'
vs/base/common/codicons
'
;
...
...
@@ -79,7 +79,7 @@ export class HideNotificationsCenterAction extends Action {
export
class
ManageNotificationsAction
extends
Action
{
static
readonly
ID
=
MANAGE_NOTIFICATIONS
_CENTER
;
static
readonly
ID
=
MANAGE_NOTIFICATIONS
;
static
readonly
LABEL
=
localize
(
'
manageNotifications
'
,
"
Manage Notifications
"
);
constructor
(
...
...
@@ -91,7 +91,7 @@ export class ManageNotificationsAction extends Action {
}
async
run
():
Promise
<
void
>
{
this
.
commandService
.
executeCommand
(
MANAGE_NOTIFICATIONS
_CENTER
);
this
.
commandService
.
executeCommand
(
MANAGE_NOTIFICATIONS
);
}
}
...
...
src/vs/workbench/browser/parts/notifications/notificationsCommands.ts
浏览文件 @
93795d96
...
...
@@ -18,7 +18,7 @@ import { IPreferencesService } from 'vs/workbench/services/preferences/common/pr
// Center
export
const
SHOW_NOTIFICATIONS_CENTER
=
'
notifications.showList
'
;
export
const
HIDE_NOTIFICATIONS_CENTER
=
'
notifications.hideList
'
;
export
const
MANAGE_NOTIFICATIONS
_CENTER
=
'
notifications.manage
'
;
export
const
MANAGE_NOTIFICATIONS
=
'
notifications.manage
'
;
const
TOGGLE_NOTIFICATIONS_CENTER
=
'
notifications.toggleList
'
;
// Toasts
...
...
@@ -94,7 +94,7 @@ export function registerNotificationCommands(center: INotificationsCenterControl
// Manage Notifications
KeybindingsRegistry
.
registerCommandAndKeybindingRule
({
id
:
MANAGE_NOTIFICATIONS
_CENTER
,
id
:
MANAGE_NOTIFICATIONS
,
weight
:
KeybindingWeight
.
WorkbenchContrib
+
50
,
when
:
NotificationsCenterVisibleContext
,
primary
:
KeyCode
.
Enter
,
...
...
src/vs/workbench/contrib/userDataSync/browser/userDataSyncTrigger.ts
浏览文件 @
93795d96
...
...
@@ -58,7 +58,7 @@ export class UserDataSyncTrigger extends Disposable implements IWorkbenchContrib
return
'
keybindingsEditor
'
;
}
if
(
editorInput
instanceof
NotificationsEditorInput
)
{
return
'
keybinding
sEditor
'
;
return
'
notification
sEditor
'
;
}
const
resource
=
editorInput
.
resource
;
if
(
isEqual
(
resource
,
this
.
environmentService
.
settingsResource
))
{
...
...
@@ -67,6 +67,9 @@ export class UserDataSyncTrigger extends Disposable implements IWorkbenchContrib
if
(
isEqual
(
resource
,
this
.
environmentService
.
keybindingsResource
))
{
return
'
keybindingsEditor
'
;
}
if
(
isEqual
(
resource
,
this
.
environmentService
.
notificationsResource
))
{
return
'
notificationsEditor
'
;
}
return
undefined
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录