Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
0945f076
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,发现更多精彩内容 >>
提交
0945f076
编写于
9月 24, 2020
作者:
R
rebornix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
re #103454. notebook/comment/find.
上级
f99ff58d
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
14 addition
and
14 deletion
+14
-14
src/vs/workbench/contrib/codeEditor/browser/find/simpleFindReplaceWidget.ts
...ontrib/codeEditor/browser/find/simpleFindReplaceWidget.ts
+2
-2
src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts
...bench/contrib/codeEditor/browser/find/simpleFindWidget.ts
+2
-2
src/vs/workbench/contrib/comments/browser/commentNode.ts
src/vs/workbench/contrib/comments/browser/commentNode.ts
+1
-1
src/vs/workbench/contrib/comments/browser/commentThreadWidget.ts
...workbench/contrib/comments/browser/commentThreadWidget.ts
+2
-2
src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts
...orkbench/contrib/notebook/browser/notebookEditorWidget.ts
+3
-3
src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts
...h/contrib/notebook/browser/view/renderers/cellRenderer.ts
+2
-2
src/vs/workbench/contrib/notebook/browser/view/renderers/codeCell.ts
...bench/contrib/notebook/browser/view/renderers/codeCell.ts
+1
-1
src/vs/workbench/contrib/notebook/browser/view/renderers/markdownCell.ts
...h/contrib/notebook/browser/view/renderers/markdownCell.ts
+1
-1
未找到文件。
src/vs/workbench/contrib/codeEditor/browser/find/simpleFindReplaceWidget.ts
浏览文件 @
0945f076
...
@@ -402,13 +402,13 @@ export abstract class SimpleFindReplaceWidget extends Widget {
...
@@ -402,13 +402,13 @@ export abstract class SimpleFindReplaceWidget extends Widget {
public
hide
():
void
{
public
hide
():
void
{
if
(
this
.
_isVisible
)
{
if
(
this
.
_isVisible
)
{
dom
.
removeClass
(
this
.
_domNode
,
'
visible-transition
'
);
this
.
_domNode
.
classList
.
remove
(
'
visible-transition
'
);
this
.
_domNode
.
setAttribute
(
'
aria-hidden
'
,
'
true
'
);
this
.
_domNode
.
setAttribute
(
'
aria-hidden
'
,
'
true
'
);
// Need to delay toggling visibility until after Transition, then visibility hidden - removes from tabIndex list
// Need to delay toggling visibility until after Transition, then visibility hidden - removes from tabIndex list
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
_isVisible
=
false
;
this
.
_isVisible
=
false
;
this
.
updateButtons
(
this
.
foundMatch
);
this
.
updateButtons
(
this
.
foundMatch
);
dom
.
removeClass
(
this
.
_domNode
,
'
visible
'
);
this
.
_domNode
.
classList
.
remove
(
'
visible
'
);
},
200
);
},
200
);
}
}
}
}
...
...
src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts
浏览文件 @
0945f076
...
@@ -235,13 +235,13 @@ export abstract class SimpleFindWidget extends Widget {
...
@@ -235,13 +235,13 @@ export abstract class SimpleFindWidget extends Widget {
public
hide
():
void
{
public
hide
():
void
{
if
(
this
.
_isVisible
)
{
if
(
this
.
_isVisible
)
{
dom
.
removeClass
(
this
.
_innerDomNode
,
'
visible-transition
'
);
this
.
_innerDomNode
.
classList
.
remove
(
'
visible-transition
'
);
this
.
_innerDomNode
.
setAttribute
(
'
aria-hidden
'
,
'
true
'
);
this
.
_innerDomNode
.
setAttribute
(
'
aria-hidden
'
,
'
true
'
);
// Need to delay toggling visibility until after Transition, then visibility hidden - removes from tabIndex list
// Need to delay toggling visibility until after Transition, then visibility hidden - removes from tabIndex list
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
_isVisible
=
false
;
this
.
_isVisible
=
false
;
this
.
updateButtons
(
this
.
foundMatch
);
this
.
updateButtons
(
this
.
foundMatch
);
dom
.
removeClass
(
this
.
_innerDomNode
,
'
visible
'
);
this
.
_innerDomNode
.
classList
.
remove
(
'
visible
'
);
},
200
);
},
200
);
}
}
}
}
...
...
src/vs/workbench/contrib/comments/browser/commentNode.ts
浏览文件 @
0945f076
...
@@ -521,7 +521,7 @@ export class CommentNode extends Disposable {
...
@@ -521,7 +521,7 @@ export class CommentNode extends Disposable {
if
(
!
this
.
_clearTimeout
)
{
if
(
!
this
.
_clearTimeout
)
{
dom
.
addClass
(
this
.
domNode
,
'
focus
'
);
dom
.
addClass
(
this
.
domNode
,
'
focus
'
);
this
.
_clearTimeout
=
setTimeout
(()
=>
{
this
.
_clearTimeout
=
setTimeout
(()
=>
{
dom
.
removeClass
(
this
.
domNode
,
'
focus
'
);
this
.
domNode
.
classList
.
remove
(
'
focus
'
);
},
3000
);
},
3000
);
}
}
}
}
...
...
src/vs/workbench/contrib/comments/browser/commentThreadWidget.ts
浏览文件 @
0945f076
...
@@ -721,8 +721,8 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
...
@@ -721,8 +721,8 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
this
.
_disposables
.
add
(
dom
.
addDisposableListener
(
this
.
_reviewThreadReplyButton
,
'
focus
'
,
_
=>
this
.
expandReplyArea
()));
this
.
_disposables
.
add
(
dom
.
addDisposableListener
(
this
.
_reviewThreadReplyButton
,
'
focus
'
,
_
=>
this
.
expandReplyArea
()));
this
.
_commentEditor
.
onDidBlurEditorWidget
(()
=>
{
this
.
_commentEditor
.
onDidBlurEditorWidget
(()
=>
{
if
(
this
.
_commentEditor
.
getModel
()
!
.
getValueLength
()
===
0
&&
this
.
_commentForm
.
classList
.
add
(
'
expand
'
))
{
if
(
this
.
_commentEditor
.
getModel
()
!
.
getValueLength
()
===
0
&&
this
.
_commentForm
.
classList
.
contains
(
'
expand
'
))
{
dom
.
removeClass
(
this
.
_commentForm
,
'
expand
'
);
this
.
_commentForm
.
classList
.
remove
(
'
expand
'
);
}
}
});
});
}
}
...
...
src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts
浏览文件 @
0945f076
...
@@ -1771,15 +1771,15 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
...
@@ -1771,15 +1771,15 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
}
}
toggleClassName
(
className
:
string
)
{
toggleClassName
(
className
:
string
)
{
DOM
.
toggleClass
(
this
.
_overlayContainer
,
className
);
this
.
_overlayContainer
.
classList
.
toggle
(
className
);
}
}
addClassName
(
className
:
string
)
{
addClassName
(
className
:
string
)
{
DOM
.
addClass
(
this
.
_overlayContainer
,
className
);
this
.
_overlayContainer
.
classList
.
add
(
className
);
}
}
removeClassName
(
className
:
string
)
{
removeClassName
(
className
:
string
)
{
DOM
.
removeClass
(
this
.
_overlayContainer
,
className
);
this
.
_overlayContainer
.
classList
.
remove
(
className
);
}
}
...
...
src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts
浏览文件 @
0945f076
...
@@ -1083,9 +1083,9 @@ export class ListTopCellToolbar extends Disposable {
...
@@ -1083,9 +1083,9 @@ export class ListTopCellToolbar extends Disposable {
private
updateClass
()
{
private
updateClass
()
{
if
(
this
.
notebookEditor
.
viewModel
?.
length
===
0
)
{
if
(
this
.
notebookEditor
.
viewModel
?.
length
===
0
)
{
DOM
.
addClass
(
this
.
topCellToolbar
,
'
emptyNotebook
'
);
this
.
topCellToolbar
.
classList
.
add
(
'
emptyNotebook
'
);
}
else
{
}
else
{
DOM
.
removeClass
(
this
.
topCellToolbar
,
'
emptyNotebook
'
);
this
.
topCellToolbar
.
classList
.
remove
(
'
emptyNotebook
'
);
}
}
}
}
...
...
src/vs/workbench/contrib/notebook/browser/view/renderers/codeCell.ts
浏览文件 @
0945f076
...
@@ -233,7 +233,7 @@ export class CodeCell extends Disposable {
...
@@ -233,7 +233,7 @@ export class CodeCell extends Disposable {
e
.
removed
.
forEach
(
options
=>
{
e
.
removed
.
forEach
(
options
=>
{
if
(
options
.
className
)
{
if
(
options
.
className
)
{
DOM
.
removeClass
(
templateData
.
rootContainer
,
options
.
className
);
templateData
.
rootContainer
.
classList
.
remove
(
options
.
className
);
}
}
if
(
options
.
outputClassName
)
{
if
(
options
.
outputClassName
)
{
...
...
src/vs/workbench/contrib/notebook/browser/view/renderers/markdownCell.ts
浏览文件 @
0945f076
...
@@ -115,7 +115,7 @@ export class StatefulMarkdownCell extends Disposable {
...
@@ -115,7 +115,7 @@ export class StatefulMarkdownCell extends Disposable {
e
.
removed
.
forEach
(
options
=>
{
e
.
removed
.
forEach
(
options
=>
{
if
(
options
.
className
)
{
if
(
options
.
className
)
{
DOM
.
removeClass
(
templateData
.
rootContainer
,
options
.
className
);
templateData
.
rootContainer
.
classList
.
remove
(
options
.
className
);
}
}
});
});
}));
}));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录