alefragnani / vscode-bookmarks

Bookmarks Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
GNU General Public License v3.0
1.65k stars 161 forks source link

[BUG] - The previous bookmark will be deleted after the cell runs in vscode #667

Closed Malibu351 closed 7 months ago

Malibu351 commented 7 months ago

VScode Version: 1.84.2

If a cell changes from In[1] to In[2] after running, all the bookmarks at the beginning are deleted. I hope the bookmarks can be retained after running. This should be marked in the cell's source as bookmarks, but after running, the same cell will display a new source. Is there a solution to this?

1: I have two cells, and the first one has written some code

image

2: Run first cell image

3: Place the cursor in the second cell image

4: Return the cursor to the first cell and you can see that the bookmark has disappeared image

Here is the complete situation: test

alefragnani commented 7 months ago

Hi @Malibu351 ,

I'm sorry to say, but the extension still doesn't support Notebooks.

There is already an open issue requesting this in #531 , and I'm planning to take a look at this in the near future. I don't use Notebooks that much and the API to deal with text and positions is a bit different, compared to regular documents, so it will require a bit of work to support it.

Feel free to upvote and add comments on that issue.

Hope this helps