Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions lsp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,38 @@
"default": false
}
}
},
"python.pyrefly.analysis.inlayHints": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it work like this? according to the docs, it needs python.pyright.analysis.inlayHints. could we make sure the documentation is up to date?

"type": "object",
"default": {},
"description": "Configure inlay hints provided by Pyrefly in the editor.",
"properties": {
"callArgumentNames": {
"type": "string",
"enum": [
"off",
"partial",
"all"
],
"default": "off",
"description": "Show parameter name hints for positional arguments (\"off\", \"partial\", or \"all\")."
},
"functionReturnTypes": {
"type": "boolean",
"default": true,
"description": "Show inlay hints for inferred function return types."
},
"variableTypes": {
"type": "boolean",
"default": true,
"description": "Show inlay hints for inferred variable types."
},
"pytestParameters": {
"type": "boolean",
"default": false,
"description": "Show inlay hints for pytest parameter names."
}
}
}
}
}
Expand Down