Skip to content

Commit 8d760ee

Browse files
authored
Pass resource when accessing VS Code settings (microsoft#8641)
* Pass in resource when accessing settings * News entry
1 parent d1e8906 commit 8d760ee

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎news/3 Code Health/8001.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pass resource when accessing VS Code settings.

‎src/client/datascience/interactive-ipynb/autoSaveService.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class AutoSaveService implements IInteractiveWindowListener {
9292
};
9393
}
9494
private onSettingsChanded(e: ConfigurationChangeEvent) {
95-
if (e.affectsConfiguration('files.autoSave') || e.affectsConfiguration('files.autoSaveDelay')) {
95+
if (e.affectsConfiguration('files.autoSave', this.notebookUri) || e.affectsConfiguration('files.autoSaveDelay', this.notebookUri)) {
9696
// Reset the timer, as we may have increased it, turned it off or other.
9797
this.clearTimeout();
9898
this.setTimer();

0 commit comments

Comments
 (0)