You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/Catalog.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,15 +105,16 @@ Users can right-click a BASIC program file and select "Catalog" to catalog a sin
105
105
106
106

107
107
108
-
## Catalog Settings in "catalog.mvbasic.json" file
108
+
## Catalog Settings in "basic.mvbasic.json" file
109
109
110
110
Cataloging a program makes it available to all users or to users of one account. You must catalog a program before another BASIC program can call it as an external subroutine.
111
111
112
112
```
113
113
{
114
114
"catalog": "",
115
115
"arguments": "",
116
-
"initialCharacter": ""
116
+
"initialCharacter": "",
117
+
"ud_compile_flavor": ""
117
118
}
118
119
```
119
120
@@ -128,7 +129,8 @@ pointing to the object file, you need not recatalog the program every time you r
128
129
{
129
130
"catalog": "local",
130
131
"arguments": "",
131
-
"initialCharacter": ""
132
+
"initialCharacter": "",
133
+
"ud_compile_flavor": ""
132
134
}
133
135
134
136
**Normal Catalog**: Normal cataloging copies the specified object record to the system catalog space, making it available
@@ -145,7 +147,8 @@ or !, and do not specify the keyword LOCAL.
145
147
{
146
148
"catalog": "normal",
147
149
"arguments": "",
148
-
"initialCharacter": ""
150
+
"initialCharacter": "",
151
+
"ud_compile_flavor": ""
149
152
}
150
153
151
154
**Global Catalog**: Like normal cataloging, global cataloging copies the specified object record to the system catalog
@@ -167,7 +170,8 @@ the keyword LOCAL.
167
170
{
168
171
"catalog": "global",
169
172
"arguments": "",
170
-
"initialCharacter": "*"
173
+
"initialCharacter": "*",
174
+
"ud_compile_flavor": ""
171
175
}
172
176
173
177
### Cataloging in Unidata
@@ -177,7 +181,8 @@ the keyword LOCAL.
177
181
{
178
182
"catalog": "direct",
179
183
"arguments": "",
180
-
"initialCharacter": ""
184
+
"initialCharacter": "",
185
+
"ud_compile_flavor": ""
181
186
}
182
187
183
188
**Local Catalog**: Catalogs the program locally and places a copy of it in a subdirectory of the local CTLG catalog (in the account where the user is running the program). UniData creates a VOC pointer to the subdirectory.UniData creates the CTLG and the subdirectory, if they do not
@@ -186,10 +191,11 @@ already exist.
186
191
{
187
192
"catalog": "local",
188
193
"arguments": "",
189
-
"initialCharacter": ""
194
+
"initialCharacter": "",
195
+
"ud_compile_flavor": ""
190
196
}
191
197
192
198
193
-
**Note 1 :** The parameter "arguments" in the catalog.mvbasic.json file is currently not supported by the catalog feature. By default, the argument is set to FORCE for both the UV and UD databases.
199
+
**Note 1 :** The parameter "arguments" in the basic.mvbasic.json file is currently not supported by the catalog feature. By default, the argument is set to FORCE for both the UV and UD databases.
194
200
195
-
**Note 2 :** If the `./rmv` configuration exists, the `catalog.mvbasic.json` file will be created during the first catalog attempt. If the `./rmv` configuration does not exist, the `config/catalog.mvbasic.json` file will be created when the extension is activated.
201
+
**Note 2 :** If the `./rmv` configuration exists, the `basic.mvbasic.json` file will be created during the first catalog attempt. If the `./rmv` configuration does not exist, the `config/basic.mvbasic.json` file will be created when the extension is activated.
Copy file name to clipboardExpand all lines: docs/usage/Compile.md
+64-7Lines changed: 64 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,9 @@ The compilation result will display in the VS Code terminal.
29
29
30
30
**Note**: Using this method, compiled programs will not be cataloged.
31
31
32
-
For UniData, different flavors are supported. You can select “Pick” flavor or “UniData” flavor when using right-click compile:
32
+
For UniData, different flavors are supported. Right-click in the file you want to compile then select "Compile BASIC programs". It will read the language value from the basic.mvbasic.json file, with the value set to: "ud_compile_flavor". [Please see this section to set ud_compile_flavor value.](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
@@ -91,18 +91,19 @@ You can find task properties in the [VS Code official documents](https://code.vi
91
91
-**targets**: a list that contains the files you want to compile. The value should be the file's relative path. Please see the examples section for more details.
92
92
-**compile**: compilation related settings. It contains following configurable items.
93
93
-**dataSource**: Must be "UNIVERSE" or "UNIDATA", depending on the connected U2 server.
94
-
-**language**: (For UniData only) The programming language flavor. Must be "UniBasic" or "Pick". If not set, "UniBasic" is the default.
94
+
-**language**: (For UniData only) The programming language flavor. Must be "UniBasic" or "Pick". If not set, "UniBasic" is the default, **but It will read the language value from the basic.mvbasic.json file, with the value set to: "ud_compile_flavor".**[Please see this section to set ud_compile_flavor value.](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
95
95
-**catalog**: For UniVerse, you can select "global", "local" or "normal". For UniData, you can select "global", "local" or "direct". If not set, files will not be cataloged.
96
96
-**initialCharacter**: (For UniVerse only) The initial character of the cataloged program can only be set when the **catalog** parameter is set to “global”.
97
97
-**arguments**: Put additional compilation arguments here. For more details, please refer UniVerse / UniData user manual for more details. By default, this setting doesn’t appear in the configuration file. Please add it manually if needed.
98
98
#### Run build task
99
99
100
100
Select "Run build task" from the "Terminal" menu to start the build task.
101
101
102
-
**Note**: Ensure that a U2 server has been connected. Otherwise, an error will occur.
102
+
**Note 1**: Ensure that a U2 server has been connected. Otherwise, an error will occur.
103
103
104
104

105
105
106
+
**Note 2**: Once you click on "Run build task," it will compile BASIC using the compile flavor value set to ud_compile_flavor in the basic.mvbasic.json file, instead of compiling with the "language" value specified in the task (for Unidata).
106
107
107
108
## UniVerse Compile Task Examples
108
109
@@ -281,7 +282,7 @@ Select "Run build task" from the "Terminal" menu to start the build task.
281
282
- Add source code relative path to "targets". In this example, SAMPLE_FILE is in the BP folder
282
283
- "dataSource" must be "UNIDATA" for UniData
283
284
- No need to set "catalog" if you don't want to catalog programs
284
-
- You can select the language flavor in "language". In this example, the language flavor is "UniBasic"
285
+
- You can select the language flavor in "language". In this example, the language flavor is "UniBasic", **but It will read the language value from the basic.mvbasic.json file, with the value set to: "ud_compile_flavor".**[Please see this section to set ud_compile_flavor value.](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
285
286
286
287
287
288
@@ -315,7 +316,7 @@ Select "Run build task" from the "Terminal" menu to start the build task.
315
316
```
316
317
317
318
- You can add multiple source code relative paths to "targets"
318
-
- Set "language" to "Pick" flavor
319
+
- Set "language" to "Pick" flavor, **but It will read the language value from the basic.mvbasic.json file, with the value set to: "ud_compile_flavor".**[Please see this section to set ud_compile_flavor value.](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
319
320
- Set "catalog" to "global" if you want to perform global cataloging
320
321
321
322
@@ -392,4 +393,60 @@ Select "Run build task" from the "Terminal" menu to start the build task.
392
393
}
393
394
```
394
395
395
-
- Compile the BASIC program with arguments "-L" and "-X".
396
+
- Compile the BASIC program with arguments "-L" and "-X".
397
+
398
+
## Unidata Compile Flavor in basic.mvbasic.json File
399
+
400
+
By Uusing the VS Code task, users can compile or catalog multiple BASIC programs at the same time. BASIC compilation will use the specified Task propetiesproperties (except the "language" property).
401
+
402
+
403
+
```json
404
+
{
405
+
"version": "2.0.0",
406
+
"tasks": [
407
+
{
408
+
"type": "BASIC",
409
+
"targets": [
410
+
"BP/SAMPLE_FILE"
411
+
],
412
+
"compile": {
413
+
"dataSource":"UNIDATA",
414
+
"language": "UniBasic"
415
+
},
416
+
"problemMatcher": [],
417
+
"label": "BASIC: Build",
418
+
"group": {
419
+
"kind": "build",
420
+
"isDefault": true
421
+
}
422
+
}
423
+
]
424
+
}
425
+
```
426
+
427
+
It will read the language value from the basic.mvbasic.json file, with the value set to: "ud_compile_flavor"
428
+
429
+
{
430
+
"catalog": "direct",
431
+
"arguments": "",
432
+
"initialCharacter": "",
433
+
"ud_compile_flavor": "Pick"
434
+
}
435
+
436
+
**Example 1**. Compile a single BASIC program with flavor UniBasic.
437
+
438
+
{
439
+
"catalog": "local",
440
+
"arguments": "",
441
+
"initialCharacter": "",
442
+
"ud_compile_flavor": "UniBasic"
443
+
}
444
+
445
+
**Example 2**. Compile a single BASIC program with flavor revelation.
Copy file name to clipboardExpand all lines: docs/usage/Configuration.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,11 @@ This configuration file contains the settings for feature Group View. If you nee
40
40
41
41
## Catalog Configuration
42
42
43
-
The configuration file name is "catalog.mvbasic.json".
43
+
The configuration file name is "basic.mvbasic.json".
44
44
45
-
This configuration file contains the parameters for the Catalog feature. If you need to change the catalog type, arguments, or initial character, please update the settings in this file. See [Catalog Settings in "catalog.mvbasic.json" file](./Catalog.md#quick-catalog) for more information.
45
+
This configuration file contains the parameters for the Catalog feature. If you need to change the catalog type, arguments, or initial character, please update the settings in this file. See [Catalog Settings in "basic.mvbasic.json" file](./Catalog.md#quick-catalog) for more information.
46
46
47
-
**Note:** If either `./rmv` or `./rmvonline` configuration exists, the `catalog.mvbasic.json` file will be created during the first catalog attempt. If the `./rmv` configuration does not exist, the `config/catalog.mvbasic.json` file will be created when the extension is activated.
47
+
**Note:** If either `./rmv` or `./rmvonline` configuration exists, the `basic.mvbasic.json` file will be created during the first catalog attempt. If the `./rmv` configuration does not exist, the `config/basic.mvbasic.json` file will be created when the extension is activated.
Copy file name to clipboardExpand all lines: docs/usage/Debugging.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,16 @@ Before debugging, open the BASIC program first.
40
40
41
41
### Debugging without a launch file
42
42
43
-
- Click the **Run and Debug** icon on left menu bar. The **Run and Debug** view will display if you have no `launch.json` file in your project.
43
+
- Click the **Run and Debug** icon on from the left menu bar. The **Run and Debug** view will display if you have no `launch.json` file in your project.
44
44
45
45
- Click the **Run and Debug** button to start debugging the currently focused BASIC program file.
46
46
47
47

48
48
49
-
The BASIC program file will be compiled first. If successful, the debugging process will stop at the first runnable line of code in the program file.
49
+
The BASIC program file will be compiled first.
50
+
For UniData, there are different compilation flavors and it will read the compile flavor from basic.mvbasic.json, with the value set to: "ud_compile_flavor". [Please see this section to set ud_compile_flavor value.](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
51
+
52
+
On successful compilation, the debugging process will stop at the first runnable line of code in the program file.
Copy file name to clipboardExpand all lines: docs/usage/OnlineEditing.md
+31-3Lines changed: 31 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ By accessing the configuration file, you can perform actions such as adding, edi
58
58
59
59
-**"port"**: By default, the port is set to 31438, but you can change this according to your U2 server configuration.
60
60
61
+
-**"filterPatterns"**_(Optional)_: Used to specify filter patterns for Accounts, Folders and Files.
62
+
61
63
There are additional methods available to edit the configuration file:
62
64
63
65
- Right-click on a tree view node and select "Add New Server" to add a new U2 server configuration.
@@ -86,6 +88,32 @@ If you wish to disconnect from a U2 server, right-click the corresponding server
86
88
87
89

88
90
91
+
### Filtering
92
+
93
+
Users can establish filters to filter out information which that they user do not want the MVVS to display. Users can configure MVVS to filter out certain file names. This is done to minimize the amount number of unnecessary files listed.
94
+
95
+
In the Configure Patterns option, enter the account/folder/file name patterns you want to match. Separate each pattern with a comma. Pattern matching characters are:
96
+
*\* = any string
97
+
* ? = any character
98
+
99
+
#### **Steps to Configure Filter Pattern**
100
+
**Access Configuration**:
101
+
* Right-click the server name, account, or folder.
* Add your desired filter pattern to the servers.mvbasic.json file.
108
+
* Save the changes.
109
+
110
+
**Refresh Connection**:
111
+
* If you are already connected to the server, manually refresh it to apply the changes.
112
+
113
+
**View Filtered Results**:
114
+
* Expand the specific server or folder to see only the filtered accounts, folders, and files.
115
+
116
+
89
117
### Editing BASIC programs
90
118
91
119
Once connected to a U2 server, you can expand the server node to access and view the BASIC program files stored on that server.
@@ -118,14 +146,14 @@ Users can right-click a BASIC program file and select “” to compile a single
118
146
119
147

120
148
121
-
For UniData, there are multiple compilation commands for different flavors.
149
+
For UniData, there are multiple compilation commands for different flavors. Please refer [UD Compilation here](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
122
150
123
151
#### Quick catalog
124
152
Users can right-click a BASIC program file and select "Catalog" to catalog a single file for both Universe and Unidata databases
125
153
126
154

127
155
128
-
Clicking on 'Catalog' will use the parameters from the catalog.mvbasic.json file to catalog the file. If you need to change the catalog type, arguments, or initial character, please update the settings in this file. See [Catalog Settings in "catalog.mvbasic.json" file](./Catalog.md#quick-catalog) for more information.
156
+
Clicking on 'Catalog' will use the parameters from the basic.mvbasic.json file to catalog the file. If you need to change the catalog type, arguments, or initial character, please update the settings in this file. See [Catalog Settings in "basic.mvbasic.json" file](./Catalog.md#quick-catalog) for more information.
129
157
130
158
#### Compile / Catalog with configuration file
131
159
The configuration file can help a user to compile and catalog multiple files.
@@ -152,4 +180,4 @@ Most of the LSP (Language Server Protocol) features are supported, but there are
152
180
153
181
- Do not click on another account's folder before completing the cataloging of the current BASIC program. Doing so may result in cataloging the wrong BASIC program on the U2 server side.
154
182
155
-
- The parameter "arguments" in the catalog.mvbasic.json file is currently not supported by the catalog feature. By default, the argument is set to FORCE for both the UV and UD databases.
183
+
- The parameter "arguments" in the basic.mvbasic.json file is currently not supported by the catalog feature. By default, the argument is set to FORCE for both the UV and UD databases.
0 commit comments