Add a new findReferences API that buckets results with the definition they matched against.

This commit is contained in:
Cyrus Najmabadi
2015-03-20 14:31:36 -07:00
parent 0d2a5bbf7c
commit cbeeb519b1
22 changed files with 364 additions and 167 deletions

View File

@@ -300,6 +300,11 @@ module ts.server {
});
}
findReferences(fileName: string, position: number): ReferencedSymbol[]{
// Not yet implemented.
return [];
}
getReferencesAtPosition(fileName: string, position: number): ReferenceEntry[] {
var lineOffset = this.positionToOneBasedLineOffset(fileName, position);
var args: protocol.FileLocationRequestArgs = {