Rosemoe / sora-editor

A multifunctional Android code editor library. (aka CodeEditor)
GNU Lesser General Public License v2.1
967 stars 148 forks source link

autoClosingPairs and surroundingPairs not split #602

Open StarkZhidian opened 2 months ago

StarkZhidian commented 2 months ago

Hi, @dingyi222666 , I found a problem about LanguageConfig surroundingPairs.

According to VS Code documents: https://code.visualstudio.com/api/language-extensions/language-configuration-guide#autosurrounding

image

surroundingPairs field should be actived when selecting text and input the open symbol, then the close symbol should be auto completed. such as:

image

I config '<' and '>' symbol in surroundingPairs, and it not in autoClosingPairs, so it should not be actived when I just input '<' without selecting text. But it was actived when I input '<' symbol:

image

Maybe there is something was wrong.

Thank you.