Skip to content

Commit

Permalink
Update src/harness/fourslashImpl.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Rosenwasser <[email protected]>
  • Loading branch information
orta and DanielRosenwasser committed Jun 29, 2020
1 parent ab78578 commit 7ae1a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/harness/fourslashImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2559,7 +2559,7 @@ namespace FourSlash {
const actual = this.languageService.getSemanticClassifications(this.activeFile.fileName,
ts.createTextSpan(0, this.activeFile.content.length), format);
const replacement = [`const c2 = classification("2020");`,`verify.semanticClassificationsAre("2020",`];
actual.forEach(a => {
for (const a of actual) {
const identifier = this.classificationToIdentifier(a.classificationType as number);
const text = this.activeFile.content.slice(a.textSpan.start, a.textSpan.start + a.textSpan.length);
replacement.push(` c2.semanticToken("${identifier}", "${text}"), `);
Expand Down

0 comments on commit 7ae1a22

Please sign in to comment.