Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Make the file-type/extension provider authoritative for dynamic extensionless file associations (follow-up)

Open
#14,541 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript, vscode
Domain
tooling

Research direction

Locate the extension/file-type provider and the separate dynamic extensionless-association lookup, then trace their callers in the main extension and unit tests. Compare the provider and host-level approaches described in the issue; done means the central lookup handles these associations and both consumers continue to work.

Written by the indexing model from the issue text.

Description

Language Service

Follow-up to an earlier change that stopped tag-parsing non-included extensionless files.

Currently, dynamically discovered extensionless file associations are handled via a separate lookup outside the main file-type resolution path. Fold these into the extension/file-type provider so that the central file-type lookup is the single source of truth, rather than relying on a pre-built known list plus a separate check.

Why: As more code is unified onto the shared path, the common code won't know about these extra extensionless files unless they're part of the standard file-type resolution call. Keeping it in one place avoids divergence.

Approach options:

  • Subclass/extend the extension provider and override the lookup to augment or replace the defaults, or
  • Override at the host level: call the default provider first, and if it returns "none" and the file has no extension, fall back to checking the custom list.

Note: There are two consumers to keep working — the main extension and the unit tests.

Internal task number: 3021361

Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
1d 4h
Merged PRs (30d)
60

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.

More from microsoft/vscode-cpptools

All issues in microsoft/vscode-cpptools

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.