Skip to content

wordPattern in language-configuration.json not working on extension host process #42649

@pltrant

Description

@pltrant
  • VSCode Version: 1.19.3
  • OS Version: Windows 10

Steps to Reproduce:

  1. Add a wordPattern to the language-configuration.json file:
"wordPattern": "[\\S]+"
  1. Perform an action that is reliant upon a word match, such as a DocumentHighlightProvider that triggers when a word is selected. Using test code such as:
if (true) then
  print 'test'
.

Clicking on if will correctly trigger, but clicking on . will not. A wordPattern of [\S]+ should match against both.

If you contribute the setting on activate from an extension, it does work correctly:

vscode.languages.setLanguageConfiguration('langID', {wordPattern: /[\S]+/});

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugextension-hostExtension host issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions