coc-pyright 1.1.231 → 1.1.232

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 +6 -6
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -21226,6 +21226,12 @@ var _PythonSettings = class {
21226
21226
  return process.platform === "win32" ? import_path.default.join(p, "Scripts", "python.exe") : import_path.default.join(p, "bin", "python");
21227
21227
  }
21228
21228
  try {
21229
+ if (process.env.VIRTUAL_ENV && import_fs_extra.default.existsSync(import_path.default.join(process.env.VIRTUAL_ENV, "pyvenv.cfg"))) {
21230
+ return pythonBinFromPath(process.env.VIRTUAL_ENV);
21231
+ }
21232
+ if (process.env.CONDA_PREFIX) {
21233
+ return pythonBinFromPath(process.env.CONDA_PREFIX);
21234
+ }
21229
21235
  let p = import_path.default.join(this.workspaceRoot, ".python-version");
21230
21236
  if (import_fs_extra.default.existsSync(p)) {
21231
21237
  if (!process.env.PYENV_VERSION) {
@@ -21252,12 +21258,6 @@ var _PythonSettings = class {
21252
21258
  return pythonBinFromPath(info);
21253
21259
  }
21254
21260
  }
21255
- if (process.env.VIRTUAL_ENV && import_fs_extra.default.existsSync(import_path.default.join(process.env.VIRTUAL_ENV, "pyvenv.cfg"))) {
21256
- return pythonBinFromPath(process.env.VIRTUAL_ENV);
21257
- }
21258
- if (process.env.CONDA_PREFIX) {
21259
- return pythonBinFromPath(process.env.CONDA_PREFIX);
21260
- }
21261
21261
  const files = import_fs_extra.default.readdirSync(this.workspaceRoot);
21262
21262
  for (const file of files) {
21263
21263
  const x = import_path.default.join(this.workspaceRoot, file);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.231",
3
+ "version": "1.1.232",
4
4
  "description": "Pyright extension for coc.nvim, static type checker for Python",
5
5
  "author": "Heyward Fann <fannheyward@gmail.com>",
6
6
  "license": "MIT",
@@ -1403,6 +1403,6 @@
1403
1403
  ]
1404
1404
  },
1405
1405
  "dependencies": {
1406
- "pyright": "^1.1.231"
1406
+ "pyright": "^1.1.232"
1407
1407
  }
1408
1408
  }