Skip to content

Incorrect file extension detection for browser files #181746

Closed
microsoft/vscode-js-debug
#1769
@rotu

Description

Type: Bug

  1. Create a vite project npm init vite with a debug configuration to open in Chrome.
  2. Edit a file to trigger Hot Module Replacement.
  3. 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%
Extensions: none

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions