mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
extension linter: make sure we don't fail on array access
This commit is contained in:
parent
e7b54c4743
commit
2add9e8ceb
|
@ -212,7 +212,7 @@ export class ExtensionLinter {
|
|||
if (node) {
|
||||
switch (node.type) {
|
||||
case 'property':
|
||||
if (node.children) {
|
||||
if (node.children && node.children.length === 2) {
|
||||
const key = node.children[0];
|
||||
const value = node.children[1];
|
||||
switch (value.type) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user