Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Osenkov <KirillOsenkov@users.noreply.github.com>2017-03-31 20:27:13 +0300
committerGitHub <noreply@github.com>2017-03-31 20:27:13 +0300
commit3ecefa337f78591d8f9e2f7d8213bcec27eaf5ce (patch)
tree8e857db67409a3fc8a20c505f033ef16ab025618 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui
parent054ab0acf15eb8f3bc7bafc3bc6e021a19e4dbac (diff)
Rename UnsubscibeAnalysisdocument -> UnsubscribeAnalysisDocument. (#2053)
Remove dead code (parentSolution is never used).
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs15
1 files changed, 6 insertions, 9 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs
index 6a6854673a..c70c6e2d2c 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs
@@ -170,7 +170,7 @@ namespace MonoDevelop.Ide.Gui
window.ViewContent.Project.Modified += HandleProjectModified;
window.ViewsChanged += HandleViewsChanged;
window.ViewContent.ContentNameChanged += delegate {
- UnsubscibeAnalysisdocument ();
+ UnsubscribeAnalysisDocument ();
UnloadAdhocProject();
};
MonoDevelopWorkspace.LoadingFinished += TypeSystemService_WorkspaceItemLoaded;
@@ -180,7 +180,7 @@ namespace MonoDevelop.Ide.Gui
{
if (IsAdHocProject)
return;
- UnsubscibeAnalysisdocument ();
+ UnsubscribeAnalysisDocument ();
EnsureAnalysisDocumentIsOpen ().ContinueWith (delegate {
if (analysisDocument != null)
StartReparseThread ();
@@ -580,7 +580,7 @@ namespace MonoDevelop.Ide.Gui
internal void DisposeDocument ()
{
- UnsubscibeAnalysisdocument ();
+ UnsubscribeAnalysisDocument ();
UnsubscribeRoslynWorkspace ();
UnloadAdhocProject ();
if (window is SdiWorkspaceWindow)
@@ -603,7 +603,7 @@ namespace MonoDevelop.Ide.Gui
viewsRO = null;
}
- void UnsubscibeAnalysisdocument ()
+ void UnsubscribeAnalysisDocument ()
{
if (analysisDocument != null) {
TypeSystemService.InformDocumentClose (analysisDocument, FileName);
@@ -739,7 +739,7 @@ namespace MonoDevelop.Ide.Gui
return;
UnloadAdhocProject ();
if (adhocProject == null)
- UnsubscibeAnalysisdocument ();
+ UnsubscribeAnalysisDocument ();
// Unsubscribe project events
if (Window.ViewContent.Project != null)
Window.ViewContent.Project.Modified -= HandleProjectModified;
@@ -839,7 +839,7 @@ namespace MonoDevelop.Ide.Gui
return Task.CompletedTask;
}
if (Editor == null) {
- UnsubscibeAnalysisdocument ();
+ UnsubscribeAnalysisDocument ();
return Task.CompletedTask;
}
if (Project != null && !IsUnreferencedSharedProject(Project)) {
@@ -861,9 +861,6 @@ namespace MonoDevelop.Ide.Gui
var node = TypeSystemService.GetTypeSystemParserNode (Editor.MimeType, BuildAction.Compile);
if (Editor.MimeType == "text/x-csharp" || node?.Parser.CanGenerateAnalysisDocument (Editor.MimeType, BuildAction.Compile, new string[0]) == true) {
var newProject = Services.ProjectService.CreateDotNetProject ("C#");
- var parentSolution = new Solution ();
- parentSolution.RootFolder.Items.Add (newProject);
- parentSolution.AddConfiguration ("Debug", true);
this.adhocProject = newProject;