-
Notifications
You must be signed in to change notification settings - Fork 84
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
KTL-1478 Swift Export in Kotlin Playground: support new target in Widget #210
base: master
Are you sure you want to change the base?
Conversation
a68840e
to
90d868a
Compare
@@ -34,6 +34,9 @@ export const API_URLS = { | |||
case TargetPlatforms.JUNIT: | |||
url = `${this.server}/api/${version}/compiler/test`; | |||
break; | |||
case TargetPlatforms.SWIFT_EXPORT: | |||
url = `${this.server}/api/${version}/${TargetPlatforms.SWIFT_EXPORT.id}/compiler/translate?compiler=swift-export`; |
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.
Why we use translate?compiler=
is it based on jscode?
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.
Yeah, it's based on JS. Here's more details JetBrains/kotlin-compiler-server#723
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.
But, you create for ex. iframe for executing, and so on:
this.jsExecutor.reloadIframeScripts(jsLibs, this.getNodeForMountIframe(), targetPlatform);
https://youtrack.jetbrains.com/issue/KTL-1478/Swift-Export-in-Kotlin-Playground-support-new-target-in-Widget
How does it look like: