forked from qt-creator/qt-creator
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 <david.schulz@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -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; });
|
||||
|
||||
Reference in New Issue
Block a user