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

Remove the notebookEditorDecorationType api proposal #146838

Closed
3 tasks done
Tracked by #149861
mjbvz opened this issue Apr 5, 2022 · 16 comments · Fixed by #151574
Closed
3 tasks done
Tracked by #149861

Remove the notebookEditorDecorationType api proposal #146838

mjbvz opened this issue Apr 5, 2022 · 16 comments · Fixed by #151574
Assignees
Labels
api debt Code quality issues insiders-released Patch has been released in VS Code Insiders notebook
Milestone

Comments

@mjbvz
Copy link
Collaborator

mjbvz commented Apr 5, 2022

The notebookEditorDecorationType currently is not on track for finalization. In order to decide what to do with it, we would like to know how this api is currently being used and if there would be any big concerns around removing it

Here are the current consumers:

Please check if your extension is using this api. If it is, can you explain how the api is used today and if there are alternative approach you could use to implement the functionality?

@mjbvz mjbvz self-assigned this Apr 5, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Apr 5, 2022

We're using it here:
https://github.com/microsoft/vscode-jupyter/blob/bf9b966c06a976c4bfdefebc0eee4012da76bf82/src/interactive-window/interactiveWindow.node.ts#L666.

Personally I think we can just drop the usage. It's to give a background decoration to a cell when we scroll to it in the interactive window (which I think is kinda weird)

@mjbvz
Copy link
Collaborator Author

mjbvz commented Apr 5, 2022

Thanks @rchiodo! Should I open an issue against Jupyter tracking its removal?

@rchiodo
Copy link
Contributor

rchiodo commented Apr 5, 2022

Good idea. Just did :)

@mjbvz mjbvz modified the milestones: April 2022, May 2022 Apr 14, 2022
@mjbvz mjbvz changed the title Removing the notebookEditorDecorationType api proposal? Remove the notebookEditorDecorationType api proposal May 6, 2022
@mjbvz
Copy link
Collaborator Author

mjbvz commented May 10, 2022

Confirmed dot net is not using this

@mjbvz
Copy link
Collaborator Author

mjbvz commented May 10, 2022

Ah looks like Jupyter powertoys started using this now too? @rchiodo Can you please let me know if this was just copy/pasted over or if this is a real user

@rchiodo
Copy link
Contributor

rchiodo commented May 10, 2022

I don't think it is? The enabled list is this:

https://github.com/microsoft/vscode-jupyter-powertoys/blob/2dfc5d244f6259a4298d8b817c9b04d559f02fe1/package.json#L46

    "enabledApiProposals": [
        "notebookEditor",
        "notebookEditorEdit"
    ],

This issue is about the 'notebookEditorDecorationType', I think?

@mjbvz
Copy link
Collaborator Author

mjbvz commented May 10, 2022

Great! Thanks for confirming. I'll go ahead and update its list of proposed apis to match what I see in the package.json

@mjbvz mjbvz modified the milestones: May 2022, June 2022 May 16, 2022
@mjbvz
Copy link
Collaborator Author

mjbvz commented May 16, 2022

All consumers have now been removed but we'll hold of on removing this API until a new version of Jupyter is published

@mjbvz
Copy link
Collaborator Author

mjbvz commented Jun 7, 2022

@alyssajotice Can you please let me know if liveshare is using this api? It's not listed as an official consumer but @rebornix thought you may still be using it to render user names on cells

@alyssajotice
Copy link

Live Share does not use this API.

mjbvz added a commit to mjbvz/vscode that referenced this issue Jun 9, 2022
mjbvz added a commit that referenced this issue Jun 13, 2022
* Remove the notebookEditorDecorationType API proposal

Fixes #146838

* Remove all the infastructure around the now removed notebookEditorDecorationType api
@VSCodeTriageBot VSCodeTriageBot added the unreleased Patch has not yet been released in VS Code Insiders label Jun 13, 2022
@mjbvz
Copy link
Collaborator Author

mjbvz commented Jun 13, 2022

All users have now been removed and we've also removed the implementation

Thanks for the help everyone!

@VSCodeTriageBot VSCodeTriageBot added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Jun 14, 2022
@rdeline
Copy link
Contributor

rdeline commented Jun 14, 2022

I'm not an official customer, but we have a prototype in Microsoft Research that uses this feature to indicate which of several cell outputs is currently visible (eyeball below). Is there any suggested substitute for this feature?

image

@mjbvz
Copy link
Collaborator Author

mjbvz commented Jun 14, 2022

@rdeline Is the eyeball shown for a specific line or for the entire cell?

@rdeline
Copy link
Contributor

rdeline commented Jun 14, 2022

The eyeball is shown for a specific line (line 7 above). In this image, only line 7 has the decoration, but in general we allow users to select an arbitrary set of lines. If you're curious, there's an output render below the code (not shown) that is sensitive to which line(s) the user has selected. The output render shows visualizations specific to those chosen lines. (It makes our notebooks really compact, while still allowing quick access to every visual output.)

@mjbvz
Copy link
Collaborator Author

mjbvz commented Jun 14, 2022

@rebornix Would the standard editor decorators apis work for their use case?

@rebornix
Copy link
Member

@mjbvz @rdeline the editor decorations api is responsible for this feature, I don't think we need to use the notebook one.

@mjbvz mjbvz added the debt Code quality issues label Jun 27, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api debt Code quality issues insiders-released Patch has been released in VS Code Insiders notebook
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants