MapCompleteVScodeThis is a Visual Studio Code extension for MapComplete. It adds autocompletion and defintion support for the MapComplete theme and layer configuration files. Currently the following features are supported:
Upon the first activation of this extension it will scan the workspace for all layers, tagRenderings and filters and cache them. This will take about 30 seconds, but the results are saved so they will only be updated when there are changes to the files. Alternatively, it is possible to manually update the cache by running the "MapComplete: Update cache" command.
It is also possible to deactivate the caching using setting All notable changes to this project are documented in the CHANGELOG file. InstallationThe extension can be installed in several ways: From the marketplaceThe extension is available both in the Visual Studio Code marketplace and the Open VSX registry. So for both Visual Studio Code and VSCodium, you should just be able to search for "MapComplete" in the extensions tab and install it from there. Alternatively you can press
From the .vsix fileYou can also install the extension from the .vsix file. You can download the latest version from the releases page. After downloading the .vsix file, you should be able to install it by going to extensions in Visual Studio Code and clicking on the three dots in the top right corner. Then click on "Install from VSIX..." and select the downloaded .vsix file. It's also possible to install builds for any commit in any branch by checking out the workflow run for the commit you want to install, and downloading the .vsix file from the artifacts. UsageMost of the features should be pretty self-explanatory. As for the implementation support, the 'anchor' for this is the id property of the layer, tagRendering or filter. This means that if you want to see where a layer is used, you should be able to see all uses by using |