mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Fix for #50792: empty pre post scripts not rendered properly
This commit is contained in:
parent
c717348063
commit
8b9b0d3582
|
@ -58,7 +58,7 @@ function getPrePostScripts(scripts: any): Set<string> {
|
|||
const script = keys[i];
|
||||
const prepost = ['pre' + script, 'post' + script];
|
||||
prepost.forEach(each => {
|
||||
if (scripts[each]) {
|
||||
if (scripts[each] !== undefined) {
|
||||
prePostScripts.add(each);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue