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
237 stars 20 forks source link

@import should trim the file name #150

Closed bugybunny closed 2 years ago

bugybunny commented 2 years ago

If a line with @import contains a space after the file name the file is not found image because it searches for "../myfile.http " literally. A trim would be nice because those spaces are hard to see — and not recognizable in the error message — and it seems counterintuitive to include them if I am not missing a good reason to really include the space(s) in the lookup for the file.

If it's on purpose we should mention it in the docs https://httpyac.github.io/guide/variables.html#import-variables.

AnWeber commented 2 years ago

No, not intentional, but never fallen over it either. Probably because I have enabled files.trimTrailingWhitespace. I adjusted the parsing in this and a few other places.

AnWeber commented 2 years ago

released with v5.7.2