mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
spelling
This commit is contained in:
@@ -1030,7 +1030,7 @@ configurationRegistry.registerConfiguration({
|
|||||||
],
|
],
|
||||||
default: 'fullCell'
|
default: 'fullCell'
|
||||||
},
|
},
|
||||||
[NotebookSetting.anochorToFocusedCell]: {
|
[NotebookSetting.anchorToFocusedCell]: {
|
||||||
markdownDescription: nls.localize('notebook.scrolling.anchorToFocusedCell.description', "Keep the focused cell steady while surrounding cells change size"),
|
markdownDescription: nls.localize('notebook.scrolling.anchorToFocusedCell.description', "Keep the focused cell steady while surrounding cells change size"),
|
||||||
type: 'string',
|
type: 'string',
|
||||||
enum: ['auto', 'true', 'false'],
|
enum: ['auto', 'true', 'false'],
|
||||||
|
|||||||
@@ -1205,7 +1205,7 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
|
|||||||
const focused = this.getFocus();
|
const focused = this.getFocus();
|
||||||
const focus = focused.length ? focused[0] : null;
|
const focus = focused.length ? focused[0] : null;
|
||||||
|
|
||||||
const anchorFocusedSetting = this.configurationService.getValue(NotebookSetting.anochorToFocusedCell);
|
const anchorFocusedSetting = this.configurationService.getValue(NotebookSetting.anchorToFocusedCell);
|
||||||
const allowScrolling = this.configurationService.getValue(NotebookSetting.scrollToRevealCell) !== 'none';
|
const allowScrolling = this.configurationService.getValue(NotebookSetting.scrollToRevealCell) !== 'none';
|
||||||
const anchorToFocusedCell = anchorFocusedSetting === 'true' || (allowScrolling && anchorFocusedSetting !== 'false');
|
const anchorToFocusedCell = anchorFocusedSetting === 'true' || (allowScrolling && anchorFocusedSetting !== 'false');
|
||||||
if (focused && anchorToFocusedCell) {
|
if (focused && anchorToFocusedCell) {
|
||||||
|
|||||||
@@ -965,7 +965,7 @@ export const NotebookSetting = {
|
|||||||
remoteSaving: 'notebook.experimental.remoteSave',
|
remoteSaving: 'notebook.experimental.remoteSave',
|
||||||
gotoSymbolsAllSymbols: 'notebook.gotoSymbols.showAllSymbols',
|
gotoSymbolsAllSymbols: 'notebook.gotoSymbols.showAllSymbols',
|
||||||
scrollToRevealCell: 'notebook.scrolling.revealCellBehavior',
|
scrollToRevealCell: 'notebook.scrolling.revealCellBehavior',
|
||||||
anochorToFocusedCell: 'notebook.scrolling.anchorToFocusedCell'
|
anchorToFocusedCell: 'notebook.scrolling.anchorToFocusedCell'
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const enum CellStatusbarAlignment {
|
export const enum CellStatusbarAlignment {
|
||||||
|
|||||||
Reference in New Issue
Block a user