Skip to content
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

Auto-completion inserts extra single quote after parentheses #182

Open
Jialiang-Lu opened this issue Oct 4, 2024 · 1 comment
Open

Auto-completion inserts extra single quote after parentheses #182

Jialiang-Lu opened this issue Oct 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Jialiang-Lu
Copy link

Describe the bug
When you press single quote after a right parenthesis for matrix transpose, two single quotation marks are automatically inserted instead of one.

To Reproduce
Steps to reproduce the behavior:

  1. Type zeros(1)
  2. Hit the single quote key

Expected behavior
One single quotation mark should be inserted representing matrix transpose.

Useful Information

  • VS Code Version:
    Version: 1.92.1 (system setup)
    Commit: eaa41d57266683296de7d118f574d0c2652e1fc4
    Date: 2024-08-07T20:16:39.455Z
    Electron: 30.1.2
    ElectronBuildId: 9870757
    Chromium: 124.0.6367.243
    Node.js: 20.14.0
    V8: 12.4.254.20-electron.0
    OS: Windows_NT x64 10.0.22631
@Jialiang-Lu Jialiang-Lu added the bug Something isn't working label Oct 4, 2024
@dklilley
Copy link
Member

dklilley commented Oct 7, 2024

Thank you for reporting this! I am able to reproduce this on my side when typing the quote after a non-identifier character (but not after a number or letter - this works as expected).

It seems that this is stemming from VS Code's default behavior, and I'm not seeing anything in the language configuration guide which can tweak this behavior without fully removing quotes from being auto-closable (there is an autoCloseBefore value which can be specified, but no autoCloseAfter).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants