Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ public static IQInlineTypeaheadProcessor getAutoCloseSettings(final ITextEditor
if (input instanceof FileEditorInput) {
IFile file = ((FileEditorInput) input).getFile();
IContentType contentType = Platform.getContentTypeManager().findContentTypeFor(file.getName());
contentTypeName = contentType.getName();
if (contentType != null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

out of curiousity do you know why content type is null for abap files?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I searched and it said that this commonly happens with files that don't have recognized extensions or aren't registered with Eclipse's content type system. I think we do not register in Eclipse's content type systems. I will check if there is some place that I can add them

contentTypeName = contentType.getName();
}
}
if (contentTypeName == null) {
return new GenericTypeheadProcessor();
Expand Down