codemirror-languageservice
Version:
Integrate a Language Server Protocol compatible language service into CodeMirror
12 lines • 438 B
TypeScript
import { type EditorView } from '@codemirror/view';
import { type TextEdit } from 'vscode-languageserver-protocol';
/**
* Apply LSP text edits to an CodeMirror {@link EditorView}.
*
* @param view
* The view to dispatch the changes to.
* @param edits
* The edits that should be applied.
*/
export declare function dispatchTextEdits(view: EditorView, edits: Iterable<TextEdit>): undefined;
//# sourceMappingURL=text-edit.d.ts.map