UNPKG

monaco-sqlpad-test

Version:

![preview.gif](https://upload-images.jianshu.io/upload_images/11287122-31aabe9832be213f.gif?imageMogr2/auto-orient/strip)

901 lines (822 loc) 6.67 MB
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["monaco-sqlpad"] = factory(); else root["monaco-sqlpad"] = factory(); })((typeof self !== 'undefined' ? self : this), function() { return /******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ function webpackJsonpCallback(data) { /******/ var chunkIds = data[0]; /******/ var moreModules = data[1]; /******/ /******/ /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; /******/ } /******/ for(moduleId in moreModules) { /******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { /******/ modules[moduleId] = moreModules[moduleId]; /******/ } /******/ } /******/ if(parentJsonpFunction) parentJsonpFunction(data); /******/ /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } /******/ /******/ }; /******/ /******/ /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // object to store loaded and loading chunks /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // Promise = chunk loading, 0 = chunk loaded /******/ var installedChunks = { /******/ 1: 0 /******/ }; /******/ /******/ /******/ /******/ // script path function /******/ function jsonpScriptSrc(chunkId) { /******/ return __webpack_require__.p + "monaco-sqlpad.umd." + ({}[chunkId]||chunkId) + ".js" /******/ } /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // This file contains only the entry chunk. /******/ // The chunk loading function for additional chunks /******/ __webpack_require__.e = function requireEnsure(chunkId) { /******/ var promises = []; /******/ /******/ /******/ // JSONP chunk loading for javascript /******/ /******/ var installedChunkData = installedChunks[chunkId]; /******/ if(installedChunkData !== 0) { // 0 means "already installed". /******/ /******/ // a Promise means "currently loading". /******/ if(installedChunkData) { /******/ promises.push(installedChunkData[2]); /******/ } else { /******/ // setup Promise in chunk cache /******/ var promise = new Promise(function(resolve, reject) { /******/ installedChunkData = installedChunks[chunkId] = [resolve, reject]; /******/ }); /******/ promises.push(installedChunkData[2] = promise); /******/ /******/ // start chunk loading /******/ var script = document.createElement('script'); /******/ var onScriptComplete; /******/ /******/ script.charset = 'utf-8'; /******/ script.timeout = 120; /******/ if (__webpack_require__.nc) { /******/ script.setAttribute("nonce", __webpack_require__.nc); /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); /******/ var chunk = installedChunks[chunkId]; /******/ if(chunk !== 0) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; /******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); /******/ } /******/ installedChunks[chunkId] = undefined; /******/ } /******/ }; /******/ var timeout = setTimeout(function(){ /******/ onScriptComplete({ type: 'timeout', target: script }); /******/ }, 120000); /******/ script.onerror = script.onload = onScriptComplete; /******/ document.head.appendChild(script); /******/ } /******/ } /******/ return Promise.all(promises); /******/ }; /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; /******/ /******/ var jsonpArray = (typeof self !== 'undefined' ? self : this)["webpackJsonpmonaco_sqlpad"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpmonaco_sqlpad"] || []; /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); /******/ jsonpArray.push = webpackJsonpCallback; /******/ jsonpArray = jsonpArray.slice(); /******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); /******/ var parentJsonpFunction = oldJsonpFunction; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "fb15"); /******/ }) /************************************************************************/ /******/ ({ /***/ "00a3": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return standardMouseMoveMerger; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GlobalMouseMoveMonitor; }); /* harmony import */ var _dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("11f7"); /* harmony import */ var _common_platform_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("30db"); /* harmony import */ var _browser_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("0f70"); /* harmony import */ var _iframe_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("e757"); /* harmony import */ var _mouseEvent_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("5d28"); /* harmony import */ var _common_lifecycle_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a666"); /* harmony import */ var _canIUse_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("0a31"); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ function standardMouseMoveMerger(lastEvent, currentEvent) { var ev = new _mouseEvent_js__WEBPACK_IMPORTED_MODULE_4__[/* StandardMouseEvent */ "b"](currentEvent); ev.preventDefault(); return { leftButton: ev.leftButton, buttons: ev.buttons, posx: ev.posx, posy: ev.posy }; } var GlobalMouseMoveMonitor = /** @class */ (function () { function GlobalMouseMoveMonitor() { this._hooks = new _common_lifecycle_js__WEBPACK_IMPORTED_MODULE_5__[/* DisposableStore */ "b"](); this._mouseMoveEventMerger = null; this._mouseMoveCallback = null; this._onStopCallback = null; } GlobalMouseMoveMonitor.prototype.dispose = function () { this.stopMonitoring(false); this._hooks.dispose(); }; GlobalMouseMoveMonitor.prototype.stopMonitoring = function (invokeStopCallback) { if (!this.isMonitoring()) { // Not monitoring return; } // Unhook this._hooks.clear(); this._mouseMoveEventMerger = null; this._mouseMoveCallback = null; var onStopCallback = this._onStopCallback; this._onStopCallback = null; if (invokeStopCallback && onStopCallback) { onStopCallback(); } }; GlobalMouseMoveMonitor.prototype.isMonitoring = function () { return !!this._mouseMoveEventMerger; }; GlobalMouseMoveMonitor.prototype.startMonitoring = function (initialElement, initialButtons, mouseMoveEventMerger, mouseMoveCallback, onStopCallback) { var _this = this; if (this.isMonitoring()) { // I am already hooked return; } this._mouseMoveEventMerger = mouseMoveEventMerger; this._mouseMoveCallback = mouseMoveCallback; this._onStopCallback = onStopCallback; var windowChain = _iframe_js__WEBPACK_IMPORTED_MODULE_3__[/* IframeUtils */ "a"].getSameOriginWindowChain(); var mouseMove = _common_platform_js__WEBPACK_IMPORTED_MODULE_1__[/* isIOS */ "c"] && _canIUse_js__WEBPACK_IMPORTED_MODULE_6__[/* BrowserFeatures */ "a"].pointerEvents ? 'pointermove' : 'mousemove'; var mouseUp = _common_platform_js__WEBPACK_IMPORTED_MODULE_1__[/* isIOS */ "c"] && _canIUse_js__WEBPACK_IMPORTED_MODULE_6__[/* BrowserFeatures */ "a"].pointerEvents ? 'pointerup' : 'mouseup'; var listenTo = windowChain.map(function (element) { return element.window.document; }); var shadowRoot = _dom_js__WEBPACK_IMPORTED_MODULE_0__[/* getShadowRoot */ "E"](initialElement); if (shadowRoot) { listenTo.unshift(shadowRoot); } for (var _i = 0, listenTo_1 = listenTo; _i < listenTo_1.length; _i++) { var element = listenTo_1[_i]; this._hooks.add(_dom_js__WEBPACK_IMPORTED_MODULE_0__[/* addDisposableThrottledListener */ "m"](element, mouseMove, function (data) { if (!_browser_js__WEBPACK_IMPORTED_MODULE_2__[/* isIE */ "i"] && data.buttons !== initialButtons) { // Buttons state has changed in the meantime _this.stopMonitoring(true); return; } _this._mouseMoveCallback(data); }, function (lastEvent, currentEvent) { return _this._mouseMoveEventMerger(lastEvent, currentEvent); })); this._hooks.add(_dom_js__WEBPACK_IMPORTED_MODULE_0__[/* addDisposableListener */ "j"](element, mouseUp, function (e) { return _this.stopMonitoring(true); })); } if (_iframe_js__WEBPACK_IMPORTED_MODULE_3__[/* IframeUtils */ "a"].hasDifferentOriginAncestor()) { var lastSameOriginAncestor = windowChain[windowChain.length - 1]; // We might miss a mouse up if it happens outside the iframe // This one is for Chrome this._hooks.add(_dom_js__WEBPACK_IMPORTED_MODULE_0__[/* addDisposableListener */ "j"](lastSameOriginAncestor.window.document, 'mouseout', function (browserEvent) { var e = new _mouseEvent_js__WEBPACK_IMPORTED_MODULE_4__[/* StandardMouseEvent */ "b"](browserEvent); if (e.target.tagName.toLowerCase() === 'html') { _this.stopMonitoring(true); } })); // This one is for FF this._hooks.add(_dom_js__WEBPACK_IMPORTED_MODULE_0__[/* addDisposableListener */ "j"](lastSameOriginAncestor.window.document, 'mouseover', function (browserEvent) { var e = new _mouseEvent_js__WEBPACK_IMPORTED_MODULE_4__[/* StandardMouseEvent */ "b"](browserEvent); if (e.target.tagName.toLowerCase() === 'html') { _this.stopMonitoring(true); } })); // This one is for IE this._hooks.add(_dom_js__WEBPACK_IMPORTED_MODULE_0__[/* addDisposableListener */ "j"](lastSameOriginAncestor.window.document.body, 'mouseleave', function (browserEvent) { _this.stopMonitoring(true); })); } }; return GlobalMouseMoveMonitor; }()); /***/ }), /***/ "01b0": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("e523"); if(content.__esModule) content = content.default; if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("499e").default var update = add("814526bc", content, true, {"sourceMap":false,"shadowMode":false}); /***/ }), /***/ "01ca": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("2350")(false); // imports // module exports.push([module.i, ".monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}", ""]); // exports /***/ }), /***/ "01e1": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("2350")(false); // imports // module exports.push([module.i, ".monaco-icon-label{display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:0;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;-ms-flex-negative:0;flex-shrink:0}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;-webkit-box-flex:1;-ms-flex:1;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.italic>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;padding:0 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after,.monaco-tree.focused .selected .monaco-icon-label,.monaco-tree.focused .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description,.monaco-tree-row.focused.selected .label-description,.monaco-tree-row.selected .label-description{opacity:.8}", ""]); // exports /***/ }), /***/ "01f9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var LIBRARY = __webpack_require__("2d00"); var $export = __webpack_require__("5ca1"); var redefine = __webpack_require__("2aba"); var hide = __webpack_require__("32e9"); var Iterators = __webpack_require__("84f2"); var $iterCreate = __webpack_require__("41a0"); var setToStringTag = __webpack_require__("7f20"); var getPrototypeOf = __webpack_require__("38fd"); var ITERATOR = __webpack_require__("2b4c")('iterator'); var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` var FF_ITERATOR = '@@iterator'; var KEYS = 'keys'; var VALUES = 'values'; var returnThis = function () { return this; }; module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { $iterCreate(Constructor, NAME, next); var getMethod = function (kind) { if (!BUGGY && kind in proto) return proto[kind]; switch (kind) { case KEYS: return function keys() { return new Constructor(this, kind); }; case VALUES: return function values() { return new Constructor(this, kind); }; } return function entries() { return new Constructor(this, kind); }; }; var TAG = NAME + ' Iterator'; var DEF_VALUES = DEFAULT == VALUES; var VALUES_BUG = false; var proto = Base.prototype; var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; var $default = $native || getMethod(DEFAULT); var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; var methods, key, IteratorPrototype; // Fix native if ($anyNative) { IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { // Set @@toStringTag to native iterators setToStringTag(IteratorPrototype, TAG, true); // fix for some old engines if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); } } // fix Array#{values, @@iterator}.name in V8 / FF if (DEF_VALUES && $native && $native.name !== VALUES) { VALUES_BUG = true; $default = function values() { return $native.call(this); }; } // Define iterator if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { hide(proto, ITERATOR, $default); } // Plug for library Iterators[NAME] = $default; Iterators[TAG] = returnThis; if (DEFAULT) { methods = { values: DEF_VALUES ? $default : getMethod(VALUES), keys: IS_SET ? $default : getMethod(KEYS), entries: $entries }; if (FORCED) for (key in methods) { if (!(key in proto)) redefine(proto, key, methods[key]); } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); } return methods; }; /***/ }), /***/ "0210": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GotoLineEntry", function() { return GotoLineEntry; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GotoLineAction", function() { return GotoLineAction; }); /* harmony import */ var _gotoLine_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0bda"); /* harmony import */ var _gotoLine_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_gotoLine_css__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("3742"); /* harmony import */ var _base_parts_quickopen_browser_quickOpenModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("469c"); /* harmony import */ var _browser_editorBrowser_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("b055"); /* harmony import */ var _browser_editorExtensions_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("b2cc"); /* harmony import */ var _common_core_position_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("7061"); /* harmony import */ var _common_core_range_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("6a89"); /* harmony import */ var _common_editorContextKeys_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("c101"); /* harmony import */ var _editorQuickOpen_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("af33"); /* harmony import */ var _common_standaloneStrings_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("03d9"); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var GotoLineEntry = /** @class */ (function (_super) { __extends(GotoLineEntry, _super); function GotoLineEntry(line, editor, decorator) { var _this = _super.call(this) || this; _this.editor = editor; _this.decorator = decorator; _this.parseResult = _this.parseInput(line); return _this; } GotoLineEntry.prototype.parseInput = function (line) { var numbers = line.split(',').map(function (part) { return parseInt(part, 10); }).filter(function (part) { return !isNaN(part); }); var position; if (numbers.length === 0) { position = new _common_core_position_js__WEBPACK_IMPORTED_MODULE_5__[/* Position */ "a"](-1, -1); } else if (numbers.length === 1) { position = new _common_core_position_js__WEBPACK_IMPORTED_MODULE_5__[/* Position */ "a"](numbers[0], 1); } else { position = new _common_core_position_js__WEBPACK_IMPORTED_MODULE_5__[/* Position */ "a"](numbers[0], numbers[1]); } var model; if (Object(_browser_editorBrowser_js__WEBPACK_IMPORTED_MODULE_3__[/* isCodeEditor */ "a"])(this.editor)) { model = this.editor.getModel(); } else { var diffModel = this.editor.getModel(); model = diffModel ? diffModel.modified : null; } var isValid = model ? model.validatePosition(position).equals(position) : false; var label; if (isValid) { if (position.column && position.column > 1) { label = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__[/* format */ "r"](_common_standaloneStrings_js__WEBPACK_IMPORTED_MODULE_9__[/* GoToLineNLS */ "b"].gotoLineLabelValidLineAndColumn, position.lineNumber, position.column); } else { label = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__[/* format */ "r"](_common_standaloneStrings_js__WEBPACK_IMPORTED_MODULE_9__[/* GoToLineNLS */ "b"].gotoLineLabelValidLine, position.lineNumber); } } else if (position.lineNumber < 1 || position.lineNumber > (model ? model.getLineCount() : 0)) { label = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__[/* format */ "r"](_common_standaloneStrings_js__WEBPACK_IMPORTED_MODULE_9__[/* GoToLineNLS */ "b"].gotoLineLabelEmptyWithLineLimit, model ? model.getLineCount() : 0); } else { label = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__[/* format */ "r"](_common_standaloneStrings_js__WEBPACK_IMPORTED_MODULE_9__[/* GoToLineNLS */ "b"].gotoLineLabelEmptyWithLineAndColumnLimit, model ? model.getLineMaxColumn(position.lineNumber) : 0); } return { position: position, isValid: isValid, label: label }; }; GotoLineEntry.prototype.getLabel = function () { return this.parseResult.label; }; GotoLineEntry.prototype.getAriaLabel = function () { var position = this.editor.getPosition(); var currentLine = position ? position.lineNumber : 0; return _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__[/* format */ "r"](_common_standaloneStrings_js__WEBPACK_IMPORTED_MODULE_9__[/* GoToLineNLS */ "b"].gotoLineAriaLabel, currentLine, this.parseResult.label); }; GotoLineEntry.prototype.run = function (mode, _context) { if (mode === 1 /* OPEN */) { return this.runOpen(); } return this.runPreview(); }; GotoLineEntry.prototype.runOpen = function () { // No-op if range is not valid if (!this.parseResult.isValid) { return false; } // Apply selection and focus var range = this.toSelection(); this.editor.setSelection(range); this.editor.revealRangeInCenter(range, 0 /* Smooth */); this.editor.focus(); return true; }; GotoLineEntry.prototype.runPreview = function () { // No-op if range is not valid if (!this.parseResult.isValid) { this.decorator.clearDecorations(); return false; } // Select Line Position var range = this.toSelection(); this.editor.revealRangeInCenter(range, 0 /* Smooth */); // Decorate if possible this.decorator.decorateLine(range, this.editor); return false; }; GotoLineEntry.prototype.toSelection = function () { return new _common_core_range_js__WEBPACK_IMPORTED_MODULE_6__[/* Range */ "a"](this.parseResult.position.lineNumber, this.parseResult.position.column, this.parseResult.position.lineNumber, this.parseResult.position.column); }; return GotoLineEntry; }(_base_parts_quickopen_browser_quickOpenModel_js__WEBPACK_IMPORTED_MODULE_2__[/* QuickOpenEntry */ "a"])); var GotoLineAction = /** @class */ (function (_super) { __extends(GotoLineAction, _super); function GotoLineAction() { return _super.call(this, _common_standaloneStrings_js__WEBPACK_IMPORTED_MODULE_9__[/* GoToLineNLS */ "b"].gotoLineActionInput, { id: 'editor.action.gotoLine', label: _common_standaloneStrings_js__WEBPACK_IMPORTED_MODULE_9__[/* GoToLineNLS */ "b"].gotoLineActionLabel, alias: 'Go to Line...', precondition: undefined, kbOpts: { kbExpr: _common_editorContextKeys_js__WEBPACK_IMPORTED_MODULE_7__[/* EditorContextKeys */ "a"].focus, primary: 2048 /* CtrlCmd */ | 37 /* KEY_G */, mac: { primary: 256 /* WinCtrl */ | 37 /* KEY_G */ }, weight: 100 /* EditorContrib */ } }) || this; } GotoLineAction.prototype.run = function (accessor, editor) { var _this = this; this._show(this.getController(editor), { getModel: function (value) { return new _base_parts_quickopen_browser_quickOpenModel_js__WEBPACK_IMPORTED_MODULE_2__[/* QuickOpenModel */ "c"]([new GotoLineEntry(value, editor, _this.getController(editor))]); }, getAutoFocus: function (searchValue) { return { autoFocusFirstEntry: searchValue.length > 0 }; } }); }; return GotoLineAction; }(_editorQuickOpen_js__WEBPACK_IMPORTED_MODULE_8__[/* BaseEditorQuickOpenAction */ "a"])); Object(_browser_editorExtensions_js__WEBPACK_IMPORTED_MODULE_4__[/* registerEditorAction */ "f"])(GotoLineAction); /***/ }), /***/ "02f4": /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__("4588"); var defined = __webpack_require__("be13"); // true -> String#at // false -> String#codePointAt module.exports = function (TO_STRING) { return function (that, pos) { var s = String(defined(that)); var i = toInteger(pos); var l = s.length; var a, b; if (i < 0 || i >= l) return TO_STRING ? '' : undefined; a = s.charCodeAt(i); return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; /***/ }), /***/ "0390": /***/ (function(module, exports, __webpack_require__) { "use strict"; var at = __webpack_require__("02f4")(true); // `AdvanceStringIndex` abstract operation // https://tc39.github.io/ecma262/#sec-advancestringindex module.exports = function (S, index, unicode) { return index + (unicode ? at(S, index).length : 1); }; /***/ }), /***/ "03d9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AccessibilityHelpNLS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return InspectTokensNLS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return GoToLineNLS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return QuickCommandNLS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return QuickOutlineNLS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return StandaloneCodeEditorNLS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return ToggleHighContrastNLS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return SimpleServicesNLS; }); /* harmony import */ var _nls_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("dff7"); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ var AccessibilityHelpNLS; (function (AccessibilityHelpNLS) { AccessibilityHelpNLS.noSelection = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("noSelection", "No selection"); AccessibilityHelpNLS.singleSelectionRange = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("singleSelectionRange", "Line {0}, Column {1} ({2} selected)"); AccessibilityHelpNLS.singleSelection = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("singleSelection", "Line {0}, Column {1}"); AccessibilityHelpNLS.multiSelectionRange = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("multiSelectionRange", "{0} selections ({1} characters selected)"); AccessibilityHelpNLS.multiSelection = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("multiSelection", "{0} selections"); AccessibilityHelpNLS.emergencyConfOn = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("emergencyConfOn", "Now changing the setting `accessibilitySupport` to 'on'."); AccessibilityHelpNLS.openingDocs = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("openingDocs", "Now opening the Editor Accessibility documentation page."); AccessibilityHelpNLS.readonlyDiffEditor = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("readonlyDiffEditor", " in a read-only pane of a diff editor."); AccessibilityHelpNLS.editableDiffEditor = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("editableDiffEditor", " in a pane of a diff editor."); AccessibilityHelpNLS.readonlyEditor = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("readonlyEditor", " in a read-only code editor"); AccessibilityHelpNLS.editableEditor = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("editableEditor", " in a code editor"); AccessibilityHelpNLS.changeConfigToOnMac = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("changeConfigToOnMac", "To configure the editor to be optimized for usage with a Screen Reader press Command+E now."); AccessibilityHelpNLS.changeConfigToOnWinLinux = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("changeConfigToOnWinLinux", "To configure the editor to be optimized for usage with a Screen Reader press Control+E now."); AccessibilityHelpNLS.auto_on = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("auto_on", "The editor is configured to be optimized for usage with a Screen Reader."); AccessibilityHelpNLS.auto_off = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("auto_off", "The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."); AccessibilityHelpNLS.tabFocusModeOnMsg = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("tabFocusModeOnMsg", "Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."); AccessibilityHelpNLS.tabFocusModeOnMsgNoKb = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("tabFocusModeOnMsgNoKb", "Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."); AccessibilityHelpNLS.tabFocusModeOffMsg = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("tabFocusModeOffMsg", "Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."); AccessibilityHelpNLS.tabFocusModeOffMsgNoKb = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("tabFocusModeOffMsgNoKb", "Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."); AccessibilityHelpNLS.openDocMac = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("openDocMac", "Press Command+H now to open a browser window with more information related to editor accessibility."); AccessibilityHelpNLS.openDocWinLinux = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("openDocWinLinux", "Press Control+H now to open a browser window with more information related to editor accessibility."); AccessibilityHelpNLS.outroMsg = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("outroMsg", "You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."); AccessibilityHelpNLS.showAccessibilityHelpAction = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]("showAccessibilityHelpAction", "Show Accessibility Help"); })(AccessibilityHelpNLS || (AccessibilityHelpNLS = {})); var InspectTokensNLS; (function (InspectTokensNLS) { InspectTokensNLS.inspectTokensAction = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('inspectTokens', "Developer: Inspect Tokens"); })(InspectTokensNLS || (InspectTokensNLS = {})); var GoToLineNLS; (function (GoToLineNLS) { GoToLineNLS.gotoLineLabelValidLineAndColumn = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('gotoLineLabelValidLineAndColumn', "Go to line {0} and character {1}"); GoToLineNLS.gotoLineLabelValidLine = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('gotoLineLabelValidLine', "Go to line {0}"); GoToLineNLS.gotoLineLabelEmptyWithLineLimit = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('gotoLineLabelEmptyWithLineLimit', "Type a line number between 1 and {0} to navigate to"); GoToLineNLS.gotoLineLabelEmptyWithLineAndColumnLimit = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('gotoLineLabelEmptyWithLineAndColumnLimit', "Type a character between 1 and {0} to navigate to"); GoToLineNLS.gotoLineAriaLabel = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('gotoLineAriaLabel', "Current Line: {0}. Go to line {1}."); GoToLineNLS.gotoLineActionInput = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('gotoLineActionInput', "Type a line number, followed by an optional colon and a character number to navigate to"); GoToLineNLS.gotoLineActionLabel = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('gotoLineActionLabel', "Go to Line..."); })(GoToLineNLS || (GoToLineNLS = {})); var QuickCommandNLS; (function (QuickCommandNLS) { QuickCommandNLS.ariaLabelEntryWithKey = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('ariaLabelEntryWithKey', "{0}, {1}, commands"); QuickCommandNLS.ariaLabelEntry = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('ariaLabelEntry', "{0}, commands"); QuickCommandNLS.quickCommandActionInput = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('quickCommandActionInput', "Type the name of an action you want to execute"); QuickCommandNLS.quickCommandActionLabel = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('quickCommandActionLabel', "Command Palette"); })(QuickCommandNLS || (QuickCommandNLS = {})); var QuickOutlineNLS; (function (QuickOutlineNLS) { QuickOutlineNLS.entryAriaLabel = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('entryAriaLabel', "{0}, symbols"); QuickOutlineNLS.quickOutlineActionInput = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('quickOutlineActionInput', "Type the name of an identifier you wish to navigate to"); QuickOutlineNLS.quickOutlineActionLabel = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('quickOutlineActionLabel', "Go to Symbol..."); QuickOutlineNLS._symbols_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('symbols', "symbols ({0})"); QuickOutlineNLS._modules_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('modules', "modules ({0})"); QuickOutlineNLS._class_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('class', "classes ({0})"); QuickOutlineNLS._interface_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('interface', "interfaces ({0})"); QuickOutlineNLS._method_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('method', "methods ({0})"); QuickOutlineNLS._function_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('function', "functions ({0})"); QuickOutlineNLS._property_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('property', "properties ({0})"); QuickOutlineNLS._variable_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('variable', "variables ({0})"); QuickOutlineNLS._variable2_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('variable2', "variables ({0})"); QuickOutlineNLS._constructor_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('_constructor', "constructors ({0})"); QuickOutlineNLS._call_ = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('call', "calls ({0})"); })(QuickOutlineNLS || (QuickOutlineNLS = {})); var StandaloneCodeEditorNLS; (function (StandaloneCodeEditorNLS) { StandaloneCodeEditorNLS.editorViewAccessibleLabel = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('editorViewAccessibleLabel', "Editor content"); StandaloneCodeEditorNLS.accessibilityHelpMessageIE = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('accessibilityHelpMessageIE', "Press Ctrl+F1 for Accessibility Options."); StandaloneCodeEditorNLS.accessibilityHelpMessage = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('accessibilityHelpMessage', "Press Alt+F1 for Accessibility Options."); })(StandaloneCodeEditorNLS || (StandaloneCodeEditorNLS = {})); var ToggleHighContrastNLS; (function (ToggleHighContrastNLS) { ToggleHighContrastNLS.toggleHighContrast = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('toggleHighContrast', "Toggle High Contrast Theme"); })(ToggleHighContrastNLS || (ToggleHighContrastNLS = {})); var SimpleServicesNLS; (function (SimpleServicesNLS) { SimpleServicesNLS.bulkEditServiceSummary = _nls_js__WEBPACK_IMPORTED_MODULE_0__[/* localize */ "a"]('bulkEditServiceSummary', "Made {0} edits in {1} files"); })(SimpleServicesNLS || (SimpleServicesNLS = {})); /***/ }), /***/ "03e8": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return IStorageService; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return WillSaveStateReason; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return InMemoryStorageService; }); /* harmony import */ var _instantiation_common_instantiation_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0a0f"); /* harmony import */ var _base_common_event_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("308f"); /* harmony import */ var _base_common_lifecycle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a666"); /* harmony import */ var _base_common_types_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ef8e"); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var IStorageService = Object(_instantiation_common_instantiation_js__WEBPACK_IMPORTED_MODULE_0__[/* createDecorator */ "c"])('storageService'); var WillSaveStateReason; (function (WillSaveStateReason) { WillSaveStateReason[WillSaveStateReason["NONE"] = 0] = "NONE"; WillSaveStateReason[WillSaveStateReason["SHUTDOWN"] = 1] = "SHUTDOWN"; })(WillSaveStateReason || (WillSaveStateReason = {})); var InMemoryStorageService = /** @class */ (function (_super) { __extends(InMemoryStorageService, _super); function InMemoryStorageService() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._onDidChangeStorage = _this._register(new _base_common_event_js__WEBPACK_IMPORTED_MODULE_1__[/* Emitter */ "a"]()); _this.onDidChangeStorage = _this._onDidChangeStorage.event; _this._onWillSaveState = _this._register(new _base_common_event_js__WEBPACK_IMPORTED_MODULE_1__[/* Emitter */ "a"]()); _this.onWillSaveState = _this._onWillSaveState.event; _this.globalCache = new Map(); _this.workspaceCache = new Map(); return _this; } InMemoryStorageService.prototype.getCache = function (scope) { return scope === 0 /* GLOBAL */ ? this.globalCache : this.workspaceCache; }; InMemoryStorageService.prototype.get = function (key, scope, fallbackValue) { var value = this.getCache(scope).get(key); if (Object(_base_common_types_js__WEBPACK_IMPORTED_MODULE_3__[/* isUndefinedOrNull */ "l"])(value)) { return fallbackValue; } return value; }; InMemoryStorageService.prototype.getBoolean = function (key, scope, fallbackValue) { var value = this.getCache(scope).get(key); if (Object(_base_common_types_js__WEBPACK_IMPORTED_MODULE_3__[/* isUndefinedOrNull */ "l"])(value)) { return fallbackValue; } return value === 'true'; }; InMemoryStorageService.prototype.store = function (key, value, scope) { // We remove the key for undefined/null values if (Object(_base_common_types_js__WEBPACK_IMPORTED_MODULE_3__[/* isUndefinedOrNull */ "l"])(value)) { return this.remove(key, scope); } // Otherwise, convert to String and store var valueStr = String(value); // Return early if value already set var currentValue = this.getCache(scope).get(key); if (currentValue === valueStr) { return Promise.resolve(); } // Update in cache this.getCache(scope).set(key, valueStr); // Events this._onDidChangeStorage.fire({ scope: scope, key: key }); return Promise.resolve(); }; InMemoryStorageService.prototype.remove = function (key, scope) { var wasDeleted = this.getCache(scope).delete(key); if (!wasDeleted) { return Promise.resolve(); // Return early if value already deleted } // Events this._onDidChangeStorage.fire({ scope: scope, key: key }); return Promise.resolve(); }; return InMemoryStorageService; }(_base_common_lifecycle_js__WEBPACK_IMPORTED_MODULE_2__[/* Disposable */ "a"])); /***/ }), /***/ "045b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createScopedLineTokens; }); /* unused harmony export ScopedLineTokens */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ignoreBracketsInToken; }); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ function createScopedLineTokens(context, offset) { var tokenCount = context.getCount(); var tokenIndex = context.findTokenIndexAtOffset(offset); var desiredLanguageId = context.getLanguageId(tokenIndex); var lastTokenIndex = tokenIndex; while (lastTokenIndex + 1 < tokenCount && context.getLanguageId(lastTokenIndex + 1) === desiredLanguageId) { lastTokenIndex++; } var firstTokenIndex = tokenIndex; while (firstTokenIndex > 0 && context.getLanguageId(firstTokenIndex - 1) === desiredLanguageId) { firstTokenIndex--; } return new ScopedLineTokens(context, desire