9

feat: Switch to LSP inlay hints by lnicola · Pull Request #11935 · rust-lang/rus...

 2 years ago
source link: https://github.com/rust-lang/rust-analyzer/pull/11935
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

@@ -127,8 +127,8 @@ export function joinLines(ctx: Ctx): Cmd {

ranges: editor.selections.map((it) => client.code2ProtocolConverter.asRange(it)),

textDocument: ctx.client.code2ProtocolConverter.asTextDocumentIdentifier(editor.document),

});

await editor.edit((builder) => {

client.protocol2CodeConverter.asTextEdits(items).forEach((edit: any) => {

await editor.edit(async (builder) => {

Copy link

Member

Author

@lnicola lnicola 14 days ago

Can we get a cancellation token into the command handlers? There must be a way, but I missed it.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK