-
Notifications
You must be signed in to change notification settings - Fork 29k
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
Why TabKindCustom
and TabKindNotebook
#145680
Comments
Obviously if you continue on this thought you could argue that even class TabKind {
readonly uri: Uri;
readonly viewType: string;
}
class TabKindDiff {
readonly original: Uri;
readonly modified: Uri;
readonly viewType: string;
} |
I had a similar suggestion but the idea here is in the future to possibly expose the notebook object through the tab for example if we wanted to. Also @jrieken didn't really like the idea of exposing vscode/src/vs/workbench/api/common/extHostDebugService.ts Lines 959 to 963 in 1f244e7
|
I don't think so: we already have (or have proposed) Assuming we merge notebook and custom editors into one Thinking about the name for |
Webviews cannot be opened via |
Hm, now that I took a look again into the API for extension, my statement was not right, we do indeed distinguish:
In that case it is probably fine to keep it the way it is and extension devs can understand the origin of each editor. Since terminals are also quite prominent in the API maybe we should prepare to have a tab kind for that one as well. |
💯 |
I am fine closing this issue, I have reported individual issues for introducing more kinds, but maybe we just wait with introducing the kinds until an extension author has asked for it? |
Testing #145585
I am not sure if we start to bleed our internal editor system as an extension API now. It is true that internally we mainly have 3 sources of editors:
But as a user or extension developer, is that really important? I wonder if custom and notebook should merge into one specific kind that provides more details about the editor kind via the
viewType
property?Besides, isn't a notebook editor a "custom" editor for a text file?
The text was updated successfully, but these errors were encountered: