New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump up httpsnippet
to 1.22.0 for Kotlin and Axios code generation support
#2526
Conversation
Deploy preview for insomnia-storybook ready! Built with commit cce50c8 |
Looks like defining mime type as |
I really don't know where to add that mine-type to. |
No worries - I'm not familiar with this area of code off the top of my head, so when I get a chance to dig into this further I'll chime back 😊 |
@seanghay Looks like you just need to add another condition to (the end of) this function. insomnia/packages/insomnia-app/app/ui/components/codemirror/code-editor.js Lines 702 to 719 in c5d36a5
...
+ } else if (mimeType.includes('kotlin')) {
+ return 'text/x-kotlin';
+ } else {
return mimeType;
}
... For context: all of the code blocks in Insomnia use CodeMirror as the underlying component, as does the generate code modal: |
It's working now! Thanks @develohpanda |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🎉 Excited to get this merged!
Closes #2516
httpsnippet@1.22.0
comes with Kotlin and Axios code generation.