microsoft / microsoft/TypeScript

Optionally provide path/link to file with transpilation error

Open
#32,488 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Awaiting More Feedback Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

I see this in my terminal:

Screen Shot 2019-07-19 at 1 04 27 PM

I have two feature requests:

  1. for us hard of seeing people, it's really hard to read the cyan and yellow color in a light terminal.
    Is there some way to turn on darker colors - by passing a dark/light option to pretty?

  2. It would be awesome if the transpiler could include the path to the file in the terminal. My editor is cool and if I click the file path in the terminal it will open the file.

My tsconfig.json is:


    {
      "compilerOptions": {
        "outDir": "dist",
        "allowJs": false,
        "pretty": true,   // << makes it pretty, but I can't read in a light-colored terminal
        "resolveJsonModule": true,
        "sourceMap": false,
        "skipLibCheck": true,
        "rootDir": "src",
        "declaration": false,
        "baseUrl": ".",
        "target": "es2018",
        "module": "commonjs",
        "noImplicitAny": true,
        "removeComments": true,
        "allowUnreachableCode": true,
        "lib": [
          "es2017",
          "es2018"
        ]
      },
      "compileOnSave": false,
      "include": [
        "src"
      ]
    }

Contributor guide

Open the contributing guide

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

The payload names no source file or test. Start by reproducing the terminal diagnostic with the shown tsconfig.json and inspect the compiler's pretty diagnostic output. Done means addressing the requested file path and terminal color readability, with coverage for the resulting output.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
accessibility, cli, compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.