Skip to content

Match whole word doesn't work in search for non-latin characters #27280

Closed as not planned

Description

@roblourens

Activity

  1. self-assigned this
    on May 25, 2017
  2. added
    search
    feature-request
    on May 25, 2017
  3. johlju commented on May 27, 2017

    @johlju

    Got the same problem. Searching for whole words does not work when word contains Swedish characters.
    It should not had a hit on 'rs' in the word 'körs'.

    image

  4. roblourens commented on May 27, 2017

    @roblourens
    MemberAuthor

    Is this the insiders build? This was just fixed for find.

  5. added this to the On Deck milestone on Sep 22, 2018
  6. jeanp413 commented on Sep 6, 2019

    @jeanp413
    Contributor

    roblourens Maybe this can be fixed by using the --word-regexp flag in ripgrep again.
    There were some issues before:

    but the pattern for whole word has been updated from \b(?:<your pattern>)\b to (?:^|\W)(?:<your pattern>)(?:$|\W) with \W being unicode aware.

  7. roblourens commented on Sep 9, 2019

    @roblourens
    MemberAuthor

    To match the editor, this has to take the editor.wordSeparators setting into account, so I think it will still have to be a regex built by vscode.

  8. jeanp413 commented on Sep 10, 2019

    @jeanp413
    Contributor

    Wouldn't it be better to use the same (?:^|\W)(?:<your pattern>)(?:$|\W) pattern?
    Now that there's unicode support in vscode, it's possible to implement \W (unicode aware) which is defined as [^\p{Alphabetic}\p{M}\p{Nd}\p{Pc}\p{Join_Control}] using Unicode property escapes (not sure if this is supported) or could be transpiled to unicode blocks/sub-ranges using this

  9. roblourens commented on Sep 10, 2019

    @roblourens
    MemberAuthor

    I understand that but the point is that the definition of a "word" is customizable by the user via that setting.

  10. added
    help wanted
    on Oct 27, 2019
  11. modified the milestones: On Deck, Backlog on Dec 13, 2022
  12. dmitrivMS commented on Dec 21, 2025

    @dmitrivMS
    Collaborator

    Osvaldo Ortega (@osortega) FYI - I cannot repro this with Russian or Swedish examples above or from linked bugs.
    If anyone has a repro, please share.

    Version: 1.108.0
    Commit: Unknown
    Date: Unknown
    Electron: 39.2.7
    ElectronBuildId: undefined
    Chromium: 142.0.7444.235
    Node.js: 22.21.1
    V8: 14.2.231.21-electron.0
    OS: Windows_NT x64 10.0.26200

  13. added
    ~info-needed
    on Jan 5, 2026
  14. vs-code-engineering commented on Jan 5, 2026

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

    For Copilot Issues, be sure to visit our Copilot-specific guidelines page for details on the necessary information.

    Happy Coding!

  15. added
    info-needed
    and removed
    ~info-needed
    on Jan 5, 2026
  16. vs-code-engineering commented on Jan 13, 2026

    @vs-code-engineering
    Contributor

    This issue has been closed as it has been labeled with info-needed and has not received the additional information that was requested from the issue author. It has been labeled as info-needed for 7 days.

  17. locked and limited conversation to collaborators on Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesthelp wantedinfo-neededsearchsearch-api

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions