Release 0.1.4: .mtmacro support, Format Document, and embedded HTML formatting#13
Open
where-is-john-galt wants to merge 3 commits intoDaedeross:mainfrom
Open
Release 0.1.4: .mtmacro support, Format Document, and embedded HTML formatting#13where-is-john-galt wants to merge 3 commits intoDaedeross:mainfrom
where-is-john-galt wants to merge 3 commits intoDaedeross:mainfrom
Conversation
Migrates the extension to TypeScript and integrates a new formatting feature for MapTool Script files. The formatter intelligently segments documents to apply proper indentation for MTS code and leverage the VS Code HTML language service for embedded HTML fragments, both raw and within string literals. This change also updates the build process, introduces new developer tasks, and enhances the TextMate grammar for improved HTML syntax highlighting. User-configurable options are added to control HTML formatting behavior within strings, and `.mtmacro` files are now also supported.
Reverts the package version from 0.1.5 to 0.1.4.
Introduces a "Format Document" feature that indents MapTool macro source based on brace nesting. Also registers the `.mtmacro` file extension, treating it identically to `.mts` files. Enables optional formatting of HTML fragments found within string literals, utilizing existing HTML formatter rules. Provides new settings to control formatting behavior, including enabling/disabling the feature and specifying whether to format HTML in single- or double-quoted strings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps the extension to 0.1.4 and adds document formatting for MapTool Script, optional HTML formatting inside string literals, and
.mtmacroas a registered file extension.What’s new
.mtmacro— Same language ID, grammar, andlanguage-configurationas.mts.{/}nesting for.mtsand.mtmacro.vscode-html-languageservice).maptoolScript.*):format.enable— master toggle for Format Document (default:true)format.htmlInSingleQuotedStrings— default:trueformat.htmlInDoubleQuotedStrings— default:false(avoids inserting"into double-quoted macro strings)Docs
CHANGELOG.mdandREADME.mdfor 0.1.4.Release
After merge, cut release with tag
v0.1.4to run the marketplace deploy workflow (requiresVS_MARKETPLACE_TOKEN).