microsoft / microsoft/TypeScript-Website

NON-CRITICAL: Playground Settings > Disable Definition Files breaks many plugin tabs

Open
#2,968 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.6k
Forks
1.5k
Avg merge
2d 2h
Merged PRs (30d)
7

Description

Page URL: https://www.typescriptlang.org/play?

Issue: Disable Definition Files breaks many plugin tabs

Step 1: Enable plugins, Preitter, Format on Save, (I also have TypeScript Json Schema)
image

Step 2: Observe the plugin menu and that everything works
image

Step 3: Go to Settings and disable Definition Files, And refresh the page
image

Step 4: Observe Prettier Tab is visible but unselectable,

Step 5: Observe Format on Save is missing
image

Something about "process is not defined" in tsWorker.js

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the TypeScript Playground settings and plugin handling for the Definition Files option, then inspect the reported "process is not defined" error in tsWorker.js. Reproduce the steps at https://www.typescriptlang.org/play with plugins, Prettier, and Format on Save enabled. Done means disabling Definition Files no longer makes plugin tabs unusable or removes Format on Save.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.