coc-pyright 1.1.220 → 1.1.223

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 -4
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -21245,8 +21245,7 @@ var _PythonSettings = class {
21245
21245
  }
21246
21246
  static getInstance() {
21247
21247
  const workspaceFolder = import_coc2.workspace.workspaceFolders.length > 0 ? import_coc2.workspace.workspaceFolders[0] : void 0;
21248
- const workspaceFolderUri = workspaceFolder ? import_coc2.Uri.parse(workspaceFolder.uri) : void 0;
21249
- const workspaceFolderKey = workspaceFolderUri ? workspaceFolderUri.fsPath : "";
21248
+ const workspaceFolderKey = workspaceFolder ? workspaceFolder.name : "unknown";
21250
21249
  if (!_PythonSettings.pythonSettings.has(workspaceFolderKey)) {
21251
21250
  const settings = new _PythonSettings();
21252
21251
  _PythonSettings.pythonSettings.set(workspaceFolderKey, settings);
@@ -23301,6 +23300,7 @@ ${errorMessage}`);
23301
23300
  }
23302
23301
 
23303
23302
  // src/index.ts
23303
+ var defaultHeapSize = 3072;
23304
23304
  var method = "workspace/executeCommand";
23305
23305
  var documentSelector = [
23306
23306
  {
@@ -23436,9 +23436,11 @@ async function activate(context) {
23436
23436
  import_coc24.window.showMessage(`Pyright langserver doesn't exist, please reinstall coc-pyright`, "error");
23437
23437
  return;
23438
23438
  }
23439
+ const runOptions = { execArgv: [`--max-old-space-size=${defaultHeapSize}`] };
23440
+ const debugOptions = { execArgv: ["--nolazy", "--inspect=6600", `--max-old-space-size=${defaultHeapSize}`] };
23439
23441
  const serverOptions = {
23440
- module: module2,
23441
- transport: import_coc24.TransportKind.ipc
23442
+ run: { module: module2, transport: import_coc24.TransportKind.ipc, options: runOptions },
23443
+ debug: { module: module2, transport: import_coc24.TransportKind.ipc, options: debugOptions }
23442
23444
  };
23443
23445
  const disabledFeatures = [];
23444
23446
  if (pyrightCfg.get("disableCompletion")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.220",
3
+ "version": "1.1.223",
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",
@@ -1391,6 +1391,6 @@
1391
1391
  ]
1392
1392
  },
1393
1393
  "dependencies": {
1394
- "pyright": "^1.1.220"
1394
+ "pyright": "^1.1.223"
1395
1395
  }
1396
1396
  }