Skip to content

Commit 9b3853d

Browse files
authoredApr 28, 2022
fix(48851): exclude in from document highlights (microsoft#48853)
1 parent 0885482 commit 9b3853d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
 

‎src/services/documentHighlights.ts

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ namespace ts {
9393
return highlightSpans(getAsyncAndAwaitOccurrences(node));
9494
case SyntaxKind.YieldKeyword:
9595
return highlightSpans(getYieldOccurrences(node));
96+
case SyntaxKind.InKeyword:
97+
return undefined;
9698
default:
9799
return isModifierKind(node.kind) && (isDeclaration(node.parent) || isVariableStatement(node.parent))
98100
? highlightSpans(getModifierOccurrences(node.kind, node.parent))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/// <reference path='fourslash.ts'/>
2+
3+
////export type Foo<T> = {
4+
//// [K [|in|] keyof T]: any;
5+
////}
6+
////
7+
////"a" [|in|] {};
8+
////
9+
////for (let a [|in|] {}) {}
10+
11+
for (let range of test.ranges()) {
12+
verify.noDocumentHighlights(range);
13+
}

0 commit comments

Comments
 (0)
Please sign in to comment.