AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
222 stars 20 forks source link

Code completion deletes some characters #224

Closed bohni closed 9 months ago

bohni commented 9 months ago

@variable={{$pa + \ gives @variable={{$ssword

?? stat + selecting entry "?? status == 200" + \ gives ?? tatus == 200

AnWeber commented 9 months ago

I have to admit, I don't get what Microsoft wants from me with the Completion API. It seems that I am not allowed to specify special characters in the insertText, but I have to specify normal characters so that they are replaced correctly. This behaves extremely strange. I think it works correctly now, but please test it.

input insertText
{{$pa password
?? stat status == 200
?? ?? status == 200
Con tent-Type

I also tweaked the performance, and the CompletionItems should appear faster.