Skip to content

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
where-is-john-galt:main
Open

Release 0.1.4: .mtmacro support, Format Document, and embedded HTML formatting#13
where-is-john-galt wants to merge 3 commits intoDaedeross:mainfrom
where-is-john-galt:main

Conversation

@where-is-john-galt
Copy link
Copy Markdown

Summary

Bumps the extension to 0.1.4 and adds document formatting for MapTool Script, optional HTML formatting inside string literals, and .mtmacro as a registered file extension.

What’s new

  • .mtmacro — Same language ID, grammar, and language-configuration as .mts.
  • Format Document — Indents macro source based on { / } nesting for .mts and .mtmacro.
  • Embedded HTML — Detects HTML fragments inside strings and formats those regions using the workspace HTML formatter pipeline (vscode-html-languageservice).
  • Settings (maptoolScript.*):
    • format.enable — master toggle for Format Document (default: true)
    • format.htmlInSingleQuotedStrings — default: true
    • format.htmlInDoubleQuotedStrings — default: false (avoids inserting " into double-quoted macro strings)

Docs

  • Updates CHANGELOG.md and README.md for 0.1.4.

Release

After merge, cut release with tag v0.1.4 to run the marketplace deploy workflow (requires VS_MARKETPLACE_TOKEN).

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant