Disable incremental by default before merging into master.

This commit is contained in:
Cyrus Najmabadi
2014-12-17 12:41:08 -08:00
parent 5516c07e11
commit 4545549e07
3 changed files with 5 additions and 1 deletions

View File

@@ -18,6 +18,8 @@
/// <reference path='harness.ts' />
module FourSlash {
ts.disableIncrementalParsing = false;
// Represents a parsed source file with metadata
export interface FourSlashFile {
// The contents of the file (with markers, etc stripped out)

View File

@@ -1553,7 +1553,7 @@ module ts {
return sourceFile;
}
export var disableIncrementalParsing = false;
export var disableIncrementalParsing = true;
export function updateLanguageServiceSourceFile(sourceFile: SourceFile, scriptSnapshot: IScriptSnapshot, version: string, isOpen: boolean, textChangeRange: TextChangeRange): SourceFile {
if (textChangeRange && Debug.shouldAssert(AssertionLevel.Normal)) {

View File

@@ -2,6 +2,8 @@
/// <reference path="..\..\..\src\compiler\parser.ts" />
module ts {
ts.disableIncrementalParsing = false;
function withChange(text: IScriptSnapshot, start: number, length: number, newText: string): { text: IScriptSnapshot; textChangeRange: TextChangeRange; } {
var contents = text.getText(0, text.getLength());
var newContents = contents.substr(0, start) + newText + contents.substring(start + length);