Add setting to control inline console logs during test debugging#700
Merged
sheremet-va merged 7 commits intomainfrom Dec 27, 2025
Merged
Add setting to control inline console logs during test debugging#700sheremet-va merged 7 commits intomainfrom
sheremet-va merged 7 commits intomainfrom
Conversation
…logs Co-authored-by: sheremet-va <16173870+sheremet-va@users.noreply.github.com>
Co-authored-by: sheremet-va <16173870+sheremet-va@users.noreply.github.com>
Co-authored-by: sheremet-va <16173870+sheremet-va@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add a way to disable inline console.log
Add setting to disable inline console logs during test debugging
Dec 22, 2025
sheremet-va
requested changes
Dec 22, 2025
package.json
Outdated
| "default": true, | ||
| "scope": "resource" | ||
| }, | ||
| "vitest.disableInlineConsoleLog": { |
Co-authored-by: sheremet-va <16173870+sheremet-va@users.noreply.github.com>
Copilot
AI
changed the title
Add setting to disable inline console logs during test debugging
Add setting to control inline console logs during test debugging
Dec 22, 2025
sheremet-va
approved these changes
Dec 23, 2025
sheremet-va
requested changes
Dec 23, 2025
Member
sheremet-va
left a comment
There was a problem hiding this comment.
@copilot mention showInlineConsoleLog in README
Co-authored-by: sheremet-va <16173870+sheremet-va@users.noreply.github.com>
Contributor
Author
sheremet-va
approved these changes
Dec 27, 2025
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.
Implementation Complete: Add Setting to Control Inline Console Logs
Summary
Successfully implemented a new VSCode extension setting
vitest.showInlineConsoleLogthat allows users to control the inline display of console.log messages in the editor while debugging Vitest tests.Changes Made
1. Configuration Setting (package.json)
vitest.showInlineConsoleLog2. Configuration Reader (config.ts)
showInlineConsoleLogto config reader3. Test Runner (runner.ts)
showInlineConsoleLogproperty to TestRunner classonConsoleLoghandler to conditionally pass location:true(default): location is provided → inline displayfalse: location isundefined→ no inline display4. Documentation (README.md)
vitest.showInlineConsoleLogto the Configuration section5. Additional Improvements
.gitignoreto exclude*.tsbuildinfobuild artifactsscope: "resource"to existing settings (applyDiagnostic,showImportsDuration) for consistencyTechnical Details
How it works:
testRun.appendOutput()receives a location parameterlocation = undefinedwhen the setting is disabled, inline display is suppressedFeatures:
scope: "resource"Usage
Users can disable inline console logs when debugging:
{ "vitest.showInlineConsoleLog": false }Or via Settings UI: Search for "Vitest: Show Inline Console Log"
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.