Skip to content

Commit 340f01e

Browse files
committed
fix null reference issue with destructuring
1 parent 44309e7 commit 340f01e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/vs/workbench/services/textMate/electron-browser

src/vs/workbench/services/textMate/electron-browser/TMSyntax.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export class TextMateService extends Disposable implements ITextMateService {
257257
let injections: string[] = [];
258258
for (let i = 1; i <= scopeParts.length; i++) {
259259
const subScopeName = scopeParts.slice(0, i).join('.');
260-
injections = [...injections, ...this._injections[subScopeName]];
260+
injections = [...injections, ...(this._injections[subScopeName] || [])];
261261
}
262262
return injections;
263263
}

0 commit comments

Comments
 (0)