Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When you close the terminal panel and reopen it after a while, sometimes a strange blank space will appear #237286

Closed
JYRowe opened this issue Jan 5, 2025 · 2 comments
Assignees
Labels
terminal-conpty Integrated terminal issues related to the ConPTY backend upstream Issue identified as 'upstream' component related (exists outside of VS Code) windows VS Code on Windows issues

Comments

@JYRowe
Copy link

JYRowe commented Jan 5, 2025

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.96.2
  • OS Version: Windows 11 24H2 26100.2605

Steps to Reproduce:

  1. Open the terminal, then close it (hide the panel instead of terminating the terminal).
  2. Wait a moment.
  3. Open the terminal, write some commands, and this could happen:

If you can't see the picture, it describes a situation similar to this:

D: Code\>














          cd

I didn't find any related content in issues or wiki.

translated by Google, so there may be some wrong words and not detailed description, please forgive me. :)

My plugin list is as follows:

adpyke.codesnap
aminer.codegeex
bierner.markdown-preview-github-styles
c-team.thief-book
davidanson.vscode-markdownlint
divyanshuagrawal.competitive-programming-helper
donjayamanne.python-extension-pack
eamodio.gitlens
esbenp.prettier-vscode
formulahendry.code-runner
github.vscode-pull-request-github
hediet.vscode-drawio
james-yu.latex-workshop
jeff-hykin.better-cpp-syntax
km.competitive-coding-helper
leodevbro.blockman
mathiasfrohlich.kotlin
ms-ceintl.vscode-language-pack-zh-hans
ms-python.debugpy
ms-python.isort
ms-python.python
ms-python.vscode-pylance
ms-toolsai.jupyter
ms-toolsai.jupyter-keymap
ms-toolsai.jupyter-renderers
ms-toolsai.vscode-jupyter-cell-tags
ms-toolsai.vscode-jupyter-slideshow
ms-vscode-remote.remote-wsl
ms-vscode.cmake-tools
ms-vscode.cpptools
ms-vscode.cpptools-extension-pack
ms-vscode.cpptools-themes
mushan.vscode-paste-image
nicepkg.aide-pro
oderwat.indent-rainbow
orangex4.better-markdown-latex-shortcuts
plibither8.remove-comments
rickaym.manim-sideview
russell.any-rule
shd101wyy.markdown-preview-enhanced
streetsidesoftware.code-spell-checker
techer.open-in-browser
tintinweb.graphviz-interactive-preview
tomoki1207.pdf
twxs.cmake
usernamehw.errorlens
valentjn.vscode-ltex
wushuaibuaa.autocomplete-english-word
yzane.markdown-pdf
yzhang.dictionary-completion
yzhang.markdown-all-in-one

My settings.json is as follows:

