Fix #156477. Interactive Window Restore (#156480)

* Fix #156477. Interactive Window Restore

* Fix #156487. Update description
This commit is contained in:
Peng Lyu 2022-07-27 11:47:58 -07:00 committed by GitHub
parent 9b44eda62a
commit 9db76b0b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -283,7 +283,7 @@ export class InteractiveEditorSerializer implements IEditorSerializer {
}
canSerialize(): boolean {
return this.configurationService.getValue<boolean>(InteractiveWindowSetting.interactiveWindowHotExit);
return this.configurationService.getValue<boolean>(InteractiveWindowSetting.interactiveWindowRestore);
}
serialize(input: EditorInput): string {
@ -763,10 +763,10 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).regis
default: true,
markdownDescription: localize('interactiveWindow.alwaysScrollOnNewCell', "Automatically scroll the interactive window to show the output of the last statement executed. If this value is false, the window will only scroll if the last cell was already the one scrolled to.")
},
[InteractiveWindowSetting.interactiveWindowHotExit]: {
[InteractiveWindowSetting.interactiveWindowRestore]: {
type: 'boolean',
default: false,
markdownDescription: localize('interactiveWindow.hotExit', "Controls whether the interactive window sessions should be restored when the workspace reloads.")
markdownDescription: localize('interactiveWindow.restore', "Controls whether the Interactive Window sessions/history should be restored across window reloads. Whether the state of controllers used in Interactive Windows is persisted across window reloads are controlled by extensions contributing controllers.")
}
}
});

View File

@ -9,5 +9,5 @@ export const INTERACTIVE_INPUT_CURSOR_BOUNDARY = new RawContextKey<'none' | 'top
export const InteractiveWindowSetting = {
interactiveWindowAlwaysScrollOnNewCell: 'interactiveWindow.alwaysScrollOnNewCell',
interactiveWindowHotExit: 'interactiveWindow.hotExit'
interactiveWindowRestore: 'interactiveWindow.restore'
};