Skip to content

Commit 882f55a

Browse files
committed
fix(typescript-plugin): refine property check for 'value' in isRefAtLocation
1 parent 72a400e commit 882f55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/typescript-plugin/lib/requests/isRefAtLocation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function isRefAtLocation(
4949
const type = checker.getTypeAtLocation(node);
5050
const props = type.getProperties();
5151

52-
return props.some(prop => prop.name === 'value');
52+
return props.some(prop => prop.escapedName === 'value' && prop.flags & ts.SymbolFlags.Accessor);
5353

5454
function findPositionIdentifier(sourceFile: ts.SourceFile, node: ts.Node, offset: number) {
5555
let result: ts.Node | undefined;

0 commit comments

Comments
 (0)