You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typing default as the key name in an object triggers dedent:
Expected behavior
constx={
default|}
Actual behavior
constx={
default|}
Steps to reproduce
Write default inside an object:
constx={
default
}
The scopes are source.js meta.mapping.js in this location so I guess dedent rules could exclude meta.mapping but then it would also disable it in code like:
constx={default(){switch(x){default|}}}
The text was updated successfully, but these errors were encountered:
It seems like the easy fix would be replacing the default\b pattern in the indent rules with something like default:\b (and perhaps something similar for case). I'm not that familiar with the indent rules, though.
EDIT: never mind, that obviously would not solve the problem.
Typing
default
as the key name in an object triggers dedent:Expected behavior
Actual behavior
Steps to reproduce
Write
default
inside an object:The scopes are
source.js meta.mapping.js
in this location so I guess dedent rules could excludemeta.mapping
but then it would also disable it in code like:The text was updated successfully, but these errors were encountered: