Just open sourced the JavaScript Inlay Hints Provider function in IDEA plugin React Native Console commercial version

Please check at https://github.com/beansoft/react-native-console


https://github.com/beansoft/react-native-console/search?q=com.github.beansoftapp.javascript.codeInsight.JavaScriptJSXCodeVisionProvider


See more at https://plugins.jetbrains.com/intellij-platform-explorer/?extensions=com.intellij.codeInsight.inlayProvider


Node:

This branch only shows how to using the InlayProvider to display in code editor to show usage for JavaScript function,
you need add javascript-openapi.jar and JavaScriptLanguage.jar to project's classpath and mark it as provided.

My code mainly based on IJ source code at com.intellij.codeInsight.daemon.impl.JavaCodeVisionProvider, please using git
history for what's added for this function.

Please using the react-native-console-free.jar to test in IJ Ultimate or WebStorm with a React or React Native project.

The preferences will show a JavaScript Inlay option for Usages.


image

原文地址:https://www.cnblogs.com/beansoft/p/14255192.html