Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throttling #9

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

alastairsounds
Copy link

This pull request introduces several enhancements and improvements to the Visual Studio Code extension for displaying both absolute and relative line numbers. The main changes include the addition of delay functionality to improve performance, updates to the extension's configuration, and various code optimizations.

Enhancements and new features:

  • Added delay functionality to prevent re-rendering on repeated vim motions and included a delay configuration option in the extension settings (CHANGELOG.md, package.json, src/extension.ts). [1] [2] [3] [4] [5] [6] [7]

Configuration and documentation updates:

  • Updated package.json to version 0.1.4 and added delay configuration option. [1] [2]
  • Fixed a broken link in the README.md file.

Code optimizations and refactoring:

  • Introduced a debounce function to optimize the update of line number decorations and prevent unnecessary re-renders (src/extension.ts). [1] [2] [3] [4]
  • Updated the LineNumberManager class to use the new debounce function for various event handlers (src/extension.ts). [1] [2]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant