Incorrect file extension detection for browser files #181746
Description
opened on May 7, 2023
Type: Bug
- Create a vite project
npm init vite
with a debug configuration to open in Chrome. - Edit a file to trigger Hot Module Replacement.
- Stop the debugger on a file that has been edited.
Observe that the file is incorrectly detected as plain text and the filetype extension is wrong.
VS Code version: Code 1.78.0 (252e546, 2023-05-03T20:15:29.774Z)
OS version: Darwin arm64 22.5.0
Modes:
Sandboxed: No
System Info
Item | Value |
---|---|
CPUs | Apple M1 (8 x 24) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
Load (avg) | 3, 4, 5 |
Memory (System) | 16.00GB (0.24GB free) |
Process Argv | vite-project |
Screen Reader | no |
VM | 0% |
Activity