Browse Source

Fixed minor CC bug.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6360 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Martin Koníček 16 years ago
parent
commit
cd578c1fa7
  1. 4
      src/Main/Base/Project/Src/Editor/CodeCompletion/CodeCompletionItemProvider.cs

4
src/Main/Base/Project/Src/Editor/CodeCompletion/CodeCompletionItemProvider.cs

@ -285,12 +285,12 @@ namespace ICSharpCode.SharpDevelop.Editor.CodeCompletion
nameResult = ResolveAtCurrentOffset(insertedText, context); nameResult = ResolveAtCurrentOffset(insertedText, context);
addUsing = (!IsKnownName(nameResult)); addUsing = (!IsKnownName(nameResult));
if (IsKnownName(nameResult) && (!IsReferenceTo(nameResult, selectedClass))) { /*if (IsKnownName(nameResult) && (!IsReferenceTo(nameResult, selectedClass))) {
// Selected name is known but resolves to something else than the user wants to insert // Selected name is known but resolves to something else than the user wants to insert
// (i.e. some other class with the same name closer to current context according to language rules) // (i.e. some other class with the same name closer to current context according to language rules)
// - the only solution is to insert user's choice fully qualified // - the only solution is to insert user's choice fully qualified
insertedText = selectedClass.FullyQualifiedName; insertedText = selectedClass.FullyQualifiedName;
} }*/
} }
// Special case for Attributes // Special case for Attributes
if (insertedText.EndsWith("Attribute") && IsInAttributeContext(editor, context.StartOffset)) { if (insertedText.EndsWith("Attribute") && IsInAttributeContext(editor, context.StartOffset)) {

Loading…
Cancel
Save