codeLens resolve request not work
See original GitHub issueI have try onCodeLensResolve()
and onRequest('codeLens/resolve')
, behaves like not registered.
When I force the trigger it will throw:
(node:97732) UnhandledPromiseRejectionWarning: Error: Request client/registerCapability failed with message: No feature implementation for codeLens/resolve found. Registration failed.
at handleResponse (/***/node_modules/vscode-jsonrpc/lib/main.js:449:48)
at processMessageQueue (/***/node_modules/vscode-jsonrpc/lib/main.js:276:17)
at Immediate.<anonymous> (/***/node_modules/vscode-jsonrpc/lib/main.js:260:13)
at processImmediate (internal/timers.js:439:21)
(node:97732) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:97732) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Info - 1:53:16 PM] Registering request handler for codeLens/resolve failed.
Reproduce: https://github.com/johnsoncodehk/vscode-extension-samples/tree/codeLens-resolve-bug/lsp-sample
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (12 by maintainers)
Top Results From Across the Web
Request codeLens/resolve failed · Issue #1893 - GitHub
Yes. Specifically, I have this issue when I add a dir with a rust project into non-rust workspace and then navigate a rust...
Read more >CodeLens not working - Visual Studio Feedback
This issue was caused by a problem with the way Visual Studio IntelliCode Refactorings preview feature was loaded. A fix is available in...
Read more >CodeLens not showing references - visual studio
Go to Tools -> Options -> Text Editor -> All Languages -> CodeLens then click the "Enable CodeLens" option if it is not...
Read more >StackOverflowException causes crash in TFS 2013 Update 4 ...
Go to Tools > Options > Text Editor > All Languages > CodeLens. Note If the options in the Resolution and Workaround sections...
Read more >D91930 [clangd] Implement textDocument/codeLens - LLVM
resolveCodeLens : This function implements the codeLens/resolve API. ... the text rendering will not look too weird during long-time request.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Change this
too
Actually there seems to be something missing here. Let me investigate.