提交 dd89bd27 编写于 作者: J Johannes Rieken

localize strings, use category property. fyi @rebornix

上级 901b0423
......@@ -17,6 +17,7 @@ import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegis
import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
import { getActiveNotebookEditor } from 'vs/workbench/contrib/notebook/browser/contrib/coreActions';
import { localize } from 'vs/nls';
export class FoldingController extends Disposable implements INotebookEditorContribution {
static id: string = 'workbench.notebook.findController';
......@@ -133,7 +134,8 @@ registerAction2(class extends Action2 {
constructor() {
super({
id: 'notebook.fold',
title: 'Notebook Fold Cell',
title: localize('fold.cell', 'Fold Cell'),
category: localize('cat', "Notebook"),
keybinding: {
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)),
primary: KeyCode.LeftArrow,
......@@ -170,7 +172,8 @@ registerAction2(class extends Action2 {
constructor() {
super({
id: 'notebook.unfold',
title: 'Notebook Unfold Cell',
title: localize('unfold.cell', 'Unfold Cell'),
category: localize('cat', "Notebook"),
keybinding: {
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)),
primary: KeyCode.RightArrow,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册