diff --git a/packages/plugin-ext/src/plugin/types-impl.ts b/packages/plugin-ext/src/plugin/types-impl.ts index c9f862d33bb46..ea589b4d176d7 100644 --- a/packages/plugin-ext/src/plugin/types-impl.ts +++ b/packages/plugin-ext/src/plugin/types-impl.ts @@ -408,6 +408,9 @@ export class Position { if (!other) { return false; } + if (typeof other !== 'object' || Array.isArray(other)) { + return false; + } if (other instanceof Position) { return true; }