mathworks / mathworks/MATLAB-extension-for-vscode
Auto-complete inserts extra quote for strings
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 435
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When auto-completing a string in a function call, the auto-complete inserts an extra quote at the end, resulting in a syntax error.
To Reproduce
Steps to reproduce the behavior:
- In a MATLAB file, type
plot(x, y, "Col- with VS Code's paren- and quote-completions, this will result in the following being on the line:plot(x, y, "Col") - There should be a tab completion for
"Color"showing - select it - This will result in an extra quote being inserted:
plot(x, y, "Color"")
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in a MATLAB file opened in VS Code using the steps and example plot(x, y, "Col. Start by tracing the auto-completion and quote-completion interaction; done means selecting the "Color" completion leaves plot(x, y, "Color") with no extra quote or syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matlab, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100