microsoft / microsoft/TypeScript
Optionally provide path/link to file with transpilation error
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
I see this in my terminal:
I have two feature requests:
-
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? -
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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