-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
API request: Live Positions #8094
Comments
Yeah, our decorations are implemented like that |
The challenge here is that we don't sync decorations back to the extension host. We could do that proactively in case someone wants to read them and then provide synchronous read API. IMHO async read API would be unsuitable in this case. |
At least, I would like to see the API provide utility data structures that manage sets of ranges and sets of positions, allows updating them in response to a I've written this myself, but it is easy to get wrong, I imagine a bunch of extension authors would also find the functionality useful, and counting the line delta in a Then vscode would not have to directly provide the updated decorations to the extension, which I imagine raises some asynchrony issues because decorations tend to be updated well before the extension is done processing edit updates. |
This iteration we focus on issue grooming. This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
In the process of working on a Vim plugin for VSCode I've run into a number of areas where I need a little bit of API help. Apologies if any of my suggestions already exist!
Vim has the concept of marks, which are positions in the document that you can jump to from anywhere. They're like the Positions the API provides, but if you delete text from before the mark, the position of the mark will change.
It seems highly likely that you guys have something like this internally, and I think it would be disappointing (and possibly difficult) to roll my own. Help?
The text was updated successfully, but these errors were encountered: