Skip to content

PowerShell extension example/installer encourages setting files.defaultLanguage to powershell #5330

@sn0wm1ku

Description

@sn0wm1ku

Problem: After installing ms-vscode.powershell (v2025.4.0) I observed that new untitled files default to PowerShell language mode. Users expect extensions not to change global/user editor defaults without explicit consent.\n\nEnvironment:\n- Extension: [email protected]\n- VS Code: 1.106.2\n- OS: Darwin 25.1.0 arm64\n\nEvidence:\n- The extension contains an example settings file at ~/.vscode/extensions/ms-vscode.powershell-2025.4.0/examples/.vscode/settings.json which contains: \n\n "files.defaultLanguage": "powershell"\n\n- The extension's package.json includes a configurationDefaults section for PowerShell-specific defaults.\n\nSteps to reproduce:\n1. Install the PowerShell extension\n2. Create a new untitled file in VS Code\n3. Observe the language mode in the bottom-right; it may default to PowerShell\n\nExpected behavior:\nThe extension should not alter a user's global or workspace settings such as files.defaultLanguage without explicit opt-in, and example settings should not be applied automatically.\n\nSuggested remediation:\n- Remove files.defaultLanguage from the shipped example settings or clarify they are only examples.\n- Avoid programmatically updating global settings without user consent.\n\nPlease let me know if you want additional logs or the exact files I found on my machine.,assignee:,labels:bug,extension

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions