File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -1434,12 +1434,7 @@ module FourSlash {
14341434 this . raiseError ( 'Mismatched incremental/reference syntactic diagnostics for file ' + this . activeFile . fileName + '.\n=== Incremental diagnostics ===\n' + incrementalSyntaxDiagnostics + '\n=== Reference Diagnostics ===\n' + referenceSyntaxDiagnostics ) ;
14351435 }
14361436
1437- var incrementalSourceFileJSON = Utils . sourceFileToJSON ( incrementalSourceFile ) ;
1438- var referenceSourceFileJSON = Utils . sourceFileToJSON ( referenceSourceFile ) ;
1439-
1440- if ( incrementalSyntaxDiagnostics !== referenceSyntaxDiagnostics ) {
1441- this . raiseError ( 'Mismatched incremental/reference ast for file ' + this . activeFile . fileName + '.\n=== Incremental AST ===\n' + incrementalSourceFileJSON + '\n=== Reference AST ===\n' + referenceSourceFileJSON ) ;
1442- }
1437+ Utils . assertStructuralEquals ( incrementalSourceFile , referenceSourceFile ) ;
14431438
14441439 //if (this.editValidation !== IncrementalEditValidation.SyntacticOnly) {
14451440 // var compiler = new TypeScript.TypeScriptCompiler();
You can’t perform that action at this time.
0 commit comments