@yaegassy/coc-ty 0.2.0 → 0.2.2
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 +1 -1
- package/package.json +8 -23
package/README.md
CHANGED
|
@@ -21,12 +21,12 @@ 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.path`: Custom path for the `ty` binary. If no value is set, the `ty` command will be detected from the runtime environment, , default: `""`
|
|
24
25
|
- `ty.disableCompletion`: Disable completion only, default: `false`
|
|
25
26
|
- `ty.disableDiagnostics`: Disable diagnostics only, default: `false`
|
|
26
27
|
- `ty.disableHover`: Disable hover only, default: `false`
|
|
27
28
|
- `ty.disableInlayHint`: Disable inlayHint only, default: `false`
|
|
28
29
|
- `ty.disableTypeDefinition`: Disable typeDefinition only, default: `false`
|
|
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
|
|
|
32
32
|
Other settings have the same configuration as [ty-vscode](https://github.com/astral-sh/ty-vscode).
|
package/lib/index.js
CHANGED
|
@@ -353,7 +353,7 @@ async function register2(context, client2) {
|
|
|
353
353
|
var import_coc4 = require("coc.nvim");
|
|
354
354
|
var import_which = __toESM(require_lib());
|
|
355
355
|
async function getTyBinaryPath() {
|
|
356
|
-
let tyBinaryPath = import_coc4.workspace.getConfiguration("ty").get("
|
|
356
|
+
let tyBinaryPath = import_coc4.workspace.getConfiguration("ty").get("path", "");
|
|
357
357
|
if (!tyBinaryPath) {
|
|
358
358
|
tyBinaryPath = import_which.default.sync("ty", { nothrow: true }) || "";
|
|
359
359
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yaegassy/coc-ty",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
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",
|
|
@@ -105,20 +105,11 @@
|
|
|
105
105
|
"default": false,
|
|
106
106
|
"description": "Disable typeDefinition only."
|
|
107
107
|
},
|
|
108
|
-
"ty.
|
|
108
|
+
"ty.path": {
|
|
109
109
|
"type": "string",
|
|
110
110
|
"default": "",
|
|
111
111
|
"description": "Custom path for the `ty` binary when using the native server. If no value is set, the `ty` command will be detected from the runtime environment."
|
|
112
112
|
},
|
|
113
|
-
"ty.path": {
|
|
114
|
-
"default": [],
|
|
115
|
-
"markdownDescription": "Path to a custom `ty` executable, e.g., `[\"/path/to/ty\"]`.",
|
|
116
|
-
"scope": "resource",
|
|
117
|
-
"items": {
|
|
118
|
-
"type": "string"
|
|
119
|
-
},
|
|
120
|
-
"type": "array"
|
|
121
|
-
},
|
|
122
113
|
"ty.diagnosticMode": {
|
|
123
114
|
"default": "openFilesOnly",
|
|
124
115
|
"markdownDescription": "Analysis scope for showing diagnostics.",
|
|
@@ -133,18 +124,6 @@
|
|
|
133
124
|
"scope": "resource",
|
|
134
125
|
"type": "string"
|
|
135
126
|
},
|
|
136
|
-
"ty.experimental.rename": {
|
|
137
|
-
"default": false,
|
|
138
|
-
"markdownDescription": "Enable experimental support for renaming symbols in ty.",
|
|
139
|
-
"scope": "window",
|
|
140
|
-
"type": "boolean"
|
|
141
|
-
},
|
|
142
|
-
"ty.experimental.autoImport": {
|
|
143
|
-
"default": false,
|
|
144
|
-
"markdownDescription": "Enable experimental support for auto-import code completions in ty.",
|
|
145
|
-
"scope": "window",
|
|
146
|
-
"type": "boolean"
|
|
147
|
-
},
|
|
148
127
|
"ty.importStrategy": {
|
|
149
128
|
"default": "fromEnvironment",
|
|
150
129
|
"markdownDescription": "Strategy for loading the `ty` executable. `fromEnvironment` picks up ty from the environment, falling back to the bundled version if needed. `useBundled` uses the version bundled with the extension.",
|
|
@@ -171,6 +150,12 @@
|
|
|
171
150
|
"scope": "window",
|
|
172
151
|
"type": "boolean"
|
|
173
152
|
},
|
|
153
|
+
"ty.completions.autoImport": {
|
|
154
|
+
"default": true,
|
|
155
|
+
"markdownDescription": "Whether to include auto-import code completions in ty.",
|
|
156
|
+
"scope": "window",
|
|
157
|
+
"type": "boolean"
|
|
158
|
+
},
|
|
174
159
|
"ty.interpreter": {
|
|
175
160
|
"default": [],
|
|
176
161
|
"markdownDescription": "Path to a Python interpreter to use to find the `ty` executable.",
|