Skip to content

Regular expression search causes VS Code window to hang #120256

@langton

Description

@langton

Issue Type: Bug

Step 1:
Create file with the following contents and save as foo.c. (Does not matter whether C extension is installed):

void function()
{
  int x;
                    /* Multi
                       Line
                       Comment */


                       
  return;
}

Step 2: Perform a regular expression search for /\*(.*\n?)*\*/ (outer backticks for markdown only).

Step 3: VS Code window will hang while regex is being typed/pasted and need to be reloaded.

Tested on Linux and Mac, with and without the C extension installed.

Linux test system information:
CPUs Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz (4 x 3092)
GPU Status 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off opengl: enabled_on protected_video_decode: unavailable_off
Load (avg) 0, 0, 0
Memory (System) 15.35GB (11.96GB free)
Process Argv --no-sandbox --unity-launch
Screen Reader no
VM 0%
Extensions: none

Mac test system information:
VS Code version: Code 1.54.3 (2b9aebd, 2021-03-15T11:57:12.728Z)
OS version: Darwin x64 19.6.0

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 1, 2, 2
Memory (System) 64.00GB (9.73GB free)
Process Argv --crash-reporter-id 23534093-7a03-4680-9eec-a2f548333f07
Screen Reader no
VM 17%
Extensions (20)
Extension Author (truncated) Version
language-x86-64-assembly 13x 3.0.0
aws-toolkit-vscode ama 1.22.0
json-tools eri 1.0.2
go gol 0.23.3
mips kda 0.0.6
rainbow-csv mec 1.8.1
csharp ms- 1.23.9
python ms- 2021.3.680753044
jupyter ms- 2021.3.684299474
remote-containers ms- 0.163.2
remote-ssh ms- 0.65.1
remote-ssh-edit ms- 0.65.1
remote-wsl ms- 0.54.6
vscode-remote-extensionpack ms- 0.20.0
cpptools ms- 1.2.2
powershell ms- 2021.2.2
printcode nob 3.0.0
vscode-print pdc 0.9.3
platformio-ide pla 2.3.1
gcode Ton 0.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    *duplicateIssue identified as a duplicate of another issue(s)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions