Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
5488efb4
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(gitcode.net)2024年7月9日维护升级公告
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5488efb4
编写于
9月 01, 2020
作者:
R
Rob Lourens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change statusbar setting capitalization
Fix #105877
上级
8b257219
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
12 deletion
+12
-12
src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts
...rkbench/contrib/notebook/browser/notebook.contribution.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
+3
-3
src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.ts
...h/contrib/notebook/browser/viewModel/baseCellViewModel.ts
+3
-3
src/vs/workbench/contrib/notebook/common/notebookCommon.ts
src/vs/workbench/contrib/notebook/common/notebookCommon.ts
+1
-1
未找到文件。
src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts
浏览文件 @
5488efb4
...
...
@@ -30,7 +30,7 @@ import { NotebookEditor } from 'vs/workbench/contrib/notebook/browser/notebookEd
import
{
NotebookEditorInput
}
from
'
vs/workbench/contrib/notebook/browser/notebookEditorInput
'
;
import
{
INotebookService
}
from
'
vs/workbench/contrib/notebook/common/notebookService
'
;
import
{
NotebookService
}
from
'
vs/workbench/contrib/notebook/browser/notebookServiceImpl
'
;
import
{
CellKind
,
CellToolbarLocKey
,
CellUri
,
DisplayOrderKey
,
getCellUndoRedoComparisonKey
,
NotebookDocumentBackupData
,
NotebookEditorPriority
,
NotebookTextDiffEditorPreview
,
ShowCellStatus
b
arKey
}
from
'
vs/workbench/contrib/notebook/common/notebookCommon
'
;
import
{
CellKind
,
CellToolbarLocKey
,
CellUri
,
DisplayOrderKey
,
getCellUndoRedoComparisonKey
,
NotebookDocumentBackupData
,
NotebookEditorPriority
,
NotebookTextDiffEditorPreview
,
ShowCellStatus
B
arKey
}
from
'
vs/workbench/contrib/notebook/common/notebookCommon
'
;
import
{
NotebookProviderInfo
}
from
'
vs/workbench/contrib/notebook/common/notebookProvider
'
;
import
{
IEditorGroup
}
from
'
vs/workbench/services/editor/common/editorGroupsService
'
;
import
{
IEditorService
,
IOpenEditorOverride
}
from
'
vs/workbench/services/editor/common/editorService
'
;
...
...
@@ -580,7 +580,7 @@ configurationRegistry.registerConfiguration({
enum
:
[
'
left
'
,
'
right
'
,
'
hidden
'
],
default
:
'
right
'
},
[
ShowCellStatus
b
arKey
]:
{
[
ShowCellStatus
B
arKey
]:
{
description
:
nls
.
localize
(
'
notebook.showCellStatusbar.description
'
,
"
Whether the cell statusbar should be shown.
"
),
type
:
'
boolean
'
,
default
:
true
...
...
src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts
浏览文件 @
5488efb4
...
...
@@ -52,7 +52,7 @@ import { CodeCellViewModel } from 'vs/workbench/contrib/notebook/browser/viewMod
import
{
NotebookEventDispatcher
,
NotebookLayoutChangedEvent
}
from
'
vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher
'
;
import
{
CellViewModel
,
IModelDecorationsChangeAccessor
,
INotebookEditorViewState
,
NotebookViewModel
}
from
'
vs/workbench/contrib/notebook/browser/viewModel/notebookViewModel
'
;
import
{
NotebookTextModel
}
from
'
vs/workbench/contrib/notebook/common/model/notebookTextModel
'
;
import
{
CellKind
,
CellToolbarLocKey
,
ICellRange
,
IInsetRenderOutput
,
INotebookKernelInfo2
,
IProcessedOutput
,
isTransformedDisplayOutput
,
NotebookCellRunState
,
NotebookRunState
,
ShowCellStatus
b
arKey
}
from
'
vs/workbench/contrib/notebook/common/notebookCommon
'
;
import
{
CellKind
,
CellToolbarLocKey
,
ICellRange
,
IInsetRenderOutput
,
INotebookKernelInfo2
,
IProcessedOutput
,
isTransformedDisplayOutput
,
NotebookCellRunState
,
NotebookRunState
,
ShowCellStatus
B
arKey
}
from
'
vs/workbench/contrib/notebook/common/notebookCommon
'
;
import
{
NotebookProviderInfo
}
from
'
vs/workbench/contrib/notebook/common/notebookProvider
'
;
import
{
INotebookService
}
from
'
vs/workbench/contrib/notebook/common/notebookService
'
;
import
{
editorGutterModifiedBackground
}
from
'
vs/workbench/contrib/scm/browser/dirtydiffDecorator
'
;
...
...
@@ -251,7 +251,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
}
}
if
(
e
.
affectsConfiguration
(
CellToolbarLocKey
)
||
e
.
affectsConfiguration
(
ShowCellStatus
b
arKey
))
{
if
(
e
.
affectsConfiguration
(
CellToolbarLocKey
)
||
e
.
affectsConfiguration
(
ShowCellStatus
B
arKey
))
{
this
.
_updateForNotebookConfiguration
();
}
});
...
...
@@ -306,7 +306,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
this
.
_overlayContainer
.
classList
.
add
(
`cell-title-toolbar-
${
cellToolbarLocation
}
`
);
}
const
showCellStatusBar
=
this
.
configurationService
.
getValue
<
boolean
>
(
ShowCellStatus
b
arKey
);
const
showCellStatusBar
=
this
.
configurationService
.
getValue
<
boolean
>
(
ShowCellStatus
B
arKey
);
this
.
_overlayContainer
.
classList
.
toggle
(
'
cell-statusbar-hidden
'
,
!
showCellStatusBar
);
}
...
...
src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts
浏览文件 @
5488efb4
...
...
@@ -48,7 +48,7 @@ import { StatefulMarkdownCell } from 'vs/workbench/contrib/notebook/browser/view
import
{
CodeCellViewModel
}
from
'
vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel
'
;
import
{
MarkdownCellViewModel
}
from
'
vs/workbench/contrib/notebook/browser/viewModel/markdownCellViewModel
'
;
import
{
CellViewModel
}
from
'
vs/workbench/contrib/notebook/browser/viewModel/notebookViewModel
'
;
import
{
CellKind
,
NotebookCellMetadata
,
NotebookCellRunState
,
ShowCellStatus
b
arKey
}
from
'
vs/workbench/contrib/notebook/common/notebookCommon
'
;
import
{
CellKind
,
NotebookCellMetadata
,
NotebookCellRunState
,
ShowCellStatus
B
arKey
}
from
'
vs/workbench/contrib/notebook/common/notebookCommon
'
;
import
{
createAndFillInActionBarActionsWithVerticalSeparators
,
VerticalSeparator
,
VerticalSeparatorViewItem
}
from
'
./cellActionView
'
;
const
$
=
DOM
.
$
;
...
...
@@ -112,14 +112,14 @@ export class CellEditorOptions {
constructor
(
configurationService
:
IConfigurationService
,
language
:
string
)
{
this
.
disposable
=
configurationService
.
onDidChangeConfiguration
(
e
=>
{
if
(
e
.
affectsConfiguration
(
'
editor
'
)
||
e
.
affectsConfiguration
(
ShowCellStatus
b
arKey
))
{
if
(
e
.
affectsConfiguration
(
'
editor
'
)
||
e
.
affectsConfiguration
(
ShowCellStatus
B
arKey
))
{
this
.
_value
=
computeEditorOptions
();
this
.
_onDidChange
.
fire
(
this
.
value
);
}
});
const
computeEditorOptions
=
()
=>
{
const
showCellStatusBar
=
configurationService
.
getValue
<
boolean
>
(
ShowCellStatus
b
arKey
);
const
showCellStatusBar
=
configurationService
.
getValue
<
boolean
>
(
ShowCellStatus
B
arKey
);
const
editorPadding
=
{
top
:
EDITOR_TOP_PADDING
,
bottom
:
showCellStatusBar
?
EDITOR_BOTTOM_PADDING
:
EDITOR_BOTTOM_PADDING_WITHOUT_STATUSBAR
...
...
src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.ts
浏览文件 @
5488efb4
...
...
@@ -14,7 +14,7 @@ import * as model from 'vs/editor/common/model';
import
{
SearchParams
}
from
'
vs/editor/common/model/textModelSearch
'
;
import
{
CELL_STATUSBAR_HEIGHT
,
EDITOR_TOP_PADDING
}
from
'
vs/workbench/contrib/notebook/browser/constants
'
;
import
{
CellEditState
,
CellFocusMode
,
CursorAtBoundary
,
CellViewModelStateChangeEvent
,
IEditableCellViewModel
,
INotebookCellDecorationOptions
}
from
'
vs/workbench/contrib/notebook/browser/notebookBrowser
'
;
import
{
CellKind
,
NotebookCellMetadata
,
NotebookDocumentMetadata
,
INotebookSearchOptions
,
ShowCellStatus
b
arKey
}
from
'
vs/workbench/contrib/notebook/common/notebookCommon
'
;
import
{
CellKind
,
NotebookCellMetadata
,
NotebookDocumentMetadata
,
INotebookSearchOptions
,
ShowCellStatus
B
arKey
}
from
'
vs/workbench/contrib/notebook/common/notebookCommon
'
;
import
{
NotebookCellTextModel
}
from
'
vs/workbench/contrib/notebook/common/model/notebookCellTextModel
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
...
...
@@ -125,14 +125,14 @@ export abstract class BaseCellViewModel extends Disposable {
}));
this
.
_register
(
this
.
_configurationService
.
onDidChangeConfiguration
(
e
=>
{
if
(
e
.
affectsConfiguration
(
ShowCellStatus
b
arKey
))
{
if
(
e
.
affectsConfiguration
(
ShowCellStatus
B
arKey
))
{
this
.
layoutChange
({});
}
}));
}
protected
getEditorStatusbarHeight
()
{
const
showCellStatusBar
=
this
.
_configurationService
.
getValue
<
boolean
>
(
ShowCellStatus
b
arKey
);
const
showCellStatusBar
=
this
.
_configurationService
.
getValue
<
boolean
>
(
ShowCellStatus
B
arKey
);
return
showCellStatusBar
?
CELL_STATUSBAR_HEIGHT
:
0
;
}
...
...
src/vs/workbench/contrib/notebook/common/notebookCommon.ts
浏览文件 @
5488efb4
...
...
@@ -817,7 +817,7 @@ export interface INotebookCellStatusBarEntry {
export
const
DisplayOrderKey
=
'
notebook.displayOrder
'
;
export
const
CellToolbarLocKey
=
'
notebook.cellToolbarLocation
'
;
export
const
ShowCellStatus
barKey
=
'
notebook.showCellStatusb
ar
'
;
export
const
ShowCellStatus
BarKey
=
'
notebook.showCellStatusB
ar
'
;
export
const
NotebookTextDiffEditorPreview
=
'
notebook.diff.enablePreview
'
;
export
const
enum
CellStatusbarAlignment
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录