@difizen/libro-cofine-editor 0.1.10 → 0.1.12

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.
@@ -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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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 { CodeEditorContribution } from '@difizen/libro-code-editor';
9
9
  import { inject, singleton } from '@difizen/mana-app';
10
10
  import { libroE2DefaultConfig, LibroE2EditorFactory } from "./libro-e2-editor.js";
@@ -8,8 +8,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
8
8
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
9
  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); } }
10
10
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ 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); }
13
13
  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); }
14
14
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15
15
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -5,8 +5,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
5
5
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
6
  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); } }
7
7
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ 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); }
10
10
  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); }
11
11
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
12
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -4,8 +4,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
4
4
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
5
  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); } }
6
6
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ 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); }
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  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); }
11
11
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4,8 +4,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
4
4
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
5
  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); } }
6
6
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ 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); }
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  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); }
11
11
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5,8 +5,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
5
5
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
6
  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); } }
7
7
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ 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); }
10
10
  import { EditorCellView } from '@difizen/libro-core';
11
11
  import { LibroE2Editor } from "../../libro-e2-editor.js";
12
12
  export var LangaugeFeatureProvider = /*#__PURE__*/function () {
@@ -13,8 +13,8 @@ function _initializerDefineProperty(target, property, descriptor, context) { if
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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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
  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; }
19
19
  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.'); }
20
20
  import { EditorHandlerContribution, LanguageOptionsRegistry } from '@difizen/libro-cofine-editor-core';
@@ -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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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 _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); }
8
8
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -4,8 +4,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
4
4
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
5
  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); } }
6
6
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ 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); }
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  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); }
11
11
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -2,20 +2,18 @@ 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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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
  import { languages } from '@difizen/monaco-editor-core';
8
8
  import * as lsp from 'vscode-languageserver-protocol';
9
9
  var _from = new Map([[lsp.CompletionItemKind.Method, languages.CompletionItemKind.Method], [lsp.CompletionItemKind.Function, languages.CompletionItemKind.Function], [lsp.CompletionItemKind.Constructor, languages.CompletionItemKind.Constructor], [lsp.CompletionItemKind.Field, languages.CompletionItemKind.Field], [lsp.CompletionItemKind.Variable, languages.CompletionItemKind.Variable], [lsp.CompletionItemKind.Class, languages.CompletionItemKind.Class], [lsp.CompletionItemKind.Interface, languages.CompletionItemKind.Interface], [lsp.CompletionItemKind.Struct, languages.CompletionItemKind.Struct], [lsp.CompletionItemKind.Module, languages.CompletionItemKind.Module], [lsp.CompletionItemKind.Property, languages.CompletionItemKind.Property], [lsp.CompletionItemKind.Unit, languages.CompletionItemKind.Unit], [lsp.CompletionItemKind.Value, languages.CompletionItemKind.Value], [lsp.CompletionItemKind.Constant, languages.CompletionItemKind.Constant], [lsp.CompletionItemKind.Enum, languages.CompletionItemKind.Enum], [lsp.CompletionItemKind.EnumMember, languages.CompletionItemKind.EnumMember], [lsp.CompletionItemKind.Keyword, languages.CompletionItemKind.Keyword], [lsp.CompletionItemKind.Snippet, languages.CompletionItemKind.Snippet], [lsp.CompletionItemKind.Text, languages.CompletionItemKind.Text], [lsp.CompletionItemKind.Color, languages.CompletionItemKind.Color], [lsp.CompletionItemKind.File, languages.CompletionItemKind.File], [lsp.CompletionItemKind.Reference, languages.CompletionItemKind.Reference], [lsp.CompletionItemKind.Folder, languages.CompletionItemKind.Folder], [lsp.CompletionItemKind.Event, languages.CompletionItemKind.Event], [lsp.CompletionItemKind.Operator, languages.CompletionItemKind.Operator], [lsp.CompletionItemKind.TypeParameter, languages.CompletionItemKind.TypeParameter]
10
10
  // [lsp.CompletionItemKind.Issue, languages.CompletionItemKind.Issue],
11
11
  // [lsp.CompletionItemKind.User, languages.CompletionItemKind.User],
12
12
  ]);
13
-
14
13
  var _to = new Map([[languages.CompletionItemKind.Method, lsp.CompletionItemKind.Method], [languages.CompletionItemKind.Function, lsp.CompletionItemKind.Function], [languages.CompletionItemKind.Constructor, lsp.CompletionItemKind.Constructor], [languages.CompletionItemKind.Field, lsp.CompletionItemKind.Field], [languages.CompletionItemKind.Variable, lsp.CompletionItemKind.Variable], [languages.CompletionItemKind.Class, lsp.CompletionItemKind.Class], [languages.CompletionItemKind.Interface, lsp.CompletionItemKind.Interface], [languages.CompletionItemKind.Struct, lsp.CompletionItemKind.Struct], [languages.CompletionItemKind.Module, lsp.CompletionItemKind.Module], [languages.CompletionItemKind.Property, lsp.CompletionItemKind.Property], [languages.CompletionItemKind.Unit, lsp.CompletionItemKind.Unit], [languages.CompletionItemKind.Value, lsp.CompletionItemKind.Value], [languages.CompletionItemKind.Constant, lsp.CompletionItemKind.Constant], [languages.CompletionItemKind.Enum, lsp.CompletionItemKind.Enum], [languages.CompletionItemKind.EnumMember, lsp.CompletionItemKind.EnumMember], [languages.CompletionItemKind.Keyword, lsp.CompletionItemKind.Keyword], [languages.CompletionItemKind.Snippet, lsp.CompletionItemKind.Snippet], [languages.CompletionItemKind.Text, lsp.CompletionItemKind.Text], [languages.CompletionItemKind.Color, lsp.CompletionItemKind.Color], [languages.CompletionItemKind.File, lsp.CompletionItemKind.File], [languages.CompletionItemKind.Reference, lsp.CompletionItemKind.Reference], [languages.CompletionItemKind.Folder, lsp.CompletionItemKind.Folder], [languages.CompletionItemKind.Event, lsp.CompletionItemKind.Event], [languages.CompletionItemKind.Operator, lsp.CompletionItemKind.Operator], [languages.CompletionItemKind.TypeParameter, lsp.CompletionItemKind.TypeParameter]
15
14
  // [languages.CompletionItemKind.User, lsp.CompletionItemKind.User],
16
15
  // [languages.CompletionItemKind.Issue, lsp.CompletionItemKind.Issue],
17
16
  ]);
18
-
19
17
  export var CompletionItemKind = /*#__PURE__*/function () {
20
18
  function CompletionItemKind() {
21
19
  _classCallCheck(this, CompletionItemKind);
@@ -1,8 +1,8 @@
1
1
  var _BuiltinFunctionOptio;
2
2
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
3
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ 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); }
6
6
  /* eslint-disable no-irregular-whitespace */
7
7
 
8
8
  import { languages } from '@difizen/monaco-editor-core';
@@ -90,480 +90,480 @@ export function asMarkdownString(content) {
90
90
  value: "```".concat(language, "\n").concat(value, "\n```")
91
91
  };
