@@ -35280,7 +35280,7 @@ class Plugin extends events_1.EventEmitter {
35280
35280
return false;
35281
35281
}
35282
35282
get version() {
35283
- return workspace_1.default.version + ( true ? '-' + "2e9f0a2814 " : undefined);
35283
+ return workspace_1.default.version + ( true ? '-' + "9e9b0ad3a2 " : undefined);
35284
35284
}
35285
35285
async showInfo() {
35286
35286
if (!this.infoChannel) {
@@ -39066,6 +39066,10 @@ class Extensions {
39066
39066
let filename = path_1.default.join(root, packageJSON.main || 'index.js');
39067
39067
let ext;
39068
39068
let subscriptions = [];
39069
+ if (packageJSON.main && !fs_1.default.existsSync(filename)) {
39070
+ workspace_1.default.showMessage(`extension "${id}" doesn't contain main file ${filename}.`, 'error');
39071
+ return;
39072
+ }
39069
39073
let extension = {
39070
39074
activate: async () => {
39071
39075
if (isActive)
@@ -39164,7 +39168,6 @@ class Extensions {
39164
39168
if (this.activated) {
39165
39169
this.setupActiveEvents(id, packageJSON);
39166
39170
}
39167
- return id;
39168
39171
}
39169
39172
async initializeRoot() {
39170
39173
let root = this.root = await workspace_1.default.nvim.call('coc#util#extension_root');
@@ -57214,7 +57217,7 @@ class BaseLanguageClient {
57214
57217
}
57215
57218
}
57216
57219
notifyFileEvent(event) {
57217
- var _a;
57220
+ var _a, _b ;
57218
57221
const client = this;
57219
57222
function didChangeWatchedFile(event) {
57220
57223
client._fileEvents.push(event);
@@ -57233,7 +57236,7 @@ class BaseLanguageClient {
57233
57236
});
57234
57237
}
57235
57238
const workSpaceMiddleware = (_a = this.clientOptions.middleware) === null || _a === void 0 ? void 0 : _a.workspace;
57236
- (workSpaceMiddleware === null || workSpaceMiddleware === void 0 ? void 0 : workSpaceMiddleware .didChangeWatchedFile) ? workSpaceMiddleware.didChangeWatchedFile(event, didChangeWatchedFile) : didChangeWatchedFile(event);
57239
+ ((_b = workSpaceMiddleware) === null || _b === void 0 ? void 0 : _b .didChangeWatchedFile) ? workSpaceMiddleware.didChangeWatchedFile(event, didChangeWatchedFile) : didChangeWatchedFile(event);
57237
57240
}
57238
57241
forceDocumentSync() {
57239
57242
let doc = workspace_1.default.getDocument(workspace_1.default.bufnr);
@@ -59066,7 +59069,7 @@ class ListManager {
59066
59069
nvim.command('setl nomod', true);
59067
59070
nvim.command('setl nomodifiable', true);
59068
59071
nvim.command('normal! gg', true);
59069
- nvim.command('nnoremap q :bd!<CR>', true);
59072
+ nvim.command('nnoremap <buffer> q :bd!<CR>', true);
59070
59073
await nvim.resumeNotification();
59071
59074
}
59072
59075
get context() {
@@ -63584,7 +63587,7 @@ class Complete {
63584
63587
}
63585
63588
if ((!item.dup || source == 'tabnine') && words.has(word))
63586
63589
continue;
63587
- if (removeDuplicateItems && !item.isSnippet && words.has(word))
63590
+ if (removeDuplicateItems && !item.isSnippet && words.has(word) && item.line == undefined )
63588
63591
continue;
63589
63592
let filterText = item.filterText || item.word;
63590
63593
item.filterText = filterText;
0 commit comments