ruff/crates/ruff_server/src/session
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
..
index Show full error context in server messages (#13029) 2024-08-21 15:36:16 +05:30
capabilities.rs ruff server: Introduce the ruff.printDebugInformation command (#11831) 2024-06-11 11:42:46 -07:00
index.rs Use struct instead of type alias for workspace settings index (#12726) 2024-08-07 09:26:59 +00:00
settings.rs Consider --preview flag for server subcommand (#12208) 2024-07-18 11:05:01 +05:30