@difizen/libro-lsp 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/adapters/adapter.js +12 -9
- package/es/adapters/notebook-adapter.js +6 -4
- package/es/adapters/status-message.js +2 -2
- package/es/connection-manager.js +10 -7
- package/es/connection.js +4 -3
- package/es/extractors/manager.js +2 -2
- package/es/extractors/text-extractor.js +2 -2
- package/es/feature.js +2 -2
- package/es/lsp-app-contribution.js +4 -4
- package/es/manager.js +6 -4
- package/es/monitor.js +2 -2
- package/es/utils.js +2 -2
- package/es/virtual/document.js +6 -5
- package/es/ws-connection/ws-connection.js +2 -2
- package/package.json +5 -5
package/es/adapters/adapter.js
CHANGED
|
@@ -13,8 +13,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
13
13
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
14
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
15
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
-
function _toPropertyKey(
|
|
17
|
-
function _toPrimitive(
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
18
|
// Copyright (c) Jupyter Development Team.
|
|
19
19
|
// Distributed under the terms of the Modified BSD License.
|
|
20
20
|
|
|
@@ -362,7 +362,7 @@ export var WidgetLSPAdapter = (_dec = injectable(), _dec(_class = /*#__PURE__*/f
|
|
|
362
362
|
}
|
|
363
363
|
}, {
|
|
364
364
|
key: "onConnected",
|
|
365
|
-
value:
|
|
365
|
+
value: (
|
|
366
366
|
/**
|
|
367
367
|
* Connect the virtual document with the language server.
|
|
368
368
|
*/
|
|
@@ -438,9 +438,10 @@ export var WidgetLSPAdapter = (_dec = injectable(), _dec(_class = /*#__PURE__*/f
|
|
|
438
438
|
* @param virtualDocument a VirtualDocument
|
|
439
439
|
* @param sendOpen whether to open the document immediately
|
|
440
440
|
*/
|
|
441
|
+
)
|
|
441
442
|
}, {
|
|
442
443
|
key: "connectDocument",
|
|
443
|
-
value: function () {
|
|
444
|
+
value: (function () {
|
|
444
445
|
var _connectDocument = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(virtualDocument) {
|
|
445
446
|
var sendOpen,
|
|
446
447
|
connectionContext,
|
|
@@ -474,6 +475,7 @@ export var WidgetLSPAdapter = (_dec = injectable(), _dec(_class = /*#__PURE__*/f
|
|
|
474
475
|
/**
|
|
475
476
|
* Create the virtual document using current path and language.
|
|
476
477
|
*/
|
|
478
|
+
)
|
|
477
479
|
}, {
|
|
478
480
|
key: "initVirtual",
|
|
479
481
|
value: function initVirtual() {
|
|
@@ -498,7 +500,7 @@ export var WidgetLSPAdapter = (_dec = injectable(), _dec(_class = /*#__PURE__*/f
|
|
|
498
500
|
*/
|
|
499
501
|
}, {
|
|
500
502
|
key: "onForeignDocumentOpened",
|
|
501
|
-
value: function () {
|
|
503
|
+
value: (function () {
|
|
502
504
|
var _onForeignDocumentOpened = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(context) {
|
|
503
505
|
var foreignDocument;
|
|
504
506
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -519,7 +521,7 @@ export var WidgetLSPAdapter = (_dec = injectable(), _dec(_class = /*#__PURE__*/f
|
|
|
519
521
|
return _onForeignDocumentOpened.apply(this, arguments);
|
|
520
522
|
}
|
|
521
523
|
return onForeignDocumentOpened;
|
|
522
|
-
}()
|
|
524
|
+
}())
|
|
523
525
|
}, {
|
|
524
526
|
key: "_onForeignDocumentClosed",
|
|
525
527
|
value:
|
|
@@ -538,7 +540,7 @@ export var WidgetLSPAdapter = (_dec = injectable(), _dec(_class = /*#__PURE__*/f
|
|
|
538
540
|
*/
|
|
539
541
|
}, {
|
|
540
542
|
key: "_connect",
|
|
541
|
-
value: function () {
|
|
543
|
+
value: (function () {
|
|
542
544
|
var _connect2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(virtualDocument) {
|
|
543
545
|
var language, capabilities, options, connection;
|
|
544
546
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -611,9 +613,10 @@ export var WidgetLSPAdapter = (_dec = injectable(), _dec(_class = /*#__PURE__*/f
|
|
|
611
613
|
* comparison of before/after states of the virtual documents, which is
|
|
612
614
|
* more resilient and editor-independent.
|
|
613
615
|
*/
|
|
616
|
+
)
|
|
614
617
|
}, {
|
|
615
618
|
key: "_onContentChanged",
|
|
616
|
-
value: function () {
|
|
619
|
+
value: (function () {
|
|
617
620
|
var _onContentChanged2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
618
621
|
var promise;
|
|
619
622
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
@@ -642,7 +645,7 @@ export var WidgetLSPAdapter = (_dec = injectable(), _dec(_class = /*#__PURE__*/f
|
|
|
642
645
|
return _onContentChanged2.apply(this, arguments);
|
|
643
646
|
}
|
|
644
647
|
return _onContentChanged;
|
|
645
|
-
}()
|
|
648
|
+
}())
|
|
646
649
|
}]);
|
|
647
650
|
return WidgetLSPAdapter;
|
|
648
651
|
}()) || _class);
|
|
@@ -10,8 +10,8 @@ function _initializerDefineProperty(target, property, descriptor, context) { if
|
|
|
10
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
function _toPropertyKey(
|
|
14
|
-
function _toPrimitive(
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
16
16
|
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
17
17
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
@@ -318,7 +318,7 @@ export var NotebookAdapter = (_dec = transient(), _dec2 = inject(VirtualDocument
|
|
|
318
318
|
*/
|
|
319
319
|
}, {
|
|
320
320
|
key: "onKernelChanged",
|
|
321
|
-
value: function () {
|
|
321
|
+
value: (function () {
|
|
322
322
|
var _onKernelChanged = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
323
323
|
var oldLanguageInfo, newLanguageInfo;
|
|
324
324
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -362,6 +362,7 @@ export var NotebookAdapter = (_dec = transient(), _dec2 = inject(VirtualDocument
|
|
|
362
362
|
/**
|
|
363
363
|
* Dispose the widget.
|
|
364
364
|
*/
|
|
365
|
+
)
|
|
365
366
|
}, {
|
|
366
367
|
key: "dispose",
|
|
367
368
|
value: function dispose() {
|
|
@@ -433,7 +434,7 @@ export var NotebookAdapter = (_dec = transient(), _dec2 = inject(VirtualDocument
|
|
|
433
434
|
*/
|
|
434
435
|
}, {
|
|
435
436
|
key: "_updateLanguageInfo",
|
|
436
|
-
value: function () {
|
|
437
|
+
value: (function () {
|
|
437
438
|
var _updateLanguageInfo2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
438
439
|
var _yield$this$notebookM, _this$notebookModel$k;
|
|
439
440
|
var language_info;
|
|
@@ -487,6 +488,7 @@ export var NotebookAdapter = (_dec = transient(), _dec2 = inject(VirtualDocument
|
|
|
487
488
|
* @param notebook - The notebook that emitted event
|
|
488
489
|
* @param cell - Changed cell.
|
|
489
490
|
*/
|
|
491
|
+
)
|
|
490
492
|
}, {
|
|
491
493
|
key: "_activeCellChanged",
|
|
492
494
|
value: function _activeCellChanged(libroModel) {
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
// Copyright (c) Jupyter Development Team.
|
|
8
8
|
// Distributed under the terms of the Modified BSD License.
|
|
9
9
|
|
package/es/connection-manager.js
CHANGED
|
@@ -14,8 +14,8 @@ function _initializerDefineProperty(target, property, descriptor, context) { if
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
16
16
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
function _toPropertyKey(
|
|
18
|
-
function _toPrimitive(
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
19
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
20
20
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
21
21
|
/* eslint-disable @typescript-eslint/no-shadow */
|
|
@@ -127,7 +127,7 @@ export var DocumentConnectionManager = (_dec = singleton({
|
|
|
127
127
|
*/
|
|
128
128
|
}, {
|
|
129
129
|
key: "connection",
|
|
130
|
-
value: function () {
|
|
130
|
+
value: (function () {
|
|
131
131
|
var _connection = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(language, languageServerId, uris, onCreate, capabilities) {
|
|
132
132
|
var connection, socket, _connection2;
|
|
133
133
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -159,7 +159,7 @@ export var DocumentConnectionManager = (_dec = singleton({
|
|
|
159
159
|
return _connection.apply(this, arguments);
|
|
160
160
|
}
|
|
161
161
|
return connection;
|
|
162
|
-
}()
|
|
162
|
+
}())
|
|
163
163
|
}, {
|
|
164
164
|
key: "updateServerConfiguration",
|
|
165
165
|
value: function updateServerConfiguration(languageServerId, settings) {
|
|
@@ -408,7 +408,7 @@ export var DocumentConnectionManager = (_dec = singleton({
|
|
|
408
408
|
}
|
|
409
409
|
}, {
|
|
410
410
|
key: "retryToConnect",
|
|
411
|
-
value:
|
|
411
|
+
value: (
|
|
412
412
|
/**
|
|
413
413
|
* Retry to connect to the server each `reconnectDelay` seconds
|
|
414
414
|
* and for `retrialsLeft` times.
|
|
@@ -473,6 +473,7 @@ export var DocumentConnectionManager = (_dec = singleton({
|
|
|
473
473
|
* Disconnect the connection to the language server of the requested
|
|
474
474
|
* language.
|
|
475
475
|
*/
|
|
476
|
+
)
|
|
476
477
|
}, {
|
|
477
478
|
key: "disconnect",
|
|
478
479
|
value: function disconnect(languageId) {
|
|
@@ -485,7 +486,7 @@ export var DocumentConnectionManager = (_dec = singleton({
|
|
|
485
486
|
*/
|
|
486
487
|
}, {
|
|
487
488
|
key: "connect",
|
|
488
|
-
value: function () {
|
|
489
|
+
value: (function () {
|
|
489
490
|
var _connect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(options) {
|
|
490
491
|
var firstTimeoutSeconds,
|
|
491
492
|
secondTimeoutMinutes,
|
|
@@ -557,6 +558,7 @@ export var DocumentConnectionManager = (_dec = singleton({
|
|
|
557
558
|
/**
|
|
558
559
|
* Disconnect the signals of requested virtual document uri.
|
|
559
560
|
*/
|
|
561
|
+
)
|
|
560
562
|
}, {
|
|
561
563
|
key: "unregisterDocument",
|
|
562
564
|
value: function unregisterDocument(uri) {
|
|
@@ -607,7 +609,7 @@ export var DocumentConnectionManager = (_dec = singleton({
|
|
|
607
609
|
*/
|
|
608
610
|
}, {
|
|
609
611
|
key: "_connectSocket",
|
|
610
|
-
value: function () {
|
|
612
|
+
value: (function () {
|
|
611
613
|
var _connectSocket2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(options) {
|
|
612
614
|
var language, capabilities, virtualDocument, uris, matchingServers, languageServerId, connection;
|
|
613
615
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -650,6 +652,7 @@ export var DocumentConnectionManager = (_dec = singleton({
|
|
|
650
652
|
/**
|
|
651
653
|
* Helper to apply callback on all documents of a connection.
|
|
652
654
|
*/
|
|
655
|
+
)
|
|
653
656
|
}, {
|
|
654
657
|
key: "_forEachDocumentOfConnection",
|
|
655
658
|
value: function _forEachDocumentOfConnection(connection, callback) {
|
package/es/connection.js
CHANGED
|
@@ -21,8 +21,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
21
21
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
22
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
23
23
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24
|
-
function _toPropertyKey(
|
|
25
|
-
function _toPrimitive(
|
|
24
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
25
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
26
|
/* eslint-disable @typescript-eslint/no-parameter-properties */
|
|
27
27
|
/* eslint-disable @typescript-eslint/parameter-properties */
|
|
28
28
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
@@ -364,7 +364,7 @@ export var LSPConnection = (_dec = transient(), _dec2 = inject(LSPMonitor), _dec
|
|
|
364
364
|
*/
|
|
365
365
|
}, {
|
|
366
366
|
key: "getCompletionResolve",
|
|
367
|
-
value: function () {
|
|
367
|
+
value: (function () {
|
|
368
368
|
var _getCompletionResolve = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(completionItem) {
|
|
369
369
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
370
370
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -391,6 +391,7 @@ export var LSPConnection = (_dec = transient(), _dec2 = inject(LSPMonitor), _dec
|
|
|
391
391
|
* List of documents waiting to be opened once the connection
|
|
392
392
|
* is ready.
|
|
393
393
|
*/
|
|
394
|
+
)
|
|
394
395
|
}, {
|
|
395
396
|
key: "constructNotificationHandlers",
|
|
396
397
|
value:
|
package/es/extractors/manager.js
CHANGED
|
@@ -3,8 +3,8 @@ var _dec, _class;
|
|
|
3
3
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4
4
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
5
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
-
function _toPropertyKey(
|
|
7
|
-
function _toPrimitive(
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
// Copyright (c) Jupyter Development Team.
|
|
9
9
|
// Distributed under the terms of the Modified BSD License.
|
|
10
10
|
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
// Copyright (c) Jupyter Development Team.
|
|
8
8
|
// Distributed under the terms of the Modified BSD License.
|
|
9
9
|
|
package/es/feature.js
CHANGED
|
@@ -6,8 +6,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
6
6
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7
7
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
8
8
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
9
|
-
function _toPropertyKey(
|
|
10
|
-
function _toPrimitive(
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
11
|
// Copyright (c) Jupyter Development Team.
|
|
12
12
|
// Distributed under the terms of the Modified BSD License.
|
|
13
13
|
|
|
@@ -7,8 +7,8 @@ function _initializerDefineProperty(target, property, descriptor, context) { if
|
|
|
7
7
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
8
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
9
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
-
function _toPropertyKey(
|
|
11
|
-
function _toPrimitive(
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
12
12
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
13
13
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
14
14
|
import { LibroService } from '@difizen/libro-core';
|
|
@@ -97,7 +97,7 @@ export var LSPAppContribution = (_dec = singleton({
|
|
|
97
97
|
*/
|
|
98
98
|
}, {
|
|
99
99
|
key: "activateNotebookLanguageServer",
|
|
100
|
-
value: function () {
|
|
100
|
+
value: (function () {
|
|
101
101
|
var _activateNotebookLanguageServer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(notebook) {
|
|
102
102
|
var adapter;
|
|
103
103
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -126,7 +126,7 @@ export var LSPAppContribution = (_dec = singleton({
|
|
|
126
126
|
return _activateNotebookLanguageServer.apply(this, arguments);
|
|
127
127
|
}
|
|
128
128
|
return activateNotebookLanguageServer;
|
|
129
|
-
}()
|
|
129
|
+
}())
|
|
130
130
|
}]);
|
|
131
131
|
return LSPAppContribution;
|
|
132
132
|
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "libroService", [_dec2], {
|
package/es/manager.js
CHANGED
|
@@ -14,8 +14,8 @@ function _initializerDefineProperty(target, property, descriptor, context) { if
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
16
16
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
function _toPropertyKey(
|
|
18
|
-
function _toPrimitive(
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
19
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
20
20
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
21
21
|
// Copyright (c) Jupyter Development Team.
|
|
@@ -151,7 +151,7 @@ export var LanguageServerManager = (_dec = transient(), _dec2 = inject(ServerCon
|
|
|
151
151
|
*/
|
|
152
152
|
}, {
|
|
153
153
|
key: "enable",
|
|
154
|
-
value: function () {
|
|
154
|
+
value: (function () {
|
|
155
155
|
var _enable = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
156
156
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
157
157
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -173,6 +173,7 @@ export var LanguageServerManager = (_dec = transient(), _dec2 = inject(ServerCon
|
|
|
173
173
|
/**
|
|
174
174
|
* Disable the language server services
|
|
175
175
|
*/
|
|
176
|
+
)
|
|
176
177
|
}, {
|
|
177
178
|
key: "disable",
|
|
178
179
|
value: function disable() {
|
|
@@ -266,7 +267,7 @@ export var LanguageServerManager = (_dec = transient(), _dec2 = inject(ServerCon
|
|
|
266
267
|
*/
|
|
267
268
|
}, {
|
|
268
269
|
key: "fetchSessions",
|
|
269
|
-
value: function () {
|
|
270
|
+
value: (function () {
|
|
270
271
|
var _fetchSessions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
271
272
|
var sessions, response, data, _i, _Object$keys, key, id, oldKeys, oldKey, oldId;
|
|
272
273
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -349,6 +350,7 @@ export var LanguageServerManager = (_dec = transient(), _dec2 = inject(ServerCon
|
|
|
349
350
|
/**
|
|
350
351
|
* Version number of sever session.
|
|
351
352
|
*/
|
|
353
|
+
)
|
|
352
354
|
}, {
|
|
353
355
|
key: "isMatchingSpec",
|
|
354
356
|
value:
|
package/es/monitor.js
CHANGED
|
@@ -3,8 +3,8 @@ var _dec, _class;
|
|
|
3
3
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4
4
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
5
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
-
function _toPropertyKey(
|
|
7
|
-
function _toPrimitive(
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
import { Emitter } from '@difizen/mana-app';
|
|
9
9
|
import { singleton } from '@difizen/mana-app';
|
|
10
10
|
export var LSPMonitor = (_dec = singleton(), _dec(_class = /*#__PURE__*/function () {
|
package/es/utils.js
CHANGED
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
8
8
|
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
9
9
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
package/es/virtual/document.js
CHANGED
|
@@ -21,8 +21,8 @@ function _initializerDefineProperty(target, property, descriptor, context) { if
|
|
|
21
21
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
22
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
23
23
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24
|
-
function _toPropertyKey(
|
|
25
|
-
function _toPrimitive(
|
|
24
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
25
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
26
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
27
27
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
28
28
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
@@ -1157,7 +1157,7 @@ export var UpdateManager = /*#__PURE__*/function () {
|
|
|
1157
1157
|
*/
|
|
1158
1158
|
}, {
|
|
1159
1159
|
key: "withUpdateLock",
|
|
1160
|
-
value: function () {
|
|
1160
|
+
value: (function () {
|
|
1161
1161
|
var _withUpdateLock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(fn) {
|
|
1162
1162
|
var _this2 = this;
|
|
1163
1163
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -1193,9 +1193,10 @@ export var UpdateManager = /*#__PURE__*/function () {
|
|
|
1193
1193
|
* and resolve a void promise. The promise does not contain the text value of the root document,
|
|
1194
1194
|
* as to avoid an easy trap of ignoring the changes in the virtual documents.
|
|
1195
1195
|
*/
|
|
1196
|
+
)
|
|
1196
1197
|
}, {
|
|
1197
1198
|
key: "updateDocuments",
|
|
1198
|
-
value: function () {
|
|
1199
|
+
value: (function () {
|
|
1199
1200
|
var _updateDocuments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(blocks) {
|
|
1200
1201
|
var _this3 = this;
|
|
1201
1202
|
var update;
|
|
@@ -1258,7 +1259,7 @@ export var UpdateManager = /*#__PURE__*/function () {
|
|
|
1258
1259
|
return _updateDocuments.apply(this, arguments);
|
|
1259
1260
|
}
|
|
1260
1261
|
return updateDocuments;
|
|
1261
|
-
}()
|
|
1262
|
+
}())
|
|
1262
1263
|
}, {
|
|
1263
1264
|
key: "_onUpdated",
|
|
1264
1265
|
value:
|
|
@@ -3,8 +3,8 @@ var _dec, _class;
|
|
|
3
3
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4
4
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
5
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
-
function _toPropertyKey(
|
|
7
|
-
function _toPrimitive(
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
/*
|
|
9
9
|
* Copyright (c) Jupyter Development Team.
|
|
10
10
|
* Distributed under the terms of the Modified BSD License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-lsp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@difizen/libro-core": "^0.1.
|
|
36
|
-
"@difizen/libro-kernel": "^0.1.
|
|
37
|
-
"@difizen/libro-common": "^0.1.
|
|
38
|
-
"@difizen/libro-code-editor": "^0.1.
|
|
35
|
+
"@difizen/libro-core": "^0.1.11",
|
|
36
|
+
"@difizen/libro-kernel": "^0.1.11",
|
|
37
|
+
"@difizen/libro-common": "^0.1.11",
|
|
38
|
+
"@difizen/libro-code-editor": "^0.1.11",
|
|
39
39
|
"@difizen/mana-app": "latest",
|
|
40
40
|
"lodash.mergewith": "^4.6.2",
|
|
41
41
|
"uuid": "^9.0.0",
|