Slash command parsing improvements - Single quote support#139
Closed
Copilot wants to merge 2 commits into
Closed
Conversation
Copilot
AI
changed the title
[WIP] Review slash command parsing for user errors
Slash command parsing review and improvement proposal
Dec 6, 2025
Contributor
|
@copilot Lets do this step-by-step. Please implement the quotes tolerance first. |
- Modified parseNamedParamWithQuotes() to accept both single and double quotes - Double quotes support escape sequences (existing behavior) - Single quotes are literal (no escape processing) - Added 5 new test cases covering various single quote scenarios - Updated documentation to reflect new capability - All 32 tests pass, backwards compatible Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Contributor
Author
Implemented single quote support for named parameters in commit c006300. Changes:
Examples now working: /task msg='Hello World' # $msg = "Hello World"
/deploy env="prod" region='us-east' # Mixed quotes supported
/run path='C:\Users\test' # Backslashes preservedAll tests pass and fully backwards compatible. Ready for the next step when you are. |
Copilot
AI
changed the title
Slash command parsing review and improvement proposal
Slash command parsing improvements - Single quote support
Dec 6, 2025
Contributor
|
@copilot Don't mention the error tolerance in the docs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements improved slash command parsing to handle common user errors, starting with single quote tolerance for named parameters.
Implementation Status
✅ Completed:
key="value"andkey='value'for named parameters📋 Planned (Future PRs):
key=valuefor alphanumeric +[-_.],as whitespace outside quoteskey = "value"formatChanges Made
Core Functionality
parseNamedParamWithQuotes()to accept both single and double quotesTest Coverage
Documentation
Example Impact
Analysis Documents
Initial analysis documents created in
/tmp/(informational only):executive-summary.md- Rankings, recommendations, risk assessmentimplementation-plan.md- Technical implementation detailsuser-error-examples.txt- Concrete before/after examplesTesting
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.