UNPKG

coc.nvim

Version:

LSP based intellisense engine for neovim & vim8.

14 lines (13 loc) 641 B
import { Disposable } from 'vscode-languageserver-protocol'; import { IWorkspace, TextDocumentWillSaveEvent } from '../types'; export declare type Callback = (event: TextDocumentWillSaveEvent) => void; export declare type PromiseCallback = (event: TextDocumentWillSaveEvent) => Promise<void>; export default class WillSaveUntilHandler { private workspace; private callbacks; constructor(workspace: IWorkspace); private readonly nvim; addCallback(callback: Callback, thisArg: any, clientId: string): Disposable; readonly hasCallback: boolean; handeWillSaveUntil(event: TextDocumentWillSaveEvent): Promise<void>; }