Skip to content

Commit 6cc1091

Browse files
Merge pull request #2705 from Microsoft/renameDocHighlightsType
Rename type.
2 parents f318515 + 024d653 commit 6cc1091

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/services/services.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ module ts {
10191019
highlightSpans: HighlightSpan[];
10201020
}
10211021

1022-
export module DocumentHighlightKind {
1022+
export module HighlightSpanKind {
10231023
export const none = "none";
10241024
export const definition = "definition";
10251025
export const reference = "reference";
@@ -4010,7 +4010,7 @@ module ts {
40104010
return {
40114011
fileName: sourceFile.fileName,
40124012
textSpan: createTextSpanFromBounds(start, end),
4013-
kind: DocumentHighlightKind.none
4013+
kind: HighlightSpanKind.none
40144014
};
40154015
}
40164016

@@ -4047,7 +4047,7 @@ module ts {
40474047

40484048
documentHighlights.highlightSpans.push({
40494049
textSpan: referenceEntry.textSpan,
4050-
kind: referenceEntry.isWriteAccess ? DocumentHighlightKind.writtenReference : DocumentHighlightKind.reference
4050+
kind: referenceEntry.isWriteAccess ? HighlightSpanKind.writtenReference : HighlightSpanKind.reference
40514051
});
40524052
}
40534053
}
@@ -4580,7 +4580,7 @@ module ts {
45804580
result.push({
45814581
fileName: fileName,
45824582
textSpan: createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end),
4583-
kind: DocumentHighlightKind.reference
4583+
kind: HighlightSpanKind.reference
45844584
});
45854585
i++; // skip the next keyword
45864586
continue;
@@ -4613,7 +4613,7 @@ module ts {
46134613
result.push({
46144614
fileName: entry.fileName,
46154615
textSpan: highlightSpan.textSpan,
4616-
isWriteAccess: highlightSpan.kind === DocumentHighlightKind.writtenReference
4616+
isWriteAccess: highlightSpan.kind === HighlightSpanKind.writtenReference
46174617
});
46184618
}
46194619
}

0 commit comments

Comments
 (0)