microsoft / microsoft/nodejstools

In Open Folder scenarios, build is not offered in the context menu for TS files

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

Nobody has claimed this yet.

Dominant language
C#
Stars
1.8k
Forks
355
PR merge metrics
No merged PRs in 30d

Description

In Open Folder scenarios, right-clicking on a TS file in the solution explorer (looks like it) is supposed to offer a Build action:

https://github.com/Microsoft/nodejstools/blob/62092961da3ec69cf21669bf19c9d36ca1d54d1f/Nodejs/Product/Nodejs/Workspace/TypeScriptActionProviderFactory.cs#L73

However, that code is never hit for TS files (though the adjacent code for tsconfig files seems to work correctly).

  • NTVS Version: 2f30d528b9b8d5e912e4f48bae0d4a0e5facd911
  • Visual Studio Version: 28307.280 (15.9)
  • Node.js Version: 10

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

Start in Nodejs/Product/Nodejs/Workspace/TypeScriptActionProviderFactory.cs at the linked code near line 73, then compare the adjacent tsconfig handling that works. Reproduce the Open Folder scenario by right-clicking a TS file in Solution Explorer; done means the Build action is offered and the TypeScript action-provider code is reached.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, typescript
Domain
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.