Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/services/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ module ts {
highlightSpans: HighlightSpan[];
}

export module DocumentHighlightKind {
export module HighlightSpanKind {
export const none = "none";
export const definition = "definition";
export const reference = "reference";
Expand Down Expand Up @@ -4010,7 +4010,7 @@ module ts {
return {
fileName: sourceFile.fileName,
textSpan: createTextSpanFromBounds(start, end),
kind: DocumentHighlightKind.none
kind: HighlightSpanKind.none
};
}

Expand Down Expand Up @@ -4047,7 +4047,7 @@ module ts {

documentHighlights.highlightSpans.push({
textSpan: referenceEntry.textSpan,
kind: referenceEntry.isWriteAccess ? DocumentHighlightKind.writtenReference : DocumentHighlightKind.reference
kind: referenceEntry.isWriteAccess ? HighlightSpanKind.writtenReference : HighlightSpanKind.reference
});
}
}
Expand Down Expand Up @@ -4580,7 +4580,7 @@ module ts {
result.push({
fileName: fileName,
textSpan: createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end),
kind: DocumentHighlightKind.reference
kind: HighlightSpanKind.reference
});
i++; // skip the next keyword
continue;
Expand Down Expand Up @@ -4613,7 +4613,7 @@ module ts {
result.push({
fileName: entry.fileName,
textSpan: highlightSpan.textSpan,
isWriteAccess: highlightSpan.kind === DocumentHighlightKind.writtenReference
isWriteAccess: highlightSpan.kind === HighlightSpanKind.writtenReference
});
}
}
Expand Down