We're reworking how we parse when clause contexts and noticed that we may break some of the when clauses used in your extension. You can read more in this issue, which describes upcoming changes: new features, breakages, and migration advice (latest VS Code Insiders now has a linter for when clauses and runs the new parser as default). You can also leave us feedback there.
Here are the clauses that will be broken:
current: foo =~ /file//
reason: the slash within the regex is unescaped
fixed: foo =~ /file\\//
Hi 👋
VS Code team engineer here 🙂
We're reworking how we parse when clause contexts and noticed that we may break some of the when clauses used in your extension. You can read more in this issue, which describes upcoming changes: new features, breakages, and migration advice (latest VS Code Insiders now has a linter for when clauses and runs the new parser as default). You can also leave us feedback there.
Here are the clauses that will be broken:
current:
foo =~ /file//
reason: the slash within the regex is unescaped fixed:foo =~ /file\\//
Thanks for a great extension, it's very popular!
Best, Ulugbek