Porting from IDEA to WebStorm
已回答
I have a plugin developed under IDEA and now need to see if I can port to Webstorm. The plugin relies on Javascript and Typescript functionality.
I am finding that Webstorm is apparently missing classes such as PsiShortNamesCache and PsiLiteralExpression, thus giving me compilation errors. Confused. Should not this functionality exist under WebStorm as well?
Even adding idea.jar to classpath does not help:
请先登录再写评论。
Bump! Sorry to pest, but this one is very urgent for my client, please help ASAP.
From documentation:
The following modules are currently available in all products based on IntelliJ Platform:
com.intellij.modules.platform
com.intellij.modules.lang
com.intellij.modules.vcs
com.intellij.modules.xml
com.intellij.modules.xdebugger
http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
Indeed both classes are Java specific and thus not available in any of the non-Java IDEs.
Thank you guys for your answers. So, how does one search for a file by name under WebStorm?
Use com.intellij.psi.search.FilenameIndex