rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
579 stars 70 forks source link

Attempt to better secure line-selection logic #99

Closed unquietwiki closed 1 year ago

unquietwiki commented 1 year ago

Previously, the selected range for code was coming up with a single-line offset. This fix attempts to ensure the correct selection of lines is loaded, and checked against both kinds of new-line characters. At the present, the given range may still show as 1 more starting line; the reasons for this are unknown at this time.

lgrammel commented 1 year ago

@all-contributors add unquietwiki for bugfix

allcontributors[bot] commented 1 year ago

@lgrammel

I couldn't determine any contributions to add, did you specify any contributions? Please make sure to use valid contribution names.

lgrammel commented 1 year ago

@all-contributors add unquietwiki for code, bug

allcontributors[bot] commented 1 year ago

@lgrammel

I've put up a pull request to add @unquietwiki! :tada: