@yaegassy/coc-ty 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/index.js +8 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -21,11 +21,11 @@ Plug 'yaegassy/coc-ty', {'do': 'yarn install --frozen-lockfile'}
|
|
|
21
21
|
## Configuration options
|
|
22
22
|
|
|
23
23
|
- `ty.enable`: Enable coc-ty extension, default: `true`
|
|
24
|
+
- `ty.disableCompletion`: Disable completion only, default: `false`
|
|
24
25
|
- `ty.disableDiagnostics`: Disable diagnostics only, default: `false`
|
|
25
26
|
- `ty.disableHover`: Disable hover only, default: `false`
|
|
26
27
|
- `ty.disableInlayHint`: Disable inlayHint only, default: `false`
|
|
27
28
|
- `ty.disableTypeDefinition`: Disable typeDefinition only, default: `false`
|
|
28
|
-
- `ty.useDetectTyCommand`: Automatically detects the ty command in the execution environment and sets `ty.path`, default: `true`
|
|
29
29
|
- `ty.binaryPath`: Custom path for the `ty` binary. If no value is set, the `ty` command will be detected from the runtime environment, , default: `""`
|
|
30
30
|
- `ty.trace.server`: Traces the communication between coc.nvim and the ty language server, default: `"off"`
|
|
31
31
|
|
package/lib/index.js
CHANGED
|
@@ -291,6 +291,8 @@ function getInitializationOptions() {
|
|
|
291
291
|
}
|
|
292
292
|
function getLanguageClientDisabledFeatures() {
|
|
293
293
|
const r = [];
|
|
294
|
+
if (getConfigDisableCompletion())
|
|
295
|
+
r.push("completion");
|
|
294
296
|
if (getConfigDisableHover())
|
|
295
297
|
r.push("hover");
|
|
296
298
|
if (getConfigDisableInlayHintHover())
|
|
@@ -303,6 +305,12 @@ function getLanguageClientDisabledFeatures() {
|
|
|
303
305
|
}
|
|
304
306
|
return r;
|
|
305
307
|
}
|
|
308
|
+
function getConfigDisableCompletion() {
|
|
309
|
+
return import_coc.workspace.getConfiguration("ty").get("disableCompletion", false);
|
|
310
|
+
}
|
|
311
|
+
function getConfigDisableDiagnostics() {
|
|
312
|
+
return import_coc.workspace.getConfiguration("ty").get("disableDiagnostics", false);
|
|
313
|
+
}
|
|
306
314
|
function getConfigDisableHover() {
|
|
307
315
|
return import_coc.workspace.getConfiguration("ty").get("disableHover", false);
|
|
308
316
|
}
|
|
@@ -312,9 +320,6 @@ function getConfigDisableInlayHintHover() {
|
|
|
312
320
|
function getConfigDisableTypeDefinition() {
|
|
313
321
|
return import_coc.workspace.getConfiguration("ty").get("disableTypeDefinition", false);
|
|
314
322
|
}
|
|
315
|
-
function getConfigDisableDiagnostics() {
|
|
316
|
-
return import_coc.workspace.getConfiguration("ty").get("disableDiagnostics", false);
|
|
317
|
-
}
|
|
318
323
|
|
|
319
324
|
// src/commands/restart.ts
|
|
320
325
|
var import_coc2 = require("coc.nvim");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yaegassy/coc-ty",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "coc.nvim extension with support for the ty type checker and language server.",
|
|
5
5
|
"author": "yaegassy <yosstools@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -80,6 +80,11 @@
|
|
|
80
80
|
"default": true,
|
|
81
81
|
"description": "Enable coc-ty extension"
|
|
82
82
|
},
|
|
83
|
+
"ty.disableCompletion": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"default": false,
|
|
86
|
+
"description": "Disable completion only."
|
|
87
|
+
},
|
|
83
88
|
"ty.disableDiagnostics": {
|
|
84
89
|
"type": "boolean",
|
|
85
90
|
"default": false,
|
|
@@ -100,11 +105,6 @@
|
|
|
100
105
|
"default": false,
|
|
101
106
|
"description": "Disable typeDefinition only."
|
|
102
107
|
},
|
|
103
|
-
"ty.useDetectTyCommand": {
|
|
104
|
-
"type": "boolean",
|
|
105
|
-
"default": true,
|
|
106
|
-
"description": "Automatically detects the ty command in the execution environment and sets `ty.path`."
|
|
107
|
-
},
|
|
108
108
|
"ty.binaryPath": {
|
|
109
109
|
"type": "string",
|
|
110
110
|
"default": "",
|