Skip to content
| Marketplace
Sign in
Visual Studio>Tools>MintPlayer Polyglot for Visual Studio
MintPlayer Polyglot for Visual Studio

MintPlayer Polyglot for Visual Studio

MintPlayer

| (0) | Free
Syntax highlighting and a language server (diagnostics, go-to-definition, hover, document symbols, semantic tokens, formatting, references, rename, completion) for Polyglot (.pg) files. Drives the sam
Download

MintPlayer Polyglot for Visual Studio

Language support for Polyglot (.pg) — one small source language that transpiles to idiomatic, readable C#, TypeScript, Python, and PHP.

Features

  • Syntax highlighting for .pg files.
  • Language server (the polyglot lsp CLI): live diagnostics, go-to-definition (same-file and cross-module), hover, document symbols, find references, rename, Format Document, completion (including obj. members), and semantic-token coloring.
  • Per-target reserved-name checks — identifiers that would collide with a configured target's generated code squiggle live, named per target.

Watch / rebuild-on-save

For a .NET project consuming the MintPlayer.Polyglot.MSBuild NuGet, .pg files are registered as dotnet watch inputs — run dotnet watch build (or run) on the project and every .pg save re-transpiles automatically. For standalone use, the CLI has polyglot build <file> --watch.

Requirements

The language features need the polyglot CLI on your PATH (it hosts the language server). There is no prebuilt CLI download yet — build it from the MintPlayer.Polyglot repository (see the README), or point the extension at a built MintPlayer.Polyglot.Cli.exe.

Project configuration

An optional pgconfig.json next to (or above) your .pg files drives module resolution, the ambient std prelude, and the project's target set:

{
  "root": ".",
  "lib": ["io", "math"],
  "targets": ["csharp", "typescript"]
}

Learn the language

  • Language specification
  • Polyglot for C# developers
  • Polyglot for TypeScript developers
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft