PY-21493 PY-23270 Python IntelliLang injectors are aware of f-strings

and considered before the dedicated injector for f-strings takes place.
Also, PyInjectionUtil.registerStringLiteralInjection now takes care of
f-string injections itself.
This commit is contained in:
Mikhail Golubev
2018-07-04 21:54:32 +03:00
parent 6caccc8e4d
commit 1121d314bb
6 changed files with 41 additions and 29 deletions

View File

@@ -7,7 +7,8 @@
</extensions>
<extensions defaultExtensionNs="com.intellij">
<patterns.patternClass className="com.jetbrains.python.patterns.PythonPatterns" alias="py"/>
<multiHostInjector implementation="com.jetbrains.python.intelliLang.PyConfigurationInjector"/>
<multiHostInjector implementation="com.jetbrains.python.intelliLang.PyTemporaryInjector"/>
<!-- These must be registered before PyFStringsInjector, otherwise it won't allow to inject anything else inside f-strings -->
<multiHostInjector implementation="com.jetbrains.python.intelliLang.PyConfigurationInjector" order="before f-strings"/>
<multiHostInjector implementation="com.jetbrains.python.intelliLang.PyTemporaryInjector" order="before f-strings"/>
</extensions>
</idea-plugin>