diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-11-17 01:41:27 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-11-17 01:41:27 +0400 |
commit | 5cafb5d30027b595ac0b71c154a290b09d9f8702 (patch) | |
tree | 53f0b0f5e030893c53801cb64cd25b61afa88950 /main/src/addins/CSharpBinding | |
parent | c91893dbf8a34b19e79f82e9820c4a621b4457a8 (diff) |
[Ide]TypeSystem: Fixed add/remove reference handling.
Diffstat (limited to 'main/src/addins/CSharpBinding')
-rw-r--r-- | main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs b/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs index 0c599c30a7..95aca8c521 100644 --- a/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs +++ b/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs @@ -52,7 +52,11 @@ namespace MonoDevelop.CSharp.Completion public class CSharpCompletionTextEditorExtension : CompletionTextEditorExtension, ICompletionDataFactory, IParameterCompletionDataFactory { internal Mono.TextEditor.TextEditorData textEditorData; - internal ITypeResolveContext ctx; + internal ITypeResolveContext ctx { + get { + return document.TypeResolveContext; + } + } CompilationUnit unit; static readonly CompilationUnit emptyUnit = new CompilationUnit (); @@ -107,7 +111,6 @@ namespace MonoDevelop.CSharp.Completion public override void Initialize () { base.Initialize (); - ctx = Document.TypeResolveContext; textEditorData = Document.Editor; var parsedDocument = document.ParsedDocument; if (parsedDocument != null) { |