mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
P and B templates removed. Rationale:
- They work in every language except the blacklist, despite they defined in Java plugin (the amusing thing is that Java is blacklisted there). So if you have Java plugin you will be able to use them in SQL, otherwise, you won't.
- They are not context-sensitive, they work regardless on which text is selected
- If you want context insensitive surrounding with () or {}, now you can simply type ( or { in the editor, while having the selection (this is on by default)
- Some languages (including Java and Groovy) have context-sensitive surrounders that do the same but check whether they could be applicable to selection.
- People sporadically complain about these live templates and as a result, blacklist grows. Examples: KT-8474, WEB-33705. This adds implicit dependencies from Java plugin to other languages Java should not know about (e.g. JSON, Kotlin)
- In some languages, it would be hard to disable them once somebody complains. E.g. surround with braces have not so much meaning in SQL but you will need to list all SQL dialects to disable it because of the way context matching works now.
- Having these problems, I see no advantages these templates provide to us.
GitOrigin-RevId: afc89e793d6e86aa609525a330e7b3096086f39d