diff --git a/Readme.md b/Readme.md index da79ee9c565..8e20ea4c8ef 100644 --- a/Readme.md +++ b/Readme.md @@ -42,6 +42,7 @@ Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} ``` in your `.vimrc` or `init.vim`, then restart Vim and run `:PlugInstall`. + Checkout [Install coc.nvim](https://github.com/neoclide/coc.nvim/wiki/Install-coc.nvim) Wiki for more info. @@ -98,8 +99,7 @@ inoremap coc#refresh() " Use to confirm completion, `u` means break undo chain at current " position. Coc only does snippet and additional edit on confirm. -if has('patch8.1.1068') - " Use `complete_info` if your (Neo)Vim version supports it. +if exists('*complete_info') inoremap complete_info()["selected"] != "-1" ? "\" : "\u\" else imap pumvisible() ? "\" : "\u\" diff --git a/autoload/coc/api.vim b/autoload/coc/api.vim index 07b6eb89067..bc0db2da772 100644 --- a/autoload/coc/api.vim +++ b/autoload/coc/api.vim @@ -346,6 +346,7 @@ function! s:funcs.buf_set_lines(bufnr, start, end, strict, ...) abort let changeBuffer = 1 exe 'buffer '.a:bufnr endif + let storeView = winsaveview() if a:bufnr == curr || changeBuffer " replace if delCount == len(replacement) @@ -361,6 +362,7 @@ function! s:funcs.buf_set_lines(bufnr, start, end, strict, ...) abort let @" = saved_reg endif endif + call winrestview(storeView) if changeBuffer exe 'buffer '.curr endif @@ -380,6 +382,7 @@ function! s:funcs.buf_set_lines(bufnr, start, end, strict, ...) abort call deletebufline(a:bufnr, start, start + delCount - 1) endif endif + call winrestview(storeView) endif endfunction diff --git a/autoload/coc/util.vim b/autoload/coc/util.vim index af1e722555b..b96885815a4 100644 --- a/autoload/coc/util.vim +++ b/autoload/coc/util.vim @@ -454,6 +454,36 @@ function! coc#util#with_callback(method, args, cb) call timer_start(timeout, {-> s:Cb() }) endfunction +function! coc#util#quickpick(title, items, cb) abort + if exists('*popup_menu') + function! s:QuickpickHandler(id, result) closure + call a:cb(v:null, a:result) + endfunction + function! s:QuickpickFilter(id, key) closure + for i in range(1, len(a:items)) + if a:key == string(i) + call popup_close(a:id, i) + return 1 + endif + endfor + " No shortcut, pass to generic filter + return popup_filter_menu(a:id, a:key) + endfunction + try + call popup_menu(a:items, #{ + \ title: a:title, + \ filter: function('s:QuickpickFilter'), + \ callback: function('s:QuickpickHandler'), + \ }) + catch /.*/ + call a:cb(v:exception) + endtry + else + let res = inputlist([a:title] + a:items) + call a:cb(v:null, res) + endif +endfunction + function! coc#util#add_matchids(ids) let w:coc_matchids = get(w:, 'coc_matchids', []) + a:ids endfunction diff --git a/build/index.js b/build/index.js index 525bcfe8091..1687b2023ee 100644 --- a/build/index.js +++ b/build/index.js @@ -10313,7 +10313,7 @@ const log4js_1 = tslib_1.__importDefault(__webpack_require__(5)); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); const plugin_1 = tslib_1.__importDefault(__webpack_require__(189)); const semver_1 = tslib_1.__importDefault(__webpack_require__(1)); -__webpack_require__(314); +__webpack_require__(315); const vscode_uri_1 = __webpack_require__(183); const logger = __webpack_require__(2)('attach'); const isTest = "none" == 'test'; @@ -10389,7 +10389,7 @@ exports.default = (opts, requestApi = true) => { clientReady = true; if (isTest) nvim.command(`let g:coc_node_channel_id = ${channelId}`, true); - let json = __webpack_require__(446); + let json = __webpack_require__(447); let { major, minor, patch } = semver_1.default.parse(json.version); nvim.setClientInfo('coc', { major, minor, patch }, 'remote', {}, {}); let entered = await nvim.getVvar('vim_did_enter'); @@ -22173,16 +22173,16 @@ const tslib_1 = __webpack_require__(3); const events_1 = __webpack_require__(137); const vscode_languageserver_types_1 = __webpack_require__(162); const commands_1 = tslib_1.__importDefault(__webpack_require__(190)); -const completion_1 = tslib_1.__importDefault(__webpack_require__(253)); -const cursors_1 = tslib_1.__importDefault(__webpack_require__(436)); +const completion_1 = tslib_1.__importDefault(__webpack_require__(254)); +const cursors_1 = tslib_1.__importDefault(__webpack_require__(437)); const manager_1 = tslib_1.__importDefault(__webpack_require__(191)); -const extensions_1 = tslib_1.__importDefault(__webpack_require__(255)); -const handler_1 = tslib_1.__importDefault(__webpack_require__(438)); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); -const manager_2 = tslib_1.__importDefault(__webpack_require__(365)); -const services_1 = tslib_1.__importDefault(__webpack_require__(349)); +const extensions_1 = tslib_1.__importDefault(__webpack_require__(256)); +const handler_1 = tslib_1.__importDefault(__webpack_require__(439)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); +const manager_2 = tslib_1.__importDefault(__webpack_require__(366)); +const services_1 = tslib_1.__importDefault(__webpack_require__(350)); const manager_3 = tslib_1.__importDefault(__webpack_require__(193)); -const sources_1 = tslib_1.__importDefault(__webpack_require__(254)); +const sources_1 = tslib_1.__importDefault(__webpack_require__(255)); const types_1 = __webpack_require__(196); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const logger = __webpack_require__(2)('plugin'); @@ -22442,7 +22442,7 @@ class Plugin extends events_1.EventEmitter { return false; } get version() { - return workspace_1.default.version + ( true ? '-' + "817efd5108" : undefined); + return workspace_1.default.version + ( true ? '-' + "fc983ce6dd" : undefined); } async showInfo() { if (!this.infoChannel) { @@ -23001,9 +23001,9 @@ const floatFactory_1 = tslib_1.__importDefault(__webpack_require__(192)); const util_1 = __webpack_require__(177); const position_1 = __webpack_require__(221); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const buffer_1 = __webpack_require__(432); -const collection_1 = tslib_1.__importDefault(__webpack_require__(435)); -const util_2 = __webpack_require__(434); +const buffer_1 = __webpack_require__(433); +const collection_1 = tslib_1.__importDefault(__webpack_require__(436)); +const util_2 = __webpack_require__(435); const semver_1 = tslib_1.__importDefault(__webpack_require__(1)); const logger = __webpack_require__(2)('diagnostic-manager'); class DiagnosticManager { @@ -23107,7 +23107,7 @@ class DiagnosticManager { this.setConfigurationErrors(); }, null, this.disposables); let { enableHighlightLineNumber } = this.config; - if (!workspace_1.default.isNvim || semver_1.default.lt(workspace_1.default.env.version, 'v0.5.0')) { + if (!workspace_1.default.isNvim || semver_1.default.lt(workspace_1.default.env.version, 'v0.3.2')) { enableHighlightLineNumber = false; } nvim.pauseNotification(); @@ -23648,9 +23648,9 @@ const manager_1 = tslib_1.__importDefault(__webpack_require__(193)); const util_1 = __webpack_require__(177); const object_1 = __webpack_require__(197); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const floatBuffer_1 = tslib_1.__importDefault(__webpack_require__(344)); +const floatBuffer_1 = tslib_1.__importDefault(__webpack_require__(345)); const debounce_1 = tslib_1.__importDefault(__webpack_require__(179)); -const popup_1 = tslib_1.__importDefault(__webpack_require__(429)); +const popup_1 = tslib_1.__importDefault(__webpack_require__(430)); const array_1 = __webpack_require__(220); const logger = __webpack_require__(2)('model-float'); // factory class for floating window @@ -23950,10 +23950,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const Snippets = tslib_1.__importStar(__webpack_require__(251)); -const parser_1 = __webpack_require__(251); -const session_1 = __webpack_require__(252); -const variableResolve_1 = __webpack_require__(431); +const Snippets = tslib_1.__importStar(__webpack_require__(252)); +const parser_1 = __webpack_require__(252); +const session_1 = __webpack_require__(253); +const variableResolve_1 = __webpack_require__(432); const logger = __webpack_require__(2)('snippets-manager'); class SnippetManager { constructor() { @@ -24137,8 +24137,9 @@ const index_1 = __webpack_require__(177); const match_1 = __webpack_require__(234); const position_1 = __webpack_require__(221); const string_1 = __webpack_require__(218); -const watchman_1 = tslib_1.__importDefault(__webpack_require__(235)); -const rimraf_1 = tslib_1.__importDefault(__webpack_require__(239)); +const mutex_1 = __webpack_require__(235); +const watchman_1 = tslib_1.__importDefault(__webpack_require__(236)); +const rimraf_1 = tslib_1.__importDefault(__webpack_require__(240)); const uuid = __webpack_require__(228); const requireFunc = true ? require : undefined; const logger = __webpack_require__(2)('workspace'); @@ -24147,12 +24148,12 @@ let NAME_SPACE = 1080; class Workspace { constructor() { this.keymaps = new Map(); + this.mutex = new mutex_1.Mutex(); this.resolver = new resolver_1.default(); this.rootPatterns = new Map(); this._workspaceFolders = []; this._insertMode = false; this._cwd = process.cwd(); - this._blocking = false; this._initialized = false; this._attached = false; this.buffers = new Map(); @@ -24400,8 +24401,7 @@ class Workspace { return; fs_1.default.mkdirSync(dir); } - let uri = vscode_uri_1.URI.file(path_1.default.join(dir, 'coc-settings.json')).toString(); - await this.jumpTo(uri); + await this.jumpTo(vscode_uri_1.URI.file(path_1.default.join(dir, 'coc-settings.json')).toString()); } get textDocuments() { let docs = []; @@ -24555,9 +24555,28 @@ class Workspace { let document = this.getDocument(bufnr); let uri = document ? document.uri : null; let currEdits = null; + let locations = []; + let changeCount = 0; + const preferences = this.getConfiguration('coc.preferences'); + let promptUser = !global.hasOwnProperty('__TEST__') && preferences.get('promptWorkspaceEdit', true); try { if (documentChanges && documentChanges.length) { - let n = documentChanges.length; + changeCount = documentChanges.length; + if (promptUser) { + let count = 0; + for (let c of documentChanges) { + if (index_1.isDocumentEdit(c)) { + if (this.getDocument(c.textDocument.uri) == null) { + count = count + 1; + } + } + } + if (count) { + let res = await this.showPrompt(`${count} documents on disk would be loaded for change, confirm?`); + if (!res) + return; + } + } for (let change of documentChanges) { if (index_1.isDocumentEdit(change)) { let { textDocument, edits } = change; @@ -24565,6 +24584,9 @@ class Workspace { currEdits = edits; let doc = await this.loadFile(textDocument.uri); await doc.applyEdits(nvim, edits); + for (let edit of edits) { + locations.push({ uri: doc.uri, range: edit.range }); + } } else if (vscode_languageserver_protocol_1.CreateFile.is(change)) { let file = vscode_uri_1.URI.parse(change.uri).fsPath; @@ -24577,17 +24599,29 @@ class Workspace { await this.deleteFile(vscode_uri_1.URI.parse(change.uri).fsPath, change.options); } } - this.showMessage(`${n} buffers changed.`); } else if (changes) { - await this.loadFiles(Object.keys(changes)); + let uris = Object.keys(changes); + let unloaded = uris.filter(uri => this.getDocument(uri) == null); + if (unloaded.length) { + if (promptUser) { + let res = await this.showPrompt(`${unloaded.length} documents on disk would be loaded for change, confirm?`); + if (!res) + return; + } + await this.loadFiles(unloaded); + } for (let uri of Object.keys(changes)) { - let document = await this.loadFile(uri); + let document = this.getDocument(uri); if (vscode_uri_1.URI.parse(uri).toString() == uri) currEdits = changes[uri]; - await document.applyEdits(nvim, changes[uri]); + let edits = changes[uri]; + for (let edit of edits) { + locations.push({ uri: document.uri, range: edit.range }); + } + await document.applyEdits(nvim, edits); } - this.showMessage(`${Object.keys(changes).length} buffers changed.`); + changeCount = uris.length; } if (currEdits) { let changed = position_1.getChangedFromEdits({ line: cursor[0], character: cursor[1] }, currEdits); @@ -24597,6 +24631,13 @@ class Workspace { character: cursor[1] + changed.character }); } + if (locations.length) { + let items = await Promise.all(locations.map(loc => { + return this.getQuickfixItem(loc); + })); + await this.nvim.call('setqflist', [items]); + this.showMessage(`changed ${changeCount} buffers, use :wa to save changes to disk or :copen to open quickfix list`, 'more'); + } } catch (e) { logger.error(e); @@ -24798,7 +24839,7 @@ class Workspace { * Show message in vim. */ showMessage(msg, identify = 'more') { - if (this._blocking || !this.nvim) + if (this.mutex.busy || !this.nvim) return; let { messageLevel } = this; let method = process.env.VIM_NODE_RPC == '1' ? 'callTimer' : 'call'; @@ -24815,7 +24856,7 @@ class Workspace { break; } if (level >= messageLevel) { - this.nvim[method]('coc#util#echo_messages', [hl, ('[coc.nvim]' + msg).split('\n')], true); + this.nvim[method]('coc#util#echo_messages', [hl, ('[coc.nvim] ' + msg).split('\n')], true); } } /** @@ -24915,7 +24956,7 @@ class Workspace { * Move cursor to position. */ async moveTo(position) { - await this.nvim.call('coc#util#jumpTo', [position.line, position.character]); + await this.callAsync('coc#util#jumpTo', [position.line, position.character]); } /** * Create a file in vim and disk @@ -25138,24 +25179,36 @@ class Workspace { * Show quickpick */ async showQuickpick(items, placeholder = 'Choose by number') { - let msgs = [placeholder + ':']; - msgs = msgs.concat(items.map((str, index) => { - return `${index + 1}. ${str}`; - })); - let res = await this.callAsync('inputlist', [msgs]); - let n = parseInt(res, 10); - if (isNaN(n) || n <= 0 || n > msgs.length) + let release = await this.mutex.acquire(); + try { + let title = placeholder + ':'; + items = items.map((s, idx) => `${idx + 1}. ${s}`); + let res = await this.nvim.callAsync('coc#util#quickpick', [title, items]); + release(); + let n = parseInt(res, 10); + if (isNaN(n) || n <= 0 || n > items.length) + return -1; + return n - 1; + } + catch (e) { + release(); return -1; - return n - 1; + } } /** * Prompt for confirm action. */ async showPrompt(title) { - this._blocking = true; - let res = await this.nvim.callAsync('coc#util#with_callback', ['coc#util#prompt_confirm', [title]]); - this._blocking = false; - return res == 1; + let release = await this.mutex.acquire(); + try { + let res = await this.nvim.callAsync('coc#util#with_callback', ['coc#util#prompt_confirm', [title]]); + release(); + return res == 1; + } + catch (e) { + release(); + return false; + } } async callAsync(method, args) { if (this.isNvim) @@ -25574,7 +25627,7 @@ augroup end`; this._onDidOpenDocument.fire(doc.textDocument); } async checkBuffer(bufnr) { - if (this._disposed) + if (this._disposed || !bufnr) return; let doc = this.getDocument(bufnr); if (!doc && !this.creatingSources.has(bufnr)) @@ -30364,13 +30417,15 @@ class Document { if (token.isCancellationRequested) return false; try { - if (!this.env.isVim) { - let res = await this.attach(); - if (!res) - return false; - } - else { - this.lines = await buffer.lines; + if (this.shouldAttach) { + if (this.env.isVim) { + this.lines = await buffer.lines; + } + else { + let res = await this.attach(); + if (!res) + return false; + } } this.attached = true; } @@ -30389,16 +30444,10 @@ class Document { return true; } async attach() { - if (this.shouldAttach) { - let attached = await this.buffer.attach(false); - if (!attached) - return false; - this.lines = await this.buffer.lines; - } - else { - this.lines = await this.buffer.lines; - return true; - } + let attached = await this.buffer.attach(false); + if (!attached) + return false; + this.lines = await this.buffer.lines; if (!this.buffer.isAttached) return; this.buffer.listen('lines', (...args) => { @@ -30482,7 +30531,8 @@ class Document { textDocument: { version, uri }, contentChanges: changes }); - this._words = this.chars.matchKeywords(this.lines.join('\n')); + let lines = this.lines.length > 30000 ? this.lines.slice(0, 30000) : this.lines; + this._words = this.chars.matchKeywords(lines.join('\n')); } catch (e) { logger.error(e.message); @@ -33351,9 +33401,66 @@ exports.score = score; "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class Mutex { + constructor() { + this.tasks = []; + this.count = 1; + } + sched() { + if (this.count > 0 && this.tasks.length > 0) { + this.count--; + let next = this.tasks.shift(); + next(); + } + } + get busy() { + return this.count == 0; + } + // tslint:disable-next-line: typedef + acquire() { + return new Promise(res => { + let task = () => { + let released = false; + res(() => { + if (!released) { + released = true; + this.count++; + this.sched(); + } + }); + }; + this.tasks.push(task); + process.nextTick(this.sched.bind(this)); + }); + } + use(f) { + return this.acquire() + .then(release => { + return f() + .then(res => { + release(); + return res; + }) + .catch(err => { + release(); + throw err; + }); + }); + } +} +exports.Mutex = Mutex; +//# sourceMappingURL=mutex.js.map + +/***/ }), +/* 236 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const fb_watchman_1 = tslib_1.__importDefault(__webpack_require__(236)); +const fb_watchman_1 = tslib_1.__importDefault(__webpack_require__(237)); const os_1 = tslib_1.__importDefault(__webpack_require__(14)); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); const uuidv1 = __webpack_require__(228); @@ -33520,7 +33627,7 @@ exports.default = Watchman; //# sourceMappingURL=watchman.js.map /***/ }), -/* 236 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -33533,7 +33640,7 @@ var net = __webpack_require__(96); var EE = __webpack_require__(137).EventEmitter; var util = __webpack_require__(12); var childProcess = __webpack_require__(178); -var bser = __webpack_require__(237); +var bser = __webpack_require__(238); // We'll emit the responses to these when they get sent down to us var unilateralTags = ['subscription', 'log']; @@ -33849,7 +33956,7 @@ Client.prototype.end = function() { /***/ }), -/* 237 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { /* Copyright 2015-present Facebook, Inc. @@ -33859,7 +33966,7 @@ var EE = __webpack_require__(137).EventEmitter; var util = __webpack_require__(12); var os = __webpack_require__(14); var assert = __webpack_require__(46); -var Int64 = __webpack_require__(238); +var Int64 = __webpack_require__(239); // BSER uses the local endianness to reduce byte swapping overheads // (the protocol is expressly local IPC only). We need to tell node @@ -34440,7 +34547,7 @@ function dumpToBuffer(val) { exports.dumpToBuffer = dumpToBuffer /***/ }), -/* 238 */ +/* 239 */ /***/ (function(module, exports) { // Int64.js @@ -34714,7 +34821,7 @@ Int64.prototype = { /***/ }), -/* 239 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { const assert = __webpack_require__(46) @@ -34722,7 +34829,7 @@ const path = __webpack_require__(20) const fs = __webpack_require__(4) let glob = undefined try { - glob = __webpack_require__(240) + glob = __webpack_require__(241) } catch (_err) { // treat glob as optional. } @@ -35088,7 +35195,7 @@ rimraf.sync = rimrafSync /***/ }), -/* 240 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { // Approach: @@ -35134,26 +35241,26 @@ rimraf.sync = rimrafSync module.exports = glob var fs = __webpack_require__(4) -var rp = __webpack_require__(241) +var rp = __webpack_require__(242) var minimatch = __webpack_require__(209) var Minimatch = minimatch.Minimatch -var inherits = __webpack_require__(243) +var inherits = __webpack_require__(244) var EE = __webpack_require__(137).EventEmitter var path = __webpack_require__(20) var assert = __webpack_require__(46) -var isAbsolute = __webpack_require__(245) -var globSync = __webpack_require__(246) -var common = __webpack_require__(247) +var isAbsolute = __webpack_require__(246) +var globSync = __webpack_require__(247) +var common = __webpack_require__(248) var alphasort = common.alphasort var alphasorti = common.alphasorti var setopts = common.setopts var ownProp = common.ownProp -var inflight = __webpack_require__(248) +var inflight = __webpack_require__(249) var util = __webpack_require__(12) var childrenIgnored = common.childrenIgnored var isIgnored = common.isIgnored -var once = __webpack_require__(250) +var once = __webpack_require__(251) function glob (pattern, options, cb) { if (typeof options === 'function') cb = options, options = {} @@ -35884,7 +35991,7 @@ Glob.prototype._stat2 = function (f, abs, er, stat, cb) { /***/ }), -/* 241 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { module.exports = realpath @@ -35900,7 +36007,7 @@ var origRealpathSync = fs.realpathSync var version = process.version var ok = /^v[0-5]\./.test(version) -var old = __webpack_require__(242) +var old = __webpack_require__(243) function newError (er) { return er && er.syscall === 'realpath' && ( @@ -35956,7 +36063,7 @@ function unmonkeypatch () { /***/ }), -/* 242 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { // Copyright Joyent, Inc. and other Node contributors. @@ -36265,7 +36372,7 @@ exports.realpath = function realpath(p, cache, cb) { /***/ }), -/* 243 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { try { @@ -36273,12 +36380,12 @@ try { if (typeof util.inherits !== 'function') throw ''; module.exports = util.inherits; } catch (e) { - module.exports = __webpack_require__(244); + module.exports = __webpack_require__(245); } /***/ }), -/* 244 */ +/* 245 */ /***/ (function(module, exports) { if (typeof Object.create === 'function') { @@ -36307,7 +36414,7 @@ if (typeof Object.create === 'function') { /***/ }), -/* 245 */ +/* 246 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -36334,22 +36441,22 @@ module.exports.win32 = win32; /***/ }), -/* 246 */ +/* 247 */ /***/ (function(module, exports, __webpack_require__) { module.exports = globSync globSync.GlobSync = GlobSync var fs = __webpack_require__(4) -var rp = __webpack_require__(241) +var rp = __webpack_require__(242) var minimatch = __webpack_require__(209) var Minimatch = minimatch.Minimatch -var Glob = __webpack_require__(240).Glob +var Glob = __webpack_require__(241).Glob var util = __webpack_require__(12) var path = __webpack_require__(20) var assert = __webpack_require__(46) -var isAbsolute = __webpack_require__(245) -var common = __webpack_require__(247) +var isAbsolute = __webpack_require__(246) +var common = __webpack_require__(248) var alphasort = common.alphasort var alphasorti = common.alphasorti var setopts = common.setopts @@ -36826,7 +36933,7 @@ GlobSync.prototype._makeAbs = function (f) { /***/ }), -/* 247 */ +/* 248 */ /***/ (function(module, exports, __webpack_require__) { exports.alphasort = alphasort @@ -36845,7 +36952,7 @@ function ownProp (obj, field) { var path = __webpack_require__(20) var minimatch = __webpack_require__(209) -var isAbsolute = __webpack_require__(245) +var isAbsolute = __webpack_require__(246) var Minimatch = minimatch.Minimatch function alphasorti (a, b) { @@ -37072,12 +37179,12 @@ function childrenIgnored (self, path) { /***/ }), -/* 248 */ +/* 249 */ /***/ (function(module, exports, __webpack_require__) { -var wrappy = __webpack_require__(249) +var wrappy = __webpack_require__(250) var reqs = Object.create(null) -var once = __webpack_require__(250) +var once = __webpack_require__(251) module.exports = wrappy(inflight) @@ -37132,7 +37239,7 @@ function slice (args) { /***/ }), -/* 249 */ +/* 250 */ /***/ (function(module, exports) { // Returns a wrapper function that returns a wrapped callback @@ -37171,10 +37278,10 @@ function wrappy (fn, cb) { /***/ }), -/* 250 */ +/* 251 */ /***/ (function(module, exports, __webpack_require__) { -var wrappy = __webpack_require__(249) +var wrappy = __webpack_require__(250) module.exports = wrappy(once) module.exports.strict = wrappy(onceStrict) @@ -37219,7 +37326,7 @@ function onceStrict (fn) { /***/ }), -/* 251 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -38275,7 +38382,7 @@ exports.SnippetParser = SnippetParser; //# sourceMappingURL=parser.js.map /***/ }), -/* 252 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -38283,13 +38390,13 @@ exports.SnippetParser = SnippetParser; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const completion_1 = tslib_1.__importDefault(__webpack_require__(253)); +const completion_1 = tslib_1.__importDefault(__webpack_require__(254)); const util_1 = __webpack_require__(177); const position_1 = __webpack_require__(221); const string_1 = __webpack_require__(218); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const snippet_1 = __webpack_require__(430); -const variableResolve_1 = __webpack_require__(431); +const snippet_1 = __webpack_require__(431); +const variableResolve_1 = __webpack_require__(432); const logger = __webpack_require__(2)('snippets-session'); class SnippetSession { constructor(nvim, bufnr) { @@ -38584,7 +38691,7 @@ exports.normalizeSnippetString = normalizeSnippetString; //# sourceMappingURL=session.js.map /***/ }), -/* 253 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -38594,12 +38701,12 @@ const tslib_1 = __webpack_require__(3); const debounce_1 = tslib_1.__importDefault(__webpack_require__(179)); const vscode_languageserver_protocol_1 = __webpack_require__(150); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); -const sources_1 = tslib_1.__importDefault(__webpack_require__(254)); +const sources_1 = tslib_1.__importDefault(__webpack_require__(255)); const util_1 = __webpack_require__(177); const string_1 = __webpack_require__(218); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const complete_1 = tslib_1.__importDefault(__webpack_require__(426)); -const floating_1 = tslib_1.__importDefault(__webpack_require__(428)); +const complete_1 = tslib_1.__importDefault(__webpack_require__(427)); +const floating_1 = tslib_1.__importDefault(__webpack_require__(429)); const logger = __webpack_require__(2)('completion'); const completeItemKeys = ['abbr', 'menu', 'info', 'kind', 'icase', 'dup', 'empty', 'user_data']; class Completion { @@ -39202,7 +39309,7 @@ exports.default = new Completion(); //# sourceMappingURL=index.js.map /***/ }), -/* 254 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -39215,9 +39322,9 @@ const path_1 = tslib_1.__importDefault(__webpack_require__(20)); const util_1 = tslib_1.__importDefault(__webpack_require__(12)); const vscode_languageserver_protocol_1 = __webpack_require__(150); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); -const extensions_1 = tslib_1.__importDefault(__webpack_require__(255)); -const source_1 = tslib_1.__importDefault(__webpack_require__(421)); -const source_vim_1 = tslib_1.__importDefault(__webpack_require__(422)); +const extensions_1 = tslib_1.__importDefault(__webpack_require__(256)); +const source_1 = tslib_1.__importDefault(__webpack_require__(422)); +const source_vim_1 = tslib_1.__importDefault(__webpack_require__(423)); const types_1 = __webpack_require__(196); const util_2 = __webpack_require__(177); const fs_2 = __webpack_require__(208); @@ -39235,9 +39342,9 @@ class Sources { } async createNativeSources() { try { - this.disposables.push((__webpack_require__(423)).regist(this.sourceMap)); this.disposables.push((__webpack_require__(424)).regist(this.sourceMap)); this.disposables.push((__webpack_require__(425)).regist(this.sourceMap)); + this.disposables.push((__webpack_require__(426)).regist(this.sourceMap)); } catch (e) { console.error('Create source error:' + e.message); // tslint:disable-line @@ -39564,7 +39671,7 @@ exports.default = new Sources(); //# sourceMappingURL=sources.js.map /***/ }), -/* 255 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -39577,7 +39684,7 @@ const os_1 = tslib_1.__importDefault(__webpack_require__(14)); const fs_1 = tslib_1.__importDefault(__webpack_require__(4)); const isuri_1 = tslib_1.__importDefault(__webpack_require__(180)); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); -const rimraf_1 = tslib_1.__importDefault(__webpack_require__(239)); +const rimraf_1 = tslib_1.__importDefault(__webpack_require__(240)); const semver_1 = tslib_1.__importDefault(__webpack_require__(1)); const util_1 = __webpack_require__(12); const vscode_languageserver_protocol_1 = __webpack_require__(150); @@ -39586,15 +39693,15 @@ const which_1 = tslib_1.__importDefault(__webpack_require__(184)); const commands_1 = tslib_1.__importDefault(__webpack_require__(190)); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); const db_1 = tslib_1.__importDefault(__webpack_require__(214)); -const extension_1 = tslib_1.__importDefault(__webpack_require__(256)); -const memos_1 = tslib_1.__importDefault(__webpack_require__(313)); +const extension_1 = tslib_1.__importDefault(__webpack_require__(257)); +const memos_1 = tslib_1.__importDefault(__webpack_require__(314)); const util_2 = __webpack_require__(177); const mkdirp_1 = tslib_1.__importDefault(__webpack_require__(182)); const array_1 = __webpack_require__(220); -__webpack_require__(314); -const factory_1 = __webpack_require__(315); +__webpack_require__(315); +const factory_1 = __webpack_require__(316); const fs_2 = __webpack_require__(208); -const watchman_1 = tslib_1.__importDefault(__webpack_require__(235)); +const watchman_1 = tslib_1.__importDefault(__webpack_require__(236)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const createLogger = __webpack_require__(2); const logger = createLogger('extensions'); @@ -39702,21 +39809,29 @@ class Extensions { stats = stats.filter(o => !this.disabled.has(o.id) && !lockedList.includes(o.id)); let names = stats.map(o => o.id); let statusItem = workspace_1.default.createStatusBarItem(0, { progress: true }); - statusItem.text = `Updating extensions.`; + statusItem.text = `Updating extensions...`; statusItem.show(); this.db.push('lastUpdate', Date.now()); + const updates = []; await util_2.concurrent(names.map(name => { let o = stats.find(o => o.id == name); return () => { return this.manager.update(this.npm, name, o.exotic ? o.uri : undefined).then(updated => { - if (updated) + if (updated) { + updates.push(name); this.reloadExtension(name).logError(); + } }, err => { - workspace_1.default.showMessage(`Error on update ${name}: ${err}`); + workspace_1.default.showMessage(`Error on update ${name}: ${err}`, 'error'); }); }; }), 5); - workspace_1.default.showMessage('Update completed', 'more'); + if (updates.length) { + workspace_1.default.showMessage(`Update extensions: ${updates.join(' ')}`, 'more'); + } + else { + workspace_1.default.showMessage(`Update completed`); + } statusItem.dispose(); } async checkExtensions() { @@ -39774,14 +39889,16 @@ class Extensions { let statusItem = workspace_1.default.createStatusBarItem(0, { progress: true }); statusItem.show(); statusItem.text = `Installing ${list.join(' ')}`; - await Promise.all(list.map(def => { - return this.manager.install(npm, def).then(name => { - if (name) - this.onExtensionInstall(name).logError(); - }, err => { - workspace_1.default.showMessage(`Error on install ${def}: ${err}`); - }); - })); + await util_2.concurrent(list.map(def => { + return () => { + return this.manager.install(npm, def).then(name => { + if (name) + this.onExtensionInstall(name).logError(); + }, err => { + workspace_1.default.showMessage(`Error on install ${def}: ${err}`, 'error'); + }); + }; + }), 3); statusItem.dispose(); } /** @@ -40438,7 +40555,7 @@ exports.default = new Extensions(); //# sourceMappingURL=extensions.js.map /***/ }), -/* 256 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -40448,17 +40565,17 @@ const tslib_1 = __webpack_require__(3); const child_process_1 = __webpack_require__(178); const fs_1 = tslib_1.__importDefault(__webpack_require__(4)); const mkdirp_1 = tslib_1.__importDefault(__webpack_require__(182)); -const mv_1 = tslib_1.__importDefault(__webpack_require__(257)); +const mv_1 = tslib_1.__importDefault(__webpack_require__(258)); const os_1 = tslib_1.__importDefault(__webpack_require__(14)); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); -const rc_1 = tslib_1.__importDefault(__webpack_require__(263)); -const rimraf_1 = tslib_1.__importDefault(__webpack_require__(239)); +const rc_1 = tslib_1.__importDefault(__webpack_require__(264)); +const rimraf_1 = tslib_1.__importDefault(__webpack_require__(240)); const semver_1 = tslib_1.__importDefault(__webpack_require__(1)); -const url_1 = tslib_1.__importDefault(__webpack_require__(269)); +const url_1 = tslib_1.__importDefault(__webpack_require__(270)); const util_1 = __webpack_require__(12); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const download_1 = tslib_1.__importDefault(__webpack_require__(270)); -const fetch_1 = tslib_1.__importDefault(__webpack_require__(309)); +const download_1 = tslib_1.__importDefault(__webpack_require__(271)); +const fetch_1 = tslib_1.__importDefault(__webpack_require__(310)); const logger = __webpack_require__(2)('model-extension'); function registryUrl(scope = 'coc.nvim') { const result = rc_1.default('npm', { registry: 'https://registry.npmjs.org/' }); @@ -40468,12 +40585,8 @@ function registryUrl(scope = 'coc.nvim') { class ExtensionManager { constructor(root) { this.root = root; - this.checked = false; } checkFolder() { - if (this.checked) - return; - this.checked = true; let { root } = this; mkdirp_1.default.sync(root); mkdirp_1.default.sync(path_1.default.join(root, 'node_modules/.cache')); @@ -40613,8 +40726,9 @@ class ExtensionManager { return true; } async getInfoFromUri(uri) { - if (uri.indexOf('github.com') == -1) - return; + if (uri.indexOf('github.com') == -1) { + throw new Error(`"${uri}" is not supported, coc.nvim support github.com only`); + } uri = uri.replace(/\/$/, ''); let fileUrl = uri.replace('github.com', 'raw.githubusercontent.com') + '/master/package.json'; let content = await fetch_1.default(fileUrl); @@ -40631,13 +40745,13 @@ exports.default = ExtensionManager; //# sourceMappingURL=extension.js.map /***/ }), -/* 257 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { var fs = __webpack_require__(4); -var ncp = __webpack_require__(258).ncp; +var ncp = __webpack_require__(259).ncp; var path = __webpack_require__(20); -var rimraf = __webpack_require__(259); +var rimraf = __webpack_require__(260); var mkdirp = __webpack_require__(182); module.exports = mv; @@ -40742,7 +40856,7 @@ function moveDirAcrossDevice(source, dest, clobber, limit, cb) { /***/ }), -/* 258 */ +/* 259 */ /***/ (function(module, exports, __webpack_require__) { var fs = __webpack_require__(4), @@ -41009,7 +41123,7 @@ function ncp (source, dest, options, callback) { /***/ }), -/* 259 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { module.exports = rimraf @@ -41018,7 +41132,7 @@ rimraf.sync = rimrafSync var assert = __webpack_require__(46) var path = __webpack_require__(20) var fs = __webpack_require__(4) -var glob = __webpack_require__(260) +var glob = __webpack_require__(261) var globOpts = { nosort: true, @@ -41348,7 +41462,7 @@ function rmkidsSync (p, options) { /***/ }), -/* 260 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { // Approach: @@ -41396,23 +41510,23 @@ module.exports = glob var fs = __webpack_require__(4) var minimatch = __webpack_require__(209) var Minimatch = minimatch.Minimatch -var inherits = __webpack_require__(243) +var inherits = __webpack_require__(244) var EE = __webpack_require__(137).EventEmitter var path = __webpack_require__(20) var assert = __webpack_require__(46) -var isAbsolute = __webpack_require__(245) -var globSync = __webpack_require__(261) -var common = __webpack_require__(262) +var isAbsolute = __webpack_require__(246) +var globSync = __webpack_require__(262) +var common = __webpack_require__(263) var alphasort = common.alphasort var alphasorti = common.alphasorti var setopts = common.setopts var ownProp = common.ownProp -var inflight = __webpack_require__(248) +var inflight = __webpack_require__(249) var util = __webpack_require__(12) var childrenIgnored = common.childrenIgnored var isIgnored = common.isIgnored -var once = __webpack_require__(250) +var once = __webpack_require__(251) function glob (pattern, options, cb) { if (typeof options === 'function') cb = options, options = {} @@ -42119,7 +42233,7 @@ Glob.prototype._stat2 = function (f, abs, er, stat, cb) { /***/ }), -/* 261 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { module.exports = globSync @@ -42128,12 +42242,12 @@ globSync.GlobSync = GlobSync var fs = __webpack_require__(4) var minimatch = __webpack_require__(209) var Minimatch = minimatch.Minimatch -var Glob = __webpack_require__(260).Glob +var Glob = __webpack_require__(261).Glob var util = __webpack_require__(12) var path = __webpack_require__(20) var assert = __webpack_require__(46) -var isAbsolute = __webpack_require__(245) -var common = __webpack_require__(262) +var isAbsolute = __webpack_require__(246) +var common = __webpack_require__(263) var alphasort = common.alphasort var alphasorti = common.alphasorti var setopts = common.setopts @@ -42585,7 +42699,7 @@ GlobSync.prototype._makeAbs = function (f) { /***/ }), -/* 262 */ +/* 263 */ /***/ (function(module, exports, __webpack_require__) { exports.alphasort = alphasort @@ -42604,7 +42718,7 @@ function ownProp (obj, field) { var path = __webpack_require__(20) var minimatch = __webpack_require__(209) -var isAbsolute = __webpack_require__(245) +var isAbsolute = __webpack_require__(246) var Minimatch = minimatch.Minimatch function alphasorti (a, b) { @@ -42817,12 +42931,12 @@ function childrenIgnored (self, path) { /***/ }), -/* 263 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { -var cc = __webpack_require__(264) +var cc = __webpack_require__(265) var join = __webpack_require__(20).join -var deepExtend = __webpack_require__(267) +var deepExtend = __webpack_require__(268) var etc = '/etc' var win = process.platform === "win32" var home = win @@ -42833,7 +42947,7 @@ module.exports = function (name, defaults, argv, parse) { if('string' !== typeof name) throw new Error('rc(name): name *must* be string') if(!argv) - argv = __webpack_require__(268)(process.argv.slice(2)) + argv = __webpack_require__(269)(process.argv.slice(2)) defaults = ( 'string' === typeof defaults ? cc.json(defaults) : defaults @@ -42876,15 +42990,15 @@ module.exports = function (name, defaults, argv, parse) { /***/ }), -/* 264 */ +/* 265 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var fs = __webpack_require__(4) -var ini = __webpack_require__(265) +var ini = __webpack_require__(266) var path = __webpack_require__(20) -var stripJsonComments = __webpack_require__(266) +var stripJsonComments = __webpack_require__(267) var parse = exports.parse = function (content) { @@ -42987,7 +43101,7 @@ var find = exports.find = function () { /***/ }), -/* 265 */ +/* 266 */ /***/ (function(module, exports) { exports.parse = exports.decode = decode @@ -43187,7 +43301,7 @@ function unsafe (val, doUnesc) { /***/ }), -/* 266 */ +/* 267 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -43264,7 +43378,7 @@ module.exports = function (str, opts) { /***/ }), -/* 267 */ +/* 268 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -43421,7 +43535,7 @@ var deepExtend = module.exports = function (/*obj_1, [obj_2], [obj_N]*/) { /***/ }), -/* 268 */ +/* 269 */ /***/ (function(module, exports) { module.exports = function (args, opts) { @@ -43663,27 +43777,27 @@ function isNumber (x) { /***/ }), -/* 269 */ +/* 270 */ /***/ (function(module, exports) { module.exports = require("url"); /***/ }), -/* 270 */ +/* 271 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const follow_redirects_1 = __webpack_require__(271); +const follow_redirects_1 = __webpack_require__(272); const fs_1 = tslib_1.__importDefault(__webpack_require__(4)); const mkdirp_1 = tslib_1.__importDefault(__webpack_require__(182)); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); -const tar_1 = tslib_1.__importDefault(__webpack_require__(278)); -const url_1 = __webpack_require__(269); +const tar_1 = tslib_1.__importDefault(__webpack_require__(279)); +const url_1 = __webpack_require__(270); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const fetch_1 = __webpack_require__(309); +const fetch_1 = __webpack_require__(310); /** * Download and extract tgz from url * @@ -43743,16 +43857,16 @@ exports.default = download; //# sourceMappingURL=download.js.map /***/ }), -/* 271 */ +/* 272 */ /***/ (function(module, exports, __webpack_require__) { -var url = __webpack_require__(269); +var url = __webpack_require__(270); var URL = url.URL; -var http = __webpack_require__(272); -var https = __webpack_require__(273); +var http = __webpack_require__(273); +var https = __webpack_require__(274); var assert = __webpack_require__(46); var Writable = __webpack_require__(44).Writable; -var debug = __webpack_require__(274)("follow-redirects"); +var debug = __webpack_require__(275)("follow-redirects"); // RFC7231§4.2.1: Of the request methods defined by this specification, // the GET, HEAD, OPTIONS, and TRACE methods are defined to be safe. @@ -44201,19 +44315,19 @@ module.exports.wrap = wrap; /***/ }), -/* 272 */ +/* 273 */ /***/ (function(module, exports) { module.exports = require("http"); /***/ }), -/* 273 */ +/* 274 */ /***/ (function(module, exports) { module.exports = require("https"); /***/ }), -/* 274 */ +/* 275 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -44224,15 +44338,15 @@ module.exports = require("https"); * treat as a browser. */ if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - module.exports = __webpack_require__(275); + module.exports = __webpack_require__(276); } else { - module.exports = __webpack_require__(277); + module.exports = __webpack_require__(278); } /***/ }), -/* 275 */ +/* 276 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -44402,7 +44516,7 @@ function localstorage() { } } -module.exports = __webpack_require__(276)(exports); +module.exports = __webpack_require__(277)(exports); var formatters = module.exports.formatters; /** * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. @@ -44419,7 +44533,7 @@ formatters.j = function (v) { /***/ }), -/* 276 */ +/* 277 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -44675,7 +44789,7 @@ module.exports = setup; /***/ }), -/* 277 */ +/* 278 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -44833,7 +44947,7 @@ function init(debug) { } } -module.exports = __webpack_require__(276)(exports); +module.exports = __webpack_require__(277)(exports); var formatters = module.exports.formatters; /** * Map %o to `util.inspect()`, all on a single line. @@ -44856,44 +44970,44 @@ formatters.O = function (v) { /***/ }), -/* 278 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // high-level commands -exports.c = exports.create = __webpack_require__(279) -exports.r = exports.replace = __webpack_require__(303) -exports.t = exports.list = __webpack_require__(301) -exports.u = exports.update = __webpack_require__(304) -exports.x = exports.extract = __webpack_require__(305) +exports.c = exports.create = __webpack_require__(280) +exports.r = exports.replace = __webpack_require__(304) +exports.t = exports.list = __webpack_require__(302) +exports.u = exports.update = __webpack_require__(305) +exports.x = exports.extract = __webpack_require__(306) // classes -exports.Pack = __webpack_require__(281) -exports.Unpack = __webpack_require__(306) -exports.Parse = __webpack_require__(302) -exports.ReadEntry = __webpack_require__(291) -exports.WriteEntry = __webpack_require__(293) -exports.Header = __webpack_require__(295) -exports.Pax = __webpack_require__(294) -exports.types = __webpack_require__(292) +exports.Pack = __webpack_require__(282) +exports.Unpack = __webpack_require__(307) +exports.Parse = __webpack_require__(303) +exports.ReadEntry = __webpack_require__(292) +exports.WriteEntry = __webpack_require__(294) +exports.Header = __webpack_require__(296) +exports.Pax = __webpack_require__(295) +exports.types = __webpack_require__(293) /***/ }), -/* 279 */ +/* 280 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // tar -c -const hlo = __webpack_require__(280) +const hlo = __webpack_require__(281) -const Pack = __webpack_require__(281) +const Pack = __webpack_require__(282) const fs = __webpack_require__(4) -const fsm = __webpack_require__(300) -const t = __webpack_require__(301) +const fsm = __webpack_require__(301) +const t = __webpack_require__(302) const path = __webpack_require__(20) const c = module.exports = (opt_, files, cb) => { @@ -44993,7 +45107,7 @@ const create = (opt, files) => { /***/ }), -/* 280 */ +/* 281 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -45029,13 +45143,13 @@ const parse = module.exports = opt => opt ? Object.keys(opt).map(k => [ /***/ }), -/* 281 */ +/* 282 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const Buffer = __webpack_require__(282) +const Buffer = __webpack_require__(283) // A readable tar stream creator // Technically, this is a transform stream that you write paths into, @@ -45059,13 +45173,13 @@ class PackJob { } } -const MiniPass = __webpack_require__(285) -const zlib = __webpack_require__(289) -const ReadEntry = __webpack_require__(291) -const WriteEntry = __webpack_require__(293) +const MiniPass = __webpack_require__(286) +const zlib = __webpack_require__(290) +const ReadEntry = __webpack_require__(292) +const WriteEntry = __webpack_require__(294) const WriteEntrySync = WriteEntry.Sync const WriteEntryTar = WriteEntry.Tar -const Yallist = __webpack_require__(286) +const Yallist = __webpack_require__(287) const EOF = Buffer.alloc(1024) const ONSTAT = Symbol('onStat') const ENDED = Symbol('ended') @@ -45090,7 +45204,7 @@ const ONDRAIN = Symbol('ondrain') const fs = __webpack_require__(4) const path = __webpack_require__(20) -const warner = __webpack_require__(297) +const warner = __webpack_require__(298) const Pack = warner(class Pack extends MiniPass { constructor (opt) { @@ -45440,7 +45554,7 @@ module.exports = Pack /***/ }), -/* 282 */ +/* 283 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -45452,17 +45566,17 @@ module.exports = Pack let B = Buffer /* istanbul ignore next */ if (!B.alloc) { - B = __webpack_require__(283).Buffer + B = __webpack_require__(284).Buffer } module.exports = B /***/ }), -/* 283 */ +/* 284 */ /***/ (function(module, exports, __webpack_require__) { /* eslint-disable node/no-deprecated-api */ -var buffer = __webpack_require__(284) +var buffer = __webpack_require__(285) var Buffer = buffer.Buffer // alternative to using Object.keys for old browsers @@ -45526,19 +45640,19 @@ SafeBuffer.allocUnsafeSlow = function (size) { /***/ }), -/* 284 */ +/* 285 */ /***/ (function(module, exports) { module.exports = require("buffer"); /***/ }), -/* 285 */ +/* 286 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const EE = __webpack_require__(137) -const Yallist = __webpack_require__(286) +const Yallist = __webpack_require__(287) const EOF = Symbol('EOF') const MAYBE_EMIT_END = Symbol('maybeEmitEnd') const EMITTED_END = Symbol('emittedEnd') @@ -45549,7 +45663,7 @@ const doIter = process.env._MP_NO_ITERATOR_SYMBOLS_ !== '1' const ASYNCITERATOR = doIter && Symbol.asyncIterator || Symbol('asyncIterator not implemented') const ITERATOR = doIter && Symbol.iterator || Symbol('iterator not implemented') const FLUSHCHUNK = Symbol('flushChunk') -const SD = __webpack_require__(288).StringDecoder +const SD = __webpack_require__(289).StringDecoder const ENCODING = Symbol('encoding') const DECODER = Symbol('decoder') const FLOWING = Symbol('flowing') @@ -45565,7 +45679,7 @@ const OBJECTMODE = Symbol('objectMode') let B = Buffer /* istanbul ignore next */ if (!B.alloc) { - B = __webpack_require__(283).Buffer + B = __webpack_require__(284).Buffer } module.exports = class MiniPass extends EE { @@ -45914,7 +46028,7 @@ module.exports = class MiniPass extends EE { /***/ }), -/* 286 */ +/* 287 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -46292,12 +46406,12 @@ function Node (value, prev, next, list) { try { // add if support for Symbol.iterator is present - __webpack_require__(287)(Yallist) + __webpack_require__(288)(Yallist) } catch (er) {} /***/ }), -/* 287 */ +/* 288 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -46312,24 +46426,24 @@ module.exports = function (Yallist) { /***/ }), -/* 288 */ +/* 289 */ /***/ (function(module, exports) { module.exports = require("string_decoder"); /***/ }), -/* 289 */ +/* 290 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const assert = __webpack_require__(46) -const Buffer = __webpack_require__(284).Buffer +const Buffer = __webpack_require__(285).Buffer const realZlib = __webpack_require__(82) -const constants = exports.constants = __webpack_require__(290) -const MiniPass = __webpack_require__(285) +const constants = exports.constants = __webpack_require__(291) +const MiniPass = __webpack_require__(286) const OriginalBufferConcat = Buffer.concat @@ -46660,7 +46774,7 @@ exports.Unzip = Unzip /***/ }), -/* 290 */ +/* 291 */ /***/ (function(module, exports) { module.exports = Object.freeze({ @@ -46712,13 +46826,13 @@ module.exports = Object.freeze({ /***/ }), -/* 291 */ +/* 292 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const types = __webpack_require__(292) -const MiniPass = __webpack_require__(285) +const types = __webpack_require__(293) +const MiniPass = __webpack_require__(286) const SLURP = Symbol('slurp') module.exports = class ReadEntry extends MiniPass { @@ -46813,7 +46927,7 @@ module.exports = class ReadEntry extends MiniPass { /***/ }), -/* 292 */ +/* 293 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -46864,20 +46978,20 @@ exports.code = new Map(Array.from(exports.name).map(kv => [kv[1], kv[0]])) /***/ }), -/* 293 */ +/* 294 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const Buffer = __webpack_require__(282) -const MiniPass = __webpack_require__(285) -const Pax = __webpack_require__(294) -const Header = __webpack_require__(295) -const ReadEntry = __webpack_require__(291) +const Buffer = __webpack_require__(283) +const MiniPass = __webpack_require__(286) +const Pax = __webpack_require__(295) +const Header = __webpack_require__(296) +const ReadEntry = __webpack_require__(292) const fs = __webpack_require__(4) const path = __webpack_require__(20) -const types = __webpack_require__(292) +const types = __webpack_require__(293) const maxReadSize = 16 * 1024 * 1024 const PROCESS = Symbol('process') const FILE = Symbol('file') @@ -46894,10 +47008,10 @@ const OPENFILE = Symbol('openfile') const ONOPENFILE = Symbol('onopenfile') const CLOSE = Symbol('close') const MODE = Symbol('mode') -const warner = __webpack_require__(297) -const winchars = __webpack_require__(298) +const warner = __webpack_require__(298) +const winchars = __webpack_require__(299) -const modeFix = __webpack_require__(299) +const modeFix = __webpack_require__(300) const WriteEntry = warner(class WriteEntry extends MiniPass { constructor (p, opt) { @@ -47293,13 +47407,13 @@ module.exports = WriteEntry /***/ }), -/* 294 */ +/* 295 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const Buffer = __webpack_require__(282) -const Header = __webpack_require__(295) +const Buffer = __webpack_require__(283) +const Header = __webpack_require__(296) const path = __webpack_require__(20) class Pax { @@ -47446,7 +47560,7 @@ module.exports = Pax /***/ }), -/* 295 */ +/* 296 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47456,10 +47570,10 @@ module.exports = Pax // the data could not be faithfully encoded in a simple header. // (Also, check header.needPax to see if it needs a pax header.) -const Buffer = __webpack_require__(282) -const types = __webpack_require__(292) +const Buffer = __webpack_require__(283) +const types = __webpack_require__(293) const pathModule = __webpack_require__(20).posix -const large = __webpack_require__(296) +const large = __webpack_require__(297) const SLURP = Symbol('slurp') const TYPE = Symbol('type') @@ -47742,7 +47856,7 @@ module.exports = Header /***/ }), -/* 296 */ +/* 297 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47846,7 +47960,7 @@ const twosComp = byte => ((0xff ^ byte) + 1) & 0xff /***/ }), -/* 297 */ +/* 298 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47867,7 +47981,7 @@ module.exports = Base => class extends Base { /***/ }), -/* 298 */ +/* 299 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47897,7 +48011,7 @@ module.exports = { /***/ }), -/* 299 */ +/* 300 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47918,12 +48032,12 @@ module.exports = (mode, isDir) => { /***/ }), -/* 300 */ +/* 301 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const MiniPass = __webpack_require__(285) +const MiniPass = __webpack_require__(286) const EE = __webpack_require__(137).EventEmitter const fs = __webpack_require__(4) @@ -48311,22 +48425,22 @@ exports.WriteStreamSync = WriteStreamSync /***/ }), -/* 301 */ +/* 302 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const Buffer = __webpack_require__(282) +const Buffer = __webpack_require__(283) // XXX: This shares a lot in common with extract.js // maybe some DRY opportunity here? // tar -t -const hlo = __webpack_require__(280) -const Parser = __webpack_require__(302) +const hlo = __webpack_require__(281) +const Parser = __webpack_require__(303) const fs = __webpack_require__(4) -const fsm = __webpack_require__(300) +const fsm = __webpack_require__(301) const path = __webpack_require__(20) const t = module.exports = (opt_, files, cb) => { @@ -48448,7 +48562,7 @@ const list = opt => new Parser(opt) /***/ }), -/* 302 */ +/* 303 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48474,16 +48588,16 @@ const list = opt => new Parser(opt) // // ignored entries get .resume() called on them straight away -const warner = __webpack_require__(297) +const warner = __webpack_require__(298) const path = __webpack_require__(20) -const Header = __webpack_require__(295) +const Header = __webpack_require__(296) const EE = __webpack_require__(137) -const Yallist = __webpack_require__(286) +const Yallist = __webpack_require__(287) const maxMetaEntrySize = 1024 * 1024 -const Entry = __webpack_require__(291) -const Pax = __webpack_require__(294) -const zlib = __webpack_require__(289) -const Buffer = __webpack_require__(282) +const Entry = __webpack_require__(292) +const Pax = __webpack_require__(295) +const zlib = __webpack_require__(290) +const Buffer = __webpack_require__(283) const gzipHeader = Buffer.from([0x1f, 0x8b]) const STATE = Symbol('state') @@ -48878,20 +48992,20 @@ module.exports = warner(class Parser extends EE { /***/ }), -/* 303 */ +/* 304 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const Buffer = __webpack_require__(282) +const Buffer = __webpack_require__(283) // tar -r -const hlo = __webpack_require__(280) -const Pack = __webpack_require__(281) -const Parse = __webpack_require__(302) +const hlo = __webpack_require__(281) +const Pack = __webpack_require__(282) +const Parse = __webpack_require__(303) const fs = __webpack_require__(4) -const fsm = __webpack_require__(300) -const t = __webpack_require__(301) +const fsm = __webpack_require__(301) +const t = __webpack_require__(302) const path = __webpack_require__(20) // starting at the head of the file, read a Header @@ -48900,7 +49014,7 @@ const path = __webpack_require__(20) // and try again. // Write the new Pack stream starting there. -const Header = __webpack_require__(295) +const Header = __webpack_require__(296) const r = module.exports = (opt_, files, cb) => { const opt = hlo(opt_) @@ -49105,7 +49219,7 @@ const addFilesAsync = (p, files) => { /***/ }), -/* 304 */ +/* 305 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49113,8 +49227,8 @@ const addFilesAsync = (p, files) => { // tar -u -const hlo = __webpack_require__(280) -const r = __webpack_require__(303) +const hlo = __webpack_require__(281) +const r = __webpack_require__(304) // just call tar.r with the filter and mtimeCache const u = module.exports = (opt_, files, cb) => { @@ -49148,17 +49262,17 @@ const mtimeFilter = opt => { /***/ }), -/* 305 */ +/* 306 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // tar -x -const hlo = __webpack_require__(280) -const Unpack = __webpack_require__(306) +const hlo = __webpack_require__(281) +const Unpack = __webpack_require__(307) const fs = __webpack_require__(4) -const fsm = __webpack_require__(300) +const fsm = __webpack_require__(301) const path = __webpack_require__(20) const x = module.exports = (opt_, files, cb) => { @@ -49267,7 +49381,7 @@ const extract = opt => { /***/ }), -/* 306 */ +/* 307 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49275,13 +49389,13 @@ const extract = opt => { const assert = __webpack_require__(46) const EE = __webpack_require__(137).EventEmitter -const Parser = __webpack_require__(302) +const Parser = __webpack_require__(303) const fs = __webpack_require__(4) -const fsm = __webpack_require__(300) +const fsm = __webpack_require__(301) const path = __webpack_require__(20) -const mkdir = __webpack_require__(307) +const mkdir = __webpack_require__(308) const mkdirSync = mkdir.sync -const wc = __webpack_require__(298) +const wc = __webpack_require__(299) const ONENTRY = Symbol('onEntry') const CHECKFS = Symbol('checkFs') @@ -49895,7 +50009,7 @@ module.exports = Unpack /***/ }), -/* 307 */ +/* 308 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49908,7 +50022,7 @@ module.exports = Unpack const mkdirp = __webpack_require__(182) const fs = __webpack_require__(4) const path = __webpack_require__(20) -const chownr = __webpack_require__(308) +const chownr = __webpack_require__(309) class SymlinkError extends Error { constructor (symlink, path) { @@ -50108,7 +50222,7 @@ const mkdirSync = module.exports.sync = (dir, opt) => { /***/ }), -/* 308 */ +/* 309 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50203,16 +50317,16 @@ chownr.sync = chownrSync /***/ }), -/* 309 */ +/* 310 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const follow_redirects_1 = __webpack_require__(271); -const tunnel_1 = tslib_1.__importDefault(__webpack_require__(310)); -const url_1 = __webpack_require__(269); +const follow_redirects_1 = __webpack_require__(272); +const tunnel_1 = tslib_1.__importDefault(__webpack_require__(311)); +const url_1 = __webpack_require__(270); const zlib_1 = tslib_1.__importDefault(__webpack_require__(82)); const is_1 = __webpack_require__(198); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); @@ -50362,23 +50476,23 @@ exports.default = fetch; //# sourceMappingURL=fetch.js.map /***/ }), -/* 310 */ +/* 311 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(311); +module.exports = __webpack_require__(312); /***/ }), -/* 311 */ +/* 312 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var net = __webpack_require__(96); -var tls = __webpack_require__(312); -var http = __webpack_require__(272); -var https = __webpack_require__(273); +var tls = __webpack_require__(313); +var http = __webpack_require__(273); +var https = __webpack_require__(274); var events = __webpack_require__(137); var assert = __webpack_require__(46); var util = __webpack_require__(12); @@ -50640,13 +50754,13 @@ exports.debug = debug; // for test /***/ }), -/* 312 */ +/* 313 */ /***/ (function(module, exports) { module.exports = require("tls"); /***/ }), -/* 313 */ +/* 314 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50711,7 +50825,7 @@ exports.default = Memos; //# sourceMappingURL=memos.js.map /***/ }), -/* 314 */ +/* 315 */ /***/ (function(module, exports, __webpack_require__) { const logger = __webpack_require__(2)('extensions'); @@ -50727,7 +50841,7 @@ Promise.prototype.logError = function () { //# sourceMappingURL=extensions.js.map /***/ }), -/* 315 */ +/* 316 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50736,12 +50850,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const fs_1 = tslib_1.__importDefault(__webpack_require__(4)); const path = tslib_1.__importStar(__webpack_require__(20)); -const vm = tslib_1.__importStar(__webpack_require__(316)); -const lodash_1 = __webpack_require__(317); +const vm = tslib_1.__importStar(__webpack_require__(317)); +const lodash_1 = __webpack_require__(318); const createLogger = __webpack_require__(2); const logger = createLogger('util-factoroy'); const requireFunc = true ? require : undefined; -const Module = __webpack_require__(318); +const Module = __webpack_require__(319); const REMOVED_GLOBALS = [ 'reallyExit', 'abort', @@ -50762,7 +50876,7 @@ function removedGlobalStub(name) { function makeRequireFunction() { const req = (p) => { if (p === 'coc.nvim') { - return __webpack_require__(319); + return __webpack_require__(320); } return this.require(p); }; @@ -50866,13 +50980,13 @@ exports.createExtension = createExtension; //# sourceMappingURL=factory.js.map /***/ }), -/* 316 */ +/* 317 */ /***/ (function(module, exports) { module.exports = require("vm"); /***/ }), -/* 317 */ +/* 318 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50931,13 +51045,13 @@ exports.omit = omit; //# sourceMappingURL=lodash.js.map /***/ }), -/* 318 */ +/* 319 */ /***/ (function(module, exports) { module.exports = require("module"); /***/ }), -/* 319 */ +/* 320 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50948,43 +51062,43 @@ const commands_1 = tslib_1.__importDefault(__webpack_require__(190)); exports.commands = commands_1.default; const events_1 = tslib_1.__importDefault(__webpack_require__(149)); exports.events = events_1.default; -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); exports.languages = languages_1.default; const document_1 = tslib_1.__importDefault(__webpack_require__(215)); exports.Document = document_1.default; const mru_1 = tslib_1.__importDefault(__webpack_require__(223)); exports.Mru = mru_1.default; -const floatBuffer_1 = tslib_1.__importDefault(__webpack_require__(344)); +const floatBuffer_1 = tslib_1.__importDefault(__webpack_require__(345)); exports.FloatBuffer = floatBuffer_1.default; const floatFactory_1 = tslib_1.__importDefault(__webpack_require__(192)); exports.FloatFactory = floatFactory_1.default; -const fetch_1 = tslib_1.__importDefault(__webpack_require__(309)); +const fetch_1 = tslib_1.__importDefault(__webpack_require__(310)); exports.fetch = fetch_1.default; -const download_1 = tslib_1.__importDefault(__webpack_require__(270)); +const download_1 = tslib_1.__importDefault(__webpack_require__(271)); exports.download = download_1.default; -const highligher_1 = tslib_1.__importDefault(__webpack_require__(347)); +const highligher_1 = tslib_1.__importDefault(__webpack_require__(348)); exports.Highligher = highligher_1.default; const fileSystemWatcher_1 = tslib_1.__importDefault(__webpack_require__(222)); exports.FileSystemWatcher = fileSystemWatcher_1.default; -const services_1 = tslib_1.__importDefault(__webpack_require__(349)); +const services_1 = tslib_1.__importDefault(__webpack_require__(350)); exports.services = services_1.default; -const sources_1 = tslib_1.__importDefault(__webpack_require__(254)); +const sources_1 = tslib_1.__importDefault(__webpack_require__(255)); exports.sources = sources_1.default; const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); exports.workspace = workspace_1.default; -const extensions_1 = tslib_1.__importDefault(__webpack_require__(255)); +const extensions_1 = tslib_1.__importDefault(__webpack_require__(256)); exports.extensions = extensions_1.default; -const manager_1 = tslib_1.__importDefault(__webpack_require__(365)); +const manager_1 = tslib_1.__importDefault(__webpack_require__(366)); exports.listManager = manager_1.default; const manager_2 = tslib_1.__importDefault(__webpack_require__(193)); exports.snippetManager = manager_2.default; -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); exports.BasicList = basic_1.default; const manager_3 = tslib_1.__importDefault(__webpack_require__(191)); exports.diagnosticManager = manager_3.default; -const ansiparse_1 = __webpack_require__(348); +const ansiparse_1 = __webpack_require__(349); exports.ansiparse = ansiparse_1.ansiparse; -const watchman_1 = tslib_1.__importDefault(__webpack_require__(235)); +const watchman_1 = tslib_1.__importDefault(__webpack_require__(236)); exports.Watchman = watchman_1.default; const vscode_uri_1 = __webpack_require__(183); exports.Uri = vscode_uri_1.URI; @@ -50997,7 +51111,7 @@ exports.Disposable = vscode_languageserver_protocol_1.Disposable; exports.Event = vscode_languageserver_protocol_1.Event; exports.Emitter = vscode_languageserver_protocol_1.Emitter; tslib_1.__exportStar(__webpack_require__(196), exports); -tslib_1.__exportStar(__webpack_require__(350), exports); +tslib_1.__exportStar(__webpack_require__(351), exports); var util_1 = __webpack_require__(177); exports.disposeAll = util_1.disposeAll; exports.runCommand = util_1.runCommand; @@ -51006,7 +51120,7 @@ exports.executable = util_1.executable; //# sourceMappingURL=index.js.map /***/ }), -/* 320 */ +/* 321 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51015,32 +51129,33 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); const commands_1 = tslib_1.__importDefault(__webpack_require__(190)); +const events_1 = tslib_1.__importDefault(__webpack_require__(149)); const manager_1 = tslib_1.__importDefault(__webpack_require__(191)); -const codeActionmanager_1 = tslib_1.__importDefault(__webpack_require__(321)); -const codeLensManager_1 = tslib_1.__importDefault(__webpack_require__(324)); -const declarationManager_1 = tslib_1.__importDefault(__webpack_require__(325)); -const definitionManager_1 = tslib_1.__importDefault(__webpack_require__(326)); -const documentColorManager_1 = tslib_1.__importDefault(__webpack_require__(327)); -const documentHighlightManager_1 = tslib_1.__importDefault(__webpack_require__(328)); -const documentLinkManager_1 = tslib_1.__importDefault(__webpack_require__(329)); -const documentSymbolManager_1 = tslib_1.__importDefault(__webpack_require__(330)); -const foldingRangeManager_1 = tslib_1.__importDefault(__webpack_require__(331)); -const formatManager_1 = tslib_1.__importDefault(__webpack_require__(332)); -const formatRangeManager_1 = tslib_1.__importDefault(__webpack_require__(333)); -const hoverManager_1 = tslib_1.__importDefault(__webpack_require__(334)); -const implementationManager_1 = tslib_1.__importDefault(__webpack_require__(335)); -const onTypeFormatManager_1 = tslib_1.__importDefault(__webpack_require__(336)); -const rangeManager_1 = tslib_1.__importDefault(__webpack_require__(337)); -const referenceManager_1 = tslib_1.__importDefault(__webpack_require__(338)); -const renameManager_1 = tslib_1.__importDefault(__webpack_require__(339)); -const signatureManager_1 = tslib_1.__importDefault(__webpack_require__(340)); -const typeDefinitionManager_1 = tslib_1.__importDefault(__webpack_require__(341)); -const workspaceSymbolsManager_1 = tslib_1.__importDefault(__webpack_require__(342)); +const codeActionmanager_1 = tslib_1.__importDefault(__webpack_require__(322)); +const codeLensManager_1 = tslib_1.__importDefault(__webpack_require__(325)); +const declarationManager_1 = tslib_1.__importDefault(__webpack_require__(326)); +const definitionManager_1 = tslib_1.__importDefault(__webpack_require__(327)); +const documentColorManager_1 = tslib_1.__importDefault(__webpack_require__(328)); +const documentHighlightManager_1 = tslib_1.__importDefault(__webpack_require__(329)); +const documentLinkManager_1 = tslib_1.__importDefault(__webpack_require__(330)); +const documentSymbolManager_1 = tslib_1.__importDefault(__webpack_require__(331)); +const foldingRangeManager_1 = tslib_1.__importDefault(__webpack_require__(332)); +const formatManager_1 = tslib_1.__importDefault(__webpack_require__(333)); +const formatRangeManager_1 = tslib_1.__importDefault(__webpack_require__(334)); +const hoverManager_1 = tslib_1.__importDefault(__webpack_require__(335)); +const implementationManager_1 = tslib_1.__importDefault(__webpack_require__(336)); +const onTypeFormatManager_1 = tslib_1.__importDefault(__webpack_require__(337)); +const rangeManager_1 = tslib_1.__importDefault(__webpack_require__(338)); +const referenceManager_1 = tslib_1.__importDefault(__webpack_require__(339)); +const renameManager_1 = tslib_1.__importDefault(__webpack_require__(340)); +const signatureManager_1 = tslib_1.__importDefault(__webpack_require__(341)); +const typeDefinitionManager_1 = tslib_1.__importDefault(__webpack_require__(342)); +const workspaceSymbolsManager_1 = tslib_1.__importDefault(__webpack_require__(343)); const manager_2 = tslib_1.__importDefault(__webpack_require__(193)); -const sources_1 = tslib_1.__importDefault(__webpack_require__(254)); +const sources_1 = tslib_1.__importDefault(__webpack_require__(255)); const types_1 = __webpack_require__(196); const util_1 = __webpack_require__(177); -const complete = tslib_1.__importStar(__webpack_require__(343)); +const complete = tslib_1.__importStar(__webpack_require__(344)); const position_1 = __webpack_require__(221); const string_1 = __webpack_require__(218); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); @@ -51461,18 +51576,17 @@ class Languages { completeItems = Array.isArray(result) ? result : result.items; if (!completeItems || completeItems.length == 0) return null; - // used for fixed col + let startcol = this.getStartColumn(opt.line, completeItems); let option = Object.assign({}, opt); - if (typeof result.startcol == 'number') { - option.col = result.startcol; - } + if (startcol != null) + option.col = startcol; let items = completeItems.map((o, index) => { let item = this.convertVimCompleteItem(o, shortcut, option); item.index = index; return item; }); return { - startcol: result.startcol, + startcol, isIncomplete: !!result.isIncomplete, items }; @@ -51583,6 +51697,29 @@ class Languages { let doc = workspace_1.default.getDocument(bufnr); if (!doc) return false; + if (events_1.default.cursor.lnum == option.linenr + 1) { + // line break during completion + let preline = await nvim.call('getline', [option.linenr]); + let { length } = preline; + let { range } = textEdit; + if (length && range.start.character > length) { + line = line.slice(preline.length); + let spaceCount = 0; + if (/^\s/.test(line)) { + spaceCount = line.match(/^\s+/)[0].length; + line = line.slice(spaceCount); + } + range.start.character = range.start.character - length - spaceCount; + range.end.character = range.end.character - length - spaceCount; + range.start.line = range.start.line + 1; + range.end.line = range.end.line + 1; + linenr = linenr + 1; + } + else { + // can't handle + return false; + } + } let { range, newText } = textEdit; let isSnippet = item.insertTextFormat === vscode_languageserver_protocol_1.InsertTextFormat.Snippet; // replace inserted word @@ -51631,6 +51768,22 @@ class Languages { if (changed) await workspace_1.default.moveTo(vscode_languageserver_protocol_1.Position.create(pos.line + changed.line, pos.character + changed.character)); } + getStartColumn(line, items) { + let first = items[0]; + if (!first.textEdit) + return null; + let { character } = first.textEdit.range.start; + for (let i = 0; i < 10; i++) { + let o = items[i]; + if (!o) + break; + if (!o.textEdit) + return null; + if (o.textEdit.range.start.character !== character) + return null; + } + return string_1.byteIndex(line, character); + } convertVimCompleteItem(item, shortcut, opt) { let { echodocSupport, detailField, detailMaxLength, invalidInsertCharacters } = this.completeConfig; let hasAdditionalEdit = item.additionalTextEdits && item.additionalTextEdits.length > 0; @@ -51765,7 +51918,7 @@ exports.default = new Languages(); //# sourceMappingURL=languages.js.map /***/ }), -/* 321 */ +/* 322 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51773,8 +51926,8 @@ exports.default = new Languages(); Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); const logger = __webpack_require__(2)('codeActionManager'); class CodeActionManager extends manager_1.default { register(selector, provider, clientId, codeActionKinds) { @@ -51839,7 +51992,7 @@ exports.default = CodeActionManager; //# sourceMappingURL=codeActionmanager.js.map /***/ }), -/* 322 */ +/* 323 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51919,7 +52072,7 @@ exports.default = Manager; //# sourceMappingURL=manager.js.map /***/ }), -/* 323 */ +/* 324 */ /***/ (function(module, exports, __webpack_require__) { var rng = __webpack_require__(229); @@ -51954,7 +52107,7 @@ module.exports = v4; /***/ }), -/* 324 */ +/* 325 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51962,9 +52115,9 @@ module.exports = v4; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); -const lodash_1 = __webpack_require__(317); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); +const lodash_1 = __webpack_require__(318); // const logger = require('../util/logger')('codeActionManager') class CodeLensManager extends manager_1.default { register(selector, provider) { @@ -52018,7 +52171,7 @@ exports.default = CodeLensManager; //# sourceMappingURL=codeLensManager.js.map /***/ }), -/* 325 */ +/* 326 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52026,8 +52179,8 @@ exports.default = CodeLensManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); const logger = __webpack_require__(2)('definitionManager'); class DeclarationManager extends manager_1.default { register(selector, provider) { @@ -52056,7 +52209,7 @@ exports.default = DeclarationManager; //# sourceMappingURL=declarationManager.js.map /***/ }), -/* 326 */ +/* 327 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52064,8 +52217,8 @@ exports.default = DeclarationManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); const logger = __webpack_require__(2)('definitionManager'); class DefinitionManager extends manager_1.default { register(selector, provider) { @@ -52097,7 +52250,7 @@ exports.default = DefinitionManager; //# sourceMappingURL=definitionManager.js.map /***/ }), -/* 327 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52105,8 +52258,8 @@ exports.default = DefinitionManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class DocumentColorManager extends manager_1.default { register(selector, provider) { let item = { @@ -52144,7 +52297,7 @@ exports.default = DocumentColorManager; //# sourceMappingURL=documentColorManager.js.map /***/ }), -/* 328 */ +/* 329 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52152,8 +52305,8 @@ exports.default = DocumentColorManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class DocumentHighlightManager extends manager_1.default { register(selector, provider) { let item = { @@ -52181,7 +52334,7 @@ exports.default = DocumentHighlightManager; //# sourceMappingURL=documentHighlightManager.js.map /***/ }), -/* 329 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52189,8 +52342,8 @@ exports.default = DocumentHighlightManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class DocumentLinkManager extends manager_1.default { register(selector, provider) { let item = { @@ -52244,7 +52397,7 @@ exports.default = DocumentLinkManager; //# sourceMappingURL=documentLinkManager.js.map /***/ }), -/* 330 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52252,8 +52405,8 @@ exports.default = DocumentLinkManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class DocumentSymbolManager extends manager_1.default { register(selector, provider) { let item = { @@ -52281,7 +52434,7 @@ exports.default = DocumentSymbolManager; //# sourceMappingURL=documentSymbolManager.js.map /***/ }), -/* 331 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52289,8 +52442,8 @@ exports.default = DocumentSymbolManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class FoldingRangeManager extends manager_1.default { register(selector, provider) { let item = { @@ -52318,7 +52471,7 @@ exports.default = FoldingRangeManager; //# sourceMappingURL=foldingRangeManager.js.map /***/ }), -/* 332 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52326,8 +52479,8 @@ exports.default = FoldingRangeManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class FormatManager extends manager_1.default { register(selector, provider, priority = 0) { let item = { @@ -52356,7 +52509,7 @@ exports.default = FormatManager; //# sourceMappingURL=formatManager.js.map /***/ }), -/* 333 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52364,8 +52517,8 @@ exports.default = FormatManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class FormatRangeManager extends manager_1.default { register(selector, provider, priority = 0) { let item = { @@ -52394,7 +52547,7 @@ exports.default = FormatRangeManager; //# sourceMappingURL=formatRangeManager.js.map /***/ }), -/* 334 */ +/* 335 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52402,8 +52555,8 @@ exports.default = FormatRangeManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class HoverManager extends manager_1.default { register(selector, provider) { let item = { @@ -52437,7 +52590,7 @@ exports.default = HoverManager; //# sourceMappingURL=hoverManager.js.map /***/ }), -/* 335 */ +/* 336 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52445,8 +52598,8 @@ exports.default = HoverManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class ImplementationManager extends manager_1.default { register(selector, provider) { let item = { @@ -52477,7 +52630,7 @@ exports.default = ImplementationManager; //# sourceMappingURL=implementationManager.js.map /***/ }), -/* 336 */ +/* 337 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52538,7 +52691,7 @@ exports.default = OnTypeFormatManager; //# sourceMappingURL=onTypeFormatManager.js.map /***/ }), -/* 337 */ +/* 338 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52546,8 +52699,8 @@ exports.default = OnTypeFormatManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class SelectionRangeManager extends manager_1.default { register(selector, provider) { let item = { @@ -52575,7 +52728,7 @@ exports.default = SelectionRangeManager; //# sourceMappingURL=rangeManager.js.map /***/ }), -/* 338 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52583,8 +52736,8 @@ exports.default = SelectionRangeManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class ReferenceManager extends manager_1.default { register(selector, provider) { let item = { @@ -52615,7 +52768,7 @@ exports.default = ReferenceManager; //# sourceMappingURL=referenceManager.js.map /***/ }), -/* 339 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52623,8 +52776,8 @@ exports.default = ReferenceManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class RenameManager extends manager_1.default { register(selector, provider) { let item = { @@ -52665,7 +52818,7 @@ exports.default = RenameManager; //# sourceMappingURL=renameManager.js.map /***/ }), -/* 340 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52673,8 +52826,8 @@ exports.default = RenameManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class SignatureManager extends manager_1.default { register(selector, provider, triggerCharacters) { let characters = triggerCharacters.reduce((p, c) => { @@ -52715,7 +52868,7 @@ exports.default = SignatureManager; //# sourceMappingURL=signatureManager.js.map /***/ }), -/* 341 */ +/* 342 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52723,8 +52876,8 @@ exports.default = SignatureManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class TypeDefinitionManager extends manager_1.default { register(selector, provider) { let item = { @@ -52755,7 +52908,7 @@ exports.default = TypeDefinitionManager; //# sourceMappingURL=typeDefinitionManager.js.map /***/ }), -/* 342 */ +/* 343 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52763,8 +52916,8 @@ exports.default = TypeDefinitionManager; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const manager_1 = tslib_1.__importDefault(__webpack_require__(322)); -const uuid = __webpack_require__(323); +const manager_1 = tslib_1.__importDefault(__webpack_require__(323)); +const uuid = __webpack_require__(324); class WorkspaceSymbolManager extends manager_1.default { register(selector, provider) { let item = { @@ -52807,14 +52960,14 @@ exports.default = WorkspaceSymbolManager; //# sourceMappingURL=workspaceSymbolsManager.js.map /***/ }), -/* 343 */ +/* 344 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const vscode_languageserver_types_1 = __webpack_require__(162); -const parser_1 = __webpack_require__(251); +const parser_1 = __webpack_require__(252); const string_1 = __webpack_require__(218); // const logger = require('./logger')('util-complete') function getPosition(opt) { @@ -52909,14 +53062,14 @@ exports.getValidWord = getValidWord; //# sourceMappingURL=complete.js.map /***/ }), -/* 344 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const highlight_1 = __webpack_require__(345); +const highlight_1 = __webpack_require__(346); const string_1 = __webpack_require__(218); const array_1 = __webpack_require__(220); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); @@ -53115,7 +53268,7 @@ exports.default = FloatBuffer; //# sourceMappingURL=floatBuffer.js.map /***/ }), -/* 345 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53127,12 +53280,12 @@ const cp = tslib_1.__importStar(__webpack_require__(178)); const crypto_1 = __webpack_require__(160); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); -const lodash_1 = __webpack_require__(317); +const lodash_1 = __webpack_require__(318); const os_1 = tslib_1.__importDefault(__webpack_require__(14)); const fs_1 = tslib_1.__importDefault(__webpack_require__(4)); const string_1 = __webpack_require__(218); -const processes_1 = __webpack_require__(346); -const uuid = __webpack_require__(323); +const processes_1 = __webpack_require__(347); +const uuid = __webpack_require__(324); const logger = __webpack_require__(2)('util-highlights'); const diagnosticFiletypes = ['Error', 'Warning', 'Info', 'Hint']; const cache = {}; @@ -53323,7 +53476,7 @@ exports.getHiglights = getHiglights; //# sourceMappingURL=highlight.js.map /***/ }), -/* 346 */ +/* 347 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53379,13 +53532,13 @@ exports.terminate = terminate; //# sourceMappingURL=processes.js.map /***/ }), -/* 347 */ +/* 348 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const ansiparse_1 = __webpack_require__(348); +const ansiparse_1 = __webpack_require__(349); const string_1 = __webpack_require__(218); /** * Build highlights, with lines and highlights @@ -53476,7 +53629,7 @@ exports.default = Highlighter; //# sourceMappingURL=highligher.js.map /***/ }), -/* 348 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53695,7 +53848,7 @@ exports.ansiparse = ansiparse; //# sourceMappingURL=ansiparse.js.map /***/ }), -/* 349 */ +/* 350 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53707,7 +53860,7 @@ const fs_1 = tslib_1.__importDefault(__webpack_require__(4)); const net_1 = tslib_1.__importDefault(__webpack_require__(96)); const os_1 = tslib_1.__importDefault(__webpack_require__(14)); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const language_client_1 = __webpack_require__(350); +const language_client_1 = __webpack_require__(351); const types_1 = __webpack_require__(196); const util_1 = __webpack_require__(177); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); @@ -54180,7 +54333,7 @@ exports.default = new ServiceManager(); //# sourceMappingURL=services.js.map /***/ }), -/* 350 */ +/* 351 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -54200,21 +54353,21 @@ const which_1 = tslib_1.__importDefault(__webpack_require__(184)); const types_1 = __webpack_require__(196); const util_1 = __webpack_require__(177); const Is = tslib_1.__importStar(__webpack_require__(198)); -const processes_1 = __webpack_require__(346); +const processes_1 = __webpack_require__(347); const string_1 = __webpack_require__(218); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const client_1 = __webpack_require__(351); -const colorProvider_1 = __webpack_require__(356); -const configuration_1 = __webpack_require__(357); -const declaration_1 = __webpack_require__(358); -const foldingRange_1 = __webpack_require__(359); -const implementation_1 = __webpack_require__(360); -const progress_1 = __webpack_require__(361); -const typeDefinition_1 = __webpack_require__(362); -const workspaceFolders_1 = __webpack_require__(363); -const selectionRange_1 = __webpack_require__(364); +const client_1 = __webpack_require__(352); +const colorProvider_1 = __webpack_require__(357); +const configuration_1 = __webpack_require__(358); +const declaration_1 = __webpack_require__(359); +const foldingRange_1 = __webpack_require__(360); +const implementation_1 = __webpack_require__(361); +const progress_1 = __webpack_require__(362); +const typeDefinition_1 = __webpack_require__(363); +const workspaceFolders_1 = __webpack_require__(364); +const selectionRange_1 = __webpack_require__(365); const logger = __webpack_require__(2)('language-client-index'); -tslib_1.__exportStar(__webpack_require__(351), exports); +tslib_1.__exportStar(__webpack_require__(352), exports); var Executable; (function (Executable) { function is(value) { @@ -54659,7 +54812,7 @@ var ProposedFeatures; //# sourceMappingURL=index.js.map /***/ }), -/* 351 */ +/* 352 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -54675,15 +54828,15 @@ const path_1 = tslib_1.__importDefault(__webpack_require__(20)); const vscode_languageserver_protocol_1 = __webpack_require__(150); const vscode_uri_1 = __webpack_require__(183); const commands_1 = tslib_1.__importDefault(__webpack_require__(190)); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); const fs_1 = __webpack_require__(208); const Is = tslib_1.__importStar(__webpack_require__(198)); -const lodash_1 = __webpack_require__(317); +const lodash_1 = __webpack_require__(318); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const progressPart_1 = tslib_1.__importDefault(__webpack_require__(352)); -const async_1 = __webpack_require__(353); -const cv = tslib_1.__importStar(__webpack_require__(354)); -const UUID = tslib_1.__importStar(__webpack_require__(355)); +const progressPart_1 = tslib_1.__importDefault(__webpack_require__(353)); +const async_1 = __webpack_require__(354); +const cv = tslib_1.__importStar(__webpack_require__(355)); +const UUID = tslib_1.__importStar(__webpack_require__(356)); const logger = __webpack_require__(2)('language-client-client'); class ConsoleLogger { error(message) { @@ -57278,7 +57431,7 @@ exports.BaseLanguageClient = BaseLanguageClient; //# sourceMappingURL=client.js.map /***/ }), -/* 352 */ +/* 353 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57376,7 +57529,7 @@ exports.default = new ProgressManager(); //# sourceMappingURL=progressPart.js.map /***/ }), -/* 353 */ +/* 354 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57458,13 +57611,13 @@ exports.Delayer = Delayer; //# sourceMappingURL=async.js.map /***/ }), -/* 354 */ +/* 355 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const lodash_1 = __webpack_require__(317); +const lodash_1 = __webpack_require__(318); function asLanguageIds(documentSelector) { let res = documentSelector.map(filter => { if (typeof filter == 'string') { @@ -57586,13 +57739,13 @@ exports.asCodeLensParams = asCodeLensParams; //# sourceMappingURL=converter.js.map /***/ }), -/* 355 */ +/* 356 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const uuidv4 = __webpack_require__(323); +const uuidv4 = __webpack_require__(324); function generateUuid() { return uuidv4(); } @@ -57600,7 +57753,7 @@ exports.generateUuid = generateUuid; //# sourceMappingURL=uuid.js.map /***/ }), -/* 356 */ +/* 357 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57612,8 +57765,8 @@ exports.generateUuid = generateUuid; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); -const client_1 = __webpack_require__(351); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); +const client_1 = __webpack_require__(352); function ensure(target, key) { if (target[key] === void 0) { target[key] = {}; @@ -57678,7 +57831,7 @@ exports.ColorProviderFeature = ColorProviderFeature; //# sourceMappingURL=colorProvider.js.map /***/ }), -/* 357 */ +/* 358 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57752,7 +57905,7 @@ exports.ConfigurationFeature = ConfigurationFeature; //# sourceMappingURL=configuration.js.map /***/ }), -/* 358 */ +/* 359 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57764,9 +57917,9 @@ exports.ConfigurationFeature = ConfigurationFeature; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); -const client_1 = __webpack_require__(351); -const converter_1 = __webpack_require__(354); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); +const client_1 = __webpack_require__(352); +const converter_1 = __webpack_require__(355); function ensure(target, key) { if (target[key] === void 0) { target[key] = {}; @@ -57812,7 +57965,7 @@ exports.DeclarationFeature = DeclarationFeature; //# sourceMappingURL=declaration.js.map /***/ }), -/* 359 */ +/* 360 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57824,8 +57977,8 @@ exports.DeclarationFeature = DeclarationFeature; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); -const client_1 = __webpack_require__(351); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); +const client_1 = __webpack_require__(352); function ensure(target, key) { if (target[key] === void 0) { target[key] = {}; @@ -57875,7 +58028,7 @@ exports.FoldingRangeFeature = FoldingRangeFeature; //# sourceMappingURL=foldingRange.js.map /***/ }), -/* 360 */ +/* 361 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57887,9 +58040,9 @@ const tslib_1 = __webpack_require__(3); * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ const vscode_languageserver_protocol_1 = __webpack_require__(150); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); -const client_1 = __webpack_require__(351); -const cv = tslib_1.__importStar(__webpack_require__(354)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); +const client_1 = __webpack_require__(352); +const cv = tslib_1.__importStar(__webpack_require__(355)); function ensure(target, key) { if (target[key] === void 0) { target[key] = {}; @@ -57935,7 +58088,7 @@ exports.ImplementationFeature = ImplementationFeature; //# sourceMappingURL=implementation.js.map /***/ }), -/* 361 */ +/* 362 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57947,7 +58100,7 @@ exports.ImplementationFeature = ImplementationFeature; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const progressPart_1 = tslib_1.__importDefault(__webpack_require__(352)); +const progressPart_1 = tslib_1.__importDefault(__webpack_require__(353)); // const logger = require('../util/logger')('language-client-progress') function ensure(target, key) { if (target[key] === void 0) { @@ -57973,7 +58126,7 @@ exports.ProgressFeature = ProgressFeature; //# sourceMappingURL=progress.js.map /***/ }), -/* 362 */ +/* 363 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57985,9 +58138,9 @@ const tslib_1 = __webpack_require__(3); * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ const vscode_languageserver_protocol_1 = __webpack_require__(150); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); -const client_1 = __webpack_require__(351); -const cv = tslib_1.__importStar(__webpack_require__(354)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); +const client_1 = __webpack_require__(352); +const cv = tslib_1.__importStar(__webpack_require__(355)); function ensure(target, key) { if (target[key] === void 0) { target[key] = {}; @@ -58033,7 +58186,7 @@ exports.TypeDefinitionFeature = TypeDefinitionFeature; //# sourceMappingURL=typeDefinition.js.map /***/ }), -/* 363 */ +/* 364 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -58046,7 +58199,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const UUID = tslib_1.__importStar(__webpack_require__(355)); +const UUID = tslib_1.__importStar(__webpack_require__(356)); const logger = __webpack_require__(2)('language-client-workspaceFolder'); function access(target, key) { if (target === void 0) { @@ -58177,7 +58330,7 @@ exports.WorkspaceFoldersFeature = WorkspaceFoldersFeature; //# sourceMappingURL=workspaceFolders.js.map /***/ }), -/* 364 */ +/* 365 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -58189,8 +58342,8 @@ exports.WorkspaceFoldersFeature = WorkspaceFoldersFeature; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); -const client_1 = __webpack_require__(351); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); +const client_1 = __webpack_require__(352); function ensure(target, key) { if (target[key] === void 0) { target[key] = {}; @@ -58239,7 +58392,7 @@ exports.SelectionRangeFeature = SelectionRangeFeature; //# sourceMappingURL=selectionRange.js.map /***/ }), -/* 365 */ +/* 366 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -58249,29 +58402,29 @@ const tslib_1 = __webpack_require__(3); const debounce_1 = tslib_1.__importDefault(__webpack_require__(179)); const vscode_languageserver_protocol_1 = __webpack_require__(150); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); -const extensions_1 = tslib_1.__importDefault(__webpack_require__(255)); +const extensions_1 = tslib_1.__importDefault(__webpack_require__(256)); const util_1 = __webpack_require__(177); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const highligher_1 = tslib_1.__importDefault(__webpack_require__(347)); -const configuration_1 = tslib_1.__importDefault(__webpack_require__(366)); -const history_1 = tslib_1.__importDefault(__webpack_require__(367)); -const mappings_1 = tslib_1.__importDefault(__webpack_require__(369)); -const prompt_1 = tslib_1.__importDefault(__webpack_require__(370)); -const commands_1 = tslib_1.__importDefault(__webpack_require__(402)); -const diagnostics_1 = tslib_1.__importDefault(__webpack_require__(404)); -const extensions_2 = tslib_1.__importDefault(__webpack_require__(406)); -const folders_1 = tslib_1.__importDefault(__webpack_require__(407)); -const links_1 = tslib_1.__importDefault(__webpack_require__(408)); -const lists_1 = tslib_1.__importDefault(__webpack_require__(409)); -const location_1 = tslib_1.__importDefault(__webpack_require__(405)); -const outline_1 = tslib_1.__importDefault(__webpack_require__(410)); -const output_1 = tslib_1.__importDefault(__webpack_require__(412)); -const services_1 = tslib_1.__importDefault(__webpack_require__(413)); -const sources_1 = tslib_1.__importDefault(__webpack_require__(414)); -const symbols_1 = tslib_1.__importDefault(__webpack_require__(415)); -const actions_1 = tslib_1.__importDefault(__webpack_require__(417)); -const ui_1 = tslib_1.__importDefault(__webpack_require__(418)); -const worker_1 = tslib_1.__importDefault(__webpack_require__(419)); +const highligher_1 = tslib_1.__importDefault(__webpack_require__(348)); +const configuration_1 = tslib_1.__importDefault(__webpack_require__(367)); +const history_1 = tslib_1.__importDefault(__webpack_require__(368)); +const mappings_1 = tslib_1.__importDefault(__webpack_require__(370)); +const prompt_1 = tslib_1.__importDefault(__webpack_require__(371)); +const commands_1 = tslib_1.__importDefault(__webpack_require__(403)); +const diagnostics_1 = tslib_1.__importDefault(__webpack_require__(405)); +const extensions_2 = tslib_1.__importDefault(__webpack_require__(407)); +const folders_1 = tslib_1.__importDefault(__webpack_require__(408)); +const links_1 = tslib_1.__importDefault(__webpack_require__(409)); +const lists_1 = tslib_1.__importDefault(__webpack_require__(410)); +const location_1 = tslib_1.__importDefault(__webpack_require__(406)); +const outline_1 = tslib_1.__importDefault(__webpack_require__(411)); +const output_1 = tslib_1.__importDefault(__webpack_require__(413)); +const services_1 = tslib_1.__importDefault(__webpack_require__(414)); +const sources_1 = tslib_1.__importDefault(__webpack_require__(415)); +const symbols_1 = tslib_1.__importDefault(__webpack_require__(416)); +const actions_1 = tslib_1.__importDefault(__webpack_require__(418)); +const ui_1 = tslib_1.__importDefault(__webpack_require__(419)); +const worker_1 = tslib_1.__importDefault(__webpack_require__(420)); const semver_1 = tslib_1.__importDefault(__webpack_require__(1)); const logger = __webpack_require__(2)('list-manager'); const mouseKeys = ['', '', '', '<2-LeftMouse>']; @@ -59030,7 +59183,7 @@ exports.default = new ListManager(); //# sourceMappingURL=manager.js.map /***/ }), -/* 366 */ +/* 367 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -59146,14 +59299,14 @@ exports.default = ListConfiguration; //# sourceMappingURL=configuration.js.map /***/ }), -/* 367 */ +/* 368 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const fuzzy_1 = __webpack_require__(368); +const fuzzy_1 = __webpack_require__(369); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const logger = __webpack_require__(2)('list-history'); class History { @@ -59234,7 +59387,7 @@ exports.default = History; //# sourceMappingURL=history.js.map /***/ }), -/* 368 */ +/* 369 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -59297,16 +59450,16 @@ exports.fuzzyMatch = fuzzyMatch; //# sourceMappingURL=fuzzy.js.map /***/ }), -/* 369 */ +/* 370 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -__webpack_require__(314); +__webpack_require__(315); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const configuration_1 = __webpack_require__(366); +const configuration_1 = __webpack_require__(367); const logger = __webpack_require__(2)('list-mappings'); class Mappings { constructor(manager, nvim, config) { @@ -59666,7 +59819,7 @@ exports.default = Mappings; //# sourceMappingURL=mappings.js.map /***/ }), -/* 370 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -59675,7 +59828,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const clipboardy_1 = tslib_1.__importDefault(__webpack_require__(371)); +const clipboardy_1 = tslib_1.__importDefault(__webpack_require__(372)); const logger = __webpack_require__(2)('list-prompt'); class Prompt { constructor(nvim, config) { @@ -59886,16 +60039,16 @@ exports.default = Prompt; //# sourceMappingURL=prompt.js.map /***/ }), -/* 371 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const isWSL = __webpack_require__(372); -const termux = __webpack_require__(373); -const linux = __webpack_require__(398); -const macos = __webpack_require__(399); -const windows = __webpack_require__(400); +const isWSL = __webpack_require__(373); +const termux = __webpack_require__(374); +const linux = __webpack_require__(399); +const macos = __webpack_require__(400); +const windows = __webpack_require__(401); const platformLib = (() => { switch (process.platform) { @@ -59941,7 +60094,7 @@ exports.readSync = () => platformLib.pasteSync({stripEof: false}).stdout; /***/ }), -/* 372 */ +/* 373 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -59973,12 +60126,12 @@ if (process.env.__IS_WSL_TEST__) { /***/ }), -/* 373 */ +/* 374 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const execa = __webpack_require__(374); +const execa = __webpack_require__(375); const handler = error => { if (error.code === 'ENOENT') { @@ -60021,22 +60174,22 @@ module.exports = { /***/ }), -/* 374 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(20); const childProcess = __webpack_require__(178); -const crossSpawn = __webpack_require__(375); -const stripEof = __webpack_require__(386); -const npmRunPath = __webpack_require__(387); -const isStream = __webpack_require__(388); -const _getStream = __webpack_require__(389); -const pFinally = __webpack_require__(393); -const onExit = __webpack_require__(394); -const errname = __webpack_require__(396); -const stdio = __webpack_require__(397); +const crossSpawn = __webpack_require__(376); +const stripEof = __webpack_require__(387); +const npmRunPath = __webpack_require__(388); +const isStream = __webpack_require__(389); +const _getStream = __webpack_require__(390); +const pFinally = __webpack_require__(394); +const onExit = __webpack_require__(395); +const errname = __webpack_require__(397); +const stdio = __webpack_require__(398); const TEN_MEGABYTES = 1000 * 1000 * 10; @@ -60389,15 +60542,15 @@ module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, /***/ }), -/* 375 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const cp = __webpack_require__(178); -const parse = __webpack_require__(376); -const enoent = __webpack_require__(385); +const parse = __webpack_require__(377); +const enoent = __webpack_require__(386); function spawn(command, args, options) { // Parse the arguments @@ -60435,18 +60588,18 @@ module.exports._enoent = enoent; /***/ }), -/* 376 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(20); -const niceTry = __webpack_require__(377); -const resolveCommand = __webpack_require__(378); -const escape = __webpack_require__(380); -const readShebang = __webpack_require__(381); -const semver = __webpack_require__(384); +const niceTry = __webpack_require__(378); +const resolveCommand = __webpack_require__(379); +const escape = __webpack_require__(381); +const readShebang = __webpack_require__(382); +const semver = __webpack_require__(385); const isWin = process.platform === 'win32'; const isExecutableRegExp = /\.(?:com|exe)$/i; @@ -60567,7 +60720,7 @@ module.exports = parse; /***/ }), -/* 377 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -60585,7 +60738,7 @@ module.exports = function(fn) { } /***/ }), -/* 378 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -60593,7 +60746,7 @@ module.exports = function(fn) { const path = __webpack_require__(20); const which = __webpack_require__(184); -const pathKey = __webpack_require__(379)(); +const pathKey = __webpack_require__(380)(); function resolveCommandAttempt(parsed, withoutPathExt) { const cwd = process.cwd(); @@ -60639,7 +60792,7 @@ module.exports = resolveCommand; /***/ }), -/* 379 */ +/* 380 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -60659,7 +60812,7 @@ module.exports = opts => { /***/ }), -/* 380 */ +/* 381 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -60711,14 +60864,14 @@ module.exports.argument = escapeArgument; /***/ }), -/* 381 */ +/* 382 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const fs = __webpack_require__(4); -const shebangCommand = __webpack_require__(382); +const shebangCommand = __webpack_require__(383); function readShebang(command) { // Read the first 150 bytes from the file @@ -60750,12 +60903,12 @@ module.exports = readShebang; /***/ }), -/* 382 */ +/* 383 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var shebangRegex = __webpack_require__(383); +var shebangRegex = __webpack_require__(384); module.exports = function (str) { var match = str.match(shebangRegex); @@ -60776,7 +60929,7 @@ module.exports = function (str) { /***/ }), -/* 383 */ +/* 384 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -60785,7 +60938,7 @@ module.exports = /^#!.*/; /***/ }), -/* 384 */ +/* 385 */ /***/ (function(module, exports) { exports = module.exports = SemVer @@ -62274,7 +62427,7 @@ function coerce (version) { /***/ }), -/* 385 */ +/* 386 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -62340,7 +62493,7 @@ module.exports = { /***/ }), -/* 386 */ +/* 387 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -62362,13 +62515,13 @@ module.exports = function (x) { /***/ }), -/* 387 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(20); -const pathKey = __webpack_require__(379); +const pathKey = __webpack_require__(380); module.exports = opts => { opts = Object.assign({ @@ -62408,7 +62561,7 @@ module.exports.env = opts => { /***/ }), -/* 388 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -62436,13 +62589,13 @@ isStream.transform = function (stream) { /***/ }), -/* 389 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const pump = __webpack_require__(390); -const bufferStream = __webpack_require__(392); +const pump = __webpack_require__(391); +const bufferStream = __webpack_require__(393); class MaxBufferError extends Error { constructor() { @@ -62493,11 +62646,11 @@ module.exports.MaxBufferError = MaxBufferError; /***/ }), -/* 390 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { -var once = __webpack_require__(250) -var eos = __webpack_require__(391) +var once = __webpack_require__(251) +var eos = __webpack_require__(392) var fs = __webpack_require__(4) // we only need fs to get the ReadStream and WriteStream prototypes var noop = function () {} @@ -62581,10 +62734,10 @@ module.exports = pump /***/ }), -/* 391 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { -var once = __webpack_require__(250); +var once = __webpack_require__(251); var noop = function() {}; @@ -62674,7 +62827,7 @@ module.exports = eos; /***/ }), -/* 392 */ +/* 393 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -62732,7 +62885,7 @@ module.exports = options => { /***/ }), -/* 393 */ +/* 394 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -62754,14 +62907,14 @@ module.exports = (promise, onFinally) => { /***/ }), -/* 394 */ +/* 395 */ /***/ (function(module, exports, __webpack_require__) { // Note: since nyc uses this module to output coverage, any lines // that are in the direct sync flow of nyc's outputCoverage are // ignored, since we can never get coverage for them. var assert = __webpack_require__(46) -var signals = __webpack_require__(395) +var signals = __webpack_require__(396) var EE = __webpack_require__(137) /* istanbul ignore if */ @@ -62917,7 +63070,7 @@ function processEmit (ev, arg) { /***/ }), -/* 395 */ +/* 396 */ /***/ (function(module, exports) { // This is not the set of all possible signals. @@ -62976,7 +63129,7 @@ if (process.platform === 'linux') { /***/ }), -/* 396 */ +/* 397 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63022,7 +63175,7 @@ function errname(uv, code) { /***/ }), -/* 397 */ +/* 398 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63070,13 +63223,13 @@ module.exports = opts => { /***/ }), -/* 398 */ +/* 399 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(20); -const execa = __webpack_require__(374); +const execa = __webpack_require__(375); const xsel = 'xsel'; const xselFallback = path.join(__dirname, '../fallbacks/linux/xsel'); @@ -63134,12 +63287,12 @@ module.exports = { /***/ }), -/* 399 */ +/* 400 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const execa = __webpack_require__(374); +const execa = __webpack_require__(375); const env = { ...process.env, @@ -63155,14 +63308,14 @@ module.exports = { /***/ }), -/* 400 */ +/* 401 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const path = __webpack_require__(20); -const execa = __webpack_require__(374); -const arch = __webpack_require__(401); +const execa = __webpack_require__(375); +const arch = __webpack_require__(402); // Binaries from: https://github.com/sindresorhus/win-clipboard const windowBinaryPath = arch() === 'x64' ? @@ -63178,7 +63331,7 @@ module.exports = { /***/ }), -/* 401 */ +/* 402 */ /***/ (function(module, exports, __webpack_require__) { var cp = __webpack_require__(178) @@ -63243,7 +63396,7 @@ module.exports = function arch () { /***/ }), -/* 402 */ +/* 403 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63253,7 +63406,7 @@ const tslib_1 = __webpack_require__(3); const commands_1 = tslib_1.__importDefault(__webpack_require__(190)); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); class CommandsList extends basic_1.default { constructor(nvim) { super(nvim); @@ -63317,7 +63470,7 @@ function score(list, key) { //# sourceMappingURL=commands.js.map /***/ }), -/* 403 */ +/* 404 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63332,7 +63485,7 @@ const util_1 = __webpack_require__(177); const position_1 = __webpack_require__(221); const string_1 = __webpack_require__(218); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const configuration_1 = tslib_1.__importDefault(__webpack_require__(366)); +const configuration_1 = tslib_1.__importDefault(__webpack_require__(367)); const logger = __webpack_require__(2)('list-basic'); class BasicList { constructor(nvim) { @@ -63647,7 +63800,7 @@ exports.default = BasicList; //# sourceMappingURL=basic.js.map /***/ }), -/* 404 */ +/* 405 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63656,7 +63809,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); const manager_1 = tslib_1.__importDefault(__webpack_require__(191)); -const location_1 = tslib_1.__importDefault(__webpack_require__(405)); +const location_1 = tslib_1.__importDefault(__webpack_require__(406)); const fs_1 = __webpack_require__(208); const logger = __webpack_require__(2)('list-symbols'); class DiagnosticsList extends location_1.default { @@ -63699,7 +63852,7 @@ exports.default = DiagnosticsList; //# sourceMappingURL=diagnostics.js.map /***/ }), -/* 405 */ +/* 406 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63708,7 +63861,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_types_1 = __webpack_require__(162); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const vscode_uri_1 = __webpack_require__(183); const fs_1 = __webpack_require__(208); @@ -63778,20 +63931,22 @@ exports.default = LocationList; //# sourceMappingURL=location.js.map /***/ }), -/* 406 */ +/* 407 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); +const fs_1 = tslib_1.__importDefault(__webpack_require__(4)); const os_1 = tslib_1.__importDefault(__webpack_require__(14)); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); -const extensions_1 = tslib_1.__importDefault(__webpack_require__(255)); +const vscode_uri_1 = __webpack_require__(183); +const extensions_1 = tslib_1.__importDefault(__webpack_require__(256)); const util_1 = __webpack_require__(177); -const fs_1 = __webpack_require__(208); -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const fs_2 = __webpack_require__(208); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); const logger = __webpack_require__(2)('list-extensions'); class ExtensionList extends basic_1.default { constructor(nvim) { @@ -63811,6 +63966,15 @@ class ExtensionList extends basic_1.default { } await util_1.wait(100); }, { persist: true, reload: true, parallel: true }); + this.addAction('configuration', async (item) => { + let { root } = item.data; + let jsonFile = path_1.default.join(root, 'package.json'); + if (fs_1.default.existsSync(jsonFile)) { + let lines = fs_1.default.readFileSync(jsonFile, 'utf8').split(/\r?\n/); + let idx = lines.findIndex(s => s.indexOf('"contributes"') !== -1); + await workspace_1.default.jumpTo(vscode_uri_1.URI.file(jsonFile).toString(), { line: idx == -1 ? 0 : idx, character: 0 }); + } + }); this.addAction('disable', async (item) => { let { id, state } = item.data; if (state !== 'disabled') @@ -63827,7 +63991,7 @@ class ExtensionList extends basic_1.default { }, { persist: true, reload: true }); this.addAction('doc', async (item) => { let { root } = item.data; - let files = await fs_1.readdirAsync(root); + let files = await fs_2.readdirAsync(root); let file = files.find(f => /^readme/i.test(f)); if (file) { let escaped = await nvim.call('fnameescape', [path_1.default.join(root, file)]); @@ -63929,7 +64093,7 @@ function getPriority(stat) { //# sourceMappingURL=extensions.js.map /***/ }), -/* 407 */ +/* 408 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -63941,7 +64105,7 @@ const vscode_uri_1 = __webpack_require__(183); const util_1 = __webpack_require__(177); const fs_1 = __webpack_require__(208); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); class FoldList extends basic_1.default { constructor(nvim) { super(nvim); @@ -63985,17 +64149,17 @@ exports.default = FoldList; //# sourceMappingURL=folders.js.map /***/ }), -/* 408 */ +/* 409 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); const vscode_languageserver_types_1 = __webpack_require__(162); const vscode_uri_1 = __webpack_require__(183); const fs_1 = __webpack_require__(208); @@ -64068,14 +64232,14 @@ function formatUri(uri) { //# sourceMappingURL=links.js.map /***/ }), -/* 409 */ +/* 410 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); const mru_1 = tslib_1.__importDefault(__webpack_require__(223)); class LinksList extends basic_1.default { constructor(nvim, listMap) { @@ -64129,7 +64293,7 @@ function score(list, key) { //# sourceMappingURL=lists.js.map /***/ }), -/* 410 */ +/* 411 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -64140,20 +64304,15 @@ const path_1 = tslib_1.__importDefault(__webpack_require__(20)); const vscode_languageserver_types_1 = __webpack_require__(162); const vscode_uri_1 = __webpack_require__(183); const which_1 = tslib_1.__importDefault(__webpack_require__(184)); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); const util_1 = __webpack_require__(177); const fs_1 = __webpack_require__(208); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const location_1 = tslib_1.__importDefault(__webpack_require__(405)); -const convert_1 = __webpack_require__(411); +const location_1 = tslib_1.__importDefault(__webpack_require__(406)); +const convert_1 = __webpack_require__(412); const logger = __webpack_require__(2)('list-symbols'); -function getFilterText(s, args) { - let result = s.name; - const kind = convert_1.getSymbolKind(s.kind); - if (args.kind) { - result += ` ${kind}`; - } - return result; +function getFilterText(s, kind) { + return `${s.name}${kind ? ` ${kind}` : ''}`; } class Outline extends location_1.default { constructor() { @@ -64161,7 +64320,8 @@ class Outline extends location_1.default { this.description = 'symbols of current document'; this.name = 'outline'; this.options = [{ - name: '-kind', + name: '-k, -kind KIND', + hasValue: true, description: 'filters also by kind', }]; } @@ -64181,6 +64341,7 @@ class Outline extends location_1.default { return await this.loadCtagsSymbols(document); if (symbols.length == 0) return []; + let filterKind = args.kind ? args.kind.toLowerCase() : null; let items = []; let isSymbols = !symbols[0].hasOwnProperty('location'); if (isSymbols) { @@ -64191,8 +64352,9 @@ class Outline extends location_1.default { let location = vscode_languageserver_types_1.Location.create(document.uri, s.selectionRange); items.push({ label: `${' '.repeat(level * 2)}${s.name}\t[${kind}]\t${s.range.start.line + 1}`, - filterText: getFilterText(s, args), - location + filterText: getFilterText(s, args.kind == '' ? kind : null), + location, + data: { kind } }); if (s.children && s.children.length) { addSymbols(s.children, level + 1); @@ -64200,6 +64362,9 @@ class Outline extends location_1.default { } } addSymbols(symbols); + if (filterKind) { + items = items.filter(o => o.data.kind.toLowerCase().indexOf(filterKind) == 0); + } } else { symbols.sort((a, b) => { @@ -64212,12 +64377,15 @@ class Outline extends location_1.default { let kind = convert_1.getSymbolKind(s.kind); if (s.name.endsWith(') callback')) continue; + if (filterKind && kind.toLowerCase().indexOf(filterKind) != 0) { + continue; + } if (s.location.uri === undefined) { s.location.uri = document.uri; } items.push({ label: `${s.name} [${kind}] ${s.location.range.start.line + 1}`, - filterText: getFilterText(s, args), + filterText: getFilterText(s, args.kind == '' ? kind : null), location: s.location }); } @@ -64298,7 +64466,7 @@ function sortSymbols(a, b) { //# sourceMappingURL=outline.js.map /***/ }), -/* 411 */ +/* 412 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -64367,7 +64535,7 @@ exports.getSymbolKind = getSymbolKind; //# sourceMappingURL=convert.js.map /***/ }), -/* 412 */ +/* 413 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -64375,7 +64543,7 @@ exports.getSymbolKind = getSymbolKind; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); class OutputList extends basic_1.default { constructor(nvim) { super(nvim); @@ -64397,15 +64565,15 @@ exports.default = OutputList; //# sourceMappingURL=output.js.map /***/ }), -/* 413 */ +/* 414 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const services_1 = tslib_1.__importDefault(__webpack_require__(349)); -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const services_1 = tslib_1.__importDefault(__webpack_require__(350)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); const util_1 = __webpack_require__(177); class ServicesList extends basic_1.default { constructor(nvim) { @@ -64452,7 +64620,7 @@ exports.default = ServicesList; //# sourceMappingURL=services.js.map /***/ }), -/* 414 */ +/* 415 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -64461,8 +64629,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_types_1 = __webpack_require__(162); const vscode_uri_1 = __webpack_require__(183); -const sources_1 = tslib_1.__importDefault(__webpack_require__(254)); -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const sources_1 = tslib_1.__importDefault(__webpack_require__(255)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); class SourcesList extends basic_1.default { constructor(nvim) { super(nvim); @@ -64523,7 +64691,7 @@ exports.default = SourcesList; //# sourceMappingURL=sources.js.map /***/ }), -/* 415 */ +/* 416 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -64532,12 +64700,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); const vscode_uri_1 = __webpack_require__(183); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const location_1 = tslib_1.__importDefault(__webpack_require__(405)); -const convert_1 = __webpack_require__(411); +const location_1 = tslib_1.__importDefault(__webpack_require__(406)); +const convert_1 = __webpack_require__(412); const fs_1 = __webpack_require__(208); -const fzy_1 = __webpack_require__(416); +const fzy_1 = __webpack_require__(417); const logger = __webpack_require__(2)('list-symbols'); class Symbols extends location_1.default { constructor() { @@ -64631,7 +64799,7 @@ exports.default = Symbols; //# sourceMappingURL=symbols.js.map /***/ }), -/* 416 */ +/* 417 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -64802,7 +64970,7 @@ exports.hasMatch = hasMatch; //# sourceMappingURL=fzy.js.map /***/ }), -/* 417 */ +/* 418 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -64812,10 +64980,10 @@ const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); const commands_1 = tslib_1.__importDefault(__webpack_require__(190)); const manager_1 = tslib_1.__importDefault(__webpack_require__(191)); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); -const services_1 = tslib_1.__importDefault(__webpack_require__(349)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); +const services_1 = tslib_1.__importDefault(__webpack_require__(350)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const basic_1 = tslib_1.__importDefault(__webpack_require__(403)); +const basic_1 = tslib_1.__importDefault(__webpack_require__(404)); const logger = __webpack_require__(2)('list-actions'); class ActionsList extends basic_1.default { constructor(nvim) { @@ -64932,7 +65100,7 @@ exports.default = ActionsList; //# sourceMappingURL=actions.js.map /***/ }), -/* 418 */ +/* 419 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -65409,7 +65577,7 @@ exports.default = ListUI; //# sourceMappingURL=ui.js.map /***/ }), -/* 419 */ +/* 420 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -65418,10 +65586,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); const vscode_uri_1 = __webpack_require__(183); -const ansiparse_1 = __webpack_require__(348); +const ansiparse_1 = __webpack_require__(349); const diff_1 = __webpack_require__(216); -const fzy_1 = __webpack_require__(416); -const score_1 = __webpack_require__(420); +const fzy_1 = __webpack_require__(417); +const score_1 = __webpack_require__(421); const string_1 = __webpack_require__(218); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const frames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']; @@ -65843,14 +66011,14 @@ function getItemUri(item) { //# sourceMappingURL=worker.js.map /***/ }), -/* 420 */ +/* 421 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path_1 = __webpack_require__(20); -const fuzzy_1 = __webpack_require__(368); +const fuzzy_1 = __webpack_require__(369); // first is start or path start +1, fuzzy +0.5 // next is followed of path start +1, fuzzy +0.5 // filename startsWith +1, fuzzy +0.5 @@ -65994,7 +66162,7 @@ function bestResult(results) { //# sourceMappingURL=score.js.map /***/ }), -/* 421 */ +/* 422 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -66163,17 +66331,17 @@ exports.default = Source; //# sourceMappingURL=source.js.map /***/ }), -/* 422 */ +/* 423 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const fuzzy_1 = __webpack_require__(368); +const fuzzy_1 = __webpack_require__(369); const string_1 = __webpack_require__(218); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const source_1 = tslib_1.__importDefault(__webpack_require__(421)); +const source_1 = tslib_1.__importDefault(__webpack_require__(422)); const logger = __webpack_require__(2)('model-source-vim'); class VimSource extends source_1.default { async callOptinalFunc(fname, args) { @@ -66275,7 +66443,7 @@ exports.default = VimSource; //# sourceMappingURL=source-vim.js.map /***/ }), -/* 423 */ +/* 424 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -66283,7 +66451,7 @@ exports.default = VimSource; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const source_1 = tslib_1.__importDefault(__webpack_require__(421)); +const source_1 = tslib_1.__importDefault(__webpack_require__(422)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const logger = __webpack_require__(2)('source-around'); class Around extends source_1.default { @@ -66325,7 +66493,7 @@ exports.regist = regist; //# sourceMappingURL=around.js.map /***/ }), -/* 424 */ +/* 425 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -66333,7 +66501,7 @@ exports.regist = regist; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const source_1 = tslib_1.__importDefault(__webpack_require__(421)); +const source_1 = tslib_1.__importDefault(__webpack_require__(422)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const logger = __webpack_require__(2)('source-buffer'); class Buffer extends source_1.default { @@ -66389,7 +66557,7 @@ exports.regist = regist; //# sourceMappingURL=buffer.js.map /***/ }), -/* 425 */ +/* 426 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -66402,7 +66570,7 @@ const os_1 = tslib_1.__importDefault(__webpack_require__(14)); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); const util_1 = tslib_1.__importDefault(__webpack_require__(12)); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const source_1 = tslib_1.__importDefault(__webpack_require__(421)); +const source_1 = tslib_1.__importDefault(__webpack_require__(422)); const fs_2 = __webpack_require__(208); const string_1 = __webpack_require__(218); const logger = __webpack_require__(2)('source-file'); @@ -66547,16 +66715,16 @@ exports.regist = regist; //# sourceMappingURL=file.js.map /***/ }), -/* 426 */ +/* 427 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const fuzzy_1 = __webpack_require__(368); +const fuzzy_1 = __webpack_require__(369); const string_1 = __webpack_require__(218); -const match_1 = __webpack_require__(427); +const match_1 = __webpack_require__(428); const logger = __webpack_require__(2)('completion-complete'); // first time completion const FIRST_TIMEOUT = 500; @@ -66929,13 +67097,13 @@ exports.default = Complete; //# sourceMappingURL=complete.js.map /***/ }), -/* 427 */ +/* 428 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const fuzzy_1 = __webpack_require__(368); +const fuzzy_1 = __webpack_require__(369); function nextWordIndex(start = 0, codes) { for (let i = start; i < codes.length; i++) { if (isWordIndex(i, codes)) { @@ -67085,15 +67253,15 @@ function nextScore(codes, index, inputCodes, allowFuzzy = true) { //# sourceMappingURL=match.js.map /***/ }), -/* 428 */ +/* 429 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const floatBuffer_1 = tslib_1.__importDefault(__webpack_require__(344)); -const popup_1 = tslib_1.__importDefault(__webpack_require__(429)); +const floatBuffer_1 = tslib_1.__importDefault(__webpack_require__(345)); +const popup_1 = tslib_1.__importDefault(__webpack_require__(430)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const logger = __webpack_require__(2)('floating'); class Floating { @@ -67283,7 +67451,7 @@ exports.default = Floating; //# sourceMappingURL=floating.js.map /***/ }), -/* 429 */ +/* 430 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67350,7 +67518,7 @@ exports.default = createPopup; //# sourceMappingURL=popup.js.map /***/ }), -/* 430 */ +/* 431 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67360,7 +67528,7 @@ const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); const vscode_languageserver_textdocument_1 = __webpack_require__(202); const position_1 = __webpack_require__(221); -const Snippets = tslib_1.__importStar(__webpack_require__(251)); +const Snippets = tslib_1.__importStar(__webpack_require__(252)); const string_1 = __webpack_require__(218); const logger = __webpack_require__(2)('snippets-snipet'); class CocSnippet { @@ -67518,18 +67686,30 @@ class CocSnippet { const { line, character } = this.position; const document = vscode_languageserver_textdocument_1.TextDocument.create('untitled:/1', 'snippet', 0, snippet.toString()); const { placeholders, variables, maxIndexNumber } = snippet; + const variableIndexMap = new Map(); let variableIndex = maxIndexNumber + 1; this._placeholders = [...placeholders, ...variables].map((p, idx) => { const offset = snippet.offset(p); const position = document.positionAt(offset); - const isPlaceholder = p instanceof Snippets.Placeholder; const start = { line: line + position.line, character: position.line == 0 ? character + position.character : position.character }; - let index = p instanceof Snippets.Placeholder ? p.index : variableIndex; - if (!isPlaceholder) { - variableIndex = variableIndex + 1; + let index; + if (p instanceof Snippets.Variable) { + let key = p.name; + if (variableIndexMap.has(key)) { + index = variableIndexMap.get(key); + } + else { + variableIndexMap.set(key, variableIndex); + index = variableIndex; + variableIndex = variableIndex + 1; + } + // variableIndex = variableIndex + 1 + } + else { + index = p.index; } const value = p.toString(); const lines = value.split('\n'); @@ -67564,7 +67744,7 @@ exports.CocSnippet = CocSnippet; //# sourceMappingURL=snippet.js.map /***/ }), -/* 431 */ +/* 432 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67631,7 +67811,7 @@ exports.SnippetVariableResolver = SnippetVariableResolver; //# sourceMappingURL=variableResolve.js.map /***/ }), -/* 432 */ +/* 433 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67639,10 +67819,10 @@ exports.SnippetVariableResolver = SnippetVariableResolver; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const vscode_languageserver_protocol_1 = __webpack_require__(150); -const callSequence_1 = tslib_1.__importDefault(__webpack_require__(433)); +const callSequence_1 = tslib_1.__importDefault(__webpack_require__(434)); const object_1 = __webpack_require__(197); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const util_1 = __webpack_require__(434); +const util_1 = __webpack_require__(435); const logger = __webpack_require__(2)('diagnostic-buffer'); const severityNames = ['CocError', 'CocWarning', 'CocInfo', 'CocHint']; // maintains sign and highlightId @@ -67910,7 +68090,7 @@ exports.DiagnosticBuffer = DiagnosticBuffer; //# sourceMappingURL=buffer.js.map /***/ }), -/* 433 */ +/* 434 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -67963,7 +68143,7 @@ exports.default = CallSequence; //# sourceMappingURL=callSequence.js.map /***/ }), -/* 434 */ +/* 435 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -68046,7 +68226,7 @@ exports.getLocationListItem = getLocationListItem; //# sourceMappingURL=util.js.map /***/ }), -/* 435 */ +/* 436 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -68068,29 +68248,27 @@ class Collection { this.name = owner; } set(entries, diagnostics) { - if (Array.isArray(entries)) { - let map = new Map(); - for (let item of entries) { - let [file, diagnostics] = item; - let exists = map.get(file) || []; - if (diagnostics != null) { - for (let diagnostic of diagnostics) { - exists.push(diagnostic); - } - } - else { - exists = []; - } - map.set(file, exists); + if (!Array.isArray(entries)) { + let uri = entries; + // if called as set(uri, diagnostics) + // -> convert into single-entry entries list + entries = [[uri, diagnostics]]; + } + let diagnosticsPerFile = new Map(); + for (let item of entries) { + let [file, diagnostics] = item; + if (diagnostics == null) { + // clear diagnostics if entry contains null + diagnostics = []; } - for (let key of map.keys()) { - this.set(key, map.get(key)); + else { + diagnostics = (diagnosticsPerFile.get(file) || []).concat(diagnostics); } - return; + diagnosticsPerFile.set(file, diagnostics); } - let uri = entries; - uri = vscode_uri_1.URI.parse(uri).toString(); - if (diagnostics) { + for (let item of diagnosticsPerFile) { + let [uri, diagnostics] = item; + uri = vscode_uri_1.URI.parse(uri).toString(); diagnostics.forEach(o => { let { range } = o; range.start = range.start || vscode_languageserver_protocol_1.Position.create(0, 0); @@ -68103,9 +68281,9 @@ class Collection { } o.source = o.source || this.name; }); + this.diagnosticsMap.set(uri, diagnostics); + this._onDidDiagnosticsChange.fire(uri); } - this.diagnosticsMap.set(uri, diagnostics || []); - this._onDidDiagnosticsChange.fire(uri); return; } delete(uri) { @@ -68142,7 +68320,7 @@ exports.default = Collection; //# sourceMappingURL=collection.js.map /***/ }), -/* 436 */ +/* 437 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -68158,7 +68336,7 @@ const util_1 = __webpack_require__(177); const array_1 = __webpack_require__(220); const position_1 = __webpack_require__(221); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const range_1 = tslib_1.__importDefault(__webpack_require__(437)); +const range_1 = tslib_1.__importDefault(__webpack_require__(438)); const logger = __webpack_require__(2)('cursors'); class Cursors { constructor(nvim) { @@ -68784,7 +68962,7 @@ function equalEdit(one, two) { //# sourceMappingURL=index.js.map /***/ }), -/* 437 */ +/* 438 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -68851,7 +69029,7 @@ exports.default = TextRange; //# sourceMappingURL=range.js.map /***/ }), -/* 438 */ +/* 439 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -68862,22 +69040,22 @@ const vscode_languageserver_protocol_1 = __webpack_require__(150); const commands_1 = tslib_1.__importDefault(__webpack_require__(190)); const manager_1 = tslib_1.__importDefault(__webpack_require__(191)); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); -const manager_2 = tslib_1.__importDefault(__webpack_require__(365)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); +const manager_2 = tslib_1.__importDefault(__webpack_require__(366)); const floatFactory_1 = tslib_1.__importDefault(__webpack_require__(192)); -const services_1 = tslib_1.__importDefault(__webpack_require__(349)); +const services_1 = tslib_1.__importDefault(__webpack_require__(350)); const manager_3 = tslib_1.__importDefault(__webpack_require__(193)); const util_1 = __webpack_require__(177); -const convert_1 = __webpack_require__(411); +const convert_1 = __webpack_require__(412); const object_1 = __webpack_require__(197); const position_1 = __webpack_require__(221); const string_1 = __webpack_require__(218); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const codelens_1 = tslib_1.__importDefault(__webpack_require__(439)); -const colors_1 = tslib_1.__importDefault(__webpack_require__(440)); -const documentHighlight_1 = tslib_1.__importDefault(__webpack_require__(442)); -const refactor_1 = tslib_1.__importDefault(__webpack_require__(443)); -const search_1 = tslib_1.__importDefault(__webpack_require__(444)); +const codelens_1 = tslib_1.__importDefault(__webpack_require__(440)); +const colors_1 = tslib_1.__importDefault(__webpack_require__(441)); +const documentHighlight_1 = tslib_1.__importDefault(__webpack_require__(443)); +const refactor_1 = tslib_1.__importDefault(__webpack_require__(444)); +const search_1 = tslib_1.__importDefault(__webpack_require__(445)); const debounce = __webpack_require__(179); const vscode_uri_1 = __webpack_require__(183); const logger = __webpack_require__(2)('Handler'); @@ -70184,7 +70362,7 @@ function isDocumentSymbols(a) { //# sourceMappingURL=index.js.map /***/ }), -/* 439 */ +/* 440 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70194,8 +70372,8 @@ const tslib_1 = __webpack_require__(3); const debounce_1 = tslib_1.__importDefault(__webpack_require__(179)); const commands_1 = tslib_1.__importDefault(__webpack_require__(190)); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); -const services_1 = tslib_1.__importDefault(__webpack_require__(349)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); +const services_1 = tslib_1.__importDefault(__webpack_require__(350)); const util_1 = __webpack_require__(177); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const logger = __webpack_require__(2)('codelens'); @@ -70448,7 +70626,7 @@ exports.default = CodeLensManager; //# sourceMappingURL=codelens.js.map /***/ }), -/* 440 */ +/* 441 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70458,11 +70636,11 @@ const tslib_1 = __webpack_require__(3); const debounce_1 = tslib_1.__importDefault(__webpack_require__(179)); const vscode_languageserver_protocol_1 = __webpack_require__(150); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); const util_1 = __webpack_require__(177); const object_1 = __webpack_require__(197); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const highlighter_1 = tslib_1.__importStar(__webpack_require__(441)); +const highlighter_1 = tslib_1.__importStar(__webpack_require__(442)); const logger = __webpack_require__(2)('colors'); class Colors { constructor(nvim) { @@ -70656,7 +70834,7 @@ exports.default = Colors; //# sourceMappingURL=colors.js.map /***/ }), -/* 441 */ +/* 442 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70804,7 +70982,7 @@ function isDark(color) { //# sourceMappingURL=highlighter.js.map /***/ }), -/* 442 */ +/* 443 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70813,7 +70991,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); const events_1 = tslib_1.__importDefault(__webpack_require__(149)); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); -const languages_1 = tslib_1.__importDefault(__webpack_require__(320)); +const languages_1 = tslib_1.__importDefault(__webpack_require__(321)); const vscode_languageserver_protocol_1 = __webpack_require__(150); const util_1 = __webpack_require__(177); const logger = __webpack_require__(2)('documentHighlight'); @@ -70905,7 +71083,7 @@ exports.default = DocumentHighlighter; //# sourceMappingURL=documentHighlight.js.map /***/ }), -/* 443 */ +/* 444 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70918,7 +71096,7 @@ const vscode_languageserver_types_1 = __webpack_require__(162); const vscode_languageserver_textdocument_1 = __webpack_require__(202); const vscode_uri_1 = __webpack_require__(183); const commands_1 = tslib_1.__importDefault(__webpack_require__(190)); -const highligher_1 = tslib_1.__importDefault(__webpack_require__(347)); +const highligher_1 = tslib_1.__importDefault(__webpack_require__(348)); const util_1 = __webpack_require__(177); const fs_1 = __webpack_require__(208); const object_1 = __webpack_require__(197); @@ -71584,22 +71762,22 @@ function emptyWorkspaceEdit(edit) { //# sourceMappingURL=refactor.js.map /***/ }), -/* 444 */ +/* 445 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(3); -const await_semaphore_1 = __webpack_require__(445); +const await_semaphore_1 = __webpack_require__(446); const child_process_1 = __webpack_require__(178); const events_1 = __webpack_require__(137); const path_1 = tslib_1.__importDefault(__webpack_require__(20)); const readline_1 = tslib_1.__importDefault(__webpack_require__(145)); const vscode_languageserver_types_1 = __webpack_require__(162); const which_1 = tslib_1.__importDefault(__webpack_require__(184)); -const highligher_1 = tslib_1.__importDefault(__webpack_require__(347)); -const ansiparse_1 = __webpack_require__(348); +const highligher_1 = tslib_1.__importDefault(__webpack_require__(348)); +const ansiparse_1 = __webpack_require__(349); const workspace_1 = tslib_1.__importDefault(__webpack_require__(194)); const logger = __webpack_require__(2)('handler-search'); const defaultArgs = ['--color', 'ansi', '--colors', 'path:fg:black', '--colors', 'line:fg:green', '--colors', 'match:fg:red', '--no-messages', '--heading', '-n']; @@ -71787,7 +71965,7 @@ exports.default = Search; //# sourceMappingURL=search.js.map /***/ }), -/* 445 */ +/* 446 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -71853,10 +72031,10 @@ exports.Mutex = Mutex; //# sourceMappingURL=index.js.map /***/ }), -/* 446 */ +/* 447 */ /***/ (function(module) { -module.exports = JSON.parse("{\"name\":\"coc.nvim\",\"version\":\"0.0.77\",\"description\":\"LSP based intellisense engine for neovim & vim8.\",\"main\":\"./lib/index.js\",\"bin\":\"./bin/server.js\",\"scripts\":{\"clean\":\"rimraf lib build\",\"lint\":\"tslint -c tslint.json -p .\",\"build\":\"tsc -p tsconfig.json\",\"watch\":\"tsc -p tsconfig.json --watch true --sourceMap\",\"test\":\"node --trace-warnings node_modules/jest/bin/jest.js --runInBand --detectOpenHandles --forceExit\",\"test-build\":\"node --trace-warnings node_modules/jest/bin/jest.js --runInBand --coverage --forceExit\",\"prepare\":\"npm-run-all clean build\"},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/neoclide/coc.nvim.git\"},\"keywords\":[\"complete\",\"neovim\"],\"author\":\"Qiming Zhao \",\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/neoclide/coc.nvim/issues\"},\"homepage\":\"https://github.com/neoclide/coc.nvim#readme\",\"jest\":{\"globals\":{\"__TEST__\":true},\"watchman\":false,\"clearMocks\":true,\"globalSetup\":\"./jest.js\",\"testEnvironment\":\"node\",\"moduleFileExtensions\":[\"ts\",\"tsx\",\"json\",\"js\"],\"transform\":{\"^.+\\\\.tsx?$\":\"ts-jest\"},\"testRegex\":\"src/__tests__/.*\\\\.(test|spec)\\\\.ts$\",\"coverageDirectory\":\"./coverage/\"},\"devDependencies\":{\"@chemzqm/tslint-config\":\"^1.0.18\",\"@types/debounce\":\"^3.0.0\",\"@types/fb-watchman\":\"^2.0.0\",\"@types/glob\":\"^7.1.1\",\"@types/jest\":\"^24.0.18\",\"@types/minimatch\":\"^3.0.3\",\"@types/mkdirp\":\"^0.5.2\",\"@types/node\":\"^12.12.17\",\"@types/semver\":\"^6.0.2\",\"@types/tar\":\"^4.0.3\",\"@types/tunnel\":\"^0.0.1\",\"@types/uuid\":\"^3.4.5\",\"@types/which\":\"^1.3.1\",\"colors\":\"^1.3.3\",\"jest\":\"24.9.0\",\"npm-run-all\":\"^4.1.5\",\"ts-jest\":\"^24.2.0\",\"tslint\":\"^5.19.0\",\"typescript\":\"^3.8.2\",\"vscode-languageserver\":\"^6.1.1\"},\"dependencies\":{\"@chemzqm/neovim\":\"5.1.9\",\"await-semaphore\":\"^0.1.3\",\"bser\":\"^2.1.0\",\"clipboardy\":\"^2.3.0\",\"debounce\":\"^1.2.0\",\"fast-diff\":\"^1.2.0\",\"fb-watchman\":\"^2.0.0\",\"follow-redirects\":\"^1.9.0\",\"glob\":\"^7.1.4\",\"isuri\":\"^2.0.3\",\"jsonc-parser\":\"^2.1.1\",\"log4js\":\"^5.1.0\",\"minimatch\":\"^3.0.4\",\"mkdirp\":\"^0.5.1\",\"mv\":\"^2.1.1\",\"rc\":\"^1.2.8\",\"rimraf\":\"^3.0.0\",\"semver\":\"^6.3.0\",\"tar\":\"^4.4.10\",\"tslib\":\"^1.11.0\",\"tunnel\":\"^0.0.6\",\"uuid\":\"^3.3.3\",\"vscode-languageserver-protocol\":\"^3.15.3\",\"vscode-languageserver-textdocument\":\"^1.0.1\",\"vscode-languageserver-types\":\"^3.15.1\",\"vscode-uri\":\"^2.0.3\",\"which\":\"^1.3.1\"}}"); +module.exports = JSON.parse("{\"name\":\"coc.nvim\",\"version\":\"0.0.78\",\"description\":\"LSP based intellisense engine for neovim & vim8.\",\"main\":\"./lib/index.js\",\"bin\":\"./bin/server.js\",\"scripts\":{\"clean\":\"rimraf lib build\",\"lint\":\"tslint -c tslint.json -p .\",\"build\":\"tsc -p tsconfig.json\",\"watch\":\"tsc -p tsconfig.json --watch true --sourceMap\",\"test\":\"node --trace-warnings node_modules/jest/bin/jest.js --runInBand --detectOpenHandles --forceExit\",\"test-build\":\"node --trace-warnings node_modules/jest/bin/jest.js --runInBand --coverage --forceExit\",\"prepare\":\"npm-run-all clean build\"},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/neoclide/coc.nvim.git\"},\"keywords\":[\"complete\",\"neovim\"],\"author\":\"Qiming Zhao \",\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/neoclide/coc.nvim/issues\"},\"homepage\":\"https://github.com/neoclide/coc.nvim#readme\",\"jest\":{\"globals\":{\"__TEST__\":true},\"watchman\":false,\"clearMocks\":true,\"globalSetup\":\"./jest.js\",\"testEnvironment\":\"node\",\"moduleFileExtensions\":[\"ts\",\"tsx\",\"json\",\"js\"],\"transform\":{\"^.+\\\\.tsx?$\":\"ts-jest\"},\"testRegex\":\"src/__tests__/.*\\\\.(test|spec)\\\\.ts$\",\"coverageDirectory\":\"./coverage/\"},\"devDependencies\":{\"@chemzqm/tslint-config\":\"^1.0.18\",\"@types/debounce\":\"^3.0.0\",\"@types/fb-watchman\":\"^2.0.0\",\"@types/glob\":\"^7.1.1\",\"@types/jest\":\"^24.0.18\",\"@types/minimatch\":\"^3.0.3\",\"@types/mkdirp\":\"^0.5.2\",\"@types/node\":\"^12.12.17\",\"@types/semver\":\"^6.0.2\",\"@types/tar\":\"^4.0.3\",\"@types/tunnel\":\"^0.0.1\",\"@types/uuid\":\"^3.4.5\",\"@types/which\":\"^1.3.1\",\"colors\":\"^1.3.3\",\"jest\":\"24.9.0\",\"npm-run-all\":\"^4.1.5\",\"ts-jest\":\"^24.2.0\",\"tslint\":\"^5.19.0\",\"typescript\":\"^3.8.2\",\"vscode-languageserver\":\"^6.1.1\"},\"dependencies\":{\"@chemzqm/neovim\":\"5.1.9\",\"await-semaphore\":\"^0.1.3\",\"bser\":\"^2.1.0\",\"clipboardy\":\"^2.3.0\",\"debounce\":\"^1.2.0\",\"fast-diff\":\"^1.2.0\",\"fb-watchman\":\"^2.0.0\",\"follow-redirects\":\"^1.9.0\",\"glob\":\"^7.1.4\",\"isuri\":\"^2.0.3\",\"jsonc-parser\":\"^2.1.1\",\"log4js\":\"^5.1.0\",\"minimatch\":\"^3.0.4\",\"mkdirp\":\"^0.5.1\",\"mv\":\"^2.1.1\",\"rc\":\"^1.2.8\",\"rimraf\":\"^3.0.0\",\"semver\":\"^6.3.0\",\"tar\":\"^4.4.10\",\"tslib\":\"^1.11.0\",\"tunnel\":\"^0.0.6\",\"uuid\":\"^3.3.3\",\"vscode-languageserver-protocol\":\"^3.15.3\",\"vscode-languageserver-textdocument\":\"^1.0.1\",\"vscode-languageserver-types\":\"^3.15.1\",\"vscode-uri\":\"^2.0.3\",\"which\":\"^1.3.1\"}}"); /***/ }) /******/ ]); \ No newline at end of file diff --git a/data/schema.json b/data/schema.json index f7281289dde..444082a2f4b 100644 --- a/data/schema.json +++ b/data/schema.json @@ -792,6 +792,11 @@ "default": "", "description": "Key used for jump to previous cursors position." }, + "coc.preferences.promptWorkspaceEdit": { + "type": "boolean", + "description": "Prompt confirm from user for workspace edit.", + "default": true + }, "coc.preferences.useQuickfixForLocations": { "type": "boolean", "description": "Use vim's quickfix list for jump locations,\n need restart on change.", diff --git a/doc/coc.cnx b/doc/coc.cnx index 5b80d9966d0..608a9a3c7d1 100644 --- a/doc/coc.cnx +++ b/doc/coc.cnx @@ -1332,7 +1332,7 @@ Coc 列表支持以下特性: LIST COMMAND *coc-list-command* -:CocList [{...options}] [{source}] [{...args}] *CocList* +:CocList [{...options}] [{source}] [{...args}] *:CocList* 打开名称为 {source} 的列表, 例如: > @@ -1346,18 +1346,18 @@ LIST COMMAND *coc-list-command* {source} 为空时,打开列表源的列表。 -:CocListResume *CocListResume* +:CocListResume *:CocListResume* 重新打开上一次的列表,输入字符和鼠标位置等信息将自动 复原。 -:CocPrev *CocPrev* +:CocPrev *:CocPrev* 对之前列表的上一个选项执行默认操作。 该操作不会打开之前列表。 -:CocNext *CocNext* +:CocNext *:CocNext* 对之前列表的下一个选项执行默认操作。 diff --git a/doc/coc.txt b/doc/coc.txt index 6192cf17116..1ef87ad5075 100644 --- a/doc/coc.txt +++ b/doc/coc.txt @@ -484,6 +484,11 @@ Built in configurations:~ Custom key mappings in the insert mode, default: `{}` +"coc.preferences.promptWorkspaceEdit":~ + + Prompt confirm from user for workspace edit. + default: `true` + "coc.preferences.useQuickfixForLocations":~ Use Vim's quickfix list for jump locations. Requires restart on change, @@ -804,9 +809,9 @@ VARIABLES *coc-variables* b:coc_enabled *b:coc_enabled* - Set to `0` on buffer create if you don't want - coc.nvim send buffer events for this buffer, including - buffer create, change and unload. + Set to `0` on buffer create if you don't want coc.nvim + receive content from buffer, usually used for improve + performance with large files. b:coc_root_patterns *b:coc_root_patterns* @@ -1366,6 +1371,8 @@ CocTagFunc({pattern}, {flags}, {info}) Available Actions ~ +Acceptable {action} names for |CocAction()| and |CocActionAsync|. + "sourceStat" *coc-action-sourceStat* get the list of completion source stats for the current buffer. @@ -1999,7 +2006,7 @@ The following features are supported: LIST COMMAND *coc-list-command* -:CocList [{...options}] [{source}] [{...args}] *CocList* +:CocList [{...options}] [{source}] [{...args}] *:CocList* Open coc list of {source}, Ex: > @@ -2015,18 +2022,18 @@ LIST COMMAND *coc-list-command* When {source} is empty, lists source is used. -:CocListResume *CocListResume* +:CocListResume *:CocListResume* Reopen last opened list, input and cursor position will be preserved. -:CocPrev *CocPrev* +:CocPrev *:CocPrev* Invoke default action for the previous item in the last list. Doesn't open the list window if it's closed. -:CocNext *CocNext* +:CocNext *:CocNext* Invoke the default action for the next item in the last list. diff --git a/package.json b/package.json index 9b32134ff70..32e86b5453c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coc.nvim", - "version": "0.0.77", + "version": "0.0.78", "description": "LSP based intellisense engine for neovim & vim8.", "main": "./lib/index.js", "bin": "./bin/server.js", diff --git a/r.sh b/r.sh new file mode 100755 index 00000000000..fdc13c24a3a --- /dev/null +++ b/r.sh @@ -0,0 +1,56 @@ +#!/bin/sh + +set -e +set -x + +#git add package.json history.md +tag=v$(json -f package.json version) +#git commit -a -m "Release $tag" &> /dev/null +rm -rf build +webpack +mkdir .release +cp -r bin build autoload package.json plugin data Readme.md doc history.md .release +git checkout release +cp -r .release/* . +git add . +git commit -a -m "Release $tag" +git tag -a "$tag" -m "Release $tag" +git push +git push --tags +## upload assets +cd ./build +tar -zcf coc.tar.gz index.js +zip coc.zip index.js +declare -a files=("coc.zip" "coc.tar.gz") +GH_API="https://api.github.com" +GH_REPO="$GH_API/repos/neoclide/coc.nvim" +GH_TAGS="$GH_REPO/releases/tags/$tag" +AUTH="Authorization: token $GITHUB_API_TOKEN" +# Validate token. +curl -o /dev/null -sH "$AUTH" $GH_REPO || { echo "Error: Invalid repo, token or network issue!"; exit 1; } +# Create release +echo "Creating release for $tag" +curl -X POST -H "Authorization: token $GITHUB_API_TOKEN" \ + -H "Content-Type: application/json" \ + --data "{\"tag_name\":\"$tag\"}" \ + "$GH_REPO/releases" +# Read asset tags. +response=$(curl -sH "$AUTH" $GH_TAGS) +# Get ID of the asset based on given filename. +eval $(echo "$response" | grep -m 1 "id.:" | grep -w id | tr : = | tr -cd '[[:alnum:]]=') +[ "$id" ] || { echo "Error: Failed to get release id for tag: $tag"; echo "$response" | awk 'length($0)<100' >&2; exit 1; } +# Upload asset +for filename in "${files[@]}" +do + GH_ASSET="https://uploads.github.com/repos/neoclide/coc.nvim/releases/$id/assets?name=$filename" + echo "Uploading $filename" + curl -X POST -H "Authorization: token $GITHUB_API_TOKEN" \ + -H "Content-Type: application/octet-stream" \ + --data-binary @"$filename" \ + $GH_ASSET +done +rm coc.zip coc.tar.gz +cd .. +git checkout master +rm -rf .release +nvim -c 'helptags doc|q'