{
    "files.autoSave": "afterDelay",
    "editor.fontFamily": "Fira Code, LXGW WenKai Mono GB, Consolas , 'Courier New', monospace",
    "editor.fontSize": 19,
    "code-runner.runInTerminal": true,
    "terminal.integrated.enableMultiLinePasteWarning": "never",
    "editor.fontLigatures": true,
    "editor.mouseWheelZoom": true,
    "explorer.sortOrder": "type",
    "redhat.telemetry.enabled": true,
    "code-runner.executorMap": {
        "javascript": "node",
        "java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
        "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "zig": "zig run",
        // "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -g -std=c++2b -Wall -Wextra -Wpedantic -Wshadow -O2 -DJYR && $dir$fileNameWithoutExt",
        "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -std=c++2b -Wall -Wextra -Wpedantic -Wshadow -Wno-sign-compare -Wno-unused-value -Wno-unused-but-set-variable -O2 -DJYR && $dir$fileNameWithoutExt",
        "objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "php": "php",
        "python": "python -u",
        "perl": "perl",
        "perl6": "perl6",
        "ruby": "ruby",
        "go": "go run",
        "lua": "lua",
        "groovy": "groovy",
        "powershell": "powershell -ExecutionPolicy ByPass -File",
        "bat": "cmd /c",
        "shellscript": "bash",
        "fsharp": "fsi",
        "csharp": "scriptcs",
        "vbscript": "cscript",
        "typescript": "ts-node",
        "coffeescript": "coffee",
        "scala": "scala",
        "swift": "swift",
        "julia": "julia",
        "crystal": "crystal",
        "ocaml": "ocaml",
        "r": "Rscript",
        "applescript": "osascript",
        "clojure": "lein exec",
        "haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
        "rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
        "racket": "racket",
        "scheme": "csi -script",
        "ahk": "autohotkey",
        "autoit": "autoit3",
        "dart": "dart",
        "pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
        "d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
        "haskell": "runghc",
        "nim": "nim compile --verbosity:0 --hints:off --run",
        "lisp": "sbcl --script",
        "kit": "kitc --run",
        "v": "v run",
        "sass": "sass --style expanded",
        "scss": "scss --style expanded",
        "less": "cd $dir && lessc $fileName $fileNameWithoutExt.css",
        "FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "sml": "cd $dir && sml $fileName"
    },
    "cph.general.defaultLanguage": "cpp",
    
    "cph.general.firstTime": false,
    "cph.language.cpp.SubmissionCompiler": "GNU G++14 6.4.0",   
    "cph.language.cpp.Args": "-std=c++14 -O2 -lm -static",
    "doxdocgen.generic.authorEmail": "[email protected]",
    "doxdocgen.generic.authorName": "cooluo",
    "vscoq.path": "D:\\\\Coq-Platform~8.17~2023.08\\\\bin",
    "editor.accessibilitySupport": "off",
    "editor.inlayHints.enabled": "off",
    "workbench.colorCustomizations": {
        "editor.lineHighlightBackground": "#1073cf2d",
        "editor.lineHighlightBorder": "#9fced11f"
    },
    "editor.wordWrap": "off",
    "diffEditor.wordWrap": "off",
    "editor.guides.indentation": false,
    "editor.guides.bracketPairs": false,

    
    "latex-workshop.latex.autoBuild.run": "never",
    "latex-workshop.showContextMenu": true,
    "latex-workshop.intellisense.package.enabled": true,
    "latex-workshop.message.error.show": false,
    "latex-workshop.message.warning.show": false,
    "latex-workshop.latex.tools": [
        {
            "name": "xelatex",
            "command": "xelatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "%DOCFILE%"
            ]
        },
        {
            "name": "pdflatex",
            "command": "pdflatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "%DOCFILE%"
            ]
        },
        {
            "name": "latexmk",
            "command": "latexmk",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-pdf",
                "-outdir=%OUTDIR%",
                "%DOCFILE%"
            ]
        },
        {
            "name": "bibtex",
            "command": "bibtex",
            "args": [
                "%DOCFILE%"
            ]
        }
    ],
    "latex-workshop.latex.recipes": [
        {
            "name": "XeLaTeX",
            "tools": [
                "xelatex"
            ]
        },
        {
            "name": "xelatex*2",
            "tools": [
                "xelatex",
                "xelatex"
            ]
        },
        {
            "name": "PDFLaTeX",
            "tools": [
                "pdflatex"
            ]
        },
        {
            "name": "BibTeX",
            "tools": [
                "bibtex"
            ]
        },
        {
            "name": "LaTeXmk",
            "tools": [
                "latexmk"
            ]
        },
        {
            "name": "xelatex -> bibtex -> xelatex*2",
            "tools": [
                "xelatex",
                "bibtex",
                "xelatex",
                "xelatex"
            ]
        },
        {
            "name": "pdflatex -> bibtex -> pdflatex*2",
            "tools": [
                "pdflatex",
                "bibtex",
                "pdflatex",
                "pdflatex"
            ]
        },
    ],
    "latex-workshop.latex.clean.fileTypes": [
        "*.aux",
        "*.bbl",
        "*.blg",
        "*.idx",
        "*.ind",
        "*.lof",
        "*.lot",
        "*.out",
        "*.toc",
        "*.acn",
        "*.acr",
        "*.alg",
        "*.glg",
        "*.glo",
        "*.gls",
        "*.ist",
        "*.fls",
        "*.log",
        "*.fdb_latexmk"
    ],
    "latex-workshop.latex.autoClean.run": "onFailed",
    "latex-workshop.latex.recipe.default": "lastUsed",
    "latex-workshop.view.pdf.internal.synctex.keybinding": "ctrl-click",

    
    
    "latex-workshop.view.pdf.viewer": "external",
    
    "latex-workshop.view.pdf.ref.viewer":"auto",
    
    "latex-workshop.view.pdf.external.viewer.command": "D:\\SumatraPDF\\SumatraPDF.exe", 
    
    "latex-workshop.view.pdf.external.viewer.args": [
        "%PDF%"
    ],
    
    "latex-workshop.view.pdf.external.synctex.command": "D:\\SumatraPDF\\SumatraPDF.exe", 
    
    "latex-workshop.view.pdf.external.synctex.args": [
        "-forward-search",
        "%TEX%",
        "%LINE%",
        "-reuse-instance",
        "-inverse-search",
        "\"D:\\SumatraPDF\\SumatraPDF.exe\" \"D:/Microsoft VS Code/resources/app/out/cli.js\" -r -g \"%f:%l\"", 
        "%PDF%"
    ],
    "editor.minimap.showSlider": "always",
    "markdown-preview-enhanced.enablePreviewZenMode": false,
    "[latex]": {
        "editor.defaultFormatter": "James-Yu.latex-workshop"
    },
    "markdown-preview-enhanced.revealjsTheme": "none.css",
    "markdown-preview-enhanced.previewTheme": "github-light.css",
    "workbench.colorTheme": "Default Light Modern",
    "C_Cpp.vcFormat.newLine.beforeOpenBrace.function": "newLine",
    "C_Cpp.vcFormat.indent.accessSpecifiers": true,
    "C_Cpp.vcFormat.indent.braces": true,
    "C_Cpp.vcFormat.newLine.beforeOpenBrace.block": "newLine",
    "C_Cpp.vcFormat.newLine.beforeOpenBrace.lambda": "newLine",
    "C_Cpp.vcFormat.newLine.beforeOpenBrace.namespace": "newLine",
    "C_Cpp.vcFormat.newLine.beforeOpenBrace.type": "newLine",
    "C_Cpp.vcFormat.newLine.closeBraceSameLine.emptyFunction": true,
    "C_Cpp.vcFormat.newLine.closeBraceSameLine.emptyType": true,
    "C_Cpp.vcFormat.space.beforeFunctionOpenParenthesis": "insert",
    "C_Cpp.vcFormat.space.beforeLambdaOpenParenthesis": true,
    "Codegeex.Privacy": true,
    "[markdown]": {
        "editor.defaultFormatter": "yzhang.markdown-all-in-one"
    },
    "diffEditor.ignoreTrimWhitespace": false,
    "terminal.integrated.defaultProfile.windows": "PowerShell",
    "editor.unicodeHighlight.allowedLocales": {
        "zh-hans": true
    },
    "security.workspace.trust.untrustedFiles": "open",
    "markdown.extension.completion.enabled": true,
    "editor.quickSuggestions": {
        "comments": "on"
    },
    "cmake.configureOnOpen": true,
    "cmake.pinnedCommands": [
        "workbench.action.tasks.configureTaskRunner",
        "workbench.action.tasks.runTask"
    ],
    "cmake.configureSettings": {
        "CMAKE_EXPORT_COMPILE_COMMANDS": "YES"
    },
    "Codegeex.Comment.LanguagePreference": "中文",
    "explorer.confirmDelete": false,
    "editor.cursorSmoothCaretAnimation": "on",
    "Codegeex.DisabledFor": {
        "markdown": true,
        "code-runner-output": true
    },
    "[html]": {
        "editor.defaultFormatter": "lonefy.vscode-JS-CSS-HTML-formatter"
    },
    "workbench.tree.enableStickyScroll": false,
    "doxdocgen.generic.order": [
        "file",
        "brief",
        "empty",
        "author",
        "version",
        "date",
        "empty",
        "copyright"
    ],
    "Codegeex.License": "",
    "Codegeex.EnableExtension": false,
    "blockman.n04ColorComboPreset": "Classic Light (Gradients)",
    "thiefBook.pageSize": 40,
    "thiefBook.currPageNumber": 0,
    "workbench.editor.empty.hint": "hidden",
    "indentRainbow.errorColor": "rgba(128,32,32,0.1)",
    "editor.cursorBlinking": "smooth",
    "cph.general.timeOut": 2000,
    "indentRainbow.ignoreLinePatterns": [
        "/./g",
        "/../g",
        "/.../g",
        "/..../g",
        "/[ \t]* [*]/g",
        "/[ \t]+[/]{2}/g"
    ],
    "editor.smoothScrolling": true,
    "workbench.activityBar.location": "hidden",
    "markdown.preview.fontFamily": "LXGW WenKai Mono GB, -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif",
    "terminal.integrated.fontLigatures": true,
    "terminal.integrated.suggest.enabled": true,
    "editor.trimAutoWhitespace": false
}
@JYRowe
Copy link
Author

JYRowe commented Jan 5, 2025

If there is any unclear or confusing description, please point it out and I will do my best to help you :)

@Tyriar
Copy link
Member

Tyriar commented Jan 6, 2025

This issue seems to originate from an upstream component and is not something VSCode can fix by making a change to our code. As such, I will go ahead and close it. Please try to reproduce in Windows Terminal and report to microsoft/terminal with repro steps.

If you cannot reproduce in Windows Terminal, chances are it's fixed in a later version of Windows. You can read more about how we consume conpty here. Additionally, soon we plan on shipping conpty v2 with VS Code which should bring our behavior in line with Windows Terminal. Thanks for understanding.

/label upstream terminal-conpty windows

@Tyriar Tyriar closed this as completed Jan 6, 2025
@vs-code-engineering vs-code-engineering bot added windows VS Code on Windows issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) terminal-conpty Integrated terminal issues related to the ConPTY backend labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
terminal-conpty Integrated terminal issues related to the ConPTY backend upstream Issue identified as 'upstream' component related (exists outside of VS Code) windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

2 participants