Commit 86e4898
committed
feat: localize LSP server messages and drop the "(LSP)" tag from Problems panel
- Forward the user's UI locale (brackets.getLocale()) as LSP
InitializeParams.locale on initialize, so vtsls/tsserver emit their diagnostics
and hover/quick-info text in the user's language. Unknown locales fall back to
English, so this is safe everywhere.
- Name the CodeInspection provider after the bare server id (e.g. "typescript")
instead of "<id> (LSP)". The Problems panel read "0 typescript (LSP) Problems";
to the user this is just built-in language support, and the LSP backing is an
internal detail they don't need to see. The same id still drives the
registered-inspector guard, so behaviour is unchanged.1 parent e0ca832 commit 86e4898
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
510 | 516 | | |
511 | 517 | | |
512 | 518 | | |
| |||
526 | 532 | | |
527 | 533 | | |
528 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
529 | 539 | | |
530 | 540 | | |
531 | 541 | | |
| |||
550 | 560 | | |
551 | 561 | | |
552 | 562 | | |
553 | | - | |
554 | | - | |
555 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
556 | 566 | | |
557 | 567 | | |
558 | 568 | | |
| |||
0 commit comments