Skip to content
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

Reloadsolution #101

Closed
wants to merge 6 commits into from
Closed

Reloadsolution #101

wants to merge 6 commits into from

Conversation

cubitouch
Copy link
Contributor

Adding a "/reloadsolution" endpoint to solve this issue : #19

@@ -56,5 +60,16 @@ public ProjectInformationResponse CurrentProject(Request request)
AspNet5Project = aspNet5ProjectItem
};
}

[HttpPost("/reloadsolution")]
[HttpGet("/reloadsolution")]
Copy link
Member

Choose a reason for hiding this comment

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

Why do we have post and get?

Copy link
Member

Choose a reason for hiding this comment

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

Why do we have a GET

@filipw
Copy link
Member

filipw commented Feb 25, 2015

there should probably be a restart or reload method on the project system interface. I think it's not a safe assumption to think that Initialize will be OK to call over and over

@Yantrio
Copy link
Member

Yantrio commented Feb 25, 2015

I agree with @filipw is this open to memory leaks?

@nosami
Copy link
Contributor

nosami commented Feb 25, 2015

Doesn't seem to be working. I tried adding a new file and then followed that with a reload.

I asked @cubitouch to submit it so I could test. It was an experiment :)

@cubitouch
Copy link
Contributor Author

So, I will start over following that list:

  • clear projects collection
  • clear context
  • get every projects
  • initialize projects

@nosami
Copy link
Contributor

nosami commented Feb 27, 2015

@cubitouch sounds good. At the very minimum, your code should compile ;)

After that, I would expect adding new files, projects, deleting files, should just work after firing the reloadsolution command.

@@ -416,7 +416,7 @@ private void TriggerDependeees(string path)
}
}

private void Initialize()
private void Startup()
Copy link
Member

Choose a reason for hiding this comment

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

What is Startup? That's a bad name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@davidfowl I don't know more than you... There was a public Initalize() (without the 'i') method on the Interface which I renamed Initialize() (as it should be, IMHO). But there was already a private method with that name so I renamed it too (the Startup one).

What name would you like me to use ? Do you want me to rollback these changes and let the Initalize() method like that ?

@nosami
Copy link
Contributor

nosami commented Feb 28, 2015

I've been testing this. It doesn't work reliably yet. Sometimes it works just like you'd expect, but other times it causes intellisense to stop working for the entire solution.

@cubitouch
Copy link
Contributor Author

Is this totally random or some cases just do not work ?
Do you have an idea what can cause the intellisense stop working properly ?

@nosami
Copy link
Contributor

nosami commented Mar 1, 2015

I have no idea what is causing the issue because I didn't debug. I spent quite a while testing this though.

Please test this yourself.

@troydai
Copy link
Contributor

troydai commented Mar 9, 2016

@cubitouch this has been stalled for more than a year. Is this PR still valid?

@cubitouch
Copy link
Contributor Author

@troydai no I don't think so, I close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants