-
Notifications
You must be signed in to change notification settings - Fork 14
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
Comments and Multi-line Highlight Support #68
Conversation
src/twitchLanguageServer.ts
Outdated
* !line !5 | ||
* !line 5-10 | ||
* !line !5-15 | ||
* !line settings.json 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't had a chance to run the code yet to test it but does this also support !line 5 settings.json
? I only ask because it feels like that may be the natural/organic way to type/think about the usage. Do you agree? Might just be me who thinks that way though.
In general, how would we think/speak what we want to share? Something like "There's an issue on line 5 in your settings.json file"? Or "There's an issue in your settings.json file on line 5"? Should we support both or just one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now it would not support !line 5 settings.json
but I can adjust the regex pattern to support that flow. See https://regexr.com/48gf0 to test the pattern.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pushed a new commit which supports @clarkio's suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks!
Azure Pipelines YAML refactoring + publish test results
Purpose
Allow users to highlight multiple lines.
Changed Files
extension.ts
Added the necessary functionality to handle a start and end line and to add the highlights and remove the highlights accordingly. Additionally, the user can now add comments to the highlight!highlighter.ts
Added support for a start and end linetwitchChatClient.ts
Added support to pass the correct params toextension.ts
twitchHighlighterTreeView.ts
Changed the naming of the parameters to identify their purposetwitchLanguageServer.ts
Added the functionally needed to handle the command. Take special notice of the Regex used for this purpose.How to test
git clone https://github.com/clarkio/vscode-twitch-highlighter.git
.cd vscode-twitch-highlighter && npm install
.!line
or!highlight
to highlight multiple lines and to add comments.!line !<number>
to unhighlight the lines.Addresses
#52 | #12 | #13