Closed IRuzhnikov closed 1 year ago
To use the preview mode in VSCode, the response must be saved as a file. The display language is determined by the file extension. Because of this I had the problem that I do not know the file extension for a LanguageId. My way is to save the most common LanguageId with the correct file extension, but if necessary to set the LanguageId active when opening the response, if it is available in the map.
Hi! i was try use it like (for pretty print in preview)
and when I opened sourcecode i fount strange strings
but in a same time another functions used just one chain call to contentType
Permalink to original code: https://github.com/AnWeber/vscode-httpyac/blob/c8c37e4658715282cf2bf286829ed981f736e81c/src/view/responseItem.ts#L141
Thanks!