Conversation
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Adds 'otterscript.fixAll' command that applies all auto-fixable diagnostics in the current document in a single operation.
There was a problem hiding this comment.
Pull request overview
Adds a “Fix All Issues” workflow to the OtterScript VS Code extension and tightens project/release hygiene (manifest, linting, and docs) to support the new diagnostics-related functionality.
Changes:
- Added a helper to normalize
vscode.Diagnostic.codehandling (string/number vs{ value, target }). - Introduced an
otterscript.fixAllcommand (plus keybinding + menus) to apply all available quick-fixes in one edit/undo step. - Updated extension metadata/docs and strengthened lint/CI configuration (ESLint cache + CI lint script, packaging ignores, changelog updates).
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/helpers.js | Adds getDiagnosticCode() helper and exports it for reuse. |
| src/extension.js | Uses getDiagnosticCode() in code actions; adds the otterscript.fixAll command and registers it for disposal. |
| package.json | Adds the command contribution, keybinding, menus, and CI lint script; adjusts manifest metadata. |
| eslint.config.cjs | Expands ESLint ruleset and adds global ignores. |
| README.md | Links the license text to LICENSE. |
| CHANGELOG.md | Adds a 0.2.1 section and details the new command and diagnostics changes. |
| .vscodeignore | Updates packaged-file ignore patterns (including lint cache, maps, and metadata files). |
| .gitignore | Ignores .eslintcache. |
| .github/workflows/sanity.yml | Switches workflow lint step to lint:ci. |
| .github/dependabot.yml | Refines grouping/update-type behavior for Dependabot. |
| .github/copilot-instructions.md | Adds extension-host best-practice review guidance. |
| .github/ISSUE_TEMPLATE/config.yml | Adds/clarifies issue template links. |
| .github/ISSUE_TEMPLATE/bug_report.md | Updates template “about” text. |
| .gitattributes | Enforces LF line endings via attributes. |
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.
Description
Adds a “Fix All Issues” workflow to the OtterScript VS Code extension and tightens project/release hygiene (manifest, linting, and docs) to support the new diagnostics-related functionality.
Changes:
Added a helper to normalize vscode.Diagnostic.code handling (string/number vs { value, target }).
Introduced an otterscript.fixAll command (plus keybinding + menus) to apply all available quick-fixes in one edit/undo step.
Updated extension metadata/docs and strengthened lint/CI configuration (ESLint cache + CI lint script, packaging ignores, changelog updates).
Area(s) affected
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate)