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 21304fc5..2981dab3 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 @@ -58,9 +58,6 @@ export class ServerCollection { async triggerCollection(offline: boolean, event: CancellationToken) { this.logger.info("Triggering vRO server data collection...") - this.environment.workspaceFolders.forEach(workspaceFolder => { - this.workspaceCollection.triggerCollectionAndRefresh(workspaceFolder) - }) this.restClient .getVersion() @@ -94,6 +91,10 @@ export class ServerCollection { this.currentStatus.finished = true this.hints.initialize() }) + + this.environment.workspaceFolders.forEach(workspaceFolder => { + this.workspaceCollection.triggerCollectionAndRefresh(workspaceFolder) + }) } async getModulesAndActions() { diff --git a/wiki/Using-the-VS-Code-Extension.md b/wiki/Using-the-VS-Code-Extension.md index af4afb9e..930d8da3 100644 --- a/wiki/Using-the-VS-Code-Extension.md +++ b/wiki/Using-the-VS-Code-Extension.md @@ -96,3 +96,21 @@ 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 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