Commit d19df7e
committed
refactor(lsp): shouldShowParameterHints config hook replaces provider patching
TypeScriptSupport monkey-patched its client's getParameterHints to veto
signature help inside callback bodies - fragile and invisible to the
framework. registerLanguageServer now accepts an optional
shouldShowParameterHints(editor) callback (same family as
shouldAutoTrigger / documentFilter / filterDiagnostics): returning false
rejects the request, so the provider stays the request owner - the popup
is suppressed/dismissed with no fall-through to lower-priority providers
(a fallback answering would undo the veto; document-level opt-out via
documentFilter still preserves fall-through). The body-scan policy stays
entirely in the TS extension.1 parent d0db089 commit d19df7e
3 files changed
Lines changed: 26 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | 354 | | |
376 | 355 | | |
377 | 356 | | |
| |||
390 | 369 | | |
391 | 370 | | |
392 | 371 | | |
393 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
394 | 379 | | |
395 | 380 | | |
396 | 381 | | |
397 | 382 | | |
398 | | - | |
399 | 383 | | |
400 | 384 | | |
401 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
723 | 736 | | |
724 | 737 | | |
725 | 738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
838 | 844 | | |
839 | 845 | | |
840 | 846 | | |
| |||
0 commit comments