FoxPro Language Support
Visual FoxPro language support focused on "Go to Definition" for common declaration patterns.
Features
- Associates the
foxpro language with .prg, .h, .spr, .mnx, .sc2, and .vc2 files.
- Indexes
FUNCTION, PROCEDURE, DEFINE CLASS, and PROCEDURE class.method declarations across the workspace.
- Provides Go to Definition (F12 / Ctrl+Click) for function, procedure, and class member names.
- Refreshes the index on file saves, edits, and file system changes.
- Configurable file size limits, exclude patterns, and logging levels for performance tuning.
Usage
- Open a workspace containing FoxPro sources.
- Place the cursor on a function, procedure, or class method reference and press F12 (or Ctrl+Click) to jump to its declaration.
- The index builds automatically and updates as you edit files.
Commands
- Gofox: Reindex Workspace � Manually rebuild the index for all FoxPro files.
- Gofox: Open Logs � Show the Gofox output channel for diagnostics.
Configuration
| Setting |
Type |
Default |
Description |
gofox.maxFileSize |
number |
5242880 (5 MB) |
Maximum file size in bytes to index. Set to 0 to disable the limit. |
gofox.logLevel |
string |
info |
Verbosity level: off (no logs), info (key events), debug (detailed diagnostics). |
gofox.excludeGlobs |
array |
["**/node_modules/**", "**/out/**", "**/dist/**", "**/build/**"] |
Glob patterns to exclude from indexing. |
Notes
- Matching is line-based; complex macro/substitution scenarios may require additional patterns.
- Definitions are case-insensitive and matched by the declared name or
Class.Method pair.
- Use
excludeGlobs to skip build outputs, dependencies, or other irrelevant folders.
Development
npm run compile builds the extension.
npm test runs the sample test suite.
| |