Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.47 KB

DEVELOPING.md

File metadata and controls

35 lines (25 loc) · 1.47 KB

Developing

Setting up the Plugin SDK

  • Add all jars in <intellij home>/plugins/JavaScriptLanguage
  • Add all jars in <intellij home>/plugins/JavaScriptDebugger/lib
  • Add the css.jar in <intellij home>/plugins/CSS/lib
  • Add the netty-all-*.jar in <intellij home>/lib
  • Add the NodeNS.jar in <user home>/.IntelliJIdea<version>/config/plugins/NodeJS/lib
  • Add the IntelliLang.jar in <user home>/.IntelliJIdea<version>/config/plugins/IntelliLang/lib

Setting up Intellij Community (OpenApi) sources:

Run-configuration options for interacting with the language service

By default the plugin uses the language service in META-INF/dist/js-graphql-language-service.dist.js.

During plugin development there are two options for working directly with the language service source files:

Option 1: Let IntelliJ start the language service directly from its server.js file

-Djsgraphql.debug=true
-Djsgraphql.debug.languageServiceDistFile=<git directory>/js-graphql-language-service/bin/server.js

Option 2: Let intelliJ connect to an already running language service instance

This run-configuration setup enabled debugging of the language service source code.

-Djsgraphql.debug=true
-Djsgraphql.debug.languageServiceUrl=http://localhost:3000/js-graphql-language-service

Note that no process handler console view is available since the plugin isn't responsible for running the Node.js process.