Skip to content

Synchronize selection between text editor and webview #54

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

Open
SReichelt opened this issue May 12, 2020 · 0 comments
Open

Synchronize selection between text editor and webview #54

SReichelt opened this issue May 12, 2020 · 0 comments
Labels
component: vscode extension Issue concerns the Slate extension for Visual Studio Code enhancement New feature or request

Comments

@SReichelt
Copy link
Owner

Editing .slate files in the text editor would be easier if some info about highlighted text and items was exchanged between text editor and webview.

Idea:

  • The current editor selection should always be highlighted in the webview as well as possible.
  • When opening a menu or editing a variable name in the webview, the corresponding text should be selected in the editor.

This requires that the Slate instance running in the webview saves file ranges corresponding to all objects read from the file. These ranges must be updated when the file is changed by the webview itself.

@SReichelt SReichelt added enhancement New feature or request component: vscode extension Issue concerns the Slate extension for Visual Studio Code labels May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: vscode extension Issue concerns the Slate extension for Visual Studio Code enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant