139
139
string text = insertNamespace ? type.Namespace + "." + type.Name : type.Name;
141
143
window.CompletionWidget.SetCompletionText (window.CodeCompletionContext, GetCurrentWord (window), text);
143
147
CodeRefactorer refactorer = IdeApp.Workspace.GetCodeRefactorer (IdeApp.ProjectOperations.CurrentSelectedSolution);
144
148
refactorer.AddGlobalNamespaceImport (dom, data.Document.FileName, type.Namespace);
145
149
// add using to compilation unit (this way the using is valid before the parser thread updates)