Skip to content

Commit

Permalink
Added configurable debouncing update
Browse files Browse the repository at this point in the history
  • Loading branch information
NonSpicyBurrito committed Oct 13, 2022
1 parent f1d8e7f commit fc3235f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"description": "Maximum cursor count which hover information will be displayed (set to 0 for unlimited).\nDisplaying hover information for too many cursors may degrade editor performance.",
"type": "number",
"default": 3
},
"hoverlens.debounceUpdate": {
"description": "Debounce hover information update (set to 0 for no debounce).\nUpdating hover information too quickly may degrade editor performance.",
"type": "number",
"default": 50
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export function activate(context: vscode.ExtensionContext) {
])
)
},
() => 50
() =>
vscode.workspace
.getConfiguration('hoverlens')
.get('debounceUpdate', 50)
)

context.subscriptions.push(
Expand Down

0 comments on commit fc3235f

Please sign in to comment.