92
92
  }
93
- export var BuiltinFunctionOptions = (_BuiltinFunctionOptio = {}, _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.__import__, {
93
+ export var BuiltinFunctionOptions = (_BuiltinFunctionOptio = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.__import__, {
94
94
  completionKind: languages.CompletionItemKind.Function,
95
95
  documentation: "__import__(name, globals=None, locals=None, fromlist=(), level=0) -> module\n\nImport a module. Because this function is meant for use by the Python\ninterpreter and not for general use, it is better to use\nimportlib.import_module() to programmatically import a module.\n\nThe globals argument is only used to determine the context;\nthey are not modified.  The locals argument is unused.  The fromlist\nshould be a list of names to emulate ``from name import ...'', or an\nempty list to emulate ``import name''.\nWhen importing a module from a package, note that __import__('A.B', ...)\nreturns package A when fromlist is empty, but its submodule B when\nfromlist is not empty.  The level argument is used to determine whether to\nperform absolute or relative imports: 0 is absolute, while a positive number\nis the number of parent directories to search relative to the current module.",
96
96
  hover: [{
97
97
  language: 'python',
98
98
  value: '__import__(name: Text, globals: Optional[Mapping[str, Any]]=..., locals: Optional[Mapping[str, Any]]=..., fromlist: Sequence[str]=..., level: int=...) -> Any'
99
99
  }]
100
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.abs, {
100
+ }), BuiltinFunctions.abs, {
101
101
  completionKind: languages.CompletionItemKind.Function,
102
102
  documentation: 'Return the absolute value of the argument.',
103
103
  hover: [{
104
104
  language: 'python',
105
105
  value: 'abs(n: SupportsAbs[_T], /) -> _T'
106
106
  }]
107
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.all, {
107
+ }), BuiltinFunctions.all, {
108
108
  completionKind: languages.CompletionItemKind.Function,
109
109
  documentation: 'Return True if bool(x) is True for all values x in the iterable.\n\nIf the iterable is empty, return True.',
110
110
  hover: [{
111
111
  language: 'python',
112
112
  value: 'all(i: Iterable[object], /) -> bool'
113
113
  }]
114
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.any, {
114
+ }), BuiltinFunctions.any, {
115
115
  completionKind: languages.CompletionItemKind.Function,
116
116
  documentation: 'Return True if bool(x) is True for any x in the iterable.\n\nIf the iterable is empty, return False.',
117
117
  hover: [{
118
118
  language: 'python',
119
119
  value: 'any(i: Iterable[object], /) -> bool'
120
120
  }]
121
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.ascii, {
121
+ }), BuiltinFunctions.ascii, {
122
122
  completionKind: languages.CompletionItemKind.Function,
123
123
  documentation: "Return an ASCII-only representation of an object.\n\nAs repr(), return a string containing a printable representation of an\nobject, but escape the non-ASCII characters in the string returned by\nrepr() using \\x, \\u or \\U escapes. This generates a string similar\nto that returned by repr() in Python 2.",
124
124
  hover: [{
125
125
  language: 'python',
126
126
  value: 'ascii(o: object, /) -> str'
127
127
  }]
128
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.bin, {
128
+ }), BuiltinFunctions.bin, {
129
129
  completionKind: languages.CompletionItemKind.Function,
130
130
  documentation: "Return the binary representation of an integer.\n\n>>> bin(2796202)\n'0b1010101010101010101010'",
131
131
  hover: [{
132
132
  language: 'python',
133
133
  value: 'bin(number: Union[int, _SupportsIndex], /) -> str'
134
134
  }]
135
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.bool, {
135
+ }), BuiltinFunctions.bool, {
136
136
  completionKind: languages.CompletionItemKind.Class,
137
137
  documentation: 'bool(x) -> bool\n\nReturns True when the argument x is true, False otherwise.\nThe builtins True and False are the only two instances of the class bool.\nThe class bool is a subclass of the class int, and cannot be subclassed.',
138
138
  hover: [{
139
139
  language: 'python',
140
140
  value: 'bool(o: object=...)'
141
141
  }]
142
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.bytearray, {
142
+ }), BuiltinFunctions.bytearray, {
143
143
  completionKind: languages.CompletionItemKind.Class,
144
144
  documentation: 'bytearray(iterable_of_ints) -> bytearray\nbytearray(string, encoding[, errors]) -> bytearray\nbytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer\nbytearray(int) -> bytes array of size given by the parameter initialized with null bytes\nbytearray() -> empty bytes array\n\nConstruct a mutable bytearray object from:\n  - an iterable yielding integers in range(256)\n  - a text string encoded using the specified encoding\n  - a bytes or a buffer object\n  - any object implementing the buffer API.\n  - an integer',
145
145
  hover: [{
146
146
  language: 'python',
147
147
  value: 'bytearray()'
148
148
  }]
149
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.bytes, {
149
+ }), BuiltinFunctions.bytes, {
150
150
  completionKind: languages.CompletionItemKind.Class,
151
151
  documentation: 'bytes(iterable_of_ints) -> bytes\nbytes(string, encoding[, errors]) -> bytes\nbytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer\nbytes(int) -> bytes object of size given by the parameter initialized with null bytes\nbytes() -> empty bytes object\n\nConstruct an immutable array of bytes from:\n  - an iterable yielding integers in range(256)\n  - a text string encoded using the specified encoding\n  - any object implementing the buffer API.\n  - an integer',
152
152
  hover: [{
153
153
  language: 'python',
154
154
  value: 'bytes(ints: Iterable[int])'
155
155
  }]
156
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.callable, {
156
+ }), BuiltinFunctions.callable, {
157
157
  completionKind: languages.CompletionItemKind.Function,
158
158
  documentation: 'Return whether the object is callable (i.e., some kind of function).\n\nNote that classes are callable, as are instances of classes with a\n__call__() method.',
159
159
  hover: [{
160
160
  language: 'python',
161
161
  value: 'callable(o: object, /) -> bool'
162
162
  }]
163
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.chr, {
163
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.chr, {
164
164
  completionKind: languages.CompletionItemKind.Function,
165
165
  documentation: 'Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff.',
166
166
  hover: [{
167
167
  language: 'python',
168
168
  value: 'chr(code: int, /) -> str'
169
169
  }]
170
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.classmethod, {
170
+ }), BuiltinFunctions.classmethod, {
171
171
  completionKind: languages.CompletionItemKind.Class,
172
172
  documentation: 'classmethod(function) -> method\n\nConvert a function to be a class method.\n\nA class method receives the class as implicit first argument,\njust like an instance method receives the instance.\nTo declare a class method, use this idiom:\n\n  class C:\n      @classmethod\n      def f(cls, arg1, arg2, ...):\n          ...\n\nIt can be called either on the class (e.g. C.f()) or on an instance\n(e.g. C().f()).  The instance is ignored except for its class.\nIf a class method is called for a derived class, the derived class\nobject is passed as the implied first argument.\n\nClass methods are different than C++ or Java static methods.\nIf you want those, see the staticmethod builtin.',
173
173
  hover: [{
174
174
  language: 'python',
175
175
  value: 'classmethod(f: Callable[..., Any])'
176
176
  }]
177
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.compile, {
177
+ }), BuiltinFunctions.compile, {
178
178
  completionKind: languages.CompletionItemKind.Function,
179
179
  documentation: "Compile source into a code object that can be executed by exec() or eval().\n\nThe source code may represent a Python module, statement or expression.\nThe filename will be used for run-time error messages.\nThe mode must be 'exec' to compile a module, 'single' to compile a\nsingle (interactive) statement, or 'eval' to compile an expression.\nThe flags argument, if present, controls which future statements influence\nthe compilation of the code.\nThe dont_inherit argument, if true, stops the compilation inheriting\nthe effects of any future statements in effect in the code calling\ncompile; if absent or false these statements do influence the compilation,\nin addition to any features explicitly specified.",
180
180
  hover: [{
181
181
  language: 'python',
182
182
  value: 'compile(source: Union[str, bytes, mod, AST], filename: Union[str, bytes], mode: str, flags: int=..., dont_inherit: int=..., optimize: int=...) -> Any'
183
183
  }]
184
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.complex, {
184
+ }), BuiltinFunctions.complex, {
185
185
  completionKind: languages.CompletionItemKind.Class,
186
186
  documentation: 'Create a complex number from a real part and an optional imaginary part.\n\nThis is equivalent to (real + imag*1j) where imag defaults to 0.',
187
187
  hover: [{
188
188
  language: 'python',
189
189
  value: 'complex(real: float=..., imag: float=...)'
190
190
  }]
191
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.delattr, {
191
+ }), BuiltinFunctions.delattr, {
192
192
  completionKind: languages.CompletionItemKind.Function,
193
193
  documentation: "Deletes the named attribute from the given object.\n\ndelattr(x, 'y') is equivalent to ``del x.y''",
194
194
  hover: [{
195
195
  language: 'python',
196
196
  value: 'delattr(o: Any, name: Text, /) -> None'
197
197
  }]
198
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.dict, {
198
+ }), BuiltinFunctions.dict, {
199
199
  completionKind: languages.CompletionItemKind.Class,
200
200
  documentation: "dict() -> new empty dictionary\ndict(mapping) -> new dictionary initialized from a mapping object's\n    (key, value) pairs\ndict(iterable) -> new dictionary initialized as if via:\n    d = {}\n    for k, v in iterable:\n        d[k] = v\ndict(**kwargs) -> new dictionary initialized with the name=value pairs\n    in the keyword argument list.  For example:  dict(one=1, two=2)",
201
201
  hover: [{
202
202
  language: 'python',
203
203
  value: 'dict(**kwargs: _VT)'
204
204
  }]
205
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.dir, {
205
+ }), BuiltinFunctions.dir, {
206
206
  completionKind: languages.CompletionItemKind.Function,
207
207
  documentation: "dir([object]) -> list of strings\n\nIf called without an argument, return the names in the current scope.\nElse, return an alphabetized list of names comprising (some of) the attributes\nof the given object, and of attributes reachable from it.\nIf the object supplies a method named __dir__, it will be used; otherwise\nthe default dir() logic is used and returns:\n  for a module object: the module's attributes.\n  for a class object:  its attributes, and recursively the attributes\n    of its bases.\n  for any other object: its attributes, its class's attributes, and\n    recursively the attributes of its class's base classes.",
208
208
  hover: [{
209
209
  language: 'python',
210
210
  value: 'dir(o: object=..., /) -> List[str]'
211
211
  }]
212
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.divmod, {
212
+ }), BuiltinFunctions.divmod, {
213
213
  completionKind: languages.CompletionItemKind.Function,
214
214
  hover: [{
215
215
  language: 'python',
216
216
  value: 'divmod(a: _N2, b: _N2, /) -> Tuple[_N2, _N2]'
217
217
  }],
218
218
  documentation: 'Return the tuple (x//y, x%y).  Invariant: div*y + mod == x.'
219
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.enumerate, {
219
+ }), BuiltinFunctions.enumerate, {
220
220
  completionKind: languages.CompletionItemKind.Function,
221
221
  documentation: 'Return an enumerate object.\n\n  iterable\n    an object supporting iteration\n\nThe enumerate object yields pairs containing a count (from start, which\ndefaults to zero) and a value yielded by the iterable argument.\n\nenumerate is useful for obtaining an indexed list:\n    (0, seq[0]), (1, seq[1]), (2, seq[2]), ...',
222
222
  hover: [{
223
223
  language: 'python',
224
224
  value: 'enumerate(iterable: Iterable[_T], start: int=...)'
225
225
  }]
226
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.eval, {
226
+ }), BuiltinFunctions.eval, {
227
227
  completionKind: languages.CompletionItemKind.Function,
228
228
  documentation: 'Evaluate the given source in the context of globals and locals.\n\nThe source may be a string representing a Python expression\nor a code object as returned by compile().\nThe globals must be a dictionary and locals can be any mapping,\ndefaulting to the current globals and locals.\nIf only globals is given, locals defaults to it.',
229
229
  hover: [{
230
230
  language: 'python',
231
231
  value: 'eval(source: Union[Text, bytes, CodeType], globals: Optional[Dict[str, Any]]=..., locals: Optional[Mapping[str, Any]]=..., /) -> Any'
232
232
  }]
233
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.exec, {
233
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.exec, {
234
234
  completionKind: languages.CompletionItemKind.Function,
235
235
  documentation: 'Execute the given source in the context of globals and locals.\n\nThe source may be a string representing one or more Python statements\nor a code object as returned by compile().\nThe globals must be a dictionary and locals can be any mapping,\ndefaulting to the current globals and locals.\nIf only globals is given, locals defaults to it.',
236
236
  hover: [{
237
237
  language: 'python',
238
238
  value: 'exec(object: Union[str, bytes, CodeType], globals: Optional[Dict[str, Any]]=..., locals: Optional[Mapping[str, Any]]=..., /) -> Any'
239
239
  }]
240
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.filter, {
240
+ }), BuiltinFunctions.filter, {
241
241
  completionKind: languages.CompletionItemKind.Function,
242
242
  documentation: 'filter(function or None, iterable) --> filter object\n\nReturn an iterator yielding those items of iterable for which function(item)\nis true. If function is None, return the items that are true.',
243
243
  hover: [{
244
244
  language: 'python',
245
245
  value: 'filter(function: None, iterable: Iterable[Optional[_T]], /) -> Iterator[_T]'
246
246
  }]
247
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.float, {
247
+ }), BuiltinFunctions.float, {
248
248
  completionKind: languages.CompletionItemKind.Class,
249
249
  documentation: 'Convert a string or number to a floating point number, if possible.',
250
250
  hover: [{
251
251
  language: 'python',
252
252
  value: 'float(x: Union[SupportsFloat, _SupportsIndex, Text, bytes, bytearray]=...)'
253
253
  }]
254
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.format, {
254
+ }), BuiltinFunctions.format, {
255
255
  completionKind: languages.CompletionItemKind.Function,
256
256
  documentation: "Return value.__format__(format_spec)\n\nformat_spec defaults to the empty string.\nSee the Format Specification Mini-Language section of help('FORMATTING') for\ndetails.",
257
257
  hover: [{
258
258
  language: 'python',
259
259
  value: 'format(o: object, format_spec: str=..., /) -> str'
260
260
  }]
261
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.frozenset, {
261
+ }), BuiltinFunctions.frozenset, {
262
262
  completionKind: languages.CompletionItemKind.Class,
263
263
  documentation: 'frozenset() -> empty frozenset object\nfrozenset(iterable) -> frozenset object\n\nBuild an immutable unordered collection of unique elements.',
264
264
  hover: [{
265
265
  language: 'python',
266
266
  value: 'frozenset(iterable: Iterable[_T]=...)'
267
267
  }]
268
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.getattr, {
268
+ }), BuiltinFunctions.getattr, {
269
269
  completionKind: languages.CompletionItemKind.Function,
270
270
  documentation: "getattr(object, name[, default]) -> value\n\nGet a named attribute from an object; getattr(x, 'y') is equivalent to x.y.\nWhen a default argument is given, it is returned when the attribute doesn't\nexist; without it, an exception is raised in that case.",
271
271
  hover: [{
272
272
  language: 'python',
273
273
  value: 'getattr(o: Any, /, name: Text, default: Any=..., /) -> Any'
274
274
  }]
275
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.globals, {
275
+ }), BuiltinFunctions.globals, {
276
276
  completionKind: languages.CompletionItemKind.Function,
277
277
  documentation: "Return the dictionary containing the current scope's global variables.\n\nNOTE: Updates to this dictionary *will* affect name lookups in the current\nglobal scope and vice-versa.",
278
278
  hover: [{
279
279
  language: 'python',
280
280
  value: 'globals() -> Dict[str, Any]'
281
281
  }]
282
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.hasattr, {
282
+ }), BuiltinFunctions.hasattr, {
283
283
  completionKind: languages.CompletionItemKind.Function,
284
284
  documentation: 'Return whether the object has an attribute with the given name.\n\nThis is done by calling getattr(obj, name) and catching AttributeError.',
285
285
  hover: [{
286
286
  language: 'python',
287
287
  value: 'hasattr(o: Any, name: Text, /) -> bool'
288
288
  }]
289
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.hash, {
289
+ }), BuiltinFunctions.hash, {
290
290
  completionKind: languages.CompletionItemKind.Function,
291
291
  documentation: 'Return whether the object has an attribute with the given name.\n\nThis is done by calling getattr(obj, name) and catching AttributeError.',
292
292
  hover: [{
293
293
  language: 'python',
294
294
  value: 'hasattr(o: Any, name: Text, /) -> bool'
295
295
  }]
296
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.help, {
296
+ }), BuiltinFunctions.help, {
297
297
  completionKind: languages.CompletionItemKind.Function,
298
298
  documentation: "Define the builtin 'help'.\n\nThis is a wrapper around pydoc.help that provides a helpful message\nwhen 'help' is typed at the Python interactive prompt.\n\nCalling help() at the Python prompt starts an interactive help session.\nCalling help(thing) prints help for the python object 'thing'.",
299
299
  hover: [{
300
300
  language: 'python',
301
301
  value: 'help(*args: Any, **kwds: Any) -> None'
302
302
  }]
303
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.hex, {
303
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.hex, {
304
304
  completionKind: languages.CompletionItemKind.Function,
305
305
  documentation: "Return the hexadecimal representation of an integer.\n\n>>> hex(12648430)\n'0xc0ffee'",
306
306
  hover: [{
307
307
  language: 'python',
308
308
  value: 'hex(i: Union[int, _SupportsIndex], /) -> str'
309
309
  }]
310
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.id, {
310
+ }), BuiltinFunctions.id, {
311
311
  completionKind: languages.CompletionItemKind.Function,
312
312
  documentation: "Return the identity of an object.\n\nThis is guaranteed to be unique among simultaneously existing objects.\n(CPython uses the object's memory address.)",
313
313
  hover: [{
314
314
  language: 'python',
315
315
  value: 'id(o: object, /) -> int'
316
316
  }]
317
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.input, {
317
+ }), BuiltinFunctions.input, {
318
318
  completionKind: languages.CompletionItemKind.Function,
319
319
  documentation: 'Read a string from standard input.  The trailing newline is stripped.\n\nThe prompt string, if given, is printed to standard output without a\ntrailing newline before reading input.\n\nIf the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.\nOn *nix systems, readline is used if available.',
320
320
  hover: [{
321
321
  language: 'python',
322
322
  value: 'input(prompt: Any=..., /) -> str'
323
323
  }]
324
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.int, {
324
+ }), BuiltinFunctions.int, {
325
325
  completionKind: languages.CompletionItemKind.Class,
326
326
  documentation: "int([x]) -> integer\nint(x, base=10) -> integer\n\nConvert a number or string to an integer, or return 0 if no arguments\nare given.  If x is a number, return x.__int__().  For floating point\nnumbers, this truncates towards zero.\n\nIf x is not a number or if base is given, then x must be a string,\nbytes, or bytearray instance representing an integer literal in the\ngiven base.  The literal can be preceded by '+' or '-' and be surrounded\nby whitespace.  The base defaults to 10.  Valid bases are 0 and 2-36.\nBase 0 means to interpret the base from the string as an integer literal.\n>>> int('0b100', base=0)\n4",
327
327
  hover: [{
328
328
  language: 'python',
329
329
  value: 'int(x: Union[Text, bytes, SupportsInt, _SupportsIndex]=...)'
330
330
  }]
331
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.isinstance, {
331
+ }), BuiltinFunctions.isinstance, {
332
332
  completionKind: languages.CompletionItemKind.Function,
333
333
  hover: [{
334
334
  language: 'python',
335
335
  value: 'isinstance(o: object, t: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]], /) -> bool'
336
336
  }],
337
337
  documentation: 'Return whether an object is an instance of a class or of a subclass thereof.\n\nA tuple, as in ``isinstance(x, (A, B, ...))``, may be given as the target to\ncheck against. This is equivalent to ``isinstance(x, A) or isinstance(x, B)\nor ...`` etc.'
338
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.issubclass, {
338
+ }), BuiltinFunctions.issubclass, {
339
339
  completionKind: languages.CompletionItemKind.Function,
340
340
  documentation: "Return whether 'cls' is a derived from another class or is the same class.\n\nA tuple, as in ``issubclass(x, (A, B, ...))``, may be given as the target to\ncheck against. This is equivalent to ``issubclass(x, A) or issubclass(x, B)\nor ...`` etc.",
341
341
  hover: [{
342
342
  language: 'python',
343
343
  value: 'issubclass(cls: type, classinfo: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]], /) -> bool'
344
344
  }]
345
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.iter, {
345
+ }), BuiltinFunctions.iter, {
346
346
  completionKind: languages.CompletionItemKind.Function,
347
347
  documentation: 'iter(iterable) -> iterator\niter(callable, sentinel) -> iterator\n\nGet an iterator from an object.  In the first form, the argument must\nsupply its own iterator, or be a sequence.\nIn the second form, the callable is called until it returns the sentinel.',
348
348
  hover: [{
349
349
  language: 'python',
350
350
  value: 'iter(iterable: Iterable[_T], /) -> Iterator[_T]'
351
351
  }]
352
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.len, {
352
+ }), BuiltinFunctions.len, {
353
353
  completionKind: languages.CompletionItemKind.Function,
354
354
  documentation: 'Return the number of items in a container.',
355
355
  hover: [{
356
356
  language: 'python',
357
357
  value: 'len(o: Sized, /) -> int'
358
358
  }]
359
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.list, {
359
+ }), BuiltinFunctions.list, {
360
360
  completionKind: languages.CompletionItemKind.Class,
361
361
  documentation: 'Built-in mutable sequence.\n\nIf no argument is given, the constructor creates a new empty list.\nThe argument must be an iterable if specified.',
362
362
  hover: [{
363
363
  language: 'python',
364
364
  value: 'list()'
365
365
  }]
366
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.locals, {
366
+ }), BuiltinFunctions.locals, {
367
367
  completionKind: languages.CompletionItemKind.Function,
368
368
  documentation: "Return a dictionary containing the current scope's local variables.\n\nNOTE: Whether or not updates to this dictionary will affect name lookups in\nthe local scope and vice-versa is *implementation dependent* and not\ncovered by any backwards compatibility guarantees.",
369
369
  hover: [{
370
370
  language: 'python',
371
371
  value: 'locals() -> Dict[str, Any]'
372
372
  }]
373
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.map, {
373
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.map, {
374
374
  completionKind: languages.CompletionItemKind.Function,
375
375
  documentation: 'map(func, *iterables) --> map object\n\nMake an iterator that computes the function using arguments from\neach of the iterables.  Stops when the shortest iterable is exhausted.',
376
376
  hover: [{
377
377
  language: 'python',
378
378
  value: 'map(func: Callable[[_T1], _S], iter1: Iterable[_T1], /) -> Iterator[_S]'
379
379
  }]
380
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.max, {
380
+ }), BuiltinFunctions.max, {
381
381
  completionKind: languages.CompletionItemKind.Function,
382
382
  documentation: 'max(iterable, *[, default=obj, key=func]) -> value\nmax(arg1, arg2, *args, *[, key=func]) -> value\n\nWith a single iterable argument, return its biggest item. The\ndefault keyword-only argument specifies an object to return if\nthe provided iterable is empty.\nWith two or more arguments, return the largest argument.',
383
383
  hover: [{
384
384
  language: 'python',
385
385
  value: 'max(arg1: _T, arg2: _T, /, *_args: _T, key: Callable[[_T], Any]=...) -> _T'
386
386
  }]
387
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.memoryview, {
387
+ }), BuiltinFunctions.memoryview, {
388
388
  completionKind: languages.CompletionItemKind.Function,
389
389
  documentation: 'Create a new memoryview object which references the given object.',
390
390
  hover: [{
391
391
  language: 'python',
392
392
  value: 'memoryview(obj: Union[bytes, bytearray, memoryview])'
393
393
  }]
394
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.min, {
394
+ }), BuiltinFunctions.min, {
395
395
  completionKind: languages.CompletionItemKind.Function,
396
396
  documentation: 'min(iterable, *[, default=obj, key=func]) -> value\nmin(arg1, arg2, *args, *[, key=func]) -> value\n\nWith a single iterable argument, return its smallest item. The\ndefault keyword-only argument specifies an object to return if\nthe provided iterable is empty.\nWith two or more arguments, return the smallest argument.',
397
397
  hover: [{
398
398
  language: 'python',
399
399
  value: 'min(arg1: _T, arg2: _T, /, *_args: _T, key: Callable[[_T], Any]=...) -> _T'
400
400
  }]
401
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.next, {
401
+ }), BuiltinFunctions.next, {
402
402
  completionKind: languages.CompletionItemKind.Function,
403
403
  documentation: 'next(iterator[, default])\n\nReturn the next item from the iterator. If default is given and the iterator\nis exhausted, it is returned instead of raising StopIteration.',
404
404
  hover: [{
405
405
  language: 'python',
406
406
  value: 'next(i: Iterator[_T], /) -> _T'
407
407
  }]
408
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.object, {
408
+ }), BuiltinFunctions.object, {
409
409
  completionKind: languages.CompletionItemKind.Class,
410
410
  documentation: 'The most base type',
411
411
  hover: [{
412
412
  language: 'python',
413
413
  value: 'object()'
414
414
  }]
415
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.oct, {
415
+ }), BuiltinFunctions.oct, {
416
416
  completionKind: languages.CompletionItemKind.Function,
417
417
  documentation: "Return the octal representation of an integer.\n\n>>> oct(342391)\n'0o1234567'",
418
418
  hover: [{
419
419
  language: 'python',
420
420
  value: 'oct(i: Union[int, _SupportsIndex], /) -> str'
421
421
  }]
422
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.open, {
422
+ }), BuiltinFunctions.open, {
423
423
  completionKind: languages.CompletionItemKind.Function,
424
424
  documentation: "Open file and return a stream.  Raise OSError upon failure.\n\nfile is either a text or byte string giving the name (and the path\nif the file isn't in the current working directory) of the file to\nbe opened or an integer file descriptor of the file to be\nwrapped. (If a file descriptor is given, it is closed when the\nreturned I/O object is closed, unless closefd is set to False.)\n\nmode is an optional string that specifies the mode in which the file\nis opened. It defaults to 'r' which means open for reading in text\nmode.  Other common values are 'w' for writing (truncating the file if\nit already exists), 'x' for creating and writing to a new file, and\n'a' for appending (which on some Unix systems, means that all writes\nappend to the end of the file regardless of the current seek position).\nIn text mode, if encoding is not specified the encoding used is platform\ndependent: locale.getpreferredencoding(False) is called to get the\ncurrent locale encoding. (For reading and writing raw bytes use binary\nmode and leave encoding unspecified.) The available modes are:\n\n========= ===============================================================\nCharacter Meaning\n--------- ---------------------------------------------------------------\n'r'       open for reading (default)\n'w'       open for writing, truncating the file first\n'x'       create a new file and open it for writing\n'a'       open for writing, appending to the end of the file if it exists\n'b'       binary mode\n't'       text mode (default)\n'+'       open a disk file for updating (reading and writing)\n'U'       universal newline mode (deprecated)\n========= ===============================================================\n\nThe default mode is 'rt' (open for reading text). For binary random\naccess, the mode 'w+b' opens and truncates the file to 0 bytes, while\n'r+b' opens the file without truncation. The 'x' mode implies 'w' and\nraises an `FileExistsError` if the file already exists.\n\nPython distinguishes between files opened in binary and text modes,\neven when the underlying operating system doesn't. Files opened in\nbinary mode (appending 'b' to the mode argument) return contents as\nbytes objects without any decoding. In text mode (the default, or when\n't' is appended to the mode argument), the contents of the file are\nreturned as strings, the bytes having been first decoded using a\nplatform-dependent encoding or using the specified encoding if given.\n\n'U' mode is deprecated and will raise an exception in future versions\nof Python.  It has no effect in Python 3.  Use newline to control\nuniversal newlines mode.\n\nbuffering is an optional integer used to set the buffering policy.\nPass 0 to switch buffering off (only allowed in binary mode), 1 to select\nline buffering (only usable in text mode), and an integer > 1 to indicate\nthe size of a fixed-size chunk buffer.  When no buffering argument is\ngiven, the default buffering policy works as follows:\n\n* Binary files are buffered in fixed-size chunks; the size of the buffer\n  is chosen using a heuristic trying to determine the underlying device's\n  \"block size\" and falling back on `io.DEFAULT_BUFFER_SIZE`.\n  On many systems, the buffer will typically be 4096 or 8192 bytes long.\n\n* \"Interactive\" text files (files for which isatty() returns True)\n  use line buffering.  Other text files use the policy described above\n  for binary files.\n\nencoding is the name of the encoding used to decode or encode the\nfile. This should only be used in text mode. The default encoding is\nplatform dependent, but any encoding supported by Python can be\npassed.  See the codecs module for the list of supported encodings.\n\nerrors is an optional string that specifies how encoding errors are to\nbe handled---this argument should not be used in binary mode. Pass\n'strict' to raise a ValueError exception if there is an encoding error\n(the default of None has the same effect), or pass 'ignore' to ignore\nerrors. (Note that ignoring encoding errors can lead to data loss.)\nSee the documentation for codecs.register or run 'help(codecs.Codec)'\nfor a list of the permitted encoding error strings.\n\nnewline controls how universal newlines works (it only applies to text\nmode). It can be None, '', '\n', '\r', and '\r\n'.  It works as\nfollows:\n\n* On input, if newline is None, universal newlines mode is\n  enabled. Lines in the input can end in '\n', '\r', or '\r\n', and\n  these are translated into '\n' before being returned to the\n  caller. If it is '', universal newline mode is enabled, but line\n  endings are returned to the caller untranslated. If it has any of\n  the other legal values, input lines are only terminated by the given\n  string, and the line ending is returned to the caller untranslated.\n\n* On output, if newline is None, any '\n' characters written are\n  translated to the system default line separator, os.linesep. If\n  newline is '' or '\n', no translation takes place. If newline is any\n  of the other legal values, any '\n' characters written are translated\n  to the given string.\n\nIf closefd is False, the underlying file descriptor will be kept open\nwhen the file is closed. This does not work when a file name is given\nand must be True in that case.\n\nA custom opener can be used by passing a callable as *opener*. The\nunderlying file descriptor for the file object is then obtained by\ncalling *opener* with (*file*, *flags*). *opener* must return an open\nfile descriptor (passing os.open as *opener* results in functionality\nsimilar to passing None).\n\nopen() returns a file object whose type depends on the mode, and\nthrough which the standard file operations such as reading and writing\nare performed. When open() is used to open a file in a text mode ('w',\n'r', 'wt', 'rt', etc.), it returns a TextIOWrapper. When used to open\na file in a binary mode, the returned class varies: in read binary\nmode, it returns a BufferedReader; in write binary and append binary\nmodes, it returns a BufferedWriter, and in read/write mode, it returns\na BufferedRandom.\n\nIt is also possible to use a string or bytearray as a file for both\nreading and writing. For strings StringIO can be used like a file\nopened in a text mode, and for bytes a BytesIO can be used like a file\nopened in a binary mode.",
425
425
  hover: [{
426
426
  language: 'python',
427
427
  value: 'open(file: Union[str, bytes, int], mode: str=..., buffering: int=..., encoding: Optional[str]=..., errors: Optional[str]=..., newline: Optional[str]=..., closefd: bool=..., opener: Optional[Callable[[str, int], int]]=...) -> IO[Any]'
428
428
  }]
429
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.ord, {
429
+ }), BuiltinFunctions.ord, {
430
430
  completionKind: languages.CompletionItemKind.Function,
431
431
  hover: [{
432
432
  language: 'python',
433
433
  value: 'ord(c: Union[Text, bytes], /) -> int'
434
434
  }],
435
435
  documentation: 'Return the Unicode code point for a one-character string.'
436
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.pow, {
436
+ }), BuiltinFunctions.pow, {
437
437
  completionKind: languages.CompletionItemKind.Function,
438
438
  documentation: 'Equivalent to x**y (with two arguments) or x**y % z (with three arguments)\n\nSome types, such as ints, are able to use a more efficient algorithm when\ninvoked using the three argument form.',
439
439
  hover: [{
440
440
  language: 'python',
441
441
  value: 'pow(x: int, y: int, /) -> Any'
442
442
  }]
443
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.print, {
443
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.print, {
444
444
  completionKind: languages.CompletionItemKind.Function,
445
445
  documentation: "print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)\n\nPrints the values to a stream, or to sys.stdout by default.\nOptional keyword arguments:\nfile:  a file-like object (stream); defaults to the current sys.stdout.\nsep:   string inserted between values, default a space.\nend:   string appended after the last value, default a newline.\nflush: whether to forcibly flush the stream.",
446
446
  hover: [{
447
447
  language: 'python',
448
448
  value: 'print(*values: object, sep: Optional[Text]=..., end: Optional[Text]=..., file: Optional[_Writer]=..., flush: bool=...) -> None'
449
449
  }]
450
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.property, {
450
+ }), BuiltinFunctions.property, {
451
451
  completionKind: languages.CompletionItemKind.Class,
452
452
  documentation: "Property attribute.\n\n\xA0\xA0fget\n\xA0\xA0\xA0\xA0function to be used for getting an attribute value\n\xA0\xA0fset\n\xA0\xA0\xA0\xA0function to be used for setting an attribute value\n\xA0\xA0fdel\n\xA0\xA0\xA0\xA0function to be used for del'ing an attribute\n\xA0\xA0doc\n\xA0\xA0\xA0\xA0docstring\n\nTypical use is to define a managed attribute x:\n\nclass C(object):\n\xA0\xA0\xA0\xA0def getx(self): return self._x\n\xA0\xA0\xA0\xA0def setx(self, value): self._x = value\n\xA0\xA0\xA0\xA0def delx(self): del self._x\n\xA0\xA0\xA0\xA0x = property(getx, setx, delx, \"I'm the 'x' property.\")\n\nDecorators make defining new properties or modifying existing ones easy:\n\nclass C(object):\n\xA0\xA0\xA0\xA0@property\n\xA0\xA0\xA0\xA0def x(self):\n\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\"I am the 'x' property.\"\n\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0return self._x\n\xA0\xA0\xA0\xA0@x.setter\n\xA0\xA0\xA0\xA0def x(self, value):\n\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0self._x = value\n\xA0\xA0\xA0\xA0@x.deleter\n\xA0\xA0\xA0\xA0def x(self):\n\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0del self._x",
453
453
  hover: [{
454
454
  language: 'python',
455
455
  value: 'property(fget: Optional[Callable[[Any], Any]]=..., fset: Optional[Callable[[Any, Any], None]]=..., fdel: Optional[Callable[[Any], None]]=..., doc: Optional[str]=...)'
456
456
  }]
457
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.range, {
457
+ }), BuiltinFunctions.range, {
458
458
  completionKind: languages.CompletionItemKind.Function,
459
459
  documentation: 'range(stop) -> range object\nrange(start, stop[, step]) -> range object\n\nReturn an object that produces a sequence of integers from start (inclusive)\nto stop (exclusive) by step.  range(i, j) produces i, i+1, i+2, ..., j-1.\nstart defaults to 0, and stop is omitted!  range(4) produces 0, 1, 2, 3.\nThese are exactly the valid indices for a list of 4 elements.\nWhen step is given, it specifies the increment (or decrement).',
460
460
  hover: [{
461
461
  language: 'python',
462
462
  value: 'range(stop: int)'
463
463
  }]
464
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.repr, {
464
+ }), BuiltinFunctions.repr, {
465
465
  completionKind: languages.CompletionItemKind.Function,
466
466
  documentation: 'Return the canonical string representation of the object.\n\nFor many object types, including most builtins, eval(repr(obj)) == obj.',
467
467
  hover: [{
468
468
  language: 'python',
469
469
  value: 'repr(o: object, /) -> str'
470
470
  }]
471
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.reversed, {
471
+ }), BuiltinFunctions.reversed, {
472
472
  completionKind: languages.CompletionItemKind.Function,
473
473
  documentation: 'Return a reverse iterator over the values of the given sequence.',
474
474
  hover: [{
475
475
  language: 'python',
476
476
  value: 'reversed(object: Sequence[_T], /) -> Iterator[_T]'
477
477
  }]
478
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.round, {
478
+ }), BuiltinFunctions.round, {
479
479
  completionKind: languages.CompletionItemKind.Function,
480
480
  documentation: 'Round a number to a given precision in decimal digits.\n\nThe return value is an integer if ndigits is omitted or None.  Otherwise\nthe return value has the same type as the number.  ndigits may be negative.',
481
481
  hover: [{
482
482
  language: 'python',
483
483
  value: 'round(number: float) -> int'
484
484
  }]
485
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.set, {
485
+ }), BuiltinFunctions.set, {
486
486
  completionKind: languages.CompletionItemKind.Class,
487
487
  documentation: 'set() -> new empty set object\nset(iterable) -> new set object\n\nBuild an unordered collection of unique elements.',
488
488
  hover: [{
489
489
  language: 'python',
490
490
  value: 'set(iterable: Iterable[_T]=...)'
491
491
  }]
492
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.setattr, {
492
+ }), BuiltinFunctions.setattr, {
493
493
  completionKind: languages.CompletionItemKind.Function,
494
494
  documentation: "Sets the named attribute on the given object to the specified value.\n\nsetattr(x, 'y', v) is equivalent to ``x.y = v''",
495
495
  hover: [{
496
496
  language: 'python',
497
497
  value: 'setattr(object: Any, name: Text, value: Any, /) -> None'
498
498
  }]
499
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.slice, {
499
+ }), BuiltinFunctions.slice, {
500
500
  completionKind: languages.CompletionItemKind.Class,
501
501
  documentation: 'slice(stop)\nslice(start, stop[, step])\n\nCreate a slice object.  This is used for extended slicing (e.g. a[0:10:2]).',
502
502
  hover: [{
503
503
  language: 'python',
504
504
  value: 'slice(stop: Any)'
505
505
  }]
506
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.sorted, {
506
+ }), BuiltinFunctions.sorted, {
507
507
  completionKind: languages.CompletionItemKind.Function,
508
508
  documentation: 'Return a new list containing all items from the iterable in ascending order.\n\nA custom key function can be supplied to customize the sort order, and the\nreverse flag can be set to request the result in descending order.',
509
509
  hover: [{
510
510
  language: 'python',
511
511
  value: 'sorted(iterable: Iterable[_T], /, *, key: Optional[Callable[[_T], Any]]=..., reverse: bool=...) -> List[_T]'
512
512
  }]
513
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.staticmethod, {
513
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.staticmethod, {
514
514
  completionKind: languages.CompletionItemKind.Class,
515
515
  documentation: 'staticmethod(function) -> method\n\nConvert a function to be a static method.\n\nA static method does not receive an implicit first argument.\nTo declare a static method, use this idiom:\n\n     class C:\n         @staticmethod\n         def f(arg1, arg2, ...):\n             ...\n\nIt can be called either on the class (e.g. C.f()) or on an instance\n(e.g. C().f()).  The instance is ignored except for its class.\n\nStatic methods in Python are similar to those found in Java or C++.\nFor a more advanced concept, see the classmethod builtin.',
516
516
  hover: [{
517
517
  language: 'python',
518
518
  value: 'staticmethod(f: Callable[..., Any])'
519
519
  }]
520
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.str, {
520
+ }), BuiltinFunctions.str, {
521
521
  completionKind: languages.CompletionItemKind.Class,
522
522
  documentation: "str(object='') -> str\nstr(bytes_or_buffer[, encoding[, errors]]) -> str\n\nCreate a new string object from the given object. If encoding or\nerrors is specified, then the object must expose a data buffer\nthat will be decoded using the given encoding and error handler.\nOtherwise, returns the result of object.__str__() (if defined)\nor repr(object).\nencoding defaults to sys.getdefaultencoding().\nerrors defaults to 'strict'.",
523
523
  hover: [{
524
524
  language: 'python',
525
525
  value: 'str(o: object=...)'
526
526
  }]
527
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.sum, {
527
+ }), BuiltinFunctions.sum, {
528
528
  completionKind: languages.CompletionItemKind.Function,
529
529
  documentation: "Return the sum of a 'start' value (default: 0) plus an iterable of numbers\n\nWhen the iterable is empty, return the start value.\nThis function is intended specifically for use with numeric values and may\nreject non-numeric types.",
530
530
  hover: [{
531
531
  language: 'python',
532
532
  value: 'sum(iterable: Iterable[_T], /) -> Union[_T, int]'
533
533
  }]
534
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.super, {
534
+ }), BuiltinFunctions.super, {
535
535
  completionKind: languages.CompletionItemKind.Class,
536
536
  documentation: 'super() -> same as super(__class__, <first argument>)\nsuper(type) -> unbound super object\nsuper(type, obj) -> bound super object; requires isinstance(obj, type)\nsuper(type, type2) -> bound super object; requires issubclass(type2, type)\nTypical use to call a cooperative superclass method:\nclass C(B):\n    def meth(self, arg):\n        super().meth(arg)\nThis works for class methods too:\nclass C(B):\n    @classmethod\n    def cmeth(cls, arg):\n        super().cmeth(arg)',
537
537
  hover: [{
538
538
  language: 'python',
539
539
  value: 'super(t: Any, obj: Any)'
540
540
  }]
541
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.tuple, {
541
+ }), BuiltinFunctions.tuple, {
542
542
  completionKind: languages.CompletionItemKind.Class,
543
543
  documentation: "Built-in immutable sequence.\n\nIf no argument is given, the constructor returns an empty tuple.\nIf iterable is specified the tuple is initialized from iterable's items.\n\nIf the argument is a tuple, the return value is the same object.",
544
544
  hover: [{
545
545
  language: 'python',
546
546
  value: 'tuple(iterable: Iterable[_T_co]=...)'
547
547
  }]
548
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.type, {
548
+ }), BuiltinFunctions.type, {
549
549
  completionKind: languages.CompletionItemKind.Class,
550
550
  documentation: "type(object_or_name, bases, dict)\ntype(object) -> the object's type\ntype(name, bases, dict) -> a new type",
551
551
  hover: [{
552
552
  language: 'python',
553
553
  value: 'type(o: object)'
554
554
  }]
555
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.vars, {
555
+ }), BuiltinFunctions.vars, {
556
556
  completionKind: languages.CompletionItemKind.Function,
557
557
  documentation: 'vars([object]) -> dictionary\n\nWithout arguments, equivalent to locals().\nWith an argument, equivalent to object.__dict__.',
558
558
  hover: [{
559
559
  language: 'python',
560
560
  value: 'vars(object: Any=..., /) -> Dict[str, Any]'
561
561
  }]
562
- }), _defineProperty(_BuiltinFunctionOptio, BuiltinFunctions.zip, {
562
+ }), BuiltinFunctions.zip, {
563
563
  completionKind: languages.CompletionItemKind.Function,
564
564
  documentation: 'zip(*iterables) --> zip object\n\nReturn a zip object whose .__next__() method returns a tuple where\nthe i-th element comes from the i-th iterable argument.  The .__next__()\nmethod continues until the shortest iterable in the argument sequence\nis exhausted and then it raises StopIteration.',
565
565
  hover: [{
566
566
  language: 'python',
567
567
  value: 'zip(iter1: Iterable[_T1], /) -> Iterator[Tuple[_T1]]'
568
568
  }]
569
- }), _BuiltinFunctionOptio);
569
+ }));
@@ -5,8 +5,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
5
5
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
6
  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); } }
7
7
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ 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); }
10
10
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
11
  import { InitializeContribution, LanguageOptionsRegistry, SnippetSuggestContribution } from '@difizen/libro-cofine-editor-core';
12
12
  import { LanguageGrammarDefinitionContribution } from '@difizen/libro-cofine-textmate';
@@ -9,8 +9,8 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  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); } }
11
11
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
13
+ 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); }
14
14
  import { ApplicationContribution } from '@difizen/mana-app';
