mathworks / mathworks/MATLAB-extension-for-vscode

Auto-complete inserts extra quote for strings

Open
#172 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. 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")
  2. There should be a tab completion for "Color" showing - select it
  3. This will result in an extra quote being inserted: plot(x, y, "Color"")

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.