Skip to content

Commit

Permalink
[Task (IAC-807] Fixed problem with generating of hint data from the c…
Browse files Browse the repository at this point in the history
…onfigured vRO.

Signed-off-by: Alexander Kantchev <[email protected]>
  • Loading branch information
akantchev committed Feb 16, 2024
1 parent 9b109bd commit 47d8b23
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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() {
Expand Down
18 changes: 18 additions & 0 deletions wiki/Using-the-VS-Code-Extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,21 @@ The `vrdev.tasks.exclude` setting can be used to _exclude_ certain projects from
"my.example.library:util" // Exclude util library (<groupId>:<artifactId>)
]
```

#### 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
Binary file added wiki/images/js-code-hinting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 47d8b23

Please sign in to comment.