diff --git a/lib/minimap-element.js b/lib/minimap-element.js index 31f2abb5..36013422 100644 --- a/lib/minimap-element.js +++ b/lib/minimap-element.js @@ -279,7 +279,7 @@ export default class MinimapElement { 'minimap.ignoreWhitespacesInTokens': (ignoreWhitespacesInTokens) => { this.ignoreWhitespacesInTokens = ignoreWhitespacesInTokens - this.requestForcedUpdate() + if (this.attached) { this.requestForcedUpdate() } }, 'editor.preferredLineLength': () => {