Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
aa61be47
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 搜索 >>
提交
aa61be47
编写于
1月 21, 2020
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
💄
code
上级
a94b8a73
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
24 addition
and
26 deletion
+24
-26
src/vs/workbench/browser/parts/editor/editorControl.ts
src/vs/workbench/browser/parts/editor/editorControl.ts
+4
-4
src/vs/workbench/browser/parts/editor/editorPart.ts
src/vs/workbench/browser/parts/editor/editorPart.ts
+2
-1
src/vs/workbench/browser/parts/editor/editorPicker.ts
src/vs/workbench/browser/parts/editor/editorPicker.ts
+3
-7
src/vs/workbench/browser/parts/editor/editorStatus.ts
src/vs/workbench/browser/parts/editor/editorStatus.ts
+1
-0
src/vs/workbench/browser/parts/editor/editorWidgets.ts
src/vs/workbench/browser/parts/editor/editorWidgets.ts
+3
-3
src/vs/workbench/browser/parts/editor/sideBySideEditor.ts
src/vs/workbench/browser/parts/editor/sideBySideEditor.ts
+1
-0
src/vs/workbench/browser/parts/notifications/notificationsActions.ts
...bench/browser/parts/notifications/notificationsActions.ts
+1
-5
src/vs/workbench/browser/parts/notifications/notificationsCenter.ts
...kbench/browser/parts/notifications/notificationsCenter.ts
+3
-3
src/vs/workbench/browser/parts/sidebar/sidebarPart.ts
src/vs/workbench/browser/parts/sidebar/sidebarPart.ts
+1
-1
src/vs/workbench/browser/parts/titlebar/titlebarPart.ts
src/vs/workbench/browser/parts/titlebar/titlebarPart.ts
+2
-2
src/vs/workbench/services/editor/common/editorGroupsService.ts
...s/workbench/services/editor/common/editorGroupsService.ts
+3
-0
未找到文件。
src/vs/workbench/browser/parts/editor/editorControl.ts
浏览文件 @
aa61be47
...
...
@@ -13,7 +13,7 @@ import { BaseEditor } from 'vs/workbench/browser/parts/editor/baseEditor';
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IEditorProgressService
,
LongRunningOperation
}
from
'
vs/platform/progress/common/progress
'
;
import
{
IEditorGroupView
,
DEFAULT_EDITOR_MIN_DIMENSIONS
,
DEFAULT_EDITOR_MAX_DIMENSIONS
}
from
'
vs/workbench/browser/parts/editor/editor
'
;
import
{
E
vent
,
E
mitter
}
from
'
vs/base/common/event
'
;
import
{
Emitter
}
from
'
vs/base/common/event
'
;
import
{
IVisibleEditor
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
{
assertIsDefined
}
from
'
vs/base/common/types
'
;
...
...
@@ -29,11 +29,11 @@ export class EditorControl extends Disposable {
get
maximumWidth
()
{
return
this
.
_activeControl
?
this
.
_activeControl
.
maximumWidth
:
DEFAULT_EDITOR_MAX_DIMENSIONS
.
width
;
}
get
maximumHeight
()
{
return
this
.
_activeControl
?
this
.
_activeControl
.
maximumHeight
:
DEFAULT_EDITOR_MAX_DIMENSIONS
.
height
;
}
private
readonly
_onDidFocus
:
Emitter
<
void
>
=
this
.
_register
(
new
Emitter
<
void
>
());
readonly
onDidFocus
:
Event
<
void
>
=
this
.
_onDidFocus
.
event
;
private
readonly
_onDidFocus
=
this
.
_register
(
new
Emitter
<
void
>
());
readonly
onDidFocus
=
this
.
_onDidFocus
.
event
;
private
_onDidSizeConstraintsChange
=
this
.
_register
(
new
Emitter
<
{
width
:
number
;
height
:
number
;
}
|
undefined
>
());
get
onDidSizeConstraintsChange
():
Event
<
{
width
:
number
;
height
:
number
;
}
|
undefined
>
{
return
this
.
_onDidSizeConstraintsChange
.
event
;
}
readonly
onDidSizeConstraintsChange
=
this
.
_onDidSizeConstraintsChange
.
event
;
private
_activeControl
:
BaseEditor
|
null
=
null
;
private
controls
:
BaseEditor
[]
=
[];
...
...
src/vs/workbench/browser/parts/editor/editorPart.ts
浏览文件 @
aa61be47
...
...
@@ -48,7 +48,7 @@ class GridWidgetView<T extends IView> implements IView {
get
maximumHeight
():
number
{
return
this
.
gridWidget
?
this
.
gridWidget
.
maximumHeight
:
Number
.
POSITIVE_INFINITY
;
}
private
_onDidChange
=
new
Relay
<
{
width
:
number
;
height
:
number
;
}
|
undefined
>
();
readonly
onDidChange
:
Event
<
{
width
:
number
;
height
:
number
;
}
|
undefined
>
=
this
.
_onDidChange
.
event
;
readonly
onDidChange
=
this
.
_onDidChange
.
event
;
private
_gridWidget
:
Grid
<
T
>
|
undefined
;
...
...
@@ -111,6 +111,7 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
readonly
onDidMoveGroup
=
this
.
_onDidMoveGroup
.
event
;
private
readonly
onDidSetGridWidget
=
this
.
_register
(
new
Emitter
<
{
width
:
number
;
height
:
number
;
}
|
undefined
>
());
private
readonly
_onDidSizeConstraintsChange
=
this
.
_register
(
new
Relay
<
{
width
:
number
;
height
:
number
;
}
|
undefined
>
());
readonly
onDidSizeConstraintsChange
=
Event
.
any
(
this
.
onDidSetGridWidget
.
event
,
this
.
_onDidSizeConstraintsChange
.
event
);
...
...
src/vs/workbench/browser/parts/editor/editorPicker.ts
浏览文件 @
aa61be47
...
...
@@ -23,7 +23,7 @@ export class EditorPickerEntry extends QuickOpenEntryGroup {
constructor
(
private
editor
:
IEditorInput
,
p
rivate
_
group
:
IEditorGroup
,
p
ublic
readonly
group
:
IEditorGroup
,
@
IModeService
private
readonly
modeService
:
IModeService
,
@
IModelService
private
readonly
modelService
:
IModelService
)
{
...
...
@@ -33,7 +33,7 @@ export class EditorPickerEntry extends QuickOpenEntryGroup {
getLabelOptions
():
IIconLabelValueOptions
{
return
{
extraClasses
:
getIconClasses
(
this
.
modelService
,
this
.
modeService
,
this
.
getResource
()),
italic
:
!
this
.
_
group
.
isPinned
(
this
.
editor
)
italic
:
!
this
.
group
.
isPinned
(
this
.
editor
)
};
}
...
...
@@ -45,10 +45,6 @@ export class EditorPickerEntry extends QuickOpenEntryGroup {
return
this
.
editor
.
isDirty
()
&&
!
this
.
editor
.
isSaving
()
?
'
codicon codicon-circle-filled
'
:
''
;
}
get
group
():
IEditorGroup
{
return
this
.
_group
;
}
getResource
()
{
return
toResource
(
this
.
editor
,
{
supportSideBySide
:
SideBySideEditor
.
MASTER
});
}
...
...
@@ -70,7 +66,7 @@ export class EditorPickerEntry extends QuickOpenEntryGroup {
}
private
runOpen
(
context
:
IEntryRunContext
):
boolean
{
this
.
_
group
.
openEditor
(
this
.
editor
);
this
.
group
.
openEditor
(
this
.
editor
);
return
true
;
}
...
...
src/vs/workbench/browser/parts/editor/editorStatus.ts
浏览文件 @
aa61be47
...
...
@@ -180,6 +180,7 @@ interface StateDelta {
}
class
State
{
private
_selectionStatus
:
string
|
undefined
;
get
selectionStatus
():
string
|
undefined
{
return
this
.
_selectionStatus
;
}
...
...
src/vs/workbench/browser/parts/editor/editorWidgets.ts
浏览文件 @
aa61be47
...
...
@@ -5,7 +5,7 @@
import
{
Widget
}
from
'
vs/base/browser/ui/widget
'
;
import
{
IOverlayWidget
,
ICodeEditor
,
IOverlayWidgetPosition
,
OverlayWidgetPositionPreference
}
from
'
vs/editor/browser/editorBrowser
'
;
import
{
E
vent
,
E
mitter
}
from
'
vs/base/common/event
'
;
import
{
Emitter
}
from
'
vs/base/common/event
'
;
import
{
IKeybindingService
}
from
'
vs/platform/keybinding/common/keybinding
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
$
,
append
,
clearNode
}
from
'
vs/base/browser/dom
'
;
...
...
@@ -23,8 +23,8 @@ import { IFileService } from 'vs/platform/files/common/files';
export
class
FloatingClickWidget
extends
Widget
implements
IOverlayWidget
{
private
readonly
_onClick
:
Emitter
<
void
>
=
this
.
_register
(
new
Emitter
<
void
>
());
readonly
onClick
:
Event
<
void
>
=
this
.
_onClick
.
event
;
private
readonly
_onClick
=
this
.
_register
(
new
Emitter
<
void
>
());
readonly
onClick
=
this
.
_onClick
.
event
;
private
_domNode
:
HTMLElement
;
...
...
src/vs/workbench/browser/parts/editor/sideBySideEditor.ts
浏览文件 @
aa61be47
...
...
@@ -55,6 +55,7 @@ export class SideBySideEditor extends BaseEditor {
private
dimension
:
DOM
.
Dimension
=
new
DOM
.
Dimension
(
0
,
0
);
private
onDidCreateEditors
=
this
.
_register
(
new
Emitter
<
{
width
:
number
;
height
:
number
;
}
|
undefined
>
());
private
_onDidSizeConstraintsChange
=
this
.
_register
(
new
Relay
<
{
width
:
number
;
height
:
number
;
}
|
undefined
>
());
readonly
onDidSizeConstraintsChange
=
Event
.
any
(
this
.
onDidCreateEditors
.
event
,
this
.
_onDidSizeConstraintsChange
.
event
);
...
...
src/vs/workbench/browser/parts/notifications/notificationsActions.ts
浏览文件 @
aa61be47
...
...
@@ -121,14 +121,10 @@ export class ConfigureNotificationAction extends Action {
constructor
(
id
:
string
,
label
:
string
,
p
rivate
readonly
_
configurationActions
:
ReadonlyArray
<
IAction
>
p
ublic
readonly
configurationActions
:
ReadonlyArray
<
IAction
>
)
{
super
(
id
,
label
,
'
codicon-gear
'
);
}
get
configurationActions
():
ReadonlyArray
<
IAction
>
{
return
this
.
_configurationActions
;
}
}
export
class
CopyNotificationMessageAction
extends
Action
{
...
...
src/vs/workbench/browser/parts/notifications/notificationsCenter.ts
浏览文件 @
aa61be47
...
...
@@ -9,7 +9,7 @@ import { Themable, NOTIFICATIONS_BORDER, NOTIFICATIONS_CENTER_HEADER_FOREGROUND,
import
{
IThemeService
,
registerThemingParticipant
,
ITheme
,
ICssStyleCollector
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
INotificationsModel
,
INotificationChangeEvent
,
NotificationChangeType
}
from
'
vs/workbench/common/notifications
'
;
import
{
IWorkbenchLayoutService
,
Parts
}
from
'
vs/workbench/services/layout/browser/layoutService
'
;
import
{
E
vent
,
E
mitter
}
from
'
vs/base/common/event
'
;
import
{
Emitter
}
from
'
vs/base/common/event
'
;
import
{
IContextKey
,
IContextKeyService
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
NotificationsCenterVisibleContext
}
from
'
vs/workbench/browser/parts/notifications/notificationsCommands
'
;
import
{
NotificationsList
}
from
'
vs/workbench/browser/parts/notifications/notificationsList
'
;
...
...
@@ -28,8 +28,8 @@ export class NotificationsCenter extends Themable {
private
static
readonly
MAX_DIMENSIONS
=
new
Dimension
(
450
,
400
);
private
readonly
_onDidChangeVisibility
:
Emitter
<
void
>
=
this
.
_register
(
new
Emitter
<
void
>
());
readonly
onDidChangeVisibility
:
Event
<
void
>
=
this
.
_onDidChangeVisibility
.
event
;
private
readonly
_onDidChangeVisibility
=
this
.
_register
(
new
Emitter
<
void
>
());
readonly
onDidChangeVisibility
=
this
.
_onDidChangeVisibility
.
event
;
private
notificationsCenterContainer
:
HTMLElement
|
undefined
;
private
notificationsCenterHeader
:
HTMLElement
|
undefined
;
...
...
src/vs/workbench/browser/parts/sidebar/sidebarPart.ts
浏览文件 @
aa61be47
...
...
@@ -71,7 +71,7 @@ export class SidebarPart extends CompositePart<Viewlet> implements IViewletServi
get
onDidViewletRegister
():
Event
<
ViewletDescriptor
>
{
return
<
Event
<
ViewletDescriptor
>>
this
.
viewletRegistry
.
onDidRegister
;
}
private
_onDidViewletDeregister
=
this
.
_register
(
new
Emitter
<
ViewletDescriptor
>
());
readonly
onDidViewletDeregister
:
Event
<
ViewletDescriptor
>
=
this
.
_onDidViewletDeregister
.
event
;
readonly
onDidViewletDeregister
=
this
.
_onDidViewletDeregister
.
event
;
get
onDidViewletOpen
():
Event
<
IViewlet
>
{
return
Event
.
map
(
this
.
onDidCompositeOpen
.
event
,
compositeEvent
=>
<
IViewlet
>
compositeEvent
.
composite
);
}
get
onDidViewletClose
():
Event
<
IViewlet
>
{
return
this
.
onDidCompositeClose
.
event
as
Event
<
IViewlet
>
;
}
...
...
src/vs/workbench/browser/parts/titlebar/titlebarPart.ts
浏览文件 @
aa61be47
...
...
@@ -30,7 +30,7 @@ import { CustomMenubarControl } from 'vs/workbench/browser/parts/titlebar/menuba
import
{
IInstantiationService
,
optional
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
template
}
from
'
vs/base/common/labels
'
;
import
{
ILabelService
}
from
'
vs/platform/label/common/label
'
;
import
{
E
vent
,
E
mitter
}
from
'
vs/base/common/event
'
;
import
{
Emitter
}
from
'
vs/base/common/event
'
;
import
{
IStorageService
}
from
'
vs/platform/storage/common/storage
'
;
import
{
Parts
,
IWorkbenchLayoutService
}
from
'
vs/workbench/services/layout/browser/layoutService
'
;
import
{
RunOnceScheduler
}
from
'
vs/base/common/async
'
;
...
...
@@ -64,7 +64,7 @@ export class TitlebarPart extends Part implements ITitleService {
//#endregion
private
_onMenubarVisibilityChange
=
this
.
_register
(
new
Emitter
<
boolean
>
());
readonly
onMenubarVisibilityChange
:
Event
<
boolean
>
=
this
.
_onMenubarVisibilityChange
.
event
;
readonly
onMenubarVisibilityChange
=
this
.
_onMenubarVisibilityChange
.
event
;
_serviceBrand
:
undefined
;
...
...
src/vs/workbench/services/editor/common/editorGroupsService.ts
浏览文件 @
aa61be47
...
...
@@ -397,6 +397,9 @@ export interface IEditorGroup {
*/
readonly
label
:
string
;
/**
* A human readable label for the group to be used by screen readers.
*/
readonly
ariaLabel
:
string
;
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录