ruff/crates/ruff_server/src
Dhruv Manilawala 869a9543e4
Root exclusions in the server to project root (#16043)
## Summary

fixes: #16041 

## Test Plan

Using the [project](https://github.com/bwcc-clan/polebot) in the linked
issue:

Notice how the project "polebot" is in the "play" directory which is
included in the `exclude` setting as:

```toml
exclude = ["play"]
```

**Before this fix**

```
DEBUG ruff:worker:0 ruff_server::resolve: Ignored path via `exclude`: /private/tmp/ruff-test/play/polebot/src/utils/log_tools.py
```

**After this fix**

```
DEBUG ruff:worker:2 ruff_server::resolve: Included path via `include`: /private/tmp/ruff-test/play/polebot/src/utils/log_tools.py
```

I also updated the same project to remove the "play" directory from the
`exclude` setting and made sure that anything under the `polebot/play`
directory is included:

```
DEBUG  ruff:worker:4 ruff_server::resolve: Included path via `include`: /private/tmp/ruff-test/play/polebot/play/test.py
```

And, excluded when I add the directory back:

```
DEBUG  ruff:worker:2 ruff_server::resolve: Ignored path via `exclude`: /private/tmp/ruff-test/play/polebot/play/test.py
```
2025-02-10 04:57:14 +00:00
..
edit Insert the cells from the start position (#15398) 2025-01-10 13:11:56 +00:00
server Directly include Settings struct for the server (#16042) 2025-02-10 10:20:01 +05:30
session Directly include Settings struct for the server (#16042) 2025-02-10 10:20:01 +05:30
edit.rs Add support for extensionless Python files for server (#13326) 2024-09-12 00:35:26 +05:30
fix.rs Directly include Settings struct for the server (#16042) 2025-02-10 10:20:01 +05:30
format.rs ruff server: Formatting a document with syntax problems no longer spams a visible error popup (#11745) 2024-06-04 17:18:21 -07:00
lib.rs Improve logging system using logLevel, avoid trace value (#15232) 2025-01-08 18:18:00 +05:30
lint.rs Directly include Settings struct for the server (#16042) 2025-02-10 10:20:01 +05:30
logging.rs Improve logging system using logLevel, avoid trace value (#15232) 2025-01-08 18:18:00 +05:30
message.rs Fix LSP show message macro to allow format args (#15487) 2025-01-15 08:11:49 +00:00
resolve.rs Root exclusions in the server to project root (#16043) 2025-02-10 04:57:14 +00:00
server.rs Improve logging system using logLevel, avoid trace value (#15232) 2025-01-08 18:18:00 +05:30
session.rs Avoid indexing the same workspace multiple times (#15495) 2025-01-15 18:58:28 +05:30