We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ebe5a4 commit 622b60bCopy full SHA for 622b60b
src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.ts
@@ -82,6 +82,12 @@ export class SectionHeaderDetector extends Disposable implements IEditorContribu
82
this.computeSectionHeaders.schedule();
83
}));
84
85
+ this._register(editor.onDidChangeModelTokens((e) => {
86
+ if (!this.computeSectionHeaders.isScheduled()) {
87
+ this.computeSectionHeaders.schedule(1000);
88
+ }
89
+ }));
90
+
91
this.computeSectionHeaders = this._register(new RunOnceScheduler(() => {
92
this.findSectionHeaders();
93
}, 250));
0 commit comments