Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
e23fe636
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,发现更多精彩内容 >>
提交
e23fe636
编写于
5月 04, 2016
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make zone widget abstract
上级
f348d02a
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
15 deletion
+13
-15
src/vs/editor/contrib/gotoError/browser/gotoError.ts
src/vs/editor/contrib/gotoError/browser/gotoError.ts
+1
-1
src/vs/editor/contrib/referenceSearch/browser/referenceSearchWidget.ts
.../contrib/referenceSearch/browser/referenceSearchWidget.ts
+1
-1
src/vs/editor/contrib/zoneWidget/browser/peekViewWidget.ts
src/vs/editor/contrib/zoneWidget/browser/peekViewWidget.ts
+2
-2
src/vs/editor/contrib/zoneWidget/browser/zoneWidget.ts
src/vs/editor/contrib/zoneWidget/browser/zoneWidget.ts
+8
-10
src/vs/workbench/parts/debug/browser/breakpointWidget.ts
src/vs/workbench/parts/debug/browser/breakpointWidget.ts
+1
-1
未找到文件。
src/vs/editor/contrib/gotoError/browser/gotoError.ts
浏览文件 @
e23fe636
...
...
@@ -214,7 +214,7 @@ class MarkerNavigationWidget extends ZoneWidget {
this
.
_wireModelAndView
();
}
p
ublic
fillContainer
(
container
:
HTMLElement
):
void
{
p
rotected
_
fillContainer
(
container
:
HTMLElement
):
void
{
this
.
_container
=
container
;
dom
.
addClass
(
this
.
_container
,
'
marker-widget
'
);
...
...
src/vs/editor/contrib/referenceSearch/browser/referenceSearchWidget.ts
浏览文件 @
e23fe636
...
...
@@ -572,7 +572,7 @@ export class ReferenceWidget extends PeekViewWidget {
this
.
_lastHeight
=
height
;
}
public
onWidth
(
widthInPixel
:
number
):
void
{
public
_
onWidth
(
widthInPixel
:
number
):
void
{
this
.
_sash
.
width
=
widthInPixel
;
this
.
_preview
.
layout
();
}
...
...
src/vs/editor/contrib/zoneWidget/browser/peekViewWidget.ts
浏览文件 @
e23fe636
...
...
@@ -80,7 +80,7 @@ export class PeekViewWidget extends ZoneWidget implements IPeekViewService {
super
.
show
(
where
,
heightInLines
);
}
p
ublic
fillContainer
(
container
:
HTMLElement
):
void
{
p
rotected
_
fillContainer
(
container
:
HTMLElement
):
void
{
$
(
container
).
addClass
(
'
peekview-widget
'
);
this
.
_headElement
=
<
HTMLDivElement
>
$
(
'
.head
'
).
getHTMLElement
();
...
...
@@ -140,7 +140,7 @@ export class PeekViewWidget extends ZoneWidget implements IPeekViewService {
// implement me
}
public
doLayout
(
heightInPixel
:
number
,
widthInPixel
:
number
):
void
{
public
_
doLayout
(
heightInPixel
:
number
,
widthInPixel
:
number
):
void
{
if
(
heightInPixel
<
0
)
{
// Looks like the view zone got folded away!
...
...
src/vs/editor/contrib/zoneWidget/browser/zoneWidget.ts
浏览文件 @
e23fe636
...
...
@@ -89,7 +89,7 @@ class OverlayWidgetDelegate implements IOverlayWidget {
}
export
class
ZoneWidget
implements
IHorizontalSashLayoutProvider
{
export
abstract
class
ZoneWidget
implements
IHorizontalSashLayoutProvider
{
private
_viewZone
:
ViewZoneDelegate
=
null
;
private
_overlayWidget
:
OverlayWidgetDelegate
=
null
;
...
...
@@ -114,7 +114,7 @@ export class ZoneWidget implements IHorizontalSashLayoutProvider {
this
.
_disposables
.
add
(
this
.
editor
.
addListener2
(
EventType
.
EditorLayout
,
(
info
:
IEditorLayoutInfo
)
=>
{
var
width
=
this
.
_getWidth
(
info
);
this
.
domNode
.
style
.
width
=
width
+
'
px
'
;
this
.
onWidth
(
width
);
this
.
_
onWidth
(
width
);
}));
}
...
...
@@ -126,7 +126,7 @@ export class ZoneWidget implements IHorizontalSashLayoutProvider {
this
.
container
=
document
.
createElement
(
'
div
'
);
dom
.
addClass
(
this
.
container
,
'
zone-widget-container
'
);
this
.
domNode
.
appendChild
(
this
.
container
);
this
.
fillContainer
(
this
.
container
);
this
.
_
fillContainer
(
this
.
container
);
this
.
_initSash
();
}
...
...
@@ -144,7 +144,7 @@ export class ZoneWidget implements IHorizontalSashLayoutProvider {
let
containerHeight
=
height
-
this
.
_decoratingElementsHeight
();
this
.
container
.
style
.
height
=
`
${
containerHeight
}
px`
;
this
.
doLayout
(
containerHeight
,
this
.
_getWidth
());
this
.
_
doLayout
(
containerHeight
,
this
.
_getWidth
());
this
.
_resizeSash
.
layout
();
}
...
...
@@ -248,7 +248,7 @@ export class ZoneWidget implements IHorizontalSashLayoutProvider {
this
.
container
.
style
.
overflow
=
'
hidden
'
;
this
.
doLayout
(
containerHeight
,
width
);
this
.
_
doLayout
(
containerHeight
,
width
);
this
.
editor
.
setSelection
(
where
);
...
...
@@ -276,15 +276,13 @@ export class ZoneWidget implements IHorizontalSashLayoutProvider {
}
}
public
fillContainer
(
container
:
HTMLElement
):
void
{
// implement in subclass
}
protected
abstract
_fillContainer
(
container
:
HTMLElement
):
void
;
p
ublic
onWidth
(
widthInPixel
:
number
):
void
{
p
rotected
_
onWidth
(
widthInPixel
:
number
):
void
{
// implement in subclass
}
p
ublic
doLayout
(
heightInPixel
:
number
,
widthInPixel
:
number
):
void
{
p
rotected
_
doLayout
(
heightInPixel
:
number
,
widthInPixel
:
number
):
void
{
// implement in subclass
}
...
...
src/vs/workbench/parts/debug/browser/breakpointWidget.ts
浏览文件 @
e23fe636
...
...
@@ -58,7 +58,7 @@ export class BreakpointWidget extends ZoneWidget {
BreakpointWidget
.
INSTANCE
.
show
({
lineNumber
,
column
:
1
},
2
);
}
p
ublic
fillContainer
(
container
:
HTMLElement
):
void
{
p
rotected
_
fillContainer
(
container
:
HTMLElement
):
void
{
dom
.
addClass
(
container
,
'
breakpoint-widget
'
);
const
uri
=
this
.
editor
.
getModel
().
getAssociatedResource
();
const
breakpoint
=
this
.
debugService
.
getModel
().
getBreakpoints
().
filter
(
bp
=>
bp
.
lineNumber
===
this
.
lineNumber
&&
bp
.
source
.
uri
.
toString
()
===
uri
.
toString
()).
pop
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录