Repository navigation
fix(lsp): don't provide organizeImports action when client provides it - #31530
Conversation
WalkthroughThis change introduces support for client-provided organize imports capability in the LSP implementation. A new configuration method detects whether a client supports organizing imports natively. The language server refactors its organize-imports logic to skip this operation when the client indicates it can handle imports itself, delegating the responsibility to the client. Corresponding test utilities are updated to enable this capability flag, and a new integration test validates the behavior when clients provide this functionality. The changes maintain backward compatibility by defaulting to the server's organize-imports when the capability is absent. Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
organizeImportsactions vscode_deno#1345