From 3ea670d207a22b43e05fd5c520e7574d1888c26a Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 11 Jul 2019 07:53:36 +0200 Subject: [PATCH] QmlJSEditor: Remove registration of json files Do not open json files with the QmlJSEditor as this produces strange warnings and Json is not JavaScript at all. Rely on the correct syntax highlighting by the generic highlighter and KSyntaxHighlighting respectively. Beside this it helps also when using a json language server. Task-number: QTCREATORBUG-22697 Change-Id: Iebd0009c550d9ea701d504797d528226dc32b0ec Reviewed-by: David Schulz Reviewed-by: Tim Jenssen --- src/plugins/qmljseditor/qmljseditor.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp index 61576372ea1..068d12f3204 100644 --- a/src/plugins/qmljseditor/qmljseditor.cpp +++ b/src/plugins/qmljseditor/qmljseditor.cpp @@ -1036,7 +1036,6 @@ QmlJSEditorFactory::QmlJSEditorFactory() addMimeType(QmlJSTools::Constants::QBS_MIMETYPE); addMimeType(QmlJSTools::Constants::QMLTYPES_MIMETYPE); addMimeType(QmlJSTools::Constants::JS_MIMETYPE); - addMimeType(QmlJSTools::Constants::JSON_MIMETYPE); setDocumentCreator([]() { return new QmlJSEditorDocument; }); setEditorWidgetCreator([]() { return new QmlJSEditorWidget; });