Visual Studio Code installer fails to register file associations for supported file types
#191,782 创建于 2023年8月30日
仓库指标
- Star
- (74,848 star)
- PR 合并指标
- (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)
描述
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.81.1
- OS Version: Windows 10.0.19045.3393
Steps to Reproduce:
- Create a virtual machine containing a clean version of Windows 10
- Log in with a user account with admin privileges.
- Download
VSCodeSetup-x64-1.81.1.exe. (If enough time has passed and version 1.81.1 isn't available, download the latest machine-wide installer.) - Run the installer.
- Proceed with installation, but check the "Register Code as an editor for supported file types" box.
- Create a new standard user account (without administrative privileges)
- Log out
- Log in with the new standard user account
- Create the following blank files. You can do so on the desktop.
- Test.cpp
- Test.cs
- Test.css
- Test.htm
- Test.html
- Test.js
- Test.json
- Test.markdown
- Test.md
- Test.ps1
- Test.svg
- Test.xml
- Test.yaml
Expected results: Not all of them are associated with Visual Studio Code, but the user should be able to associate them via the Settings app → Apps and Features → Default Apps → Set defaults by app.
Actual results: Not all of them are associated with Visual Studio Code, and the user cannot adjust the association via the Settings app → Apps and Features → Default Apps → Set defaults by app.
Please resist the temptation to tell me, "you can drag and drop files into VSCode" or "you can use the Open With command." Users can do all of those things without putting a check mark next to "Register Code as an editor for supported file types." So, what does that checkmark even do?