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

Selecting multiple lines #133699

Closed
Badr-MOUFAD opened this issue Sep 23, 2021 · 13 comments
Closed

Selecting multiple lines #133699

Badr-MOUFAD opened this issue Sep 23, 2021 · 13 comments
Assignees
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders notebook-cell-editor Bugs related to code editors in Notebooks (not intellisense / LS's) verified Verification succeeded
Milestone

Comments

@Badr-MOUFAD
Copy link

Environment data

  • VS Code version: 1.60.2
  • Jupyter Extension version (available under the Extensions sidebar): v2021.8.2041215044
  • Python Extension version (available under the Extensions sidebar): v2021.9.1246542782
  • OS (Windows | Mac | Linux distro) and version: Windows
  • Python and/or Anaconda version: XXX
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Jupyter server running: Local

Expected behaviour

When selecting multiple lines, only the selected parts using the cursor must be highlighted.

Actual behaviour

It is a bit disturbing to see extra unselected parts being highlighted. Even, it might mislead to copy/paste the wrong piece of code.

Steps to reproduce:

Refer to the gif below to reproduce this behavior

gif_bug_selection

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 2021-09-23 17:59:05: ZMQ install verified.
Info 2021-09-23 17:59:05: Attempting to start a server because of preload conditions ...
Info 2021-09-23 17:59:05: Setting setActiveController for file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb
Info 2021-09-23 17:59:05: Intiailize notebook communications for editor file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb
Info 2021-09-23 17:59:05: Resolving notebook UI Comms (resolve) for file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb
Info 2021-09-23 17:59:05: initialize CommonMessageCoordinator
Info 2021-09-23 17:59:05: IPyWidgetMessageDispatcher.initialize
Info 2021-09-23 17:59:05: Created and initailized CommonMessageCoordinator
Info 2021-09-23 17:59:05: Attach Coordinator for file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb
Info 2021-09-23 17:59:05: KernelProvider switched kernel to id = .jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc.C:\Users\HP\anaconda3\python.exe.C:\Users\HP\anaconda3\python.exe.-m#ipykernel_launcher
Info 2021-09-23 17:59:05: Starting Notebook in kernel.ts id = .jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc.C:\Users\HP\anaconda3\python.exe.C:\Users\HP\anaconda3\python.exe.-m#ipykernel_launcher
Info 2021-09-23 17:59:05: Creating raw notebook for file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb
Info 2021-09-23 17:59:05: Getting preferred kernel for file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb
Info 2021-09-23 17:59:05: Computing working directory file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb
Info 2021-09-23 17:59:05: Connecting to raw session for file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"C:\\Users\\HP\\anaconda3\\share\\jupyter\\kernels\\python3\\kernel.json","interpreterPath":"C:\\Users\\HP\\anaconda3\\python.exe","name":"python385jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc","argv":["C:/Users/HP/anaconda3\\python.exe","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"C:/Users/HP/anaconda3\\python.exe","display_name":"Python 3.8.5 64-bit ('base': conda)"},"interpreter":{"sysPrefix":"C:\\Users\\HP\\anaconda3","envType":"Conda","envName":"base","envPath":"C:\\Users\\HP\\anaconda3","path":"C:\\Users\\HP\\anaconda3\\python.exe","architecture":3,"sysVersion":"3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.8.5","major":3,"minor":8,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.8.5 64-bit ('base': conda)"},"id":".jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc.C:\\Users\\HP\\anaconda3\\python.exe.C:\\Users\\HP\\anaconda3\\python.exe.-m#ipykernel_launcher"}
Info 2021-09-23 17:59:05: Starting raw kernel Python 3.8.5 64-bit ('base': conda)
Info 2021-09-23 17:59:05: installMissingDependencies C:\Users\HP\anaconda3\python.exe
Info 2021-09-23 17:59:09: Find preferred kernel for file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb with metadata {"kernelspec":{"name":"python3","display_name":"Python 3.8.5 64-bit ('base': conda)"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.8.5"},"name":"_merged","nav_menu":{},"toc":{"navigate_menu":true,"number_sections":true,"sideBar":true,"threshold":6,"toc_cell":false,"toc_section_display":"block","toc_window_display":true},"interpreter":{"hash":"1e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc"}} & preferred interpreter {"sysPrefix":"C:\\Users\\HP\\anaconda3","envType":"Conda","envName":"base","envPath":"C:\\Users\\HP\\anaconda3","path":"C:\\Users\\HP\\anaconda3\\python.exe","architecture":3,"sysVersion":"3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.8.5","major":3,"minor":8,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"Anaconda, Inc.","displayName":"Python 3.8.5 64-bit ('base': conda)"}
Info 2021-09-23 17:59:09: findPreferredKernel score for speclanguage=python, Python 3.6.6 64-bit is -1
Info 2021-09-23 17:59:09: findPreferredKernel score for Python3, Python 3.6.6 64-bit is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for Python 3.6.6 64-bit is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for speclanguage=python, Python 3.7.1 64-bit is -1
Info 2021-09-23 17:59:09: findPreferredKernel score for Python3, Python 3.7.1 64-bit is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for Python 3.7.1 64-bit is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for speclanguage=python, Python 3.7.10 64-bit ('control-engineering-with-python': conda) is -1
Info 2021-09-23 17:59:09: findPreferredKernel score for Python3, Python 3.7.10 64-bit ('control-engineering-with-python': conda) is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for Python 3.7.10 64-bit ('control-engineering-with-python': conda) is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for speclanguage=python, Python 3.7.4 32-bit is -1
Info 2021-09-23 17:59:09: findPreferredKernel score for Python3, Python 3.7.4 32-bit is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for Python 3.7.4 32-bit is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for speclanguage=python, Python 3.8.0 64-bit is -1
Info 2021-09-23 17:59:09: findPreferredKernel score for Python3, Python 3.8.0 64-bit is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for Python 3.8.0 64-bit is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for speclanguage=python, Python 3.8.0 32-bit is -1
Info 2021-09-23 17:59:09: findPreferredKernel score for Python3, Python 3.8.0 32-bit is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for Python 3.8.0 32-bit is 2
Info 2021-09-23 17:59:09: findPreferredKernel score for Python3, Python 3.8.5 64-bit ('base': conda) is 116
Info 2021-09-23 17:59:09: findPreferredKernel score for Python 3.8.5 64-bit ('base': conda) is 116
Info 2021-09-23 17:59:09: findKernel found Python 3.8.5 64-bit ('base': conda)
Info 2021-09-23 17:59:09: Find kernel spec, Class name = x, completed in 3991ms, has a truthy return value, Arg 1: <Uri:c:\Users\HP\Desktop\class2022-DS-TP\df_with_pandas\01-pandas_overview.ipynb>, Arg 2: {"kernelspec":{"name":"python3","display_name":"Python 3.8.5 64-bit ('base': conda)"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.8.5"},"name":"_merged","nav_menu":{},"toc":{"navigate_menu":true,"number_sections":true,"sideBar":true,"threshold":6,"toc_cell":false,"toc_section_display":"block","toc_window_display":true},"interpreter":{"hash":"1e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc"}}, Arg 3: {"_isCancelled":false,"_emitter":{"_disposed":false,"_listeners":{"_first":{"next":{},"prev":{}},"_last":{"next":{},"prev":{}},"_size":1}}}, Return Value: {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"C:\\Users\\HP\\anaconda3\\share\\jupyter\\kernels\\python3\\kernel.json","interpreterPath":"C:\\Users\\HP\\anaconda3\\python.exe","name":"python385jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc","argv":["C:/Users/HP/anaconda3\\python.exe","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"C:/Users/HP/anaconda3\\python.exe","display_name":"Python 3.8.5 64-bit ('base': conda)"},"interpreter":{"sysPrefix":"C:\\Users\\HP\\anaconda3","envType":"Conda","envName":"base","envPath":"C:\\Users\\HP\\anaconda3","path":"C:\\Users\\HP\\anaconda3\\python.exe","architecture":3,"sysVersion":"3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.8.5","major":3,"minor":8,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.8.5 64-bit ('base': conda)"},"id":".jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc.C:\\Users\\HP\\anaconda3\\python.exe.C:\\Users\\HP\\anaconda3\\python.exe.-m#ipykernel_launcher"}
Info 2021-09-23 17:59:09: PreferredConnection: .jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc.C:\Users\HP\anaconda3\python.exe.C:\Users\HP\anaconda3\python.exe.-m#ipykernel_launcher found for NotebookDocument: file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb
Info 2021-09-23 17:59:09: TargetController found ID: .jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc.C:\Users\HP\anaconda3\python.exe.C:\Users\HP\anaconda3\python.exe.-m#ipykernel_launcher for document file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb
Info 2021-09-23 17:59:09: Setting controller affinity for file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb .jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc.C:\Users\HP\anaconda3\python.exe.C:\Users\HP\anaconda3\python.exe.-m#ipykernel_launcher
Info 2021-09-23 17:59:09: Loading kernelspec from C:\Users\HP\anaconda3\share\jupyter\kernels\python3\kernel.json for C:\Users\HP\anaconda3\python.exe
Info 2021-09-23 17:59:09: Loading kernelspec from C:\Users\HP\anaconda3\envs\control-engineering-with-python\share\jupyter\kernels\python3\kernel.json for C:\Users\HP\anaconda3\envs\control-engineering-with-python\python.exe
Info 2021-09-23 17:59:09: Kernel python3710jvsc74a57bd048f06654205106687de5123e89dc84cc55e4b670d67991f575e07e671527e7f0 matches Python 3.7.10 64-bit ('control-engineering-with-python': conda) based on path in argv.
Info 2021-09-23 17:59:09: Kernel python385jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc matches Python 3.8.5 64-bit ('base': conda) based on path in argv.
Info 2021-09-23 17:59:09: Kernel python3710jvsc74a57bd048f06654205106687de5123e89dc84cc55e4b670d67991f575e07e671527e7f0 matches Python 3.7.10 64-bit ('control-engineering-with-python': conda) based on path in argv.
Info 2021-09-23 17:59:09: Kernel python385jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc matches Python 3.8.5 64-bit ('base': conda) based on path in argv.
Info 2021-09-23 17:59:12: Process Execution: > ~\anaconda3\python.exe -c "import ipykernel"
> ~\anaconda3\python.exe -c "import ipykernel"
Info 2021-09-23 17:59:12: Process Execution: > ~\anaconda3\python.exe -c "import jupyter"
> ~\anaconda3\python.exe -c "import jupyter"
Info 2021-09-23 17:59:12: Process Execution: > ~\anaconda3\python.exe -c "import notebook"
> ~\anaconda3\python.exe -c "import notebook"
Info 2021-09-23 17:59:12: Process Execution: > ~\anaconda3\python.exe -m pip list
> ~\anaconda3\python.exe -m pip list
Info 2021-09-23 17:59:12: Process Execution: > ~\anaconda3\python.exe -m jupyter kernelspec --version
> ~\anaconda3\python.exe -m jupyter kernelspec --version
Info 2021-09-23 17:59:13: Install Missing Dependencies, Class name = _, completed in 7550ms, has a falsy return value, Return Value: undefined
Info 2021-09-23 17:59:13: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 2021-09-23 17:59:13: Launching kernel daemon for Python 3.8.5 64-bit ('base': conda) # C:\Users\HP\anaconda3\python.exe
Info 2021-09-23 17:59:15: Creating daemon process for C:\Users\HP\anaconda3\python.exe with env variables count 74
Info 2021-09-23 17:59:15: Process Execution: > ~\anaconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~\anaconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-09-23 17:59:15: Starting kernel from scratch with options {"env":{"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\HP\\AppData\\Roaming","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_5348_ONNXIAEGNFFMGRPU","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","COMPUTERNAME":"BLUZZ","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\HP","LOCALAPPDATA":"C:\\Users\\HP\\AppData\\Local","LOGONSERVER":"\\\\BLUZZ","NUMBER_OF_PROCESSORS":"8","NVM_HOME":"C:\\Users\\HP\\AppData\\Roaming\\nvm","NVM_SYMLINK":"C:\\Program Files\\nodejs","OneDrive":"C:\\Users\\HP\\OneDrive - Université Mohammed VI Polytechnique","OneDriveCommercial":"C:\\Users\\HP\\OneDrive - Université Mohammed VI Polytechnique","OneDriveConsumer":"C:\\Users\\HP\\OneDrive","OnlineServices":"Online Services","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","Path":"C:\\Users\\HP\\anaconda3;C:\\Users\\HP\\anaconda3\\Library\\mingw-w64\\bin;C:\\Users\\HP\\anaconda3\\Library\\usr\\bin;C:\\Users\\HP\\anaconda3\\Library\\bin;C:\\Users\\HP\\anaconda3\\Scripts;C:\\Users\\HP\\anaconda3\\bin;C:\\Users\\HP\\anaconda3\\condabin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\OpenSSH;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\WINDOWS\\System32\\OpenSSH;C:\\Program Files\\Git\\cmd;C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Roaming\\npm;C:\\Program Files\\MongoDB\\Server\\4.4\\bin;C:\\Users\\HP\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python37\\Scripts;C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python37;C:\\Program Files\\MySQL\\MySQL Shell 8.0\\bin;C:\\Users\\HP\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\HP\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\HP\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","platformcode":"KV","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 142 Stepping 11, GenuineIntel","PROCESSOR_LEVEL":"6","PROCESSOR_REVISION":"8e0b","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules","PUBLIC":"C:\\Users\\Public","RegionCode":"EMEA","SESSIONNAME":"Console","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","TEMP":"C:\\Users\\HP\\AppData\\Local\\Temp","TMP":"C:\\Users\\HP\\AppData\\Local\\Temp","USERDOMAIN":"BLUZZ","USERDOMAIN_ROAMINGPROFILE":"BLUZZ","USERNAME":"HP","USERPROFILE":"C:\\Users\\HP","VS150COMCOMNTOOLS":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\","VSCODE_AMD_ENTRYPOINT":"vs/workbench/services/extensions/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\HP\\AppData\\Roaming\\Code\\CachedData\\7f6ab5485bbc008386c4386d08766667e155244e","VSCODE_CWD":"C:\\Users\\HP\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\39abd41aff3157edea34b81c340f433c-1.60.2-main-sock","VSCODE_IPC_HOOK_EXTHOST":"\\\\.\\pipe\\vscode-ipc-82955657-bb99-4b99-86f4-fc56742de149-sock","VSCODE_LOG_NATIVE":"false","VSCODE_LOG_STACK":"false","VSCODE_NLS_CONFIG":"{\"locale\":\"en-gb\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"5348","VSCODE_PIPE_LOGGING":"true","VSCODE_VERBOSE_LOGGING":"true","windir":"C:\\WINDOWS","ZES_ENABLE_SYSMAN":"1","__COMPAT_LAYER":"DetectorsAppHealth","COMMONPROGRAMFILES":"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files","COMMONPROGRAMW6432":"C:\\Program Files\\Common Files","COMSPEC":"C:\\WINDOWS\\system32\\cmd.exe","CONDA_DEFAULT_ENV":"base","CONDA_EXE":"C:\\Users\\HP\\anaconda3\\condabin\\..\\Scripts\\conda.exe","CONDA_PREFIX":"C:\\Users\\HP\\anaconda3","CONDA_PROMPT_MODIFIER":"(base) ","CONDA_PYTHON_EXE":"C:\\Users\\HP\\anaconda3\\python.exe","CONDA_SHLVL":"1","DRIVERDATA":"C:\\Windows\\System32\\Drivers\\DriverData","ONEDRIVE":"C:\\Users\\HP\\OneDrive - Université Mohammed VI Polytechnique","ONEDRIVECOMMERCIAL":"C:\\Users\\HP\\OneDrive - Université Mohammed VI Polytechnique","ONEDRIVECONSUMER":"C:\\Users\\HP\\OneDrive","ONLINESERVICES":"Online Services","PLATFORMCODE":"KV","PROGRAMDATA":"C:\\ProgramData","PROGRAMFILES":"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)","PROGRAMW6432":"C:\\Program Files","PROMPT":"(base) $P$G","PSMODULEPATH":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules","PYTHONIOENCODING":"utf-8","PYTHONUNBUFFERED":"1","REGIONCODE":"EMEA","SYSTEMDRIVE":"C:","SYSTEMROOT":"C:\\WINDOWS","WINDIR":"C:\\WINDOWS"},"cwd":"c:\\Users\\HP\\Desktop\\class2022-DS-TP\\df_with_pandas"}
Info 2021-09-23 17:59:15: Python Daemon (pid: 12256): Execute rpc method exec_module in DS Daemon
Info 2021-09-23 17:59:15: Python Daemon (pid: 12256): Execute rpc method exec_module from C:\Users\HP\anaconda3\python.exe
Info 2021-09-23 17:59:15: Python Daemon (pid: 12256): Exec module in DS Kernel Launcher Daemon ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"3370ecbd-c2ca-4507-9fd4-456fdada6636"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\HP\\AppData\\Local\\Temp\\tmp-20020wHu1FZYw38cZ.json']
Info 2021-09-23 17:59:15: Python Daemon (pid: 12256): Exec in DS Kernel Launcher Daemon (observable) ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"3370ecbd-c2ca-4507-9fd4-456fdada6636"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\HP\\AppData\\Local\\Temp\\tmp-20020wHu1FZYw38cZ.json']
Info 2021-09-23 17:59:15: Python Daemon (pid: 12256): Exec in DS Kernel Launcher Daemon (observable) ['C:\\Users\\HP\\anaconda3\\python.exe', '-m', 'ipykernel_launcher', '--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"3370ecbd-c2ca-4507-9fd4-456fdada6636"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\HP\\AppData\\Local\\Temp\\tmp-20020wHu1FZYw38cZ.json']
Info 2021-09-23 17:59:15: Python Daemon (pid: 12256): Exec in DS Kernel Launcher Daemon (observable)
Info 2021-09-23 17:59:15: Python Daemon (pid: 12256): Kernel launched, with PID 18340
Warn 2021-09-23 17:59:15: Python Daemon (pid: 12256): Waiting for Kernel to die 18340
Info 2021-09-23 17:59:15: Launching kernel daemon, Class name = f, completed in 2220ms, has a truthy return value, Arg 1: <Uri:c:\Users\HP\Desktop\class2022-DS-TP\df_with_pandas\01-pandas_overview.ipynb>, Arg 2: "c:\\Users\\HP\\Desktop\\class2022-DS-TP\\df_with_pandas", Arg 3: {"specFile":"C:\\Users\\HP\\anaconda3\\share\\jupyter\\kernels\\python3\\kernel.json","interpreterPath":"C:\\Users\\HP\\anaconda3\\python.exe","name":"python385jvsc74a57bd01e915f0a29dc84041eaeb02b7b1a21c440e37a87b61d44d5e84a515737dc82bc","argv":["C:/Users/HP/anaconda3\\python.exe","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"3370ecbd-c2ca-4507-9fd4-456fdada6636\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\HP\\AppData\\Local\\Temp\\tmp-20020wHu1FZYw38cZ.json"],"language":"python","path":"C:/Users/HP/anaconda3\\python.exe","display_name":"Python 3.8.5 64-bit ('base': conda)"}, Arg 4: {"sysPrefix":"C:\\Users\\HP\\anaconda3","envType":"Conda","envName":"base","envPath":"C:\\Users\\HP\\anaconda3","path":"C:\\Users\\HP\\anaconda3\\python.exe","architecture":3,"sysVersion":"3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.8.5","major":3,"minor":8,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.8.5 64-bit ('base': conda)"}, Return Value: <Return value cannot be serialized for logging>
Info 2021-09-23 17:59:15: Launching kernel in kernelProcess.ts, Class name = y, completed in 2220ms, has a truthy return value, Arg 1: "c:\\Users\\HP\\Desktop\\class2022-DS-TP\\df_with_pandas", Return Value: {"proc":{"_events":{},"_eventsCount":2,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"C:\\Users\\HP\\anaconda3\\python.exe","_handle":{"pid":12256},"spawnargs":["C:\\Users\\HP\\anaconda3\\python.exe","-m","vscode_datascience_helpers.daemon","--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon","-v"],"pid":12256,"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdout":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stderr":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdio":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false,"observers":[],"closed":false,"isStopped":false,"hasError":false,"thrownError":null}}
Info 2021-09-23 17:59:16: KernelProcess output: Content-Length: 332
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr: C:\\Users\\HP\\anaconda3\\lib\\site-packages\\traitlets\\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'hmac-sha256' instead of '\"hmac-sha256\"' \u2013 or use CUnicode.\r\n","pid":12256}}Content-Length: 309
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"C:\\Users\\HP\\anaconda3\\lib\\site-packages\\traitlets\\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'hmac-sha256' instead of '\"hmac-sha256\"' \u2013 or use CUnicode.\r\n"}}
Info 2021-09-23 17:59:16: Python Daemon (pid: 12256): write to stderr: C:\Users\HP\anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'hmac-sha256' instead of '"hmac-sha256"' – or use CUnicode.

Info 2021-09-23 17:59:16: KernelProcess output: Content-Length: 107
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:   warn(\r\n","pid":12256}}Content-Length: 84
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"  warn(\r\n"}}Content-Length: 358
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr: C:\\Users\\HP\\anaconda3\\lib\\site-packages\\traitlets\\traitlets.py:2151: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '3370ecbd-c2ca-4507-9fd4-456fdada6636' instead of 'b\"3370ecbd-c2ca-4507-9fd4-456fdada6636\"'.\r\n","pid":12256}}Content-Length: 335
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"C:\\Users\\HP\\anaconda3\\lib\\site-packages\\traitlets\\traitlets.py:2151: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '3370ecbd-c2ca-4507-9fd4-456fdada6636' instead of 'b\"3370ecbd-c2ca-4507-9fd4-456fdada6636\"'.\r\n"}}Content-Length: 107
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:   warn(\r\n","pid":12256}}Content-Length: 84
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"  warn(\r\n"}}
Warn 2021-09-23 17:59:16: Kernel 12256 as possibly died, StdErr from Kernel Process C:\Users\HP\anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'hmac-sha256' instead of '"hmac-sha256"' – or use CUnicode.

