mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
[html] A 'return' statement can only be used within a function body. Fixes #143220
This commit is contained in:
@@ -181,6 +181,7 @@ function getPrefix(c: EmbeddedRegion) {
|
||||
if (c.attributeValue) {
|
||||
switch (c.languageId) {
|
||||
case 'css': return CSS_STYLE_RULE + '{';
|
||||
case 'javascript': return '()=>{';
|
||||
}
|
||||
}
|
||||
return '';
|
||||
@@ -189,7 +190,7 @@ function getSuffix(c: EmbeddedRegion) {
|
||||
if (c.attributeValue) {
|
||||
switch (c.languageId) {
|
||||
case 'css': return '}';
|
||||
case 'javascript': return ';';
|
||||
case 'javascript': return '};';
|
||||
}
|
||||
}
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user