Skip to content

Commit d799b6c

Browse files
authored
Fix diagnostics for implicit activation events not appearing (microsoft#167081)
* Fix diagnostics for implicit activation events not appearing * Fix line endings
1 parent 7e35193 commit d799b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/extension-editing/src/extensionLinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class ExtensionLinter {
148148
}
149149
}
150150
const activationEventsNode = findNodeAtLocation(tree, ['activationEvents']);
151-
if (Array.isArray(activationEventsNode) && activationEventsNode.children) {
151+
if (activationEventsNode?.type === 'array' && activationEventsNode.children) {
152152
for (const activationEventNode of activationEventsNode.children) {
153153
const activationEvent = getNodeValue(activationEventNode);
154154
for (const implicitActivationEventPrefix of reservedImplicitActivationEventPrefixes) {

0 commit comments

Comments
 (0)