Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
6cd78e2c
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,发现更多精彩内容 >>
提交
6cd78e2c
编写于
8月 11, 2016
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "home, end in suggest"
This reverts commit
82211b4d
. fixes #10423
上级
3313a641
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
84 deletion
+0
-84
src/vs/base/browser/ui/list/listWidget.ts
src/vs/base/browser/ui/list/listWidget.ts
+0
-10
src/vs/editor/contrib/suggest/browser/suggest.ts
src/vs/editor/contrib/suggest/browser/suggest.ts
+0
-36
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
+0
-38
未找到文件。
src/vs/base/browser/ui/list/listWidget.ts
浏览文件 @
6cd78e2c
...
...
@@ -376,16 +376,6 @@ export class List<T> implements IDisposable {
}
}
focusFirst
():
void
{
if
(
this
.
length
===
0
)
{
return
;
}
this
.
setFocus
(
0
);
}
focusLast
():
void
{
if
(
this
.
length
===
0
)
{
return
;
}
this
.
setFocus
(
this
.
length
-
1
);
}
getFocus
():
number
[]
{
return
this
.
focus
.
get
();
}
...
...
src/vs/editor/contrib/suggest/browser/suggest.ts
浏览文件 @
6cd78e2c
...
...
@@ -148,12 +148,6 @@ export class SuggestController implements IEditorContribution {
}
}
selectFirstSuggestion
():
void
{
if
(
this
.
widget
)
{
this
.
widget
.
selectFirst
();
}
}
selectPrevSuggestion
():
void
{
if
(
this
.
widget
)
{
this
.
widget
.
selectPrevious
();
...
...
@@ -166,12 +160,6 @@ export class SuggestController implements IEditorContribution {
}
}
selectLastSuggestion
():
void
{
if
(
this
.
widget
)
{
this
.
widget
.
selectLast
();
}
}
toggleSuggestionDetails
():
void
{
if
(
this
.
widget
)
{
this
.
widget
.
toggleDetails
();
...
...
@@ -265,18 +253,6 @@ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
selectFirstSuggestion
'
,
precondition
:
KbExpr
.
and
(
SuggestContext
.
Visible
,
SuggestContext
.
MultipleSuggestions
),
handler
:
c
=>
c
.
selectFirstSuggestion
(),
kbOpts
:
{
weight
:
weight
,
kbExpr
:
EditorContextKeys
.
TextFocus
,
primary
:
KeyCode
.
Home
,
secondary
:
[
KeyMod
.
Alt
|
KeyCode
.
Home
]
}
}));
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
selectPrevSuggestion
'
,
precondition
:
KbExpr
.
and
(
SuggestContext
.
Visible
,
SuggestContext
.
MultipleSuggestions
),
...
...
@@ -302,18 +278,6 @@ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
selectLastSuggestion
'
,
precondition
:
KbExpr
.
and
(
SuggestContext
.
Visible
,
SuggestContext
.
MultipleSuggestions
),
handler
:
c
=>
c
.
selectLastSuggestion
(),
kbOpts
:
{
weight
:
weight
,
kbExpr
:
EditorContextKeys
.
TextFocus
,
primary
:
KeyCode
.
End
,
secondary
:
[
KeyMod
.
Alt
|
KeyCode
.
End
]
}
}));
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
toggleSuggestionDetails
'
,
precondition
:
SuggestContext
.
Visible
,
...
...
src/vs/editor/contrib/suggest/browser/suggestWidget.ts
浏览文件 @
6cd78e2c
...
...
@@ -283,14 +283,6 @@ class SuggestionDetails {
this
.
scrollUp
(
80
);
}
scrollHome
():
void
{
this
.
body
.
scrollTop
=
0
;
}
scrollEnd
():
void
{
this
.
body
.
scrollTop
=
this
.
body
.
scrollHeight
;
}
private
configureFont
()
{
const
fontInfo
=
this
.
editor
.
getConfiguration
().
fontInfo
;
this
.
title
.
style
.
fontFamily
=
fontInfo
.
fontFamily
;
...
...
@@ -671,21 +663,6 @@ export class SuggestWidget implements IContentWidget, IDisposable {
}
}
selectLast
():
boolean
{
switch
(
this
.
state
)
{
case
State
.
Hidden
:
return
false
;
case
State
.
Details
:
this
.
details
.
scrollEnd
();
return
true
;
case
State
.
Loading
:
return
!
this
.
isAuto
;
default
:
this
.
list
.
focusLast
();
return
true
;
}
}
selectPreviousPage
():
boolean
{
switch
(
this
.
state
)
{
case
State
.
Hidden
:
...
...
@@ -716,21 +693,6 @@ export class SuggestWidget implements IContentWidget, IDisposable {
}
}
selectFirst
():
boolean
{
switch
(
this
.
state
)
{
case
State
.
Hidden
:
return
false
;
case
State
.
Details
:
this
.
details
.
scrollHome
();
return
true
;
case
State
.
Loading
:
return
!
this
.
isAuto
;
default
:
this
.
list
.
focusFirst
();
return
true
;
}
}
acceptSelectedSuggestion
():
boolean
{
switch
(
this
.
state
)
{
case
State
.
Hidden
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录