15
15
  import { contrib, inject, singleton, Syringe } from '@difizen/mana-app';
16
16
  import { LibroSQLRequestAPI } from "./libro-sql-api.js";
@@ -12,8 +12,8 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
14
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
+ 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); }
17
17
  import { defaultConfig } from '@difizen/libro-code-editor';
18
18
  import { EditorProvider, MonacoEnvironment } from '@difizen/libro-cofine-editor-core';
19
19
  import { NotebookCommands } from '@difizen/libro-core';
@@ -276,7 +276,6 @@ export var LibroE2Editor = (_dec = transient(), _dec2 = inject(CommandRegistry),
276
276
  }
277
277
  };
278
278
  }
279
-
280
279
  return {
281
280
  range: item,
282
281
  options: {
@@ -410,7 +409,7 @@ export var LibroE2Editor = (_dec = transient(), _dec2 = inject(CommandRegistry),
410
409
  lineDecorationsWidth: 15,
411
410
  lineNumbersMinChars: 3,
412
411
  suggestSelection: 'first',
413
- wordBasedSuggestions: false,
412
+ wordBasedSuggestions: 'off',
414
413
  scrollBeyondLastLine: false,
415
414
  /**
416
415
  * 使用该选项可以让modal widget出现在正确的范围,而不是被遮挡,解决z-index问题,但是会导致hover组件之类的无法被选中
@@ -622,7 +621,6 @@ export var LibroE2Editor = (_dec = transient(), _dec2 = inject(CommandRegistry),
622
621
  }
623
622
  // '!findWidgetVisible',
624
623
  );
625
-
626
624
  (_this$monacoEditor40 = this.monacoEditor) === null || _this$monacoEditor40 === void 0 || _this$monacoEditor40.addCommand(2048 | 36, function () {
627
625
  commandRegistry.executeCommand('libro-search:toggle');
628
626
  }
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
2
  var _dec, _class;
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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
8
  import { singleton } from '@difizen/mana-app';
9
9
  export var LibroSQLRequestAPI = (_dec = singleton(), _dec(_class = /*#__PURE__*/_createClass(function LibroSQLRequestAPI() {
package/es/placeholder.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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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
  import { DisposableCollection } from '@difizen/mana-app';
8
8
  import { editor } from '@difizen/monaco-editor-core';
9
9
  /**
@@ -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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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
  /* eslint-disable global-require */
9
9
 
10
10
  import { ThemeContribution } from '@difizen/libro-cofine-editor-core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-cofine-editor",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -33,12 +33,12 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@difizen/monaco-editor-core": "latest",
36
- "@difizen/libro-cofine-editor-core": "^0.1.10",
37
- "@difizen/libro-cofine-textmate": "^0.1.10",
38
- "@difizen/libro-lsp": "^0.1.10",
39
- "@difizen/libro-code-editor": "^0.1.10",
40
- "@difizen/libro-common": "^0.1.10",
41
- "@difizen/libro-core": "^0.1.10",
36
+ "@difizen/libro-cofine-editor-core": "^0.1.12",
37
+ "@difizen/libro-cofine-textmate": "^0.1.12",
38
+ "@difizen/libro-lsp": "^0.1.12",
39
+ "@difizen/libro-code-editor": "^0.1.12",
40
+ "@difizen/libro-common": "^0.1.12",
41
+ "@difizen/libro-core": "^0.1.12",
42
42
  "@difizen/mana-app": "latest",
43
43
  "resize-observer-polyfill": "^1.5.1",
44
44
  "vscode-languageserver-protocol": "^3.17.4",
@@ -407,7 +407,7 @@ export class LibroE2Editor implements IEditor {
407
407
  lineDecorationsWidth: 15,
408
408
  lineNumbersMinChars: 3,
409
409
  suggestSelection: 'first',
410
- wordBasedSuggestions: false,
410
+ wordBasedSuggestions: 'off',
411
411
  scrollBeyondLastLine: false,
412
412
  /**
413
413
  * 使用该选项可以让modal widget出现在正确的范围,而不是被遮挡,解决z-index问题,但是会导致hover组件之类的无法被选中