summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-11-28 15:27:49 +0100
committerChristian Stenger <christian.stenger@qt.io>2019-11-29 11:58:42 +0000
commita40af1a4f0f6be982e519ae7e9e2caa37b1e9a28 (patch)
treedfd429a18b06a8a6b7278c6cd143c36f9dfbee3b /src
parente21fe24c404ffc00e9fda56912e28e9f199855c8 (diff)
downloadqt-creator-a40af1a4f0f6be982e519ae7e9e2caa37b1e9a28.tar.gz
Python: Extend supported MIME types
When using Python 3.x together with a respective LSP you may end up inside pyi files when using follow symbol. Ensure a more user-friendly handling of these files. Change-Id: Ied6528f0ad0ac6090fe8873f33b6e1a73ab9a5de Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/python/Python.json.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/python/Python.json.in b/src/plugins/python/Python.json.in
index b74b0e4863..3e62d14631 100644
--- a/src/plugins/python/Python.json.in
+++ b/src/plugins/python/Python.json.in
@@ -25,6 +25,11 @@
\" <comment>Python source file without console</comment>\",
\" <glob pattern=\'*.pyw\'/>\",
\" </mime-type>\",
+ \" <mime-type type=\'text/x-python-interface\'>\",
+ \" <sub-class-of type=\'text/x-python\'/>\",
+ \" <comment>Python module interface file</comment>\",
+ \" <glob pattern=\'*.pyi\'/>\",
+ \" </mime-type>\",
\" <mime-type type=\'text/x-python-project\'>\",
\" <sub-class-of type=\'text/x-python\'/>\",
\" <comment>Qt Creator Python project file</comment>\",