Skip to content

Port over changes to the ScriptSnapshot API from the languageService-v2 branch.#444

Merged
CyrusNajmabadi merged 2 commits intomasterfrom
newCompilerLS
Aug 13, 2014
Merged

Port over changes to the ScriptSnapshot API from the languageService-v2 branch.#444
CyrusNajmabadi merged 2 commits intomasterfrom
newCompilerLS

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Port over changes to the ScriptSnapshot API from the languageService-v2 branch.

Comment thread src/compiler/parser.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would make that options.
the batch compiler users do not care about version, LS users do, also version is not used in the batch compilation scenarios and all the LS entry points sets that; so you are probably fine with setting the version to undefined in batch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The problem with making things optional is that people forget to pass the right value in. When i had it optional there were a bunch of places that were missed, thus causing the version of the source file to be wrong.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Aug 13, 2014

LGTM, the only thing that is sticking is the version parameter in the constructor for soruceFile

Conflicts:
	src/services/services.ts
CyrusNajmabadi added a commit that referenced this pull request Aug 13, 2014
Port over changes to the ScriptSnapshot API from the languageService-v2 branch.
@CyrusNajmabadi CyrusNajmabadi merged commit ae5f4c2 into master Aug 13, 2014
@CyrusNajmabadi CyrusNajmabadi deleted the newCompilerLS branch August 13, 2014 22:46
CyrusNajmabadi added a commit that referenced this pull request Aug 15, 2014
This reverts commit ae5f4c2, reversing
changes made to 2f96374.
CyrusNajmabadi added a commit that referenced this pull request Aug 15, 2014
This reverts commit ae5f4c2, reversing
changes made to 2f96374.
@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