Warn 2021-09-23 17:59:16: StdErr from Kernel Process C:\Users\HP\anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'hmac-sha256' instead of '"hmac-sha256"' – or use CUnicode.

Info 2021-09-23 17:59:16: Python Daemon (pid: 12256): write to stderr:   warn(

Warn 2021-09-23 17:59:16: Kernel 12256 as possibly died, StdErr from Kernel Process   warn(

Warn 2021-09-23 17:59:16: StdErr from Kernel Process   warn(

Info 2021-09-23 17:59:16: Python Daemon (pid: 12256): write to stderr: C:\Users\HP\anaconda3\lib\site-packages\traitlets\traitlets.py:2151: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '3370ecbd-c2ca-4507-9fd4-456fdada6636' instead of 'b"3370ecbd-c2ca-4507-9fd4-456fdada6636"'.

Warn 2021-09-23 17:59:16: Kernel 12256 as possibly died, StdErr from Kernel Process C:\Users\HP\anaconda3\lib\site-packages\traitlets\traitlets.py:2151: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '3370ecbd-c2ca-4507-9fd4-456fdada6636' instead of 'b"3370ecbd-c2ca-4507-9fd4-456fdada6636"'.

Warn 2021-09-23 17:59:16: StdErr from Kernel Process C:\Users\HP\anaconda3\lib\site-packages\traitlets\traitlets.py:2151: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '3370ecbd-c2ca-4507-9fd4-456fdada6636' instead of 'b"3370ecbd-c2ca-4507-9fd4-456fdada6636"'.

Info 2021-09-23 17:59:16: Python Daemon (pid: 12256): write to stderr:   warn(

Warn 2021-09-23 17:59:16: Kernel 12256 as possibly died, StdErr from Kernel Process   warn(

Warn 2021-09-23 17:59:16: StdErr from Kernel Process   warn(

Info 2021-09-23 17:59:16: Raw session started and connected
Started kernel Python 3.8.5 64-bit ('base': conda)
Info 2021-09-23 17:59:16: Finished connecting 123dc991-48b1-45eb-a8f1-0cf7ef832708
Info 2021-09-23 17:59:16: UpdateWorkingDirectoryAndPath in Kernel
Info 2021-09-23 17:59:16: Registering commtarget jupyter.widget
Info 2021-09-23 17:59:16: IPyWidgetMessageDispatcher.initialize
Info 2021-09-23 17:59:16: IPyWidgetScriptSource.initialize
Info 2021-09-23 17:59:16: IPyWidgetMessageDispatcher.initialize
Info 2021-09-23 17:59:16: IPyWidgetMessageDispatcher.initialize
Info 2021-09-23 17:59:16: IPyWidgetMessageDispatcher.initialize
Info 2021-09-23 17:59:16: changeDirectoryIfPossible
Info 2021-09-23 17:59:16: Notebook Session status file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb # Busy
Info 2021-09-23 17:59:16: Notebook Session status file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb # Idle
Info 2021-09-23 17:59:16: Notebook Session status file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb # Busy
Info 2021-09-23 17:59:16: Notebook Session status file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb # Idle
Info 2021-09-23 17:59:16: Notebook Session status file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb # Busy
Info 2021-09-23 17:59:16: Notebook Session status file:///c%3A/Users/HP/Desktop/class2022-DS-TP/df_with_pandas/01-pandas_overview.ipynb # Idle
Info 2021-09-23 17:59:16: Waiting for idle on (kernel): a3bf514a-e02d-453e-bce9-ec7a9cccc4b7 -> idle
Info 2021-09-23 17:59:16: Finished waiting for idle on (kernel): a3bf514a-e02d-453e-bce9-ec7a9cccc4b7 -> idle
Info 2021-09-23 17:59:16: Process Execution: > ~\anaconda3\python.exe -m pip list
> ~\anaconda3\python.exe -m pip list

@DonJayamanne DonJayamanne removed their assignment Sep 23, 2021
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-jupyter Sep 23, 2021
@sbatten
Copy link
Member

sbatten commented Sep 24, 2021

Please see this setting editor.selectionHighlight
image

@sbatten sbatten closed this as completed Sep 24, 2021
@sbatten sbatten added the *as-designed Described behavior is as designed label Sep 24, 2021
@Badr-MOUFAD
Copy link
Author

The multiline selection bug persists even if I enable or disable this setting you mentioned

settings

@sbatten sbatten reopened this Sep 24, 2021
@sbatten sbatten removed the *as-designed Described behavior is as designed label Sep 24, 2021
@sbatten
Copy link
Member

sbatten commented Sep 24, 2021

I think I now see this is referring to the extra character highlighted before the cursor

@NotWearingPants
Copy link
Contributor

This reproduces for me. Works only in a Jupyter notebook cell, and the actual contents don't matter, just select a character in the middle of a line and then press up/down to extend the selection to another line.

@Badr-MOUFAD
Copy link
Author

Yes absolutely, @NotWearingPants !
This problem happens only in Jupyter notebooks. For this reason, I reported initially this issue in the vscode-Jupyter repository.
Unless there is something that needs to be fixed by vscode team, I totally ignore why they transferred the issue to vscode repository.

@rebornix
Copy link
Member

@Badr-MOUFAD @NotWearingPants can anyone of you test if you can reproduce this issue by running Code with --disable-extensions (you need to quit VS Code completely first).

@rebornix rebornix added the info-needed Issue requires more information from poster label Oct 11, 2021
@Badr-MOUFAD
Copy link
Author

As mentioned, I reproduced the issue while disabling all extensions (see gif below).

It turns out that the bug persists.

gif_reproduce_bug_disable_extension

@rebornix
Copy link
Member

I actually reproduced this issue in latest Insiders with GH Notebook, when word wrap is turned on

@rebornix rebornix assigned alexdima and unassigned rebornix Oct 22, 2021
@rebornix rebornix added editor-rendering Editor rendering issues and removed info-needed Issue requires more information from poster labels Oct 22, 2021
@alexdima
Copy link
Member

@rebornix The root cause is this CSS rule:

.notebookOverlay .cell .monaco-editor-background, .notebookOverlay .cell .margin-view-overlays, .notebookOverlay .cell .cell-statusbar-container {
    background: rgba(97, 97, 97, 0.04);
}

There are two problems that lead to this bug: the editor does not support transparent background colors and CSS targeting the .monaco-background class name should not be created outside of the editor core.

There are multiple reasons we don't support having the editor background be transparent, one is that it leads to very poor compositor speeds, as the compositor will spend a lot more CPU/GPU to blend these non-opaque layers. Also, the transparent editor background color will lead to poor rendering of fonts on Windows, which will no longer use LCD text rendering.

vscode

Kapture.2021-10-22.at.13.26.31.mp4

@alexdima alexdima assigned rebornix and unassigned alexdima Oct 22, 2021
@alexdima alexdima added notebook-cell-editor Bugs related to code editors in Notebooks (not intellisense / LS's) and removed editor-rendering Editor rendering issues labels Oct 22, 2021
@rebornix rebornix added the bug Issue identified by VS Code Team member as probable bug label Oct 22, 2021
@rebornix rebornix added this to the October 2021 milestone Oct 22, 2021
@rebornix
Copy link
Member

@alexdima thanks for the investigation and detailed explanation.

@misolori can you please help update the default colors we use in the core for cell editor background?

@miguelsolorio
Copy link
Contributor

miguelsolorio commented Oct 22, 2021

Doing a quick prototype of removing the transparency I can confirm that this fixes the issue:

CleanShot.2021-10-22.at.11.39.14.mp4

I'll work on finalizing the colors and push a fix shortly

@miguelsolorio
Copy link
Contributor

miguelsolorio commented Oct 22, 2021

The new default will use sideBar.background as the default as those colors are nearly an identical to what we achieved with the transparency trick.

Default Themes

image

GitHub Themes

image

@mjbvz mjbvz added the author-verification-requested Issues potentially verifiable by issue author label Oct 27, 2021
@rebornix rebornix added the verified Verification succeeded label Oct 28, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders notebook-cell-editor Bugs related to code editors in Notebooks (not intellisense / LS's) verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

9 participants