Only report isDefinition when FAR is triggered on a definition (#48566)

* Don't report isDefinition unless the starting node is a declaration

* Drop isDefinition everywhere it isn't specifically needed

* Fix tsserver tests

* Update shim comment

* Update baselines

* Add tests for isDefinition

* Update doc comment

* Clear isDefinition from all references if the first one lacks it
This commit is contained in:
Andrew Casey
2022-04-05 17:04:18 -07:00
committed by GitHub
parent f7c457d207
commit 76e74370ab
271 changed files with 4136 additions and 4678 deletions

View File

@@ -583,7 +583,6 @@ namespace ts.server {
fileName: entry.file,
textSpan: this.decodeSpan(entry),
isWriteAccess: entry.isWriteAccess,
isDefinition: false
}));
}