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 907f45d commit 6992462Copy full SHA for 6992462
lib/runtime/outline.js
@@ -18,7 +18,7 @@ export function activate (ink) {
18
subs.add(client.onDetached(() => pane.setItems([])))
19
20
let edSubs = new CompositeDisposable()
21
- subs.add(atom.workspace.onDidChangeActiveTextEditor(ed => {
+ subs.add(atom.workspace.onDidChangeActiveTextEditor(throttle(ed => {
22
if (!ed) return
23
24
edSubs.dispose()
@@ -65,7 +65,7 @@ export function activate (ink) {
65
}).then(outlineItems => {
66
outline = handleOutline(ed, edSubs, outlineItems)
67
})
68
- }))
+ }, 300)))
69
}
70
71
// NOTE: update outline and symbols cache all in one go
0 commit comments