Sheerpower Scripting Language Extension (LSP Version)
Language Extension for the Sheerpower Language (Touch Technologies Inc.) Written by cdturner, with the cooperation of E-closing.com
This provides basic language parsing for sheerpower script. Lists of include files and list of routines with parameters.
Basic extraction of routine header comments for documentation/hover over help.
Jump to symbol, code complete function declaration. Basic header snippets and routine snippets for sheerpower scripts.
Parsing is based on the nearest spsrc source code file. It will parse individual spinc files, but will not be able to search for symbols between then without the spsrc. The root source file that contains all the include references must be open so it can be parsed and all the references include file also parsed. This provides for extensive symbol search across all source files of a project.
Background reparsing of the current file occurs 3 seconds after you stop typing. This is to reduce the overhead of the editor, if it is constantly reparsing as you type it causes issues.
Searching for include files can include the use of the sheerpower special '@'. This is always taken to be the folder of the root spsrc file. This is how sheerpower resolves it.
On windows all source filenames are case insensitive, and so they are treated that way by the language parser.
on your editor if you open the output window and use the drop down, then you should be able to see the cosole messages from the language server. This tells you when it ignores, or can't find a file ... etc.
these are very similar keys to visual studio in C# mode, so they should be familiar.
Build Sheerpower Source
Compile the sheerpower source code (must be on a spsrc file), report errors, generate a sprun file.
Keys: F6 command name: sheerpowerBasic.buildSheerpower
Validate Sheerpower Source
Compile the sheerpower source code (must be on a spsrc file), report errors, but dont generate a sprun file.
Keys: Shift + F6 command name: sheerpowerBasic.validateSheerpower
Run Sheerpower Source
Compile the sheerpower source (must be on a spsrc file), report errors. If error free, execute the source in sp4gl.exe in breakable mode.
If any command parameters are required, they are asked for before the source is run.
Key: Ctrl + F5 command name: sheerpowerBasic.runSheerpower
Jump To Routine and Line Offset
Sheerpower often refers to locations by function name.<line offset from function start>
this command will ask for the routine name, or the routine name.line offset, and navigate the editor to it.
Loading More data ...