Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
fad711d5
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,发现更多精彩内容 >>
提交
fad711d5
编写于
3月 19, 2020
作者:
S
SteVen Batten
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
invert feedback
上级
6ec19f28
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
38 addition
and
85 deletion
+38
-85
src/vs/workbench/browser/media/part.css
src/vs/workbench/browser/media/part.css
+13
-0
src/vs/workbench/browser/parts/activitybar/activitybarPart.ts
...vs/workbench/browser/parts/activitybar/activitybarPart.ts
+1
-23
src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css
...bench/browser/parts/activitybar/media/activitybarpart.css
+4
-9
src/vs/workbench/browser/parts/editor/editorPart.ts
src/vs/workbench/browser/parts/editor/editorPart.ts
+15
-0
src/vs/workbench/browser/parts/panel/panelPart.ts
src/vs/workbench/browser/parts/panel/panelPart.ts
+2
-28
src/vs/workbench/browser/parts/sidebar/sidebarPart.ts
src/vs/workbench/browser/parts/sidebar/sidebarPart.ts
+3
-25
未找到文件。
src/vs/workbench/browser/media/part.css
浏览文件 @
fad711d5
...
@@ -8,6 +8,19 @@
...
@@ -8,6 +8,19 @@
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.monaco-workbench
.part
>
.drop-block-overlay
{
visibility
:
hidden
;
/* use visibility to ensure transitions */
transition-property
:
opacity
;
transition-timing-function
:
linear
;
transition-duration
:
250ms
;
width
:
100%
;
height
:
100%
;
position
:
absolute
;
top
:
0
;
opacity
:
0
;
pointer-events
:
none
;
}
.monaco-workbench
.part
>
.title
{
.monaco-workbench
.part
>
.title
{
display
:
none
;
/* Parts have to opt in to show title area */
display
:
none
;
/* Parts have to opt in to show title area */
}
}
...
...
src/vs/workbench/browser/parts/activitybar/activitybarPart.ts
浏览文件 @
fad711d5
...
@@ -17,7 +17,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
...
@@ -17,7 +17,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
import
{
IDisposable
,
toDisposable
,
DisposableStore
,
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
IDisposable
,
toDisposable
,
DisposableStore
,
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
ToggleActivityBarVisibilityAction
,
ToggleMenuBarAction
}
from
'
vs/workbench/browser/actions/layoutActions
'
;
import
{
ToggleActivityBarVisibilityAction
,
ToggleMenuBarAction
}
from
'
vs/workbench/browser/actions/layoutActions
'
;
import
{
IThemeService
,
IColorTheme
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
IThemeService
,
IColorTheme
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
ACTIVITY_BAR_BACKGROUND
,
ACTIVITY_BAR_BORDER
,
ACTIVITY_BAR_FOREGROUND
,
ACTIVITY_BAR_ACTIVE_BORDER
,
ACTIVITY_BAR_BADGE_BACKGROUND
,
ACTIVITY_BAR_BADGE_FOREGROUND
,
ACTIVITY_BAR_DRAG_AND_DROP_BACKGROUND
,
ACTIVITY_BAR_INACTIVE_FOREGROUND
,
ACTIVITY_BAR_ACTIVE_BACKGROUND
,
EDITOR_DRAG_AND_DROP_BACKGROUND
}
from
'
vs/workbench/common/theme
'
;
import
{
ACTIVITY_BAR_BACKGROUND
,
ACTIVITY_BAR_BORDER
,
ACTIVITY_BAR_FOREGROUND
,
ACTIVITY_BAR_ACTIVE_BORDER
,
ACTIVITY_BAR_BADGE_BACKGROUND
,
ACTIVITY_BAR_BADGE_FOREGROUND
,
ACTIVITY_BAR_DRAG_AND_DROP_BACKGROUND
,
ACTIVITY_BAR_INACTIVE_FOREGROUND
,
ACTIVITY_BAR_ACTIVE_BACKGROUND
}
from
'
vs/workbench/common/theme
'
;
import
{
contrastBorder
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
contrastBorder
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
CompositeBar
,
ICompositeBarItem
,
CompositeDragAndDrop
}
from
'
vs/workbench/browser/parts/compositeBar
'
;
import
{
CompositeBar
,
ICompositeBarItem
,
CompositeDragAndDrop
}
from
'
vs/workbench/browser/parts/compositeBar
'
;
import
{
Dimension
,
addClass
,
removeNode
}
from
'
vs/base/browser/dom
'
;
import
{
Dimension
,
addClass
,
removeNode
}
from
'
vs/base/browser/dom
'
;
...
@@ -39,7 +39,6 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
...
@@ -39,7 +39,6 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
import
{
getMenuBarVisibility
}
from
'
vs/platform/windows/common/windows
'
;
import
{
getMenuBarVisibility
}
from
'
vs/platform/windows/common/windows
'
;
import
{
isWeb
}
from
'
vs/base/common/platform
'
;
import
{
isWeb
}
from
'
vs/base/common/platform
'
;
import
{
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
import
{
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
import
{
CompositeDragAndDropObserver
}
from
'
vs/workbench/browser/dnd
'
;
interface
ICachedViewlet
{
interface
ICachedViewlet
{
id
:
string
;
id
:
string
;
...
@@ -298,10 +297,6 @@ export class ActivitybarPart extends Part implements IActivityBarService {
...
@@ -298,10 +297,6 @@ export class ActivitybarPart extends Part implements IActivityBarService {
createContentArea
(
parent
:
HTMLElement
):
HTMLElement
{
createContentArea
(
parent
:
HTMLElement
):
HTMLElement
{
this
.
element
=
parent
;
this
.
element
=
parent
;
const
overlay
=
document
.
createElement
(
'
div
'
);
addClass
(
overlay
,
'
drag-overlay
'
);
parent
.
appendChild
(
overlay
);
this
.
content
=
document
.
createElement
(
'
div
'
);
this
.
content
=
document
.
createElement
(
'
div
'
);
addClass
(
this
.
content
,
'
content
'
);
addClass
(
this
.
content
,
'
content
'
);
parent
.
appendChild
(
this
.
content
);
parent
.
appendChild
(
this
.
content
);
...
@@ -321,23 +316,6 @@ export class ActivitybarPart extends Part implements IActivityBarService {
...
@@ -321,23 +316,6 @@ export class ActivitybarPart extends Part implements IActivityBarService {
this
.
createGlobalActivityActionBar
(
globalActivities
);
this
.
createGlobalActivityActionBar
(
globalActivities
);
CompositeDragAndDropObserver
.
INSTANCE
.
registerTarget
(
this
.
element
,
{
onDragStart
:
e
=>
{
overlay
.
style
.
backgroundColor
=
this
.
theme
.
getColor
(
EDITOR_DRAG_AND_DROP_BACKGROUND
,
true
)?.
toString
()
||
''
;
overlay
.
style
.
opacity
=
'
.8
'
;
},
onDragEnd
:
e
=>
{
overlay
.
style
.
opacity
=
''
;
},
onDragEnter
:
e
=>
{
overlay
.
style
.
opacity
=
''
;
},
onDragLeave
:
e
=>
{
overlay
.
style
.
backgroundColor
=
this
.
theme
.
getColor
(
EDITOR_DRAG_AND_DROP_BACKGROUND
,
true
)?.
toString
()
||
''
;
overlay
.
style
.
opacity
=
'
.8
'
;
}
});
return
this
.
content
;
return
this
.
content
;
}
}
...
...
src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css
浏览文件 @
fad711d5
...
@@ -7,15 +7,10 @@
...
@@ -7,15 +7,10 @@
width
:
48px
;
width
:
48px
;
}
}
.monaco-workbench
.part
>
.drag-overlay
{
.monaco-workbench
.part
>
.drop-block-overlay.visible
{
transition-property
:
opacity
;
visibility
:
visible
;
transition-duration
:
.2s
;
backdrop-filter
:
brightness
(
97%
)
blur
(
2px
);
width
:
100%
;
opacity
:
1
;
height
:
100%
;
position
:
absolute
;
opacity
:
0
;
top
:
0
;
pointer-events
:
none
;
}
}
.monaco-workbench
.activitybar
>
.content
{
.monaco-workbench
.activitybar
>
.content
{
...
...
src/vs/workbench/browser/parts/editor/editorPart.ts
浏览文件 @
fad711d5
...
@@ -32,6 +32,7 @@ import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
...
@@ -32,6 +32,7 @@ import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
import
{
MementoObject
}
from
'
vs/workbench/common/memento
'
;
import
{
MementoObject
}
from
'
vs/workbench/common/memento
'
;
import
{
assertIsDefined
}
from
'
vs/base/common/types
'
;
import
{
assertIsDefined
}
from
'
vs/base/common/types
'
;
import
{
IBoundarySashes
}
from
'
vs/base/browser/ui/grid/gridview
'
;
import
{
IBoundarySashes
}
from
'
vs/base/browser/ui/grid/gridview
'
;
import
{
CompositeDragAndDropObserver
}
from
'
vs/workbench/browser/dnd
'
;
interface
IEditorPartUIState
{
interface
IEditorPartUIState
{
serializedGrid
:
ISerializedGrid
;
serializedGrid
:
ISerializedGrid
;
...
@@ -826,6 +827,20 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
...
@@ -826,6 +827,20 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
// Drop support
// Drop support
this
.
_register
(
this
.
createEditorDropTarget
(
this
.
container
,
{}));
this
.
_register
(
this
.
createEditorDropTarget
(
this
.
container
,
{}));
// No drop in the editor
const
overlay
=
document
.
createElement
(
'
div
'
);
addClass
(
overlay
,
'
drop-block-overlay
'
);
parent
.
appendChild
(
overlay
);
CompositeDragAndDropObserver
.
INSTANCE
.
registerTarget
(
this
.
element
,
{
onDragStart
:
e
=>
{
toggleClass
(
overlay
,
'
visible
'
,
true
);
},
onDragEnd
:
e
=>
{
toggleClass
(
overlay
,
'
visible
'
,
false
);
}
});
return
this
.
container
;
return
this
.
container
;
}
}
...
...
src/vs/workbench/browser/parts/panel/panelPart.ts
浏览文件 @
fad711d5
...
@@ -20,13 +20,13 @@ import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
...
@@ -20,13 +20,13 @@ import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
ClosePanelAction
,
PanelActivityAction
,
ToggleMaximizedPanelAction
,
TogglePanelAction
,
PlaceHolderPanelActivityAction
,
PlaceHolderToggleCompositePinnedAction
,
PositionPanelActionConfigs
,
SetPanelPositionAction
}
from
'
vs/workbench/browser/parts/panel/panelActions
'
;
import
{
ClosePanelAction
,
PanelActivityAction
,
ToggleMaximizedPanelAction
,
TogglePanelAction
,
PlaceHolderPanelActivityAction
,
PlaceHolderToggleCompositePinnedAction
,
PositionPanelActionConfigs
,
SetPanelPositionAction
}
from
'
vs/workbench/browser/parts/panel/panelActions
'
;
import
{
IThemeService
,
registerThemingParticipant
,
IColorTheme
,
ICssStyleCollector
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
IThemeService
,
registerThemingParticipant
,
IColorTheme
,
ICssStyleCollector
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
PANEL_BACKGROUND
,
PANEL_BORDER
,
PANEL_ACTIVE_TITLE_FOREGROUND
,
PANEL_INACTIVE_TITLE_FOREGROUND
,
PANEL_ACTIVE_TITLE_BORDER
,
PANEL_DRAG_AND_DROP_BACKGROUND
,
PANEL_INPUT_BORDER
,
EDITOR_DRAG_AND_DROP_BACKGROUND
}
from
'
vs/workbench/common/theme
'
;
import
{
PANEL_BACKGROUND
,
PANEL_BORDER
,
PANEL_ACTIVE_TITLE_FOREGROUND
,
PANEL_INACTIVE_TITLE_FOREGROUND
,
PANEL_ACTIVE_TITLE_BORDER
,
PANEL_DRAG_AND_DROP_BACKGROUND
,
PANEL_INPUT_BORDER
}
from
'
vs/workbench/common/theme
'
;
import
{
activeContrastBorder
,
focusBorder
,
contrastBorder
,
editorBackground
,
badgeBackground
,
badgeForeground
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
activeContrastBorder
,
focusBorder
,
contrastBorder
,
editorBackground
,
badgeBackground
,
badgeForeground
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
CompositeBar
,
ICompositeBarItem
,
CompositeDragAndDrop
}
from
'
vs/workbench/browser/parts/compositeBar
'
;
import
{
CompositeBar
,
ICompositeBarItem
,
CompositeDragAndDrop
}
from
'
vs/workbench/browser/parts/compositeBar
'
;
import
{
ToggleCompositePinnedAction
}
from
'
vs/workbench/browser/parts/compositeBarActions
'
;
import
{
ToggleCompositePinnedAction
}
from
'
vs/workbench/browser/parts/compositeBarActions
'
;
import
{
IBadge
}
from
'
vs/workbench/services/activity/common/activity
'
;
import
{
IBadge
}
from
'
vs/workbench/services/activity/common/activity
'
;
import
{
INotificationService
}
from
'
vs/platform/notification/common/notification
'
;
import
{
INotificationService
}
from
'
vs/platform/notification/common/notification
'
;
import
{
Dimension
,
trackFocus
,
addClass
}
from
'
vs/base/browser/dom
'
;
import
{
Dimension
,
trackFocus
}
from
'
vs/base/browser/dom
'
;
import
{
localize
}
from
'
vs/nls
'
;
import
{
localize
}
from
'
vs/nls
'
;
import
{
IDisposable
,
DisposableStore
}
from
'
vs/base/common/lifecycle
'
;
import
{
IDisposable
,
DisposableStore
}
from
'
vs/base/common/lifecycle
'
;
import
{
IContextKey
,
IContextKeyService
,
ContextKeyExpr
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
IContextKey
,
IContextKeyService
,
ContextKeyExpr
}
from
'
vs/platform/contextkey/common/contextkey
'
;
...
@@ -37,7 +37,6 @@ import { ViewContainer, IViewContainersRegistry, Extensions as ViewContainerExte
...
@@ -37,7 +37,6 @@ import { ViewContainer, IViewContainersRegistry, Extensions as ViewContainerExte
import
{
MenuId
}
from
'
vs/platform/actions/common/actions
'
;
import
{
MenuId
}
from
'
vs/platform/actions/common/actions
'
;
import
{
ViewMenuActions
}
from
'
vs/workbench/browser/parts/views/viewMenuActions
'
;
import
{
ViewMenuActions
}
from
'
vs/workbench/browser/parts/views/viewMenuActions
'
;
import
{
IPaneComposite
}
from
'
vs/workbench/common/panecomposite
'
;
import
{
IPaneComposite
}
from
'
vs/workbench/common/panecomposite
'
;
import
{
CompositeDragAndDropObserver
}
from
'
vs/workbench/browser/dnd
'
;
interface
ICachedPanel
{
interface
ICachedPanel
{
id
:
string
;
id
:
string
;
...
@@ -341,31 +340,6 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
...
@@ -341,31 +340,6 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
super
.
create
(
parent
);
super
.
create
(
parent
);
const
overlay
=
document
.
createElement
(
'
div
'
);
addClass
(
overlay
,
'
drag-overlay
'
);
parent
.
appendChild
(
overlay
);
CompositeDragAndDropObserver
.
INSTANCE
.
registerTarget
(
this
.
element
,
{
onDragStart
:
e
=>
{
// this.element.style.outline = `1px solid`;
// this.element.style.outlineOffset = '-1px';
overlay
.
style
.
backgroundColor
=
this
.
theme
.
getColor
(
EDITOR_DRAG_AND_DROP_BACKGROUND
,
true
)?.
toString
()
||
''
;
overlay
.
style
.
opacity
=
'
.8
'
;
},
onDragEnd
:
e
=>
{
// this.element.style.outline = '';
overlay
.
style
.
opacity
=
''
;
},
onDragEnter
:
e
=>
{
overlay
.
style
.
opacity
=
''
;
},
onDragLeave
:
e
=>
{
overlay
.
style
.
backgroundColor
=
this
.
theme
.
getColor
(
EDITOR_DRAG_AND_DROP_BACKGROUND
,
true
)?.
toString
()
||
''
;
overlay
.
style
.
opacity
=
'
.8
'
;
}
});
const
focusTracker
=
this
.
_register
(
trackFocus
(
parent
));
const
focusTracker
=
this
.
_register
(
trackFocus
(
parent
));
this
.
_register
(
focusTracker
.
onDidFocus
(()
=>
this
.
panelFocusContextKey
.
set
(
true
)));
this
.
_register
(
focusTracker
.
onDidFocus
(()
=>
this
.
panelFocusContextKey
.
set
(
true
)));
this
.
_register
(
focusTracker
.
onDidBlur
(()
=>
this
.
panelFocusContextKey
.
set
(
false
)));
this
.
_register
(
focusTracker
.
onDidBlur
(()
=>
this
.
panelFocusContextKey
.
set
(
false
)));
...
...
src/vs/workbench/browser/parts/sidebar/sidebarPart.ts
浏览文件 @
fad711d5
...
@@ -23,9 +23,9 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
...
@@ -23,9 +23,9 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
import
{
Event
,
Emitter
}
from
'
vs/base/common/event
'
;
import
{
Event
,
Emitter
}
from
'
vs/base/common/event
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
contrastBorder
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
contrastBorder
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
SIDE_BAR_TITLE_FOREGROUND
,
SIDE_BAR_BACKGROUND
,
SIDE_BAR_FOREGROUND
,
SIDE_BAR_BORDER
,
SIDE_BAR_DRAG_AND_DROP_BACKGROUND
,
EDITOR_DRAG_AND_DROP_BACKGROUND
}
from
'
vs/workbench/common/theme
'
;
import
{
SIDE_BAR_TITLE_FOREGROUND
,
SIDE_BAR_BACKGROUND
,
SIDE_BAR_FOREGROUND
,
SIDE_BAR_BORDER
,
SIDE_BAR_DRAG_AND_DROP_BACKGROUND
}
from
'
vs/workbench/common/theme
'
;
import
{
INotificationService
}
from
'
vs/platform/notification/common/notification
'
;
import
{
INotificationService
}
from
'
vs/platform/notification/common/notification
'
;
import
{
EventType
,
addDisposableListener
,
trackFocus
,
addClass
}
from
'
vs/base/browser/dom
'
;
import
{
EventType
,
addDisposableListener
,
trackFocus
}
from
'
vs/base/browser/dom
'
;
import
{
StandardMouseEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
{
StandardMouseEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
{
IContextKey
,
IContextKeyService
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
IContextKey
,
IContextKeyService
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
AnchorAlignment
}
from
'
vs/base/browser/ui/contextview/contextview
'
;
import
{
AnchorAlignment
}
from
'
vs/base/browser/ui/contextview/contextview
'
;
...
@@ -33,7 +33,7 @@ import { IExtensionService } from 'vs/workbench/services/extensions/common/exten
...
@@ -33,7 +33,7 @@ import { IExtensionService } from 'vs/workbench/services/extensions/common/exten
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
LayoutPriority
}
from
'
vs/base/browser/ui/grid/grid
'
;
import
{
LayoutPriority
}
from
'
vs/base/browser/ui/grid/grid
'
;
import
{
assertIsDefined
}
from
'
vs/base/common/types
'
;
import
{
assertIsDefined
}
from
'
vs/base/common/types
'
;
import
{
LocalSelectionTransfer
,
CompositeDragAndDropObserver
,
DraggedViewIdentifier
,
DraggedCompositeIdentifier
}
from
'
vs/workbench/browser/dnd
'
;
import
{
LocalSelectionTransfer
,
DraggedViewIdentifier
,
DraggedCompositeIdentifier
}
from
'
vs/workbench/browser/dnd
'
;
export
class
SidebarPart
extends
CompositePart
<
Viewlet
>
implements
IViewletService
{
export
class
SidebarPart
extends
CompositePart
<
Viewlet
>
implements
IViewletService
{
...
@@ -152,28 +152,6 @@ export class SidebarPart extends CompositePart<Viewlet> implements IViewletServi
...
@@ -152,28 +152,6 @@ export class SidebarPart extends CompositePart<Viewlet> implements IViewletServi
super
.
create
(
parent
);
super
.
create
(
parent
);
const
overlay
=
document
.
createElement
(
'
div
'
);
addClass
(
overlay
,
'
drag-overlay
'
);
parent
.
appendChild
(
overlay
);
CompositeDragAndDropObserver
.
INSTANCE
.
registerTarget
(
this
.
element
,
{
onDragStart
:
e
=>
{
overlay
.
style
.
backgroundColor
=
this
.
theme
.
getColor
(
EDITOR_DRAG_AND_DROP_BACKGROUND
,
true
)?.
toString
()
||
''
;
overlay
.
style
.
opacity
=
'
.8
'
;
},
onDragEnd
:
e
=>
{
// this.element.style.outline = '';
overlay
.
style
.
opacity
=
''
;
},
onDragEnter
:
e
=>
{
overlay
.
style
.
opacity
=
''
;
},
onDragLeave
:
e
=>
{
overlay
.
style
.
backgroundColor
=
this
.
theme
.
getColor
(
EDITOR_DRAG_AND_DROP_BACKGROUND
,
true
)?.
toString
()
||
''
;
overlay
.
style
.
opacity
=
'
.8
'
;
}
});
const
focusTracker
=
this
.
_register
(
trackFocus
(
parent
));
const
focusTracker
=
this
.
_register
(
trackFocus
(
parent
));
this
.
_register
(
focusTracker
.
onDidFocus
(()
=>
this
.
sideBarFocusContextKey
.
set
(
true
)));
this
.
_register
(
focusTracker
.
onDidFocus
(()
=>
this
.
sideBarFocusContextKey
.
set
(
true
)));
this
.
_register
(
focusTracker
.
onDidBlur
(()
=>
this
.
sideBarFocusContextKey
.
set
(
false
)));
this
.
_register
(
focusTracker
.
onDidBlur
(()
=>
this
.
sideBarFocusContextKey
.
set
(
false
)));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录