Skip to content

Commit e174758

Browse files
IAC-807 - Update documentation and samples
1 parent 796a7f0 commit e174758

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

packages/node/vro-language-server/src/server/request/collection/ServerCollection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class ServerCollection {
143143

144144
/**
145145
* Collect all vRO Scripting API (Plugin) objects like VcPlugin, ActiveDirectory, etc.
146-
* Function is asynchronous and usually take 5-10 mins since the full list of plugin details
146+
* Function is asynchronous and usually takes approximately 10 mins since the full list of plugin details
147147
* is huge (approximately 370 000 lines of JSON definitions)
148148
*
149149
* @returns vmw.pscoe.hints.IClass[]

wiki/Using-the-VS-Code-Extension.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,25 @@ The `vrdev.tasks.exclude` setting can be used to _exclude_ certain projects from
9696
"my.example.library:util" // Exclude util library (<groupId>:<artifactId>)
9797
]
9898
```
99+
100+
#### Display Hints in Java Script Projects
101+
102+
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:
103+
104+
```javascript
105+
System.getModule("com.module.path.").
106+
```
107+
108+
or
109+
110+
```javascript
111+
Class.load("com.module.path.").
112+
```
113+
114+
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:
115+
116+
./images/js-code-hinting.png
117+
118+
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:
119+
120+
./images/js-plugin-hinting.png

wiki/images/js-code-hinting.png

55.1 KB
Loading

wiki/images/js-plugin-hinting.png

19.6 KB
Loading

0 commit comments

Comments
 (0)