Skip to content

Commit d1a6d20

Browse files
committed
More specific setting name
1 parent 2bd10fb commit d1a6d20

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,13 +1020,13 @@ configurationRegistry.registerConfiguration({
10201020
default: typeof product.quality === 'string' && product.quality !== 'stable' // only enable as default in insiders
10211021
},
10221022
[NotebookSetting.scrollToRevealCell]: {
1023-
markdownDescription: nls.localize('notebook.scrolling.revealCellBehavior.description', "How far to scroll when revealing the selected, e.g. when exectuting {0}.", 'notebook.cell.executeAndSelectBelow'),
1023+
markdownDescription: nls.localize('notebook.scrolling.revealNextCellOnExecute.description', "How far to scroll when revealing the next cell upon running {0}.", 'notebook.cell.executeAndSelectBelow'),
10241024
type: 'string',
10251025
enum: ['fullCell', 'firstLine', 'none'],
10261026
markdownEnumDescriptions: [
1027-
nls.localize('notebook.scrolling.revealCellBehavior.fullCell.description', 'Scroll to fully reveal the selected cell.'),
1028-
nls.localize('notebook.scrolling.revealCellBehavior.firstLine.description', 'Scroll to reveal the first line of the selected cell.'),
1029-
nls.localize('notebook.scrolling.revealCellBehavior.nonedescription', 'Do not scroll to reveal the selected cell.'),
1027+
nls.localize('notebook.scrolling.revealNextCellOnExecute.fullCell.description', 'Scroll to fully reveal the next cell.'),
1028+
nls.localize('notebook.scrolling.revealNextCellOnExecute.firstLine.description', 'Scroll to reveal the first line of the next cell.'),
1029+
nls.localize('notebook.scrolling.revealNextCellOnExecute.none.description', 'Do not scroll.'),
10301030
],
10311031
default: 'fullCell'
10321032
},

src/vs/workbench/contrib/notebook/common/notebookCommon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ export const NotebookSetting = {
964964
confirmDeleteRunningCell: 'notebook.confirmDeleteRunningCell',
965965
remoteSaving: 'notebook.experimental.remoteSave',
966966
gotoSymbolsAllSymbols: 'notebook.gotoSymbols.showAllSymbols',
967-
scrollToRevealCell: 'notebook.scrolling.revealCellBehavior',
967+
scrollToRevealCell: 'notebook.scrolling.revealNextCellOnExecute',
968968
anchorToFocusedCell: 'notebook.scrolling.experimental.anchorToFocusedCell'
969969
} as const;
970970

0 commit comments

Comments
 (0)