2 /* --------------------------------------------------------------------------------------------
3 * Copyright (c) Microsoft Corporation. All rights reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 * ------------------------------------------------------------------------------------------ */
6 var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7 if (k2 === undefined) k2 = k;
8 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9 }) : (function(o, m, k, k2) {
10 if (k2 === undefined) k2 = k;
13 var __exportStar = (this && this.__exportStar) || function(m, exports) {
14 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16 Object.defineProperty(exports, "__esModule", { value: true });
17 exports.createConnection = void 0;
18 const api_1 = require("../common/api");
19 __exportStar(require("vscode-languageserver-protocol/browser"), exports);
20 __exportStar(require("../common/api"), exports);
21 let _shutdownReceived = false;
23 initialize: (_params) => {
25 get shutdownReceived() {
26 return _shutdownReceived;
28 set shutdownReceived(value) {
29 _shutdownReceived = value;
34 function createConnection(arg1, arg2, arg3, arg4) {
39 if (arg1 !== void 0 && arg1.__brand === 'features') {
45 if (api_1.ConnectionStrategy.is(arg1) || api_1.ConnectionOptions.is(arg1)) {
53 const connectionFactory = (logger) => {
54 return api_1.createProtocolConnection(reader, writer, logger, options);
56 return api_1.createConnection(connectionFactory, watchDog, factories);
58 exports.createConnection = createConnection;
59 //# sourceMappingURL=main.js.map