From f6213c07d27c09ae641ca12b675993f36d9ef245 Mon Sep 17 00:00:00 2001 From: chemzqm Date: Fri, 21 Dec 2018 10:25:13 +0800 Subject: [PATCH] Release v0.0.41 --- history.md | 17 +++++++++++++++++ package.json | 2 +- src/util/fuzzy.ts | 4 ++-- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/history.md b/history.md index 3b70513508f..e1bdb142a31 100644 --- a/history.md +++ b/history.md @@ -1,3 +1,20 @@ +# 2018-12-20 + +- **Break change** configuration for module language server, transport now + require specified value. +- **Break change** new algorithm for socre complete items. +- Add command `workspace.clearWatchman`. +- Add `quickfixs`, `doCodeAction` and `doQuickfix` actions. +- Add `g:vim_node_rpc_args` for debug purpose. +- Add `coc#add_extension()` for specify extentions to install. +- Fix clients not restarted on CocRestart. +- Fix `execArgv` and `runtime` not work for node language server. +- Fix detail of complete item not echoed sometimes. +- Fix actions missing when registed with same clientId. +- Fix issues with signature echo. +- Fix uri is wrong with whitespace. +- Improve highlight performance with `nvim_call_atomic`. + # 2018-12-17 - **Break change** `vim-node-rpc` now upgrade in bacground. diff --git a/package.json b/package.json index 0bb84fed115..087a9c2ee74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coc.nvim", - "version": "0.0.40", + "version": "0.0.41", "description": "Completion manager for neovim", "main": "./lib/index.js", "bin": "./bin/server.js", diff --git a/src/util/fuzzy.ts b/src/util/fuzzy.ts index b9977ea9000..6decf525c4d 100644 --- a/src/util/fuzzy.ts +++ b/src/util/fuzzy.ts @@ -7,11 +7,11 @@ export function getCharCodes(str: string): number[] { return res } -export function wordChar(ch: number) { +export function wordChar(ch: number): boolean { return (ch >= 97 && ch <= 122) || (ch >= 65 && ch <= 90) } -export function caseMatch(ch: number, code: number) { +export function caseMatch(ch: number, code: number): boolean { if (ch == code) return true if (ch >= 97 && ch <= 122 && code + 32 === ch) return true return false