In progress: [Issue 125] Support for custom options. Fixed scoping of local custom options.
diff --git a/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/scoping/OptionDescriptions.java b/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/scoping/OptionDescriptions.java index 89d219d..164dacf 100644 --- a/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/scoping/OptionDescriptions.java +++ b/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/scoping/OptionDescriptions.java
@@ -66,9 +66,9 @@ List<QualifiedName> names = localNamesProvider.namesOf(e); int nameCount = names.size(); for (int i = level; i < nameCount; i++) { - descriptions.add(create(names.get(i), element)); + descriptions.add(create(names.get(i), e)); } - descriptions.addAll(fullyQualifiedNamesOf(element)); + descriptions.addAll(fullyQualifiedNamesOf(e)); } continue; }