Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
bb8bf06d
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 搜索 >>
提交
bb8bf06d
编写于
8月 05, 2019
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
strictPropertyInitialization
#78168
上级
c880f7fe
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
13 deletion
+13
-13
src/vs/base/browser/touch.ts
src/vs/base/browser/touch.ts
+1
-1
src/vs/base/browser/ui/centered/centeredViewLayout.ts
src/vs/base/browser/ui/centered/centeredViewLayout.ts
+7
-4
src/vs/base/browser/ui/checkbox/checkbox.ts
src/vs/base/browser/ui/checkbox/checkbox.ts
+2
-2
src/vs/base/browser/ui/inputbox/inputBox.ts
src/vs/base/browser/ui/inputbox/inputBox.ts
+2
-2
src/vs/base/browser/ui/selectBox/selectBox.ts
src/vs/base/browser/ui/selectBox/selectBox.ts
+1
-4
未找到文件。
src/vs/base/browser/touch.ts
浏览文件 @
bb8bf06d
...
...
@@ -69,7 +69,7 @@ export class Gesture extends Disposable {
private
static
INSTANCE
:
Gesture
;
private
static
HOLD_DELAY
=
700
;
private
dispatched
:
boolean
;
private
dispatched
=
false
;
private
targets
:
HTMLElement
[];
private
handle
:
IDisposable
|
null
;
...
...
src/vs/base/browser/ui/centered/centeredViewLayout.ts
浏览文件 @
bb8bf06d
...
...
@@ -20,10 +20,12 @@ const GOLDEN_RATIO = {
rightMarginRatio
:
0.1909
};
function
createEmptyView
(
background
:
Color
):
ISplitViewView
{
function
createEmptyView
(
background
:
Color
|
undefined
):
ISplitViewView
{
const
element
=
$
(
'
.centered-layout-margin
'
);
element
.
style
.
height
=
'
100%
'
;
element
.
style
.
backgroundColor
=
background
.
toString
();
if
(
background
)
{
element
.
style
.
backgroundColor
=
background
.
toString
();
}
return
{
element
,
...
...
@@ -53,7 +55,7 @@ export class CenteredViewLayout implements IDisposable {
private
splitView
?:
SplitView
;
private
width
:
number
=
0
;
private
height
:
number
=
0
;
private
style
:
ICenteredViewStyles
;
private
style
:
ICenteredViewStyles
|
undefined
;
private
didLayout
=
false
;
private
emptyViews
:
ISplitViewView
[]
|
undefined
;
private
readonly
splitViewDisposables
=
new
DisposableStore
();
...
...
@@ -132,7 +134,8 @@ export class CenteredViewLayout implements IDisposable {
this
.
splitView
.
layout
(
this
.
width
);
this
.
splitView
.
addView
(
toSplitViewView
(
this
.
view
,
()
=>
this
.
height
),
0
);
this
.
emptyViews
=
[
createEmptyView
(
this
.
style
.
background
),
createEmptyView
(
this
.
style
.
background
)];
const
backgroundColor
=
this
.
style
?
this
.
style
.
background
:
undefined
;
this
.
emptyViews
=
[
createEmptyView
(
backgroundColor
),
createEmptyView
(
backgroundColor
)];
this
.
splitView
.
addView
(
this
.
emptyViews
[
0
],
this
.
state
.
leftMarginRatio
*
this
.
width
,
0
);
this
.
splitView
.
addView
(
this
.
emptyViews
[
1
],
this
.
state
.
rightMarginRatio
*
this
.
width
,
2
);
}
else
{
...
...
src/vs/base/browser/ui/checkbox/checkbox.ts
浏览文件 @
bb8bf06d
...
...
@@ -32,7 +32,7 @@ const defaultOpts = {
export
class
CheckboxActionViewItem
extends
BaseActionViewItem
{
private
checkbox
:
Checkbox
;
private
checkbox
:
Checkbox
|
undefined
;
private
readonly
disposables
=
new
DisposableStore
();
render
(
container
:
HTMLElement
):
void
{
...
...
@@ -45,7 +45,7 @@ export class CheckboxActionViewItem extends BaseActionViewItem {
title
:
this
.
_action
.
label
});
this
.
disposables
.
add
(
this
.
checkbox
);
this
.
disposables
.
add
(
this
.
checkbox
.
onChange
(()
=>
this
.
_action
.
checked
=
this
.
checkbox
.
checked
,
this
));
this
.
disposables
.
add
(
this
.
checkbox
.
onChange
(()
=>
this
.
_action
.
checked
=
this
.
checkbox
!
.
checked
,
this
));
this
.
element
.
appendChild
(
this
.
checkbox
.
domNode
);
}
...
...
src/vs/base/browser/ui/inputbox/inputBox.ts
浏览文件 @
bb8bf06d
...
...
@@ -86,7 +86,7 @@ export class InputBox extends Widget {
private
contextViewProvider
?:
IContextViewProvider
;
element
:
HTMLElement
;
private
input
:
HTMLInputElement
;
private
mirror
:
HTMLElement
;
private
mirror
:
HTMLElement
|
undefined
;
private
actionbar
?:
ActionBar
;
private
options
:
IInputOptions
;
private
message
:
IMessage
|
null
;
...
...
@@ -230,7 +230,7 @@ export class InputBox extends Widget {
}
}
public
get
mirrorElement
():
HTMLElement
{
public
get
mirrorElement
():
HTMLElement
|
undefined
{
return
this
.
mirror
;
}
...
...
src/vs/base/browser/ui/selectBox/selectBox.ts
浏览文件 @
bb8bf06d
...
...
@@ -8,7 +8,7 @@ import 'vs/css!./selectBox';
import
{
Event
}
from
'
vs/base/common/event
'
;
import
{
Widget
}
from
'
vs/base/browser/ui/widget
'
;
import
{
Color
}
from
'
vs/base/common/color
'
;
import
{
deepClone
,
mixin
}
from
'
vs/base/common/objects
'
;
import
{
deepClone
}
from
'
vs/base/common/objects
'
;
import
{
IContextViewProvider
}
from
'
vs/base/browser/ui/contextview/contextview
'
;
import
{
IListStyles
}
from
'
vs/base/browser/ui/list/listWidget
'
;
import
{
SelectBoxNative
}
from
'
vs/base/browser/ui/selectBox/selectBoxNative
'
;
...
...
@@ -72,14 +72,11 @@ export interface ISelectData {
}
export
class
SelectBox
extends
Widget
implements
ISelectBoxDelegate
{
private
styles
:
ISelectBoxStyles
;
private
selectBoxDelegate
:
ISelectBoxDelegate
;
constructor
(
options
:
ISelectOptionItem
[],
selected
:
number
,
contextViewProvider
:
IContextViewProvider
,
styles
:
ISelectBoxStyles
=
deepClone
(
defaultStyles
),
selectBoxOptions
?:
ISelectBoxOptions
)
{
super
();
mixin
(
this
.
styles
,
defaultStyles
,
false
);
// Default to native SelectBox for OSX unless overridden
if
(
isMacintosh
&&
!
(
selectBoxOptions
&&
selectBoxOptions
.
useCustomDrawn
))
{
this
.
selectBoxDelegate
=
new
SelectBoxNative
(
options
,
selected
,
styles
,
selectBoxOptions
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录