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

Feature request: Expose API to get the width and height of the text editors #211579

Open
xiyaowong opened this issue Apr 28, 2024 · 0 comments
Open
Assignees

Comments

@xiyaowong
Copy link

API to get width and height of:

  1. panels
  2. windows
  3. editors

Details

My current use case is the extension vscode-neovim. This extension integrates neovim into vscode to obtain a good vim mode experience. The basic mode of the extension is to synchronize highlight, text, cursor and other data in two directions. However, due to the lack of viewport APIs in vscode, the size of the viewport is currently hard-coded, and it is also difficult to achieve viewport scrolling synchronization.

Before this, someone filed a similar feature request #195406, but it was closed due to lack of votes. Hope this feature will be considered again.

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

No branches or pull requests

5 participants