Skip to content

Enable incremental parsing by default. #1568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 28, 2014
Merged

Conversation

CyrusNajmabadi
Copy link
Contributor

No description provided.

@@ -1548,7 +1548,7 @@ module ts {
return sourceFile;
}

export var disableIncrementalParsing = true;
export var disableIncrementalParsing = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super anticlimactic for this review, but could we rename this to enableIncrementalParsing?

I think it's only referenced in tests/cases/unittests/incrementalParser.ts and src/harness/fourslash.ts.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, there's a comment on line 1575:

// Once incremental parsing is ready, then just call into this function.

So just remove that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that, but I prefer this. You are now choosing to opt out of incremental parsing by saying 'yes/true' I would like to disable incremental parsing.

-- Cyrus

From: Daniel Rosenwassermailto:notifications@github.com
Sent: ý12/ý27/ý2014 8:29 AM
To: Microsoft/TypeScriptmailto:TypeScript@noreply.github.com
Cc: Cyrus Najmabadimailto:cyrusn@microsoft.com
Subject: Re: [TypeScript] Enable incremental parsing by default. (#1568)

In src/services/services.tshttps://github.com//pull/1568#discussion-diff-22292557:

@@ -1548,7 +1548,7 @@ module ts {
return sourceFile;
}

  • export var disableIncrementalParsing = true;
  • export var disableIncrementalParsing = false;

Super anticlimactic for this review, but could we rename this to enableIncrementalParsing?


Reply to this email directly or view it on GitHubhttps://github.com//pull/1568/files#r22292557.

@DanielRosenwasser
Copy link
Member

Math.pow(💯,💯);

CyrusNajmabadi added a commit that referenced this pull request Dec 28, 2014
Enable incremental parsing by default.
@CyrusNajmabadi CyrusNajmabadi merged commit c9594c3 into master Dec 28, 2014
@CyrusNajmabadi CyrusNajmabadi deleted the enableIncremental branch December 28, 2014 07:56
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants