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
I've created a test case that reproduces this error in the e2e:
it('should not error with an interpolation identifier with a pseudo selector',async()=>{consterrorResponse=awaitgetSemanticDiagnosticsForFile(["function css(...args){}","const mixin = ''","css`"," .${mixin}:before {"," border-bottom: none;"," transition: none;"," }","`",].join('\n'));assert.isTrue(errorResponse.success);assert.strictEqual(errorResponse.body.length,0);});
Repost of:
styled-components/vscode-styled-components#440
Reproduction when running the vscode extension:
Screenshot of error:
I've created a test case that reproduces this error in the e2e:
Error response:
So far this appears to be a bug in how
getSubstitution
selects which things to substituteI've found some inconsistencies, the docstring states:
Various tests I've done, with the parts logged:
Weird that the last case gets
xxxxxxxx
while the others get spaces, shouldn't they all get one of the other?The text was updated successfully, but these errors were encountered: