diff --git a/packages/node/vro-language-server/src/server/request/collection/ServerCollection.ts b/packages/node/vro-language-server/src/server/request/collection/ServerCollection.ts index a15f5e01..ba6fc60a 100644 --- a/packages/node/vro-language-server/src/server/request/collection/ServerCollection.ts +++ b/packages/node/vro-language-server/src/server/request/collection/ServerCollection.ts @@ -143,7 +143,7 @@ export class ServerCollection { /** * Collect all vRO Scripting API (Plugin) objects like VcPlugin, ActiveDirectory, etc. - * Function is asynchronous and usually take 5-10 mins since the full list of plugin details + * Function is asynchronous and usually takes approximately 10 mins since the full list of plugin details * is huge (approximately 370 000 lines of JSON definitions) * * @returns vmw.pscoe.hints.IClass[] diff --git a/wiki/Using-the-VS-Code-Extension.md b/wiki/Using-the-VS-Code-Extension.md index af4afb9e..fd85de07 100644 --- a/wiki/Using-the-VS-Code-Extension.md +++ b/wiki/Using-the-VS-Code-Extension.md @@ -96,3 +96,25 @@ The `vrdev.tasks.exclude` setting can be used to _exclude_ certain projects from "my.example.library:util" // Exclude util library (:) ] ``` + +#### Display Hints in Java Script Projects + +The VS Code plugin supports displaying action hints for modules and actions that are present in vRO along with the modules and actions that are part of the currently opened project. If you type: + +```javascript +System.getModule("com.module.path."). +``` + +or + +```javascript +Class.load("com.module.path."). +``` + +a list of hints with modules available on vRO and in locally opened projects would be presented as list, furthermore methods and parameters would be also present as hints, as shown in the example below: + +./images/js-code-hinting.png + +The hinting functionality also supports displaying hints for constructors, methods and attributes of all Scripting API (vRO plugin) objects available on the vRO server, as shown in the example below: + +./images/js-plugin-hinting.png diff --git a/wiki/images/js-code-hinting.png b/wiki/images/js-code-hinting.png new file mode 100644 index 00000000..bfeb5092 Binary files /dev/null and b/wiki/images/js-code-hinting.png differ diff --git a/wiki/images/js-plugin-hinting.png b/wiki/images/js-plugin-hinting.png new file mode 100644 index 00000000..c52765d7 Binary files /dev/null and b/wiki/images/js-plugin-hinting.png differ