-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
IOpenEditorOverrideHandler is very weird #117210
Comments
My hope is that maybe with #100281 all of this weird indirections could go away. |
Just for reference, the implementation of notebook's vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts Lines 322 to 476 in 65e2832
|
tab spying vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidgetServiceImpl.ts Line 74 in 1c755a4
|
@jrieken I have fixed the tab spying with an |
This "intermediary" service has been added and upon completion of #121668 this handler will go away all together. |
The handler is gone 👏 |
I feel
IOpenEditorOverrideHandler
is weird.Why does
open
return aIOpenEditorOverride | undefined
whereIOpenEditorOverride#override
is optional? Why can we not directly returnPromise<IEditorPane | undefined>
fromopen
.And what is the purpose of
getEditorOverrides
. It seems weird to me that a contributor can returnIOpenEditorOverrideEntry[]
but in theopen
call there are no traces anymore of what override entry was used.The text was updated successfully, but these errors were encountered: