microsoft / microsoft/vscode

macOS: .m4 and .svelte files missing from Finder document associations

Open
#336,068 0 comments 0 reactions 1 assignee Claimed by @meganrogge View on GitHub
triage-needed
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

**Missing**

`build/lib/electron.ts` registers a curated list of extensions as macOS bundle document
types (`CFBundleDocumentTypes`), but `.m4` (m4 macro files) and `.svelte` (Svelte
components) are not in it. Finder therefore doesn't offer "Open With Code" or let users
set Code as the default handler for these files.

**Expected**

Both extensions should be registered like the other file types in the list, e.g.:

```ts
darwinBundleDocumentType(['m4'], 'default', 'm4 macro file'),
// ...
darwinBundleDocumentType(['svelte'], 'default', 'Svelte source file'),

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.