Link Search Menu Expand Document

Ref

unction createConnection<PConsole = _, PTracer = _, PTelemetry = _, PClient = _, PWindow = _, PWorkspace = _, PLanguages = _>(
    factories: Features<PConsole, PTracer, PTelemetry, PClient, PWindow, PWorkspace, PLanguages>, strategy?: ConnectionStrategy
): Connection<PConsole, PTracer, PTelemetry, PClient, PWindow, PWorkspace, PLanguages>;
``

# Example

- source: https://github.com/dendronhq/dendron/blob/master/packages/lsp-server/src/index.ts#L28:L28

```ts
import { TextDocument } from "vscode-languageserver-textdocument";

let documents: TextDocuments<TextDocument> = new TextDocuments(TextDocument);

connection = createConnection(ProposedFeatures.all)
connection.onInitialize = {

}

documents.listen(connection);
connection.listen();


Table of contents


Copyright © 2020 Thence LLC