https://bugs.kde.org/show_bug.cgi?id=381709

Igor Kushnir <igor...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |igor...@gmail.com

--- Comment #3 from Igor Kushnir <igor...@gmail.com> ---
*.m is registered as both a Matlab and an Objective-C MIME type extension.
kdevelop/plugins/clang/kdevclangsupport.json contains "text/x-objcsrc" among
X-KDevelop-SupportedMimeTypes. When any file parsed by KDevelop's Clang plugin
is loaded (C, C++ or Objective-C), LanguageController adds all of the plugin's
supported extensions into the MimeTypeCache. The cache is consulted before MIME
type detection. So it returns ClangSupport for any *.m file afterward.

Note that the MimeTypeCache is not just an optimization. Simply removing the
cache would make LanguageController::languagesForUrl() always return an empty
list in a background thread because of an early return required for thread
safety.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to