
Provides
- syntax highlighting (4gl, per)
- formatting (4gl)
- go to definition (4gl)
- completion (4gl, per)
- diagnostic - underlining errors and warnings - (4gl,per)
- hover (4gl)
- breadcrumps (4gl)
- debugging
- tasks
debugging
- launch using the internalConsole, integratedTerminal, externalTerminal.
- attach to a fglrun process by picking an process id from a list.
Building
The extension contributes 'genero-fgl' tasks (code:Terminal/Run Task, code:Terminal/Run Build Task).
Configure your own build task (Terminal/Configure Tasks).
Important: set the attribute "problemMatcher": "$fglcomp", otherwise
vscode can not parse the output of fglcomp and fglform.
Example 1: compile everything in the workplace:
{
"version": "2.0.0",
"tasks": [
{
"label": "fglcomp-all-4gl",
"type": "shell",
"command": "fglcomp -r --make -M *.4gl",
"problemMatcher": "$fglcomp",
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
}
}
]
}
Example 2: launch make
{
"version": "2.0.0",
"tasks": [
{
"label": "make",
"type": "shell",
"command": "make",
"problemMatcher": "$fglcomp",
"options": {
"cwd": "${workspaceFolder}"
},
"group": "build"
}
]
}
Changes
0.0.10
- contributes the problemMatcher fglcomp (See Building)
0.0.12
- hover - context information for the symbol under the cursor.
- Fixed syntax highlighting of multi-line string literals.
- diagnostics: Better handling of fast user input on slow machines.
0.0.13
- contributes tasks
- breadcrumps
0.0.14
- references
- language server (experimental)
0.0.15
- fixes: diagnostic not working on Windows.
0.0.16
- fixes: Run/Run Without Debugging.
- debugger: configuration option stopAtEntry (default true).
0.0.17
- syntax highlighting - escape characters in strings
LET var = "abc\n"
- syntax highlighting - preprocessor
& define FOO bar
- syntax highlighting - scree/grid in per files
SCREEN
{
Field1 [f1 ]
Field2 [f2 ]
}
0.0.18
0.0.19
- housekeeping: smaller package
0.0.20
- fixes: debugger configuration attribute "stopAtEntry": true