mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
make getEditorById strict
This commit is contained in:
@@ -19,10 +19,6 @@ export class ExtHostNotebookRenderers implements ExtHostNotebookRenderersShape {
|
||||
|
||||
public $postRendererMessage(editorId: string, rendererId: string, message: unknown): void {
|
||||
const editor = this._extHostNotebook.getEditorById(editorId);
|
||||
if (!editor) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._rendererMessageEmitters.get(rendererId)?.fire({ editor: editor.apiEditor, message });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user