-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode does not have good behavior with '.properties' files when using apostrophe #19515
Comments
-- Sorry for the English, I used Google Translator -- @alexandrudima @weinand @mousetraps @aeschli Sorry for the question.... But from the code that moved, you just pulled the car shut, right? If so, do not solve the problem. I think @aeschli understood. Auto close is to continue !! The idea is (this holds for all file types): 1- If single quotes are next to a word (either at the end or beginning) it should not auto close. And should be interpreted as single quotation marks The problem I reported is that VSCode continues to enclose in quotation marks even after the line change in '.properties' (which can not happen). See on Sublime. Any questions, ask. |
@Tekbr there are numerous cases where the current implemented heuristic or the heuristic you suggest will fail. Simply search our issues for label In this case, in your original issue, you have specifically mentioned .properties files. It appears for .properties files that If you have other specific cases where the current heuristic doesn't work, please open separate issues. We can then come up with a new holistic heuristic that covers all identified unhappy cases. |
@alexandrudima The single quotation mark remains open on the other line. |
@aeschli knows where we got the grammar from. |
@alexandrudima Thank you... Please ... Revert your commit. The problem is not auto-closing. My suggestion above, I think is related to the case that @aeschli spoke. If you do not tell me where the issue is I make the suggestion. |
@Tekbr Why revert my commit ? https://en.wikipedia.org/wiki/.properties states that |
@alexandrudima Because Atom and Sublime work well. That's what I said above ... the question of whether the quotation marks are at the word or not. Eg: .html |
@Tekbr my change affects only |
@alexandrudima I do not know how to say it ... See the gifs The problem here is grammar is incorrect, but the tip above applies to all files. If the gifs do not help ... I can try to write in my language and see if anyone can translate for you, maybe Google Translator is changing the meaning. Autocompletion helps a lot. Please revert your commit. |
The grammar issue is textmate/ini.tmbundle#3 |
@Tekbr I understand quite well what you're saying, but I maintain my opinion that Please run vs code with my change and try it out, I believe there is some misunderstanding on your part to the extent of the impact of the commit, which only removes |
@alexandrudima I'll wait tomorrow to test! How much .txt file is another problem that VSCode has. If I open single quotation marks after If it does not work, you roll back the file and reopen / move the question can you try to do something like Atom and Sublime? |
@Tekbr They are all heuristics. 👍 I agree the heuristic you propose (to take into account a space before, not only after -- only in the case of But be advised, as with any heuristic that is not based on syntactical or semantical analysis, it will fail. e.g. for C++ where it is desirable to auto-close |
@alexandrudima I tested .. as I had said it did not solve the reported problem. I created Issue #25658, as suggested. Will you reopen this case because of the problem reported from the beginning? If you do not move to the correct place (only with the initial post). I did not put it in the repository that @aeschli said because it seems to have been abandoned / forgotten (I'm not sure). I'm waiting for an answer from you. I can also create another issue reporting this problem again, since the initial idea (shown in the first and second gif of the initial post) did not follow the purpose. |
@alexandrudima Can you answer my question?
|
-- Sorry for the English, I used Google Translator --
See the gif with Sublime.
See the VSCode gif. All extensions disabled.
Single quotes and double quotation marks should only autoclose if they have a space between them, if it is close to any letter (character) it should only open. See how the Sublime behaves.
The text was updated successfully, but these errors were encountered: