Skip to content

Conversation

@MichaReiser
Copy link
Member

@MichaReiser MichaReiser commented Dec 11, 2025

Summary

I think it was an accidental change in #20030 to use symbols_for_files_global_only in the workspace symbol request.
The result of it is that you can only find global symbols but not method members.

This PR changes workspace symbols back to use symbols_for_file.

Fixes the missing members reported in astral-sh/ty#1856 but not the caching issue

Test Plan

Screen.Recording.2025-12-11.at.20.01.57.mov

@MichaReiser MichaReiser added the bug Something isn't working label Dec 11, 2025
@MichaReiser MichaReiser requested a review from carljm as a code owner December 11, 2025 19:01
@MichaReiser MichaReiser added server Related to the LSP server ty Multi-file analysis & type inference labels Dec 11, 2025
@MichaReiser MichaReiser added bug Something isn't working server Related to the LSP server ty Multi-file analysis & type inference labels Dec 11, 2025
@astral-sh-bot
Copy link

astral-sh-bot bot commented Dec 11, 2025

Diagnostic diff on typing conformance tests

No changes detected when running ty on typing conformance tests ✅

@AlexWaygood

This comment was marked as resolved.

@AlexWaygood AlexWaygood removed their request for review December 11, 2025 19:05
@MichaReiser
Copy link
Member Author

Did you mean to link to a formatting PR by Brent there? 😛

Lol no, it pastes my clipboard content when I drag and drop a video into the summary 😕

@astral-sh-bot
Copy link

astral-sh-bot bot commented Dec 11, 2025

mypy_primer results

Changes were detected when running on open source projects
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
+ src/scikit_build_core/build/wheel.py:98:20: error[no-matching-overload] No overload of bound method `__init__` matches arguments
- Found 41 diagnostics
+ Found 42 diagnostics

No memory usage changes detected ✅

Copy link
Member

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

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

Ah yeah, I think this was unintentional. Oops. Thank you!

@MichaReiser MichaReiser merged commit d442433 into main Dec 11, 2025
41 checks passed
@MichaReiser MichaReiser deleted the micha/fix-workspace-symbols branch December 11, 2025 19:22
dcreager added a commit that referenced this pull request Dec 11, 2025
* origin/main: (36 commits)
  [ty] Defer all parameter and return type annotations (#21906)
  [ty] Fix workspace symbols to return members too (#21926)
  Document range suppressions, reorganize suppression docs (#21884)
  Ignore ruff:isort like ruff:noqa in new suppressions (#21922)
  [ty] Handle `Definition`s in `SemanticModel::scope` (#21919)
  [ty] Attach salsa db when running ide tests for easier debugging (#21917)
  [ty] Don't show hover for expressions with no inferred type (#21924)
  [ty] avoid unions of generic aliases of the same class in fixpoint (#21909)
  [ty] Squash false positive logs for failing to find `builtins` as a real module
  [ty] Uniformly use "not supported" in diagnostics (#21916)
  [ty] Reduce size of ty-ide snapshots (#21915)
  [ty] Adjust scope completions to use all reachable symbols
  [ty] Rename `all_members_of_scope` to `all_end_of_scope_members`
  [ty] Remove `all_` prefix from some routines on UseDefMap
  Enable `--document-private-items` for `ruff_python_formatter` (#21903)
  Remove `BackwardsTokenizer` based `parenthesized_range` references in `ruff_linter` (#21836)
  [ty] Revert "Do not infer types for invalid binary expressions in annotations" (#21914)
  Skip over trivia tokens after re-lexing (#21895)
  [ty] Avoid inferring types for invalid binary expressions in string annotations (#21911)
  [ty] Improve overload call resolution tracing (#21913)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working server Related to the LSP server ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants