Revert "support b:coc_tsserver_disable, closes #13"

This reverts commit 5946299675.
This commit is contained in:
chemzqm 2019-06-13 22:28:42 +08:00
parent ef9feca2fa
commit 0d84cdf870
4 changed files with 12 additions and 16 deletions

View file

@ -136,8 +136,6 @@ module will be used.
Configurations are the same as with VSCode. Try completion with `tsserver`, `typescript`
or `javascript` in your `coc-settings.json`.
To disable tsserver with spcified buffer, use `let b:coc_tsserver_disable = 1` on buffer create.
## Related extensions
- [coc-tslint-plugin](https://github.com/neoclide/coc-tslint-plugin): enable [tslint](https://github.com/palantir/tslint)

View file

@ -472,7 +472,7 @@
"@types/fast-diff": "^1.2.0",
"@types/find-up": "^2.1.1",
"@types/node": "^12.0.7",
"coc.nvim": "0.0.70",
"coc.nvim": "^0.0.69",
"rimraf": "^2.6.3",
"tslint": "^5.17.0"
},

View file

@ -199,9 +199,6 @@ export default class BufferSyncSupport {
private onDidOpenTextDocument(document: TextDocument): void {
if (!this.modeIds.has(document.languageId)) return
let { uri } = document
let disable = workspace.getDocument(document.uri).getVar('tsserver_disable', 0)
if (disable) return
let filepath = this.client.toPath(uri)
this.uris.add(uri)
const args: Proto.OpenRequestArgs = {

View file

@ -81,6 +81,11 @@ balanced-match@^1.0.0:
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
binary-search@1.3.5:
version "1.3.5"
resolved "https://registry.yarnpkg.com/binary-search/-/binary-search-1.3.5.tgz#479ad009589e0273cf54e5d74ab1546c489078ce"
integrity sha512-RHFP0AdU6KAB0CCZsRMU2CJTk2EpL8GLURT+4gilpjr1f/7M91FgUMnXuQLmf3OKLet34gjuNFwO7e4agdX5pw==
brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
@ -110,12 +115,13 @@ chalk@^2.0.0, chalk@^2.3.0:
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"
coc.nvim@0.0.70:
version "0.0.70"
resolved "https://registry.yarnpkg.com/coc.nvim/-/coc.nvim-0.0.70.tgz#8e891b77c75a3a3f6e602796092897563615db9f"
integrity sha512-tEunJhtQbvZYmYbiyJQH9S3/1wGmSgTtxstBiN8gpEAW4iasEvKHAhLd29fJlUzdG+1S4OQF9q9v862k68jqzQ==
coc.nvim@^0.0.69:
version "0.0.69"
resolved "https://registry.yarnpkg.com/coc.nvim/-/coc.nvim-0.0.69.tgz#24c47ed7443ad3af6e0e7ce1134ee06759c543fb"
integrity sha512-TDVAO5VulbDexlUIpnwRVuiQ60hG2Zga99Fd8wJVpyCNCEPhyiVdY4Z4zAQb0zl8zDsqqb7Cm2qIPUA4ORbTIg==
dependencies:
"@chemzqm/neovim" "5.1.7"
binary-search "1.3.5"
debounce "^1.2.0"
fast-diff "^1.2.0"
fb-watchman "^2.0.0"
@ -126,7 +132,7 @@ coc.nvim@0.0.70:
log4js "^4.3.1"
minimatch "^3.0.4"
semver "^6.1.1"
tslib "^1.10.0"
tslib "^1.9.3"
uuid "^3.3.2"
vscode-languageserver-protocol "^3.15.0-next.5"
vscode-languageserver-types "^3.15.0-next.1"
@ -484,11 +490,6 @@ supports-color@^5.3.0:
dependencies:
has-flag "^3.0.0"
tslib@^1.10.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==
tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.3:
version "1.9.3"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286"