ruff/crates/ruff_server/src
Dhruv Manilawala 0c98b5949c
Show full error context in server messages (#13029)
## Summary

Reference:
https://docs.rs/anyhow/latest/anyhow/struct.Error.html#display-representations

Closes: #13022 

## Test Plan

```
2024-08-21 15:21:24.831 [info] [Trace - 3:21:24 PM]    0.017255167s ERROR ThreadId(04) ruff_server::session::index::ruff_settings: Failed to parse /Users/dhruv/playground/ruff/pyproject.toml: TOML parse error at line 1, column 1
  |
1 | [tool.ruff.lint]
  | ^^^^^^^^^^^^^^^^
Unknown rule selector: `ME102`
```

Or,
```
2024-08-21 15:23:47.993 [info] [Trace - 3:23:47 PM]  143.179857375s ERROR ThreadId(66) ruff_server::session::index::ruff_settings: Failed to parse /Users/dhruv/playground/ruff/pyproject.toml: TOML parse error at line 2, column 42
  |
2 | select = ["ALL", "TD006", "TD007", "FIX"
  |                                          ^
invalid array
expected `]`
```
2024-08-21 15:36:16 +05:30
..
edit Consider VS Code cell metadata to determine valid code cells (#12864) 2024-08-13 22:09:56 +05:30
server Do not bail code action resolution when a quick fix is requested (#12462) 2024-07-23 10:30:03 +05:30
session Show full error context in server messages (#13029) 2024-08-21 15:36:16 +05:30
edit.rs Add Jupyter Notebook document change snapshot test (#11944) 2024-06-21 05:29:27 +00:00
fix.rs Use cell source code instead of the concatenated one (#12929) 2024-08-16 19:50:12 +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 Conside include, extend-include for the native server (#12252) 2024-07-10 04:12:57 +00:00
lint.rs Conside include, extend-include for the native server (#12252) 2024-07-10 04:12:57 +00:00
message.rs Ignore non-file workspace URL (#12725) 2024-08-07 09:15:55 +00:00
resolve.rs Conside include, extend-include for the native server (#12252) 2024-07-10 04:12:57 +00:00
server.rs Make server panic hook more error resilient (#12610) 2024-08-02 12:10:06 +02:00
session.rs Add Jupyter Notebook document change snapshot test (#11944) 2024-06-21 05:29:27 +00:00
trace.rs Use $/logTrace for server trace logs in Zed and VS Code (#12564) 2024-07-30 08:32:20 +05:30