Although I also have a remote ssh session running, this issue happens in my local macbook machine.
The CPU/GPU cores also become very hot:
I was not having this issue earlier in VS Code. I recently updated my VS Code version, and also changed my settings.json file. I don't remember what version of VS Code I had earlier.
{
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.fontFamily": "MesloLGS NF",
"notebook.cellToolbarLocation": {
"default": "right",
"jupyter-notebook": "left"
},
"markdown.preview.fontSize": 17,
"editor.inlineSuggest.enabled": true,
"explorer.confirmDelete": true,
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "One Dark Pro Night Flat",
"editor.formatOnSaveMode": "file",
"git.terminalAuthentication": false,
"[python]": {
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.codeActionsOnSave": {
"source.fixAll.ruff": "explicit",
"source.organizeImports.ruff": "explicit"
}
},
"notebook.output.scrolling": true,
"workbench.startupEditor": "none",
"editor.stickyScroll.enabled": true,
"editor.stickyScroll.maxLineCount": 3,
"explorer.decorations.badges": false,
"claudeCode.preferredLocation": "panel",
"remote.defaultExtensionsIfInstalledLocally": [
"anthropic.claude-code"
],
// ─── Font & Display ──────────────────────────────────────────────────────────
"editor.fontSize": 14,
"editor.lineHeight": 22,
"editor.fontFamily": "JetBrains Mono, Menlo, monospace",
"editor.fontWeight": "400",
"editor.fontLigatures": false, // ← changed: was true (HarfBuzz mitigation)
"terminal.integrated.fontSize": 13,
"debug.console.fontSize": 13,
// ─── Editor UX ───────────────────────────────────────────────────────────────
"editor.minimap.enabled": false,
"editor.rulers": [88],
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true, // ← changed: was "active" (less repainting)
"editor.guides.indentation": true,
"editor.renderWhitespace": "boundary",
"editor.smoothScrolling": true,
"editor.cursorBlinking": "blink", // ← changed: was "phase" (simpler animation)
"editor.cursorSmoothCaretAnimation": "off", // ← changed: was "on" (reduces redraw frequency)
"editor.scrollbar.verticalScrollbarSize": 6,
// ─── Notebook ────────────────────────────────────────────────────────────────
"notebook.lineNumbers": "on",
// ─── Pylance inlay hints (useful for complex tensor type flows) ───────────────
"python.analysis.inlayHints.functionReturnTypes": false,
"python.analysis.inlayHints.variableTypes": false,
"python.analysis.inlayHints.callArgumentNames": "partial",
"python.analysis.diagnosticMode": "openFilesOnly",
"python.analysis.indexing": true,
"python.analysis.autoImportCompletions": true,
// ─── Workbench color tweaks for Night Flat ────────────────────────────────────
"workbench.colorCustomizations": {
"[One Dark Pro Night Flat]": {
"tab.activeBackground": "#21252b",
"tab.inactiveBackground": "#21252b",
"tab.activeBorder": "#61afef",
"activityBar.background": "#21252b",
"sideBar.background": "#21252b",
"editor.lineHighlightBackground": "#2c313c",
"editor.lineHighlightBorder": "#00000000",
"editorIndentGuide.background1": "#3b4048",
"editorIndentGuide.activeBackground1": "#636d83",
"editorBracketHighlight.foreground1": "#d19a66",
"editorBracketHighlight.foreground2": "#c678dd",
"editorBracketHighlight.foreground3": "#56b6c2",
"editorBracketHighlight.foreground4": "#e5c07b",
"scrollbarSlider.background": "#4b526680",
"scrollbarSlider.hoverBackground": "#636d8399"
}
},
// ─── Semantic token colors for Python/Pylance ─────────────────────────────────
"editor.semanticTokenColorCustomizations": {
"[One Dark Pro Night Flat]": {
"enabled": true,
"rules": {
"selfParameter:python": "#e06c75",
"clsParameter:python": "#e06c75",
"magicFunction:python": "#56b6c2",
"function.declaration:python": "#61afef",
"*.decorator:python": "#c678dd",
"*.typeHint:python": "#e5c07b",
"*.typeHintComment:python": "#7f848e",
"parameter:python": "#d19a66",
"class:python": "#e5c07b",
"enumMember:python": "#56b6c2"
}
}
},
// ─── Italic styling (comments + control flow keywords) ───────────────────────
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name": "Italics: comments + keywords",
"scope": [
"comment",
"punctuation.definition.comment",
"keyword.control",
"keyword.control.flow",
"keyword.control.import",
"keyword.control.conditional",
"keyword.control.trycatch",
"storage.type.function",
"storage.modifier.async"
],
"settings": {
"fontStyle": "italic"
}
}
]
},
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"python.analysis.typeCheckingMode": "basic",
"editor.inlineSuggest.suppressSuggestions": false,
"window.zoomLevel": 0,
"files.exclude": {
"**/__pycache__": true,
"**/.pytest_cache": true,
"**/.mypy_cache": true,
"**/.ruff_cache": true,
"**/.ipynb_checkpoints": true
},
"search.exclude": {
"**/wandb": true,
"**/runs": true,
"**/outputs": true,
"**/checkpoints": true,
"**/logs": true,
"**/data": true,
"**/datasets": true,
"**/.git": true,
"**/.venv": true,
"**/venv": true
},
"files.watcherExclude": {
"**/wandb/**": true,
"**/runs/**": true,
"**/outputs/**": true,
"**/checkpoints/**": true,
"**/logs/**": true,
"**/data/**": true,
"**/datasets/**": true,
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/.venv/**": true,
"**/venv/**": true
},
"terminal.integrated.scrollback": 10000, // ← changed: was 50000 (caps in-memory text buffer)
"notebook.diff.ignoreMetadata": true,
"notebook.diff.ignoreOutputs": true,
"notebook.formatOnSave.enabled": true,
"notebook.codeActionsOnSave": {
"notebook.source.fixAll": "explicit",
"notebook.source.organizeImports": "explicit"
},
"jupyter.askForKernelRestart": false,
"files.autoSave": "onFocusChange",
"git.autofetch": true,
"git.confirmSync": false,
"editor.formatOnPaste": false,
"editor.suggest.preview": true,
"editor.acceptSuggestionOnEnter": "off",
"diffEditor.ignoreTrimWhitespace": false,
"python.terminal.activateEnvironment": true,
"notebook.markup.fontSize": 14,
"files.associations": {
"*.cu": "cpp",
"*.cuh": "cpp"
},
"remote.SSH.connectTimeout": 60,
"remote.SSH.useLocalServer": true,
"remote.SSH.lockfilesInTmp": true,
"ruff.nativeServer": "on",
"ruff.lineLength": 88,
"ruff.organizeImports": true,
"ruff.fixAll": true,
"ruff.codeAction.disableRuleComment": {
"enable": false
}
}
Type: Performance Issue
Similar to #266324, the VS Code window crashes after 1-2 mins of opening my home folder (
~) in my macbook and I get the error: “The window terminated unexpectedly (reason: ‘crashed’, code: ‘5’)”. I just run the commandcode .from "~" directory only to see that the CPU/GPU temp rises pretty quickly, the fans in my Macbook Pro start running and the VS Code window crashes soon with the error:Although I also have a remote ssh session running, this issue happens in my local macbook machine.
The CPU/GPU cores also become very hot:
I was not having this issue earlier in VS Code. I recently updated my VS Code version, and also changed my
settings.jsonfile. I don't remember what version of VS Code I had earlier.My current
settings.jsonfile looks like this:VS Code version: Code 1.117.0 (10c8e55, 2026-04-21T16:12:14-07:00)
OS version: Darwin arm64 25.4.0
Modes:
Remote OS version: Linux x64 6.8.0-90-generic
System Info
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M5 Pro, Version 26.4.1 (Build 25E253))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.4.1 ACTIVE
Machine model name: Mac
Machine model version: 17.9
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Process Info
Workspace Info
Extensions (18)
A/B Experiments