We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44309e7 commit 340f01eCopy full SHA for 340f01e
1 file changed
src/vs/workbench/services/textMate/electron-browser/TMSyntax.ts
@@ -257,7 +257,7 @@ export class TextMateService extends Disposable implements ITextMateService {
257
let injections: string[] = [];
258
for (let i = 1; i <= scopeParts.length; i++) {
259
const subScopeName = scopeParts.slice(0, i).join('.');
260
- injections = [...injections, ...this._injections[subScopeName]];
+ injections = [...injections, ...(this._injections[subScopeName] || [])];
261
}
262
return injections;
263
0 commit comments