microsoft / microsoft/TypeScript

Fourslash server tests silently ignore compiler option directives

Open
#33,019 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The existing working solution is to create a tsconfig.json fourslash-file, which is probably a better way to do things given that the server tests are supposed to mimic reality more closely, so my proposal would be to throw early when double-slash-attersand compiler directives are encountered.

Semi-related: #25081

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 issue does not name a file or test; begin by locating the server fourslash test entry point and how a tsconfig.json fourslash-file is loaded. Reproduce a test containing a double-slash-at-sign compiler directive, then verify that the harness rejects it early while the tsconfig.json path remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.