Repository navigation
v0.20.0
Added
- The language features know the installed libraries a PLC project references by name, without a stub: the
POUs, DUTs, GVLs and interfaces, with their methods, properties, actions and comments, that the
browsercacheXAE writes next to a library names, read from the system library repositories and the
folders oftwincatExplorer.libraryRepositories. They are no longer reported as unknown (Unknown type 'FB_ComponentBase'for the SPT Libraries,
#91), and have a hover and completion. Without their
declarations, members and arguments of theirs are not checked, and a POU extending one of their function
blocks gets no report of an unknown identifier. A stub still declares what it has; the browsercache adds the
rest. The MCP server's check knows them too. - The language features read the declarations of an installed source library (
.library) a PLC project
references from its file, as a stub would declare them: its POUs, DUTs, GVLs and interfaces, with their
methods, properties, actions and comments, such as the SPT Libraries. Hovers, signature help and completion
have them; inherited variables, enumeration values and qualified GVLs are found, through the function blocks of
another library too, and an unknown identifier is reported again in a POU extending one of them. Compiled
libraries hold no declaration text: they stay known by name.
Fixed
- Add Library finds the libraries of a folder of
twincatExplorer.libraryRepositoriesthat holds its
repository in a subfolder, such as a clone of the SPT Libraries (itsLibrary Repositoryfolder), and warns
about a folder of the setting without libraries, which went unnoticed next to the system repository's
libraries (#91). - Add Library writes the default namespace of a library its repository's
cachelacks, such as those of a
cloned repository XAE never indexed here, from theprojectinfoof its folder, instead of its title, which
can be no identifier (SPT Base TypesforSPT_BaseTypes).
Thanks to @EricControls for reporting #91, and for the settings, folder tree and screenshots that showed where it went wrong.
Install the attached file with code --install-extension explorer-for-twincat-0.20.0.vsix, or from the Marketplace.