mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
mimetype and remove revert.
This commit is contained in:
@@ -662,10 +662,6 @@ export class MainThreadNotebookController implements IMainNotebookController {
|
||||
const backupId = await this._proxy.$backup(this._viewType, uri, token);
|
||||
return backupId;
|
||||
}
|
||||
|
||||
async revert(uri: URI, token: CancellationToken): Promise<void> {
|
||||
return this._proxy.$revert(this._viewType, uri, token);
|
||||
}
|
||||
}
|
||||
|
||||
export class MainThreadNotebookKernel implements INotebookKernelInfo {
|
||||
|
||||
@@ -1586,7 +1586,6 @@ export interface ExtHostNotebookShape {
|
||||
$executeNotebook2(kernelId: string, viewType: string, uri: UriComponents, cellHandle: number | undefined, token: CancellationToken): Promise<void>;
|
||||
$saveNotebook(viewType: string, uri: UriComponents, token: CancellationToken): Promise<boolean>;
|
||||
$saveNotebookAs(viewType: string, uri: UriComponents, target: UriComponents, token: CancellationToken): Promise<boolean>;
|
||||
$revert(viewType: string, uri: UriComponents, cancellation: CancellationToken): Promise<void>;
|
||||
$backup(viewType: string, uri: UriComponents, cancellation: CancellationToken): Promise<string | undefined>;
|
||||
$acceptDisplayOrder(displayOrder: INotebookDisplayOrder): void;
|
||||
$renderOutputs(uriComponents: UriComponents, id: string, request: IOutputRenderRequest<UriComponents>): Promise<IOutputRenderResponse<UriComponents> | undefined>;
|
||||
|
||||
@@ -666,8 +666,8 @@ export class ExtHostNotebookOutputRenderer {
|
||||
}
|
||||
|
||||
matches(mimeType: string): boolean {
|
||||
if (this.filter.subTypes) {
|
||||
if (this.filter.subTypes.indexOf(mimeType) >= 0) {
|
||||
if (this.filter.mimeTypes) {
|
||||
if (this.filter.mimeTypes.indexOf(mimeType) >= 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user