Skip to content

Conversation

UnboundVariable
Copy link
Collaborator

@UnboundVariable UnboundVariable commented Jul 23, 2025

This PR adds support for "go to references" in the ty playground.

image

Copy link
Contributor

github-actions bot commented Jul 23, 2025

mypy_primer results

No ecosystem changes detected ✅
No memory usage changes detected ✅

@dhruvmanila dhruvmanila added the playground A playground-specific issue label Jul 24, 2025
@UnboundVariable UnboundVariable merged commit 63d1d33 into astral-sh:main Jul 24, 2025
38 checks passed
@UnboundVariable UnboundVariable deleted the playground_refs branch July 24, 2025 05:46
@ntBre ntBre added the ty Multi-file analysis & type inference label Jul 24, 2025
UnboundVariable pushed a commit to UnboundVariable/ruff that referenced this pull request Jul 24, 2025
…hlight

* 'main' of https://github.com/astral-sh/ruff:
  [ty] Minor: fix incomplete docstring (astral-sh#19534)
  [ty] Move server tests as integration tests (astral-sh#19522)
  [`ruff`] Offer fixes for `RUF039` in more cases (astral-sh#19065)
  [ty] Support `dataclasses.InitVar` (astral-sh#19527)
  [`ruff`] Fix `RUF033` breaking with named default expressions (astral-sh#19115)
  Update pre-commit hook name (astral-sh#19530)
  Bump 0.12.5 (astral-sh#19528)
  [ty] Rename type_api => ty_extensions (astral-sh#19523)
  [ty] Added support for "go to references" in ty playground. (astral-sh#19516)
  [ty] Return a tuple spec from the iterator protocol (astral-sh#19496)
  [ty] Exhaustiveness checking & reachability for `match` statements (astral-sh#19508)
  [ty] Fix narrowing and reachability of class patterns with arguments (astral-sh#19512)
UnboundVariable pushed a commit to UnboundVariable/ruff that referenced this pull request Jul 24, 2025
* main:
  [ty] Added support for "document highlights" language server feature. (astral-sh#19515)
  Add support for specifying minimum dots in detected string imports (astral-sh#19538)
  [ty] Minor: fix incomplete docstring (astral-sh#19534)
  [ty] Move server tests as integration tests (astral-sh#19522)
  [`ruff`] Offer fixes for `RUF039` in more cases (astral-sh#19065)
  [ty] Support `dataclasses.InitVar` (astral-sh#19527)
  [`ruff`] Fix `RUF033` breaking with named default expressions (astral-sh#19115)
  Update pre-commit hook name (astral-sh#19530)
  Bump 0.12.5 (astral-sh#19528)
  [ty] Rename type_api => ty_extensions (astral-sh#19523)
  [ty] Added support for "go to references" in ty playground. (astral-sh#19516)

# Conflicts:
#	crates/ty_server/src/server/api/requests.rs
#	crates/ty_server/tests/e2e/snapshots/e2e__initialize__initialization.snap
#	crates/ty_server/tests/e2e/snapshots/e2e__initialize__initialization_with_workspace.snap
sharkdp added a commit to astral-sh/ty that referenced this pull request Jul 25, 2025
Changes which I chose not to include; let me know if one of these should
be added:

```
- Add warning for unknown `TY_MEMORY_REPORT` value ([#19465](astral-sh/ruff#19465))
- Add goto definition to playground ([#19425](astral-sh/ruff#19425))
- Added support for "go to references" in ty playground. ([#19516](astral-sh/ruff#19516))
- Fall back to `Unknown` if no type is stored for an expression ([#19517](astral-sh/ruff#19517))
- Make `Module` a Salsa ingredient ([#19495](astral-sh/ruff#19495))
- Return a tuple spec from the iterator protocol ([#19496](astral-sh/ruff#19496))
```

---------

Co-authored-by: Alex Waygood <[email protected]>
AlexWaygood pushed a commit that referenced this pull request Jul 25, 2025
This PR adds support for "go to references" in the ty playground.

<img width="393" height="168" alt="image"
src="https://github.com/user-attachments/assets/ce3ae1bf-c17c-4510-9f77-20b10f6170c4"
/>

---------

Co-authored-by: UnboundVariable <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
playground A playground-specific issue ty Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants