Skip to content

Commit 7ae1a22

Browse files
Update src/harness/fourslashImpl.ts
Co-authored-by: Daniel Rosenwasser <[email protected]>
1 parent ab78578 commit 7ae1a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/fourslashImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2559,7 +2559,7 @@ namespace FourSlash {
25592559
const actual = this.languageService.getSemanticClassifications(this.activeFile.fileName,
25602560
ts.createTextSpan(0, this.activeFile.content.length), format);
25612561
const replacement = [`const c2 = classification("2020");`,`verify.semanticClassificationsAre("2020",`];
2562-
actual.forEach(a => {
2562+
for (const a of actual) {
25632563
const identifier = this.classificationToIdentifier(a.classificationType as number);
25642564
const text = this.activeFile.content.slice(a.textSpan.start, a.textSpan.start + a.textSpan.length);
25652565
replacement.push(` c2.semanticToken("${identifier}", "${text}"), `);

0 commit comments

Comments
 (0)