microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.3k stars 293 forks source link

Visual bug: Input frame of the interactive window becomes too narrow to show the characters after switching tabs. #14513

Closed YuanfengZhang closed 1 year ago

YuanfengZhang commented 1 year ago

Applies To

What happened?

image

  1. Open an interactive window, it looks fine: image
  2. Switch the tab from this interactive window to a coding script file (.py, .sh ...) and then switch back, just use shift+tab twice.
  3. It collapsed and both the latin and non-latin characters are not shown well. image image
  4. Quick fix: open and close the side bar (e.g. extension page), or switch to settings/any other non-file tabs then switch back, the input frame is fine again. image

The jupyter extension settings have never been edited. I have no clue it's a VSCode problem about scaling or a Jupyter extension problem.

Here are visual settings:

Thanks for your work, and please contact me anytime if you wanna more env details.

VS Code Version

版本: 1.83.1 (system setup) 提交: f1b07bd25dfad64b0167beb15359ae573aecd2cc 日期: 2023-10-10T23:48:05.904Z Electron: 25.8.4 ElectronBuildId: 24154031 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22621

Jupyter Extension Version

v2023.9.1102792234

Jupyter logs

2023-10-16 08:30:58.002 [info] Added views:workbench.panel.markers.view in workbench.panel.markers
2023-10-16 08:30:58.003 [info] Added views:workbench.panel.output in workbench.panel.output
2023-10-16 08:30:58.003 [info] Added views:terminal in terminal
2023-10-16 08:30:58.003 [info] Added views:outline in workbench.view.explorer
2023-10-16 08:30:58.003 [info] Added views:workbench.scm in workbench.view.scm
2023-10-16 08:30:58.003 [info] Added views:workbench.view.search in workbench.view.search
2023-10-16 08:30:58.003 [info] Added views:timeline in workbench.view.explorer
2023-10-16 08:30:58.003 [info] Added views:workbench.explorer.fileView in workbench.view.explorer
2023-10-16 08:30:58.147 [info] Added views:workbench.debug.welcome in workbench.view.debug
2023-10-16 08:30:58.147 [info] Added views:workbench.debug.breakPointsView in workbench.view.debug
2023-10-16 08:31:00.058 [info] Added views:~remote.forwardedPorts in ~remote.forwardedPortsContainer
2023-10-16 08:31:00.602 [info] Added views:codium-tree-view,prepr-view in workbench.view.extension.codium-sidebar-view-container
2023-10-16 08:31:00.603 [info] Added views:workspaceEnvironments,pythonEnvironments in workbench.view.extension.package-explorer
2023-10-16 08:31:00.604 [info] Added views:dockerContainers,dockerImages,dockerRegistries,dockerNetworks,dockerVolumes,vscode-docker.views.dockerContexts,vscode-docker.views.help in workbench.view.extension.dockerView
2023-10-16 08:31:00.604 [info] Added views:PowerShellCommands in workbench.view.extension.PowerShell
2023-10-16 08:31:00.605 [info] Added views:remoteTargets in workbench.view.remote
2023-10-16 08:31:00.605 [info] Added views:workspaceViewer in workbench.view.extension.workspaceViewer
2023-10-16 08:31:00.605 [info] Added views:jsonOutline in workbench.view.extension.json-views
2023-10-16 08:31:03.834 [info] Added views:workbench.panel.repl.view in terminal
2023-10-16 08:31:07.394 [info] Added views:remoteExplorer in workbench.view.extension.sftp
2023-10-16 08:31:07.464 [info] Added views:workbench.view.testing in workbench.view.extension.test
2023-10-16 08:31:09.263 [info] Added views:workbench.panel.comments in workbench.panel.comments
2023-10-16 08:31:09.428 [info] Added views:jupyterViewVariables in workbench.view.extension.jupyter-variables
2023-10-16 08:31:09.870 [info] Added views:rHelpPages in workbench.view.extension.workspaceViewer
2023-10-16 08:31:09.872 [info] Added views:rLiveShare in workbench.view.extension.workspaceViewer
2023-10-16 08:31:18.852 [info] Added views:workbench.panel.chat.view.copilot in workbench.panel.chatSidebar
2023-10-16 09:47:43.736 [info] Added views:workbench.views.extensions.local.installed,workbench.views.extensions.remote.installed,workbench.views.extensions.popular,extensions.recommendedList in workbench.view.extensions
2023-10-16 09:47:43.739 [info] Removed views:workbench.views.extensions.popular from workbench.view.extensions

Coding Language and Runtime Version

Python 3.11

Language Extension Version (if applicable)

python=v2023.18.0,magicpython=v1.1.0, pylance= v2023.10.20

Anaconda Version (if applicable)

conda=22.9.0

Running Jupyter locally or remotely?

None

YuanfengZhang commented 1 year ago

Also, this problem become serious for multi-line draft in the input frame. Example:

  1. Type many lines in the input frame. image
  2. Switch to any file or non-file tab then switch back.
  3. The frame collapsed to only one line height. image type ENTER at any position of the draft in the frame, all characters shown again. image

Is it a feature or a bug? I think it should be appropriate to maintain/freeze the visual layout before and after switching focus.

amunger commented 1 year ago

duplicate of https://github.com/microsoft/vscode/issues/157059