coc-pyright 1.1.267 → 1.1.268

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 CHANGED
@@ -72,6 +72,9 @@ These configurations are used by `coc-pyright`, you need to set them in your `co
72
72
  | pyright.completion.importSupport | Enable `python-import` completion source support | true |
73
73
  | pyright.completion.snippetSupport | Enable completion snippets support | true |
74
74
  | pyright.organizeimports.provider | Organize imports provider, `pyright` or `isort` | pyright |
75
+ | pyright.inlayHints.enable | Enable inlay hints feature | true |
76
+ | pyright.inlayHints.functionReturnTypes | Enable inlay hints for function return types | true |
77
+ | pyright.inlayHints.variableTypes | Enable inlay hints for variable types | true |
75
78
 
76
79
  Additional configuration options can be found in [package.json](./package.json).
77
80
 
package/lib/index.js CHANGED
@@ -91352,7 +91352,7 @@ var TypeInlayHintsProvider = class {
91352
91352
  ];
91353
91353
  switch (item.inlayHintType) {
91354
91354
  case "variable":
91355
- inlayHintPosition = startPosition;
91355
+ inlayHintPosition = import_coc10.Position.create(startPosition.line, endPosition.character + 1);
91356
91356
  break;
91357
91357
  case "functionReturn":
91358
91358
  inlayHintPosition = endPosition;
@@ -91363,7 +91363,9 @@ var TypeInlayHintsProvider = class {
91363
91363
  if (inlayHintPosition) {
91364
91364
  const inlayHint = {
91365
91365
  label: inlayHintLabelPart,
91366
- position: inlayHintPosition
91366
+ position: inlayHintPosition,
91367
+ paddingLeft: item.inlayHintType === "functionReturn",
91368
+ paddingRight: item.inlayHintType === "variable"
91367
91369
  };
91368
91370
  inlayHints.push(inlayHint);
91369
91371
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.267",
3
+ "version": "1.1.268",
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",
@@ -1451,6 +1451,6 @@
1451
1451
  ]
1452
1452
  },
1453
1453
  "dependencies": {
1454
- "pyright": "^1.1.267"
1454
+ "pyright": "^1.1.268"
1455
1455
  }
1456
1456
  }