Skip to content

Find in Files: Lookbehind with Match Whole Word leads to "Regex parse error" #82071

@IllusionMH

Description

@IllusionMH

Issue Type: Bug

  1. Open Find in Files
  2. Type Regexp with lookbehind (?<!path)\.join
  3. Enable Use Regular Expression and Match Whole Word
  4. "Regex parse error" message appear

This works fine in Find widget and if \b added manually to regexp.

Root cause: --auto-hybrid-regex is not added if isRegExp is used with isWordMatch.

/cc @roblourens

VS Code version: Code - Insiders 1.39.0-insider (c8252b6, 2019-10-04T09:24:45.690Z)
OS version: Windows_NT x64 10.0.18995

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz (4 x 2295)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.91GB (3.12GB free)
Process Argv
Screen Reader no
VM 0%
Extensions: none

Metadata

Metadata

Assignees

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