Skip to content

Remove redundant initialization code from the constructor of SyntaxTreeCache#1371

Merged
vladima merged 1 commit into
masterfrom
nullref_with_hotswapping
Dec 4, 2014
Merged

Remove redundant initialization code from the constructor of SyntaxTreeCache#1371
vladima merged 1 commit into
masterfrom
nullref_with_hotswapping

Conversation

@vladima
Copy link
Copy Markdown
Contributor

@vladima vladima commented Dec 4, 2014

All calls to SyntaxTreeCache begin with initialize method that re-creates SyntaxTreeCache so this initial creation will be dropped on the floor. Also this fixes #1338. If so happens that code will be replaced right before calling dispose - then managed side will shutdown old engine and create a new one + create new shim for the language service. Code that I've removed tried to fetch project information from the managed side and died because of NullReferenceException since managed side does not set current project when calling dispose.

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

👍

1 similar comment
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Dec 4, 2014

👍

vladima added a commit that referenced this pull request Dec 4, 2014
Remove redundant initialization code from the constructor of SyntaxTreeCache
@vladima vladima merged commit fc47fc3 into master Dec 4, 2014
@vladima vladima deleted the nullref_with_hotswapping branch December 4, 2014 21:17
@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.

Error on loading certain files in VS

3 participants