Closed mapleroyal closed 1 month ago
Can you please try restarting VS Code and then see if you still have a problem?
Can you also please provide us with a screenshot and let us know which theme you are using.
Using the default Dark Modern theme. The output colors remain the same when I switch to the Light Modern theme, where they're much more readable and similar to the editor's colors.
Can you please confirm that you have tried:
Do you see the same colors in this case?
Can you also please let us know if you are opening your project from your local disk, or are you using a remote development environment?
Apologies, yes, I've restarted console ninja, vs code, my computer, and completely nuked everything related to vs code on my machine and reinstalled it and added it back. Though I haven't tried console ninja with zero custom settings, my theme is not customized.
OK, commenting out my entire settings.json, the Console Output colors are as expected!
I will troubleshoot this, but if you notice something that stands out right away in my settings.json, go ahead and let me know:
{
"editor.lightbulb.enabled": "off",
"terminal.external.osxExec": "iTerm.app",
"editor.fontLigatures": true,
"window.menuBarVisibility": "toggle",
"window.titleBarStyle": "custom",
"editor.fontFamily": "CaskaydiaCove Nerd Font",
"terminal.integrated.fontFamily": "CaskaydiaCove NF SemiLight",
"editor.fontSize": 16,
"security.workspace.trust.enabled": false,
"editor.inlineSuggest.enabled": true,
"workbench.startupEditor": "none",
"window.autoDetectColorScheme": true,
"workbench.preferredLightColorTheme": "Default Light Modern",
"workbench.editor.enablePreview": false,
"github.copilot.enable": {
"*": false,
"plaintext": false,
"markdown": false,
"scminput": false
},
"git.enableSmartCommit": true,
"git.openRepositoryInParentFolders": "always",
"liveServer.settings.donotShowInfoMsg": true,
// "open-in-browser.default": "/Applications/Thorium.app/Contents/MacOS/Thorium",
"editor.tabSize": 2,
// "[typescript]": {
// "editor.tabSize": 2
// },
// "[typescriptreact]": {
// "editor.tabSize": 2
// },
// "[javascript]": {
// "editor.tabSize": 2
// },
// "[javascriptreact]": {
// "editor.tabSize": 2
// },
"[text]": {
"editor.defaultFormatter": null,
"editor.formatOnSave": false
},
"[markdown]": {
"editor.defaultFormatter": null,
"editor.formatOnSave": false
},
"editor.formatOnSave": true,
"prettier.proseWrap": "always",
"workbench.iconTheme": "material-icon-theme",
// experiment by commenting these together and/or individually
"workbench.fontAliasing": "antialiased", // default is empty line
// "editor.fontWeight": "default", // makes fonts look crisp on non-retina displays (e.g. regular desktop monitor) on macos
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.defaultProfile.osx": "zsh",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.autoSave": "afterDelay",
// "prettier.tabWidth": 4,
"[plaintext]": {
// "editor.wordWrap": "wordWrapColumn"
// "editor.wordWrapColumn": 65
},
"editor.detectIndentation": false,
"editor.renderWhitespace": "none",
"editor.accessibilitySupport": "off",
"editor.linkedEditing": true,
"editor.tokenColorCustomizations": {
// search "Developer: Inspect Editor Tokens and Scopes" in the command palette
"textMateRules": [
{
"scope": [
// These will be italicized:
"entity.name.type.class", //class names
"constant", //String, Number, Boolean…, this, super
"keyword.operator"
// "variable"
// "keyword", //import, export, return…
],
"settings": {
"fontStyle": "italic"
}
},
{
"scope": [
//following will be excluded from italics (VSCode has some defaults for italics)
// To add new values here, run "Developer: Inspect Editor Tokens and Scopes" from the command palette, then click on the things you want to exclude > copy the top value next to "textmate scopes"
"invalid",
"constant.numeric",
"variable.other.property",
"keyword.operator.type.annotation",
"keyword.operator.assignment",
"keyword.operator.comparison",
"keyword.operator.ternary",
"constant.character.format.placeholder.other"
],
"settings": {
"fontStyle": ""
}
}
]
},
"react-native-tools.showUserTips": false,
"workbench.activityBar.location": "top",
"github.copilot.editor.enableCodeActions": false,
"git.autofetch": true,
"sqlite3-editor.ui.tableSelector.displayColumns": true,
"sqlite3-editor.ui.tableSelector.displayShadowTables": false,
"workbench.colorTheme": "Default Light Modern",
"gitlens.launchpad.indicator.enabled": false,
"fiveServer.browser": ["/Applications/Thorium.app/Contents/MacOS/Thorium"],
"workbench.tree.indent": 20,
"workbench.tree.renderIndentGuides": "always",
"material-icon-theme.hidesExplorerArrows": true,
"editor.acceptSuggestionOnCommitCharacter": false,
"explorer.compactFolders": false,
"terminal.integrated.env.osx": {},
"console-ninja.featureSet": "Community",
"console-ninja.toolsToEnableSupportAutomaticallyFor": {
"live-server-extension": true
},
"liveServer.settings.AdvanceCustomBrowserCmdLine": "/Applications/Thorium.app/Contents/MacOS/Thorium",
"codesnap.containerPadding": "1em",
"codesnap.realLineNumbers": true
// "emmet.includeLanguages": {
// "vue-html": "html",
// "vue": "html"
// }
}
We can see why it's not working for you.
Console Ninja uses the workbench.colorTheme
theme, but this is being overridden in your case, by "window.autoDetectColorScheme": true,
. We weren't familiar with this setting.
If you don't automatically change the VS Code theme when your system color theme changes, then you can remove this setting, and explicitly set the workbench.colorTheme
and Console Ninja should work for you.
We'll investigate whether we can add support for when the theme is automatically changed with the window.autoDetectColorScheme
setting.
Thanks for catching that!
I do use automatic color switching for light and dark mode to match my system's light/dark state, but I'll disable that for now and switch themes manually. I'll look forward to Console Ninja hopefully supporting it in the future.
Thanks for what you guys do!
We've added support for automatic color switching based on your system's light/dark state.
Please update to Console Ninja v1.0.331
, it should now work for you.
Jeez that was quick. Outstanding work, you guys. Thanks again!
EDIT: yes it does work now 👍
What happened?
I was expecting the console output to match what's shown in the readme, where the colors are in line with the default Dark Modern color theme. Instead, it's using what appear to be the colors of the Light Modern theme, which is very difficult to see/read.
Version
1.0.330
CLI command to start your dev tool
npm run dev
Steps to reproduce (or sample repo)
Simply just have any output in the Console Output tab.
Log output