Describe the Bug
Not sure if this is a bug or intended behavior, but VS Code's workspace symbol search (#, or Ctrl+T) does not return any attributes defined in init, regardless of prefix, when using the Pyrefly extension.
This worked with Pylance before switching to Pyrefly.
Minimal reproduction
class Example:
def __init__(self) -> None:
self._private_member = 1
def _private_method(self) -> None:
pass
def public_method(self) -> None:
pass
Expected behavior
Workspace symbol search should return _private_member and _private_method, as it did with Pylance.
Actual behavior
The public symbol appears, but the underscore-prefixed members do not.
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
Describe the Bug
Not sure if this is a bug or intended behavior, but VS Code's workspace symbol search (
#, or Ctrl+T) does not return any attributes defined in init, regardless of prefix, when using the Pyrefly extension.This worked with Pylance before switching to Pyrefly.
Minimal reproduction
Expected behavior
Workspace symbol search should return
_private_memberand_private_method, as it did with Pylance.Actual behavior
The public symbol appears, but the underscore-prefixed members do not.
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response