@yaegassy/coc-ty 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -3
  2. package/package.json +14 -6
package/lib/index.js CHANGED
@@ -284,10 +284,10 @@ function convertFromWorkspaceConfigToInitializationOptions() {
284
284
  settings: {
285
285
  path: settings.get("path"),
286
286
  interpreter: settings.get("interpreter"),
287
- importStrategy: settings.get(`importStrategy`) ?? "fromEnvironment",
287
+ importStrategy: settings.get("importStrategy") ?? "fromEnvironment",
288
+ diagnosticMode: settings.get("diagnosticMode") ?? "openFilesOnly",
288
289
  logLevel: settings.get("logLevel"),
289
- logFile: settings.get("logFile"),
290
- experimental: settings.get("experimental")
290
+ logFile: settings.get("logFile")
291
291
  }
292
292
  };
293
293
  return initializationOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaegassy/coc-ty",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
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",
@@ -119,11 +119,19 @@
119
119
  },
120
120
  "type": "array"
121
121
  },
122
- "ty.experimental.completions.enable": {
123
- "default": false,
124
- "markdownDescription": "Whether to enable completions.",
125
- "scope": "window",
126
- "type": "boolean"
122
+ "ty.diagnosticMode": {
123
+ "default": "openFilesOnly",
124
+ "markdownDescription": "Analysis scope for showing diagnostics.",
125
+ "enum": [
126
+ "openFilesOnly",
127
+ "workspace"
128
+ ],
129
+ "enumDescriptions": [
130
+ "Analyzes and reports errors on only open files.",
131
+ "Analyzes and reports errors on all files in the workspace."
132
+ ],
133
+ "scope": "resource",
134
+ "type": "string"
127
135
  },
128
136
  "ty.importStrategy": {
129
137
  "default": "fromEnvironment",