Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Prettify TypeScript: Better Type Previews

License

NotificationsYou must be signed in to change notification settings

mylesmmurphy/prettify-ts

Repository files navigation

Get useful type information where you need it

InstallsGitHub Repo starsVersionCILicense

Prettify TS is a Visual Studio Code extension that enhances your TypeScript development experience. It provides hover information for TypeScript types, classes, interfaces, and more, formatted in a more readable and configurable way.

Installation

Install via the VSCode Marketplace:

Developer Notes

This README is for developing Prettify TS. The extension README (shown on the Marketplace) ishere.

Scripts

Note:pnpm is required.Install it here.

pnpm install# Installs all dependenciespnpmtest# Builds and runs the extension test suitepnpm build# Compiles the codebasepnpm package# Builds + prepares the VSIX package for publishing

You donot need to build manually —test andpackage handles build steps automatically.

Testing

The full integration test suite lives intest/. For more info on the test layout, debugging instructions, and hover validation strategy, see theTest README.

Monorepo Structure

This repo usespnpm workspaces to manage multiple packages:

.├── packages/│   ├── typescript-plugin/     # TypeScript language service plugin│   └── vscode-extension/      # VSCode extension host + UI└── test/                      # Full integration test suite└── scripts/                   # Utility scripts for development, building, or CI

Development Workflow

During development, pnpm automatically symlinks the plugin into the extension’snode_modules for live debugging.

Packaging Workflow

To prepare for publishing:

  1. Prepackage:

    • Copies actual plugin files into the extension
    • Rewritesworkspace:* to* forvsce compatibility
  2. Package:

    • Runsvsce package to produce.vsix
  3. Postpackage:

    • Reverts everything back for dev (restoresworkspace:* and symlinks)

VSCode Debug Configs

Defined in.vscode/launch.json:

  • Run Extension: Launches VSCode with the extension loaded for manual debugging
  • Attach to TSServer: Debug the TypeScript language service plugin

Use the VSCode Run panel (Ctrl+Shift+D / Cmd+Shift+D) to start these sessions.

License

MIT

Happy coding! 🎉


[8]ページ先頭

©2009-2025 Movatter.jp