mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Refactoring and latex support.
This commit is contained in:
@@ -10,6 +10,7 @@ import { URI, UriComponents } from 'vs/base/common/uri';
|
||||
import { INotebookService, IMainNotebookController } from 'vs/workbench/contrib/notebook/browser/notebookService';
|
||||
import { INotebook, ICell, IOutput } from 'vs/editor/common/modes';
|
||||
import { Emitter, Event } from 'vs/base/common/event';
|
||||
import { IMarkdownString } from 'vs/base/common/htmlContent';
|
||||
|
||||
export class MainThreadCell implements ICell {
|
||||
private _onDidChangeOutputs = new Emitter<void>();
|
||||
@@ -368,6 +369,10 @@ export class MainThreadNotebookController implements IMainNotebookController {
|
||||
}
|
||||
}
|
||||
|
||||
async latexRenderer(value: string): Promise<IMarkdownString | undefined> {
|
||||
return this._proxy.$latexRenderer(this._viewType, value);
|
||||
}
|
||||
|
||||
async destoryNotebookDocument(notebook: INotebook): Promise<void> {
|
||||
let mainthreadNotebook = this._mapping.get(URI.from(notebook.uri).toString());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user