ruff/crates
Dhruv Manilawala 7fcfedd430
Ignore non-file workspace URL (#12725)
## Summary

This PR updates the server to ignore non-file workspace URL.

This is to avoid crashing the server if the URL scheme is not "file".
We'd still raise an error if the URL to file path conversion fails.

Also, as per the docs of
[`to_file_path`](https://docs.rs/url/2.5.2/url/struct.Url.html#method.to_file_path):

> Note: This does not actually check the URL’s scheme, and may give
nonsensical results for other schemes. It is the user’s responsibility
to check the URL’s scheme before calling this.

resolves: #12660

## Test Plan

I'm not sure how to test this locally but the change is small enough to
validate on its own.
2024-08-07 09:15:55 +00:00
..
red_knot [red-knot] Derive site-packages from a venv path (#12716) 2024-08-06 18:34:37 +00:00
red_knot_module_resolver [red-knot] Fix build on Windows (#12719) 2024-08-06 20:21:25 +01:00
red_knot_python_semantic Update salsa (#12711) 2024-08-06 13:17:39 +00:00
red_knot_server Update salsa (#12711) 2024-08-06 13:17:39 +00:00
red_knot_wasm [red-knot] Implement basic LSP server (#12624) 2024-08-06 11:27:30 +00:00
red_knot_workspace [red-knot] Fix build on Windows (#12719) 2024-08-06 20:21:25 +01:00
ruff Release Ruff 0.5.6 (#12629) 2024-08-02 17:35:14 +02:00
ruff_benchmark [red-knot] Rename workspace_root variables in the module resolver to src_root (#12697) 2024-08-05 23:07:18 +01:00
ruff_cache Fix cache key collisions for paths with separators (#12159) 2024-07-03 07:36:46 -05:00
ruff_db Update salsa (#12711) 2024-08-06 13:17:39 +00:00
ruff_dev Drop deprecated nursery rule group (#10172) 2024-06-27 13:44:11 +02:00
ruff_diagnostics Move sub-crates to workspace dependencies (#11407) 2024-05-13 14:37:50 +00:00
ruff_formatter Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_index [red-knot] small efficiency improvements and bugfixes to use-def map building (#12373) 2024-07-18 09:24:58 -07:00
ruff_linter Avoid false-positives for list concatenations in SQL construction (#12720) 2024-08-06 16:26:03 -04:00
ruff_macros Drop deprecated nursery rule group (#10172) 2024-06-27 13:44:11 +02:00
ruff_notebook [red-knot] Add notebook support (#12338) 2024-07-17 08:26:33 +00:00
ruff_python_ast Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_python_ast_integration_tests Rename PreorderVisitor to SourceOrderVisitor (#11798) 2024-06-07 17:01:58 +00:00
ruff_python_codegen Use indentation consistently (#12293) 2024-07-12 14:08:56 +02:00
ruff_python_formatter Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_python_index Enable token-based rules on source with syntax errors (#11950) 2024-07-02 08:57:46 +00:00
ruff_python_literal Remove some unused pub functions (#11576) 2024-05-28 09:56:51 -04:00
ruff_python_parser Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_python_resolver chore(deps): update rust crate insta to v1.38.0 (#10701) 2024-04-01 15:44:30 +00:00
ruff_python_semantic Make setting and retrieving pydocstyle settings less tedious (#12582) 2024-07-31 10:39:33 +01:00
ruff_python_stdlib Add a new script to generate builtin module names (#12696) 2024-08-05 21:33:36 +01:00
ruff_python_trivia Mention that Cursor is based on rustc's implementation. (#12109) 2024-06-30 16:53:25 +01:00
ruff_python_trivia_integration_tests Build CommentRanges outside the parser (#11792) 2024-06-09 09:55:17 +00:00
ruff_server Ignore non-file workspace URL (#12725) 2024-08-07 09:15:55 +00:00
ruff_source_file red-knot: source_text, line_index, and parsed_module queries (#11822) 2024-06-13 07:37:02 +00:00
ruff_text_size Upgrade to Rust 1.79 (#11875) 2024-06-17 07:15:10 +01:00
ruff_wasm Release Ruff 0.5.6 (#12629) 2024-08-02 17:35:14 +02:00
ruff_workspace Enable notebooks by default in preview mode (#12621) 2024-08-02 13:36:53 +00:00