ruff/crates/ruff_server/src
Jane Lewis 9567fddf69
ruff server correctly treats .pyi files as stub files (#11535)
## Summary

Fixes #11534.

`DocumentQuery::source_type` now returns `PySourceType::Stub` when the
document is a `.pyi` file.

## Test Plan

I confirmed that stub-specific rule violations appeared with a build
from this PR (they were not visible from a `main` build).

<img width="1066" alt="Screenshot 2024-05-24 at 2 15 38 PM"
src="cd519b7e-21e4-41c8-bc30-43eb6d4d438e">
2024-05-26 13:42:48 -04:00
..
edit ruff server: Support Jupyter Notebook (*.ipynb) files (#11206) 2024-05-21 22:29:30 +00:00
server ruff server: An empty code action filter no longer returns notebook source actions (#11526) 2024-05-24 07:20:39 +00:00
session ruff server correctly treats .pyi files as stub files (#11535) 2024-05-26 13:42:48 -04:00
edit.rs ruff server: Support Jupyter Notebook (*.ipynb) files (#11206) 2024-05-21 22:29:30 +00:00
fix.rs ruff server: Support Jupyter Notebook (*.ipynb) files (#11206) 2024-05-21 22:29:30 +00:00
format.rs ruff server: Support Jupyter Notebook (*.ipynb) files (#11206) 2024-05-21 22:29:30 +00:00
lib.rs ruff server: Support Jupyter Notebook (*.ipynb) files (#11206) 2024-05-21 22:29:30 +00:00
lint.rs ruff server: Fix multiple issues with Neovim and Helix (#11497) 2024-05-22 20:50:58 +00:00
message.rs ruff server no longer hangs after shutdown (#11222) 2024-05-03 01:09:42 +00:00
server.rs ruff server: Fix multiple issues with Neovim and Helix (#11497) 2024-05-22 20:50:58 +00:00
session.rs ruff server: Fix multiple issues with Neovim and Helix (#11497) 2024-05-22 20:50:58 +00:00