This commit is contained in:
Aaron Munger
2023-09-22 12:01:46 -07:00
parent bad883bd6a
commit 44d8efafd8
3 changed files with 3 additions and 3 deletions

View File

@@ -1030,7 +1030,7 @@ configurationRegistry.registerConfiguration({
],
default: 'fullCell'
},
[NotebookSetting.anochorToFocusedCell]: {
[NotebookSetting.anchorToFocusedCell]: {
markdownDescription: nls.localize('notebook.scrolling.anchorToFocusedCell.description', "Keep the focused cell steady while surrounding cells change size"),
type: 'string',
enum: ['auto', 'true', 'false'],

View File

@@ -1205,7 +1205,7 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
const focused = this.getFocus();
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 anchorToFocusedCell = anchorFocusedSetting === 'true' || (allowScrolling && anchorFocusedSetting !== 'false');
if (focused && anchorToFocusedCell) {

View File

@@ -965,7 +965,7 @@ export const NotebookSetting = {
remoteSaving: 'notebook.experimental.remoteSave',
gotoSymbolsAllSymbols: 'notebook.gotoSymbols.showAllSymbols',
scrollToRevealCell: 'notebook.scrolling.revealCellBehavior',
anochorToFocusedCell: 'notebook.scrolling.anchorToFocusedCell'
anchorToFocusedCell: 'notebook.scrolling.anchorToFocusedCell'
} as const;
export const enum CellStatusbarAlignment {