Skip to content

Commit 7136e10

Browse files
committed
Document IVirtualEditorType
1 parent d0aaa0d commit 7136e10

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/jupyterlab-lsp/src/editor_integration/editor_adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { CodeEditor } from '@jupyterlab/codeeditor';
55
import { VirtualDocument } from '../virtual/document';
66
import { until_ready } from '../utils';
77
import { IRootPosition } from '../positioning';
8-
import { create_console, EditorLogConsole } from "../virtual/console";
8+
import { create_console, EditorLogConsole } from '../virtual/console';
99

1010
export class EditorAdapter<T extends IVirtualEditor<IEditor>> {
1111
features: Map<string, IFeatureEditorIntegration<T>>;

packages/jupyterlab-lsp/src/tokens.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,17 @@ export interface ILSPAdapterManager {
129129
}
130130

131131
export interface IVirtualEditorType<T extends IEditor> {
132+
/**
133+
* The constructor of the IVirtualEditor<T> instance.
134+
*/
132135
implementation: IVirtualEditor.Constructor;
136+
/**
137+
* The name of the editor T.
138+
*/
133139
name: IEditorName;
140+
/**
141+
* The implementation of and editor being supported.
142+
*/
134143
supports: new (...args: any) => T;
135144
}
136145

0 commit comments

Comments
 (0)