Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task IAC-807] Enable Collecting Hints from vRO and Local Actions / Modules #143

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading