microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.07k stars 29.21k forks source link

Code command #158118

Closed geeksubhro closed 2 years ago

geeksubhro commented 2 years ago

Type: Bug

After crareating a file with the code command, the new file is opened and it gets closed after 2-3 sec. After enterring the same code again it works fine.

VS Code version: Code 1.70.1 (6d9b74a70ca9c7733b29f0456fd8195364076dda, 2022-08-10T06:08:33.642Z) OS version: Windows_NT x64 10.0.22622 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz (8 x 3110)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.79GB (4.74GB free)| |Process Argv|--crash-reporter-id 856e725f-7cbe-4e7c-befe-ffdd91c71e26| |Screen Reader|no| |VM|0%|
Extensions (74) Extension|Author (truncated)|Version ---|---|--- include-autocomplete|ajs|0.0.4 save-typing|akh|0.1.0 npx-scripts|arc|1.0.7 vscode-django|bat|1.10.0 pythoncpp-debug|ben|0.2.18 java-run|cao|1.1.4 doxdocgen|csc|1.4.0 flask-snippets|cst|0.1.3 c-cpp-compile-run|dan|1.0.15 vscode-markdownlint|Dav|0.47.0 vscode-eslint|dba|2.2.6 java-decompiler|dgi|0.0.3 javadebugger|don|0.1.5 python-environment-manager|don|1.0.4 python-extension-pack|don|1.7.0 java-debug|DSn|0.0.2 gitlens|eam|12.1.2 vscode-html-css|ecm|1.13.1 EditorConfig|Edi|0.16.4 vscode-npm-script|eg2|0.3.28 auto-close-tag|for|0.5.14 code-runner|for|0.11.8 c-cpp-runner|fra|4.0.3 chrome-dinosaur-game|gee|0.0.1 codespaces|Git|1.10.0 copilot|Git|1.40.6471 gc-excelviewer|Gra|4.2.55 path-autocomplete|ion|1.20.2 java-properties|ith|0.0.2 better-cpp-syntax|jef|1.15.19 conda-cheatsheet|joj|1.2.7 cmake-language-support-vscode|jos|0.0.4 vsc-python-indent|Kev|1.17.0 kite|kit|0.147.0 vscode-language-babel|mgm|0.0.36 linuxkerneldev|mic|0.4.9 vscode-dotnet-runtime|ms-|1.5.0 python|ms-|2022.12.0 vscode-pylance|ms-|2022.8.20 jupyter|ms-|2022.7.1102252217 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.9 remote-ssh|ms-|0.84.0 remote-ssh-edit|ms-|0.80.0 remote-wsl|ms-|0.66.3 vscode-remote-extensionpack|ms-|0.21.0 cmake-tools|ms-|1.11.26 cpptools|ms-|1.12.0 cpptools-extension-pack|ms-|1.2.0 notepadplusplus-keybindings|ms-|1.0.7 autodocstring|njp|0.6.1 java|red|1.9.0 LiveServer|rit|5.7.5 pip-manager|sli|1.1.1 auto-correct|syg|0.2.2 tabnine-vscode|Tab|3.6.11 vscode-make|tec|1.0.2 html-preview-vscode|tht|0.2.5 cmake|twx|0.0.17 c-cpp-flag-debugging|uts|0.0.1 vscode-lldb|vad|1.7.4 intellicode-api-usage-examples|Vis|0.2.0 vscodeintellicode|Vis|1.2.22 vscode-gradle|vsc|3.12.3 vscode-java-debug|vsc|0.43.0 vscode-java-dependency|vsc|0.21.0 vscode-java-pack|vsc|0.25.0 vscode-java-test|vsc|0.36.0 vscode-maven|vsc|0.37.0 vscode-spring-initializr|vsc|0.10.2022080203 jinja|who|0.0.8 JavaScriptSnippets|xab|1.8.0 vscode-java-saber|You|0.1.2 html-css-class-completion|Zig|1.20.0 (2 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 wslgetstarted:30449410 cppdebug:30492333 pylanb8912:30545647 vsclangdc:30486549 c4g48928:30535728 hb751961:30543456 dsvsc012cf:30540253 azure-dev_surveyone:30545435 ```
bpasero commented 2 years ago

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.

vscodenpa commented 2 years ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!