text:
Extremely slow Intellisense

Type: Bug
Intellisense is extremely slow on one of my projects. Number of files wise, it is the smallest. The only two things that are "different" with this project is that I use bun instead of npm (I tried using it on another project though, and did not see the issue) and that I have some 200GB sqlite files in the directory structure (though they are ignored in tsconfig et al).
VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:34:01.965Z)
OS version: Darwin arm64 22.3.0
Modes:
Sandboxed: Yes

System Info

Item
Value

CPUs
Apple M2 Max (12 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
2, 2, 2

Memory (System)
64.00GB (23.79GB free)

Process Argv
--crash-reporter-id baceda6d-5dd3-442f-8639-ba24bf49d7ae

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30660299
azure-dev_surveyone:30548225
pyindex848:30662994
nodejswelcome1cf:30587006
3biah626:30602489
pyind779cf:30662993
89544117:30613380
pythonsymbol12cf:30657549
vsctsb:30662444

Here is an example of "Loading" which can take 5 minutes.

Fore reference:
{
	"compilerOptions": {
		"lib": ["ESNext"],
		"module": "ESNext",
		"target": "ESNext",
		"moduleResolution": "node",
		"strict": true,
		"downlevelIteration": true,
		"skipLibCheck": true,
		"jsx": "preserve",
		"allowSyntheticDefaultImports": true,
		"forceConsistentCasingInFileNames": true,
		"esModuleInterop": true,
		"allowJs": true,
		"baseUrl": "./src",
		"paths": {
			"#/*": ["./*"]
		},
		"types": ["bun-types"]
	},
  "include": ["**/**.ts"],
	"exclude": ["data-files/**", "data-out/**"]
}

Hmmm.... I have moved all my data files out of the project, deleted the node_modules folder, and still have the issue. :/

I have also restarted VS Code a few times. I have two project windows open and the big project is fast as it ever was. The small one (and the one i am working on right now) just has Intellisense hung.

Hmmm, if I remove the tsconfig.conf file, Intellisense works again!

It is "strict": true that is causing Intellisense to stall for minutes at a time.

OK, it is "strict": true plus some code and types. Every time I try and reduce it down to a simple test the problem goes away.
But the type file that if missing, causes the problem to go away for sure is this:
type oneToFour = 1 | 2 | 3 | 4;
type oneToNine = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
type zeroToNine = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
export type YYYY =
  | `19${zeroToNine}${zeroToNine}`
  | `20${zeroToNine}${zeroToNine}`;
type MM = `0${oneToNine}` | `1${0 | 1 | 2}`;
type DD = `${0}${oneToNine}` | `${1 | 2}${zeroToNine}` | `3${0 | 1}`;
export type FullDateString = `${YYYY}-${MM}-${DD}`;
export type OptionalFullDateString = FullDateString | '';
export type Frame = `CY${YYYY}Q${oneToFour}I`;

That said, just including a simple project, this file, and using something like FullDateString is not quite enough to kill Intellisense. I can give access to private github or send the project via email if needed.


text:
Vscode 1.77 very slow on virtual machine, but not v.1.73

Type: Performance Issue
This performance issue appeared when our visual studio code was updated to the latest version 1.77 on our virtual environments that we use to code typescript.
The performance issue is that intellisense, "go to definition" functionality, hover tooltip is unbearably slow, taking several seconds for each.
However, downgrading to 1.73 fixes the problems.
VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T04:27:29.066Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Intel(R) Xeon(R) Gold 6242R CPU @ 3.10GHz (8 x 3093)

GPU Status
2d_canvas: unavailable_softwarecanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onopengl: disabled_offrasterization: disabled_softwareraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: disabled_softwarevideo_encode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_softwarewebgpu: disabled_off

Load (avg)
undefined

Memory (System)
24.00GB (7.10GB free)

Process Argv
--crash-reporter-id 4f7b8447-cbd2-46e3-afcc-897e5985aa7d

Screen Reader
no

VM
100%

Process Info
CPU %	Mem MB	   PID	Process
    0	    95	  7020	code main
    0	    41	  2120	   utility-network-service
    0	    29	  6700	   crashpad-handler
    0	   258	 16120	   window (ICalendarEvent.ts - Web - Visual Studio Code [Administrator])
    0	   106	 16124	   shared-process
    0	    78	   556	     fileWatcher
    0	    82	 16824	     ptyHost
    0	    79	 11072	       C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
    0	     8	 27712	         C:\WINDOWS\system32\cmd.exe /c ""C:\Program Files\nodejs\npm.cmd" start"
    0	    51	 26492	           "C:\Program Files\nodejs\\node.exe"  "C:\Users\TBEMVON\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" start
    0	     8	 28716	             C:\WINDOWS\system32\cmd.exe /d /s /c react-scripts start --max_old_space_size=4096
    0	    39	 25056	               electron_node react-scripts.js
    0	  1314	 24332	                 "C:\Program Files\nodejs\node.exe" C:\Users\TBEMVON\Documents\Repos\Boss\Web\Boss-web\ClientApp\node_modules\react-scripts\scripts\start.js --max_old_space_size=4096
    0	    67	 26216	                   "C:\Program Files\nodejs\node.exe" --max-old-space-size=2048 C:\Users\TBEMVON\Documents\Repos\Boss\Web\Boss-web\ClientApp\node_modules\fork-ts-checker-webpack-plugin\lib\typescript-reporter\reporter\TypeScriptReporterRpcService.js
    0	   385	 27456	                   "C:\Program Files\nodejs\node.exe" --max-old-space-size=2048 C:\Users\TBEMVON\Documents\Repos\Boss\Web\Boss-web\ClientApp\node_modules\fork-ts-checker-webpack-plugin\lib\typescript-reporter\reporter\TypeScriptReporterRpcService.js
    0	     9	 17472	       console-window-host (Windows internal process)
    0	    49	 21976	   utility
    0	    96	 23056	   issue-reporter
    0	   105	 26524	   extensionHost
    0	   119	 13916	     "C:\Users\TBEMVON\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=3072 "c:\Users\TBEMVON\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName C:\Users\TBEMVON\AppData\Local\Temp\vscode-typescript\c80123d0cb49eecc0b4b\tscancellation-016a1c632acb6aeec80f.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc
    0	   288	 13932	     "C:\Users\TBEMVON\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=3072 "c:\Users\TBEMVON\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName C:\Users\TBEMVON\AppData\Local\Temp\vscode-typescript\c80123d0cb49eecc0b4b\tscancellation-dc5fe11a5b48699f7c48.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc
    0	    95	  6728	       "C:\Users\TBEMVON\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:/Users/TBEMVON/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib/typingsInstaller.js" --globalTypingsCacheLocation C:/Users/TBEMVON/AppData/Local/Microsoft/TypeScript/4.8 --enableTelemetry --typesMapLocation "c:/Users/TBEMVON/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib/typesMap.json" --validateDefaultNpmLocation
    0	   124	 25972	     "C:\Users\TBEMVON\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\TBEMVON\.vscode\extensions\dbaeumer.vscode-eslint-2.4.0\server\out\eslintServer.js --node-ipc --clientProcessId=26524
    0	   147	 27392	   gpu-process

Workspace Info
|  Window (ICalendarEvent.ts - Web - Visual Studio Code [Administrator])
|    Folder (Web): 871 files
|      File types: tsx(193) ts(177) jsx(92) png(46) dll(23) json(20) cache(14)
|                  js(13) cs(12) svg(6)
|      Conf files: launch.json(1) settings.json(1) csproj(1) package.json(1)
|                  tsconfig.json(1) sln(1)
|      Launch Configs: chrome;

Extensions (3)

Extension
Author (truncated)
Version

vscode-eslint
dba
2.4.0

prettier-vscode
esb
9.10.4

powershell
ms-
2022.7.2

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
vsccc:30610678
pyindex848cf:30577861
nodejswelcome1cf:30587006
2e4cg342:30602488
pyind779cf:30657577
89544117:30613380
pythonsymbol12cf:30657549
vsccsb:30662443

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.77.3. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

What language is this for?

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

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!

source: gharchive/issue

authors: VSCodeTriageBot maxvbHIQ mjbvz

repo: microsoft/vscode

license: MIT

license_type: permissive

license_source: github-api


text:
The window terminated unexpectedly crash code "-1"

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

VS Code Version: 1.78.2
OS Version: 22621.265

Steps to Reproduce:

Install latest version of VSCode

Can you provide the crash logs following the steps at https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-a-crash-report, thanks!

now the bug is fixed automatically after 12-13hr, thanks!


text:
Need a way to force "disable" a plugin in a given workspace/project

In the same way, we can enable a vs code plugin in a project in a given workspace, etc.  I would like a way to prevent a plugin.
Some company would like to ensure that a plugin be disabled when using their project, for non-technical reason, etc.
Some plugin seems to work at the global level, and need to be "disabled" for a given project.
An example of those would be the generative AI type of plugin, but there are also others that we do not want the user to turn on, while working within a given project/workspace.

/duplicate
https://github.com/microsoft/vscode/issues/40239

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!

authors: VSCodeTriageBot hpe-ykoehler sandy081


text:
lintting

ADD ISSUE DESCRIPTION HERE
Version: 1.79.2
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Embedder: codespaces

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

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!


text:
代码提示很卡顿插件全部停用还是有次问题

Type: Bug
代码提示卡顿要3，4秒才能提示出来非常影响效率
VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:58:33.551Z)
OS version: Darwin arm64 22.6.0
Modes:

System Info

Item
Value

CPUs
Apple M1 Pro (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
3, 3, 3

Memory (System)
32.00GB (0.56GB free)

Process Argv
--crash-reporter-id 0636dae4-a14a-4866-8b30-870280c42765

Screen Reader
no

VM
0%

Extensions (19)

Extension
Author (truncated)
Version

simple-react-snippets
bur
1.2.7

turbo-console-log
Cha
2.9.6

npm-intellisense
chr
1.4.4

es7-react-js-snippets
dsz
4.4.3

gitlens
eam
14.0.1

EditorConfig
Edi
0.16.4

prettier-vscode
esb
9.19.0

auto-close-tag
for
0.5.14

auto-rename-tag
for
0.1.10

code-runner
for
0.12.0

vscode-react-typescript
inf
1.3.1

vscode-language-pack-zh-hans
MS-
1.79.2023061409

material-icon-theme
PKi
4.28.0

LiveServer
rit
5.7.9

vs-code-prettier-eslint
rve
5.1.0

code-spell-checker
str
2.20.5

open-in-browser
tec
2.0.0

vscode-import-cost
wix
3.3.0

ReactSnippets
xab
2.4.0

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30776702
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyonecf:30548226
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
2i9eh265:30646982
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
showindicator:30766890
pythongtdpath:30769146
i26e3531:30780429
pythonnosm12tcf:30779713
pythonidxpt:30772539
pythonnoceb:30776495
cmakesidepanelv2:30779593

感谢您创建此问题！
然而，由于您没有使用英语，我们很难进行处理。如果可能，请您将此问题描述修改为英文。请您直接编辑此问题，不要提交回复或新问题。
请注意，机器翻译服务通常无法处理用于讨论软件问题所需的技术性语言，所以我们推荐您寻找一位熟悉相关技术的人来协助翻译。
如果您无法做到，没有关系。此问题已经被标记为需要翻译，等待社区成员志愿进行翻译。

Thanks for creating this issue!
Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.
In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.
Otherwise, we have marked this as needing translation and a community member may be able to help out.

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!

authors: VSCodeTriageBot lugeRuthless


text:
[folding] Fold selection

In Visual Studio by doing Ctrl+M followed by Ctrl+H we were able to fold ANY regions in a code.
Could we please have an equivalent feature in Code. Thanks may God bless the dev team!

@alexandrudima FYI.

I think this feature request includes character-based (rather than line-based) code folding;
ex:
before folding:

after folding:

And I just wanted to point out that if this kind of feature were added, then myself and others could likely start working on extensions to handle these issues:

https://github.com/Microsoft/vscode/issues/3422 Language-Aware Folding
https://github.com/Microsoft/vscode/issues/29890 Custom Collapse Patterns
https://github.com/Microsoft/vscode/issues/12146 Fold Regions

And likely some other issues as well.

+1 for this feature request. It's one of the more annoying things things I've found by switching over to this IDE than NuSphere PHPEd.

Any update on this?

This would be indeed a very useful feature! I'm actually wondering if this is available in any other editors, apart from Visual Studio?

@paulomunoz: I'm not sure whether this is exactly what @bbofdoom is requesting but Atom has something that's, at least, similar (from https://flight-manual.atom.io/using-atom/sections/folding/):

Finally, you can fold arbitrary sections of your code or text by making a selection and then typing Alt+Cmd+Ctrl+F or choosing "Fold Selection" in the Command Palette.

Of course Sublime Text also has this.

I'd love to see this feature as well :)
BTW I love visual studio code. The dev team is an inspiration.

I'd like this as well

This is a fairly basic feature, please add

Badly need this. Please add

Back to coding after taking many years off. I've only been using VS Code for a week or so and already I see the need for this feature. Please add it, thanks!

Adding my vote for this feature. Great code folding includes folding selection(s).

Adding my vote as well, looking to hide lines that begin with a REGEX

Please add this feature! It makes such a difference and is something that I really miss after switching from Sublime to VS Code.

#50840 is required to implement this

Bump +1

Bump

Bump +1

@hanselmandrew @JanChodorowski @yijiangh please do not post empty "+1" responses, that is what reactions are for.

Or the Subscribe button in the top right. 👍

it is also pretty pointless. This issue has been ongoing for 2.5 years with zero indication it is even being considered. Still, we can now keep the cursor centred in the window when scrolling, so who needs basic functionality?

Vote for fold selection! It is painful to scroll over whole screen for jumping over large blocks of comments and reading the important code

need this feature baked in to vs code. but this extension does the trick : #region

I was looking for this feature. Using Datagrip I can fold part of my queries. Can't believe that code really does not has this function.

Really really really need this feature!
BTW, I don't think this feature request includes character-based (rather than line-based) code folding as @jeff-hykin mentioned.
Actually, this feature can be considered as folding all the selection lines, rather than characters. Maybe it will make the implementation easier.

I've been using SlickEdit for some time and it's a great editor but I decided to try VS Code since I'm tired of paying maintenance on SlickEdit. SlickEdit can fold on ANY regex pattern, and it's a line fold, not a character fold. It's called Selective Display.
This is an extremely beneficial feature for me because I review log files from embedded devices a LOT and it's great to collapse the log file based on a regex so I can see a pattern emerge when looking for specifically logged items.
VS Code appears to be very flexibile, but I was very disappointed when I found that it couldn't do this.
Also, it seems kind of silly to me to have to put #region, #pragma region, etc in the code to get it to fold when you could just use a regex to easily fold on anything.

@dwall60 Thanks for the feedback. Would you mind filing a separate issue that also shows a bit how this works in SlickEdit. I'm curious to know how users provide the regexes and how the regexes look like (one regex for the whole region, or separate start end regexes)

This would be indeed a very useful feature! I'm actually wondering if this is available in any other editors, apart from Visual Studio?

Yes. Sublime Text has had this for years.

I'll add my vote for this feature as well. Language aware folding might be nice, but just let me fold abritrary lines and you've got a solution already. I want to collapse, into a single line, every unit test in my file but for the one I'm working on. I want to collapse every controller method but for the one I'm working on. It's not enough to be able to collapse the functions themselves because that still displays the method signature.

There years... this issue still open.

came to post a request and found this issue laying around still :(
wont even bother.

Sadly it stills open

Sadly it stills open

Yes please, I do not think there is one cursor move I do all day, and that is putting at the begin and than CTRL + [, while I would love to just select and CTRL + whatever to do all parts folding that can be folded into each their own...
But I am afraid we are talking to some deaf ears as this is already requested ....> 3 years now?

How to fold/unfold selected contents？seems that folding/unfolding only works on the whole document.

Any update?
I'm trying to migrate from SublimeText to VSCode, but it seems both of them just can't replace another.

Sometime would be very helpful with this.

After 5 years of waiting, I'm glad to see the update. Thanks @aeschli !

So exciting to see this feature!

Thanks @aeschli! Do you have an idea of when this will actually be released? I can't wait to use.
Kudos to all your hard work (and to whomever else was involved).

Thank you very much! Never believed that would be released. I'm grateful! Thanks again!

The feature doesn't seem to work as it does in the referenced apps.  If I select a range in one line it doesn't do anything, folding part way through a line also doesn't work.  It only seems to be able to collapse whole lines

Yes. we still only support folding full lines, not subranges. So you need to select the lines to fold.

authors: BinaryShrub JBrace1990 JanChodorowski MartinJHammer Nice2Work Nick-Hopps RaptorX Tiedye Zhou-Yucheng ackvf aeschli bbofdoom bjoe88 coconewty commadelimited coodoo dbaeumer duk3m0n dwall60 eliumoraes hanselmandrew igorcmelo iladin jeff-hykin julesgilson mthines paulomunoz peterallcdn psycoxer r-amaral tjx666 tomatau tony-thomas-git yayayahahaha yijiangh yubaoquan


text:
input box in jupyter in vscode

Type: Bug
input box in jupyter in vscode will block the toolbar at the top.
inp = input()

after running the code, input box will appear at the top
VS Code version: Code 1.81.1 (Universal) (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:20:33.924Z)
OS version: Darwin arm64 22.6.0
Modes:

System Info

Item
Value

CPUs
Apple M2 (8 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
1, 2, 2

Memory (System)
16.00GB (0.34GB free)

Process Argv
--crash-reporter-id 083197f1-efd6-4859-b90e-7c12e4b3b560

Screen Reader
no

VM
0%

Extensions (16)

Extension
Author (truncated)
Version

vscode-language-pack-zh-hans
MS-
1.81.2023081609

python
ms-
2023.14.0

vscode-pylance
ms-
2023.8.30

jupyter
ms-
2023.7.1002162226

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

remote-containers
ms-
0.304.0

remote-ssh
ms-
0.102.0

remote-ssh-edit
ms-
0.86.0

remote-wsl
ms-
0.81.0

vscode-remote-extensionpack
ms-
0.24.0

remote-explorer
ms-
0.4.1

remote-server
ms-
1.4.0

markdown-all-in-one
yzh
3.5.1

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30792226
vscaat:30438848
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30803845
3biah626:30602489
89544117:30613380
2i9eh265:30646982
showlangstatbar:30737416
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofa:30804715
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076
diffeditorv1:30812748

This is by design that we use the quick input for the input in notebook editor in VS Code.

authors: palla-lin rebornix


text:
unable to run the html code in chrome

Type: Performance Issue
while trying to run my source code through chrome i am getting an error i.e., unable to launch chrome and getting optiuon to launch json what should i do to get my webpage as chrome
VS Code version: Code 1.84.1 (2b35e1e6d88f1ce073683991d1eff5284a32690f, 2023-11-06T12:35:59.022Z)
OS version: Windows_NT x64 10.0.25987
Modes:

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz (4 x 2995)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
7.74GB (2.58GB free)

Process Argv
--crash-reporter-id f22216eb-d1d0-4250-9e37-427ef0c98268

Screen Reader
no

VM
0%

Process Info
CPU %	Mem MB	   PID	Process
    1	   106	  8100	code main
    0	    41	  3032	   utility-network-service
    0	    92	  7780	window [2] (Issue Reporter)
    0	    94	  9100	shared-process
    0	   179	 11200	   gpu-process
    0	    77	 16612	fileWatcher [1]
    0	   111	 16660	extensionHost [1]
    0	    97	 17472	     electron-nodejs ("C:\Users\Lavanya\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\Lavanya\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\html-language-features\server\dist\node\htmlServerMain" --node-ipc --clientProcessId=16660)
    0	    29	 17252	   crashpad-handler
   18	   189	 17632	window [1] (divisions.html - HTML5 - Visual Studio Code)

Workspace Info
|  Window (divisions.html - HTML5 - Visual Studio Code)
|    Folder (HTML5): 13 files
|      File types: html(10) css(2) jpeg(1)
|      Conf files:;

Extensions (1)

Extension
Author (truncated)
Version

open-in-browser
tec
2.0.0

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30880072
vscaac:30438847
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
89544117:30613380
a9j8j154:30646983
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30869155
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30871694
pythonregdiag2:30871582
pyreplss2:30879913
pythonmypyd1:30879173
pythoncet0:30874138
pythontbext0:30879054
dsvsc017:30880892
dsvsc018:30880894
aa_t_chat:30882232

/gifPlease

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.
Happy coding!

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!


text:
Trying to debug C++ code running in a docker container with gdbserver but can't seem to connect

Hi all, I'm having an issue
I am experiencing an issue with remote debugging using cppdbg in dap-mode, where the debugger is not connecting to gdbserver running inside a Docker container. My setup involves a Docker container that runs gdbserver listening on port 5555. Although manual testing with gdb confirms that gdbserver is set up correctly and accessible, the VS Code debugger doesn't seem to make the connection.
Configuration:
launch.json
        {
            "name": "pipe to gdbserver",
            "type": "cppdbg",
            "request": "launch",
            "stopAtEntry": false,
            "program": "/app/tests/test_demux_via_umbilical/flight_segment_testbench/build/test_tx_mux",
            "args": [],
            "cwd": "${workspaceFolder}/tests/test_demux_via_umbilical/",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "sourceFileMap": {
                "/app/tests/test_demux_via_umbilical/": "${workspaceFolder}/tests/test_demux_via_umbilical/"
            },
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "pipeTransport": {
                "pipeProgram": "/bin/bash",
                "pipeCwd": "${workspaceFolder}/tests/test_demux_via_umbilical/",
                "pipeArgs": [
                    "${workspaceFolder}/tests/test_demux_via_umbilical/run.sh"
                ],
                "debuggerPath": "/usr/bin/gdb"
            }
        },

Dockerfile
# Use the official Docker Hub Ubuntu 20.04 base image
FROM ubuntu:20.04

ARG DEBIAN_FRONTEND=noninteractive
# Update the base image
RUN apt-get update && apt-get upgrade -y

# Install the necessary build tools
RUN apt-get install -y build-essential cmake gdb gdbserver libavformat-dev
# NOTE only needed for command line or popen calls, not for the api
RUN apt-get install -y ffmpeg

EXPOSE 5555

# create a new non-root user and group with name 'user'
ARG HOST_UID
ARG HOST_GID
RUN groupadd -g ${HOST_GID:-1000} user && useradd -u ${HOST_UID:-1000} -g ${HOST_GID:-1000} -m user
# Set the permission for /app directory
RUN mkdir -p /app && chown -R user:user /app

# Set the working directory to /app
WORKDIR /app

USER user

# Copy the current directory contents (where the Dockerfile is located, which should also contain your CMakeLists.txt file and source code)
# into the container at /app
ADD --chown=user:user . /app

VOLUME /app/tests/test_demux_via_umbilical/flight_segment_testbench
# Switch to test_demux_via_umbilical
WORKDIR /app/tests/test_demux_via_umbilical/flight_segment_testbench
# Build the project
RUN rm -rf build && mkdir -p build && cd build && cmake ../ && make

# Specify the command to run when the container starts
CMD [ "gdbserver :5555 ./build/test_tx_mux" ]

run.sh
#!/bin/bash
NAME="demux_via_umbilical"
if [ "$(docker ps -aq -f name=${NAME})" ]; then
    # cleanup
    echo "Container ${NAME} is not deleted. Removing now ..."
    docker rm --force ${NAME}
fi

docker run --rm --cap-add=sys_ptrace --security-opt seccomp=unconfined -p 5555:5555 \
    -v /home/reggiemarr/Projects/downlink-client/tests/test_demux_via_umbilical/flight_segment_testbench/build:/app/tests/test_demux_via_umbilical/flight_segment_testbench/build \
    -v /home/reggiemarr/Projects/downlink-client/tests/test_demux_via_umbilical/flight_segment_testbench:/app/tests/test_demux_via_umbilical/flight_segment_testbench \
    -w /app/tests/test_demux_via_umbilical/flight_segment_testbench/build -u 1000:1000 --name demux_via_umbilical downlink-client_demux_via_umbilical \
    gdbserver :5555 /app/tests/test_demux_via_umbilical/flight_segment_testbench/build/test_tx_mux

When running this configuration from dap-debug I'm able to get docker logs and I'm able to connect when invoking gbd from the command line but for some reason I can't get the connection through pipeTransport to work
What I've tested
note I've tested the following:
after starting the debug session I ran this
❯ docker logs demux_via_umbilical
Process /app/tests/test_demux_via_umbilical/flight_segment_testbench/build/test_tx_mux created; pid = 10
Listening on port 5555

which indicates that the docker container is up and running but not connected
I then used gdb to connect manually:
❯ gdb
(gdb) file test_tx_mux
Reading symbols from test_tx_mux...
(gdb) target extended-remote localhost:5555
Remote debugging using localhost:5555

(gdb) b downlink.h:113
No line 113 in file "downlink.h".
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) b downlink.cpp:113
Breakpoint 1 at 0x55555555b79d: file /app/tests/test_demux_via_umbilical/flight_segment_testbench/downlink.cpp, line 114.
(gdb) c
Continuing.
[Detaching after vfork from child process 11]

(gdb) set substitute-path /app/tests/test_demux_via_umbilical /home/reggiemarr/Projects/downlink-client/tests/test_demux_via_umbilical/
(gdb) c
Continuing.

Breakpoint 1, TX_ActiveMux::genDownlinkDatagrams (this=0x7fffffffea40, out=...) at /app/tests/test_demux_via_umbilical/flight_segment_testbench/downlink.cpp:114
114             cout << stateName[state] << "\n";
(gdb)

And I see that the docker logs now indicate that a connection has been made.
❯ docker logs demux_via_umbilical
Process /app/tests/test_demux_via_umbilical/flight_segment_testbench/build/test_tx_mux created; pid = 10
Listening on port 5555
Remote debugging from host 172.17.0.1, port 50754
Detaching from process 11

Please file this on the repo for the debug extension you're using, since the debugger would be responsible for this, and this one isn't build into vscode- thanks

authors: ReggieMarr roblourens


text:
[Meta] Enable windows 11 context menu by default in Stable

Bug tracks the pending tasks to be completed before the feature can be promoted to stable releases.

[ ] :runner: Context menu not appearing on some setups even after successful appx installation (https://github.com/microsoft/vscode/issues/184676, https://github.com/microsoft/vscode/issues/171911)
[ ] :runner: Uninstallation takes longer time when context menu is installed (https://github.com/microsoft/vscode/issues/164689)
[ ] :runner: Context menu not showing up in Windows Arm64 (https://github.com/microsoft/vscode/issues/164464)
[ ] Run as administrator does not trigger UAC elevation prompt when launching application from context menu (https://github.com/microsoft/vscode/issues/180065)

Run as administrator does not trigger UAC elevation prompt when launching application from context menu

I believe that microsoft/vscode-explorer-command#17 will resolve it.

@ArcticLampyrid ... yes it does .... but it pops up a cmd box for a second ... would be fine to have a native implementation

@arambazamba Actually I did not call cmd. And I did not see a cmd box on my machine (Win11).

PowerToys offers this as a setting for several of their tools.  Change is immediate and shows no cmd.

Is this in 2024 roadmap? Are we waiting for some Windows 11 update to improve whole context menu integration?

https://ae3.info/stuff/troy vscode.gif

https://www.reddit.com/media?url=https%3A%2F%2Fpreview.redd.it%2Fydgpgd26depc1.gif%3Fformat%3Dmp4%26s%3Df5acfa257d051e30647bbf111b29d5d73c34ff86

Yes this is on roadmap for 2024, we have movement on couple of the issues linked above and I need follow-up on them next milestone.

Yes this is on roadmap for 2024, and has been since october 2022

fixed it for you

I was unable to reproduce in Build Final, Beta, Dev and Canary and also in Sandbox.

A quarter has passed now, have you made any progress?
Is the API of Win11 really so bad that we spent three months still unable to integrate it correctly?

Will this be available in stable before we reach windows 12?

This issue used to appear on their monthly milestone/iteration plans. Unfortunately, @deepak1556 moved it to their internal backlog in May, which suggests it's no longer on the 2024 roadmap. In my general experience, a backlog is usually a death sentence.
It's disheartening to admit that it has been three years since the community has repeatedly requested the return of this crucial productivity feature, which was lost with the release of Windows 11. I'm disappointed that the VS Code team hasn't been able to resolve the issues surrounding the Windows 11 context menu in all this time.
As a reminder, you can manually implement this context menu by modifying your VS Code installation. Please note that this is not an official Microsoft solution, so proceed at your own risk. However, I’ve used both methods mentioned below for years without any problems.
That said, I want to acknowledge the user @strear, who first identified a workable solution back in December 2021, for which I'm incredibly grateful for their efforts. I had provided a detailed set of instructions, following their method here.
More recently, an alternative method was posted by @Chigusa0w0 in June of 2023. This newer approach is arguably simpler, as it does not require you to build or self-sign an AppX package. I would recommend considering this newer method.

Seems like this feature becomes a meme😂

I’ve developed a robust MSI installer that incorporates the latest custom solution by Chigusa0w0, along with a few improvements. While the solution is not digitally signed, rest assured that everything is transparent and built through a pipeline, including the MSI installer itself.
What’s the best way to share it with the community without stepping on anyone's toes? For example:
Can I post the link to the MSI here?
Do I need to replace "Microsoft" with a made-up company name, and "VSCode" or "Visual Studio Code" with something else?
Or something else entirely?
Is anyone interested?

I’ve developed a robust MSI installer that incorporates the latest custom solution by Chigusa0w0, along with a few improvements. While the solution is not digitally signed, rest assured that everything is transparent and built through a pipeline, including the MSI installer itself.
What’s the best way to share it with the community without stepping on anyone's toes? For example:
Can I post the link to the MSI here? Do I need to replace "Microsoft" with a made-up company name, and "VSCode" or "Visual Studio Code" with something else? Or something else entirely?
Is anyone interested?

Sure, I'd be interested as I'm sure others would -- it sounds great. Though respectfully, I don't know you and I wouldn't be prepared to blindly take your word on what that installer is doing. Put the code on GitHub so that others can than verify for themselves that your solution isn't malicious. Include the MSI installer as a release file.

I’ve developed a robust MSI installer that incorporates the latest custom solution by Chigusa0w0, along with a few improvements. While the solution is not digitally signed, rest assured that everything is transparent and built through a pipeline, including the MSI installer itself.
What’s the best way to share it with the community without stepping on anyone's toes? For example:
Can I post the link to the MSI here? Do I need to replace "Microsoft" with a made-up company name, and "VSCode" or "Visual Studio Code" with something else? Or something else entirely?
Is anyone interested?

Sure, I'd be interested as I'm sure others would -- it sounds great. Though respectfully, I don't know you and I wouldn't be prepared to blindly take your word on what that installer is doing. Put the code on GitHub so that others can than verify for themselves that your solution isn't malicious. Include the MSI installer as a release file.

Sure, I'd be interested as I'm sure others would -- it sounds great. Though respectfully, I don't know you and I wouldn't be prepared to blindly take your word on what that installer is doing. Put the code on GitHub so that others can verify for themselves that your solution isn't malicious. Include the MSI installer as a release file.

Sure, that was the plan from the beginning. I'm still waiting for feedback about the name change, though.

All right, here it is:
https://github.com/BartoszRojek/CodeModernExplorerMenu

works with both system and user installation locations
support the case when VSCode runs as Administrator, thanks to https://github.com/microsoft/vscode-explorer-command/pull/17
works for Devices and drives, thanks to https://github.com/microsoft/vscode-explorer-command/pull/16
future VSCode updates won’t break the menu, thanks to huutaiii

@deepak1556 I hope that you don't mind, let me know otherwise.

authors: ArchemedIan ArcticLampyrid BartoszRojek SimplyAddons arambazamba deepak1556 kybarg maisondasilva phuze robin-samuel schallm tompetk


text:
Quick search: editor state is not cleared

When I get preview editor opened from quick search, and then press ESC, the preview editor is still there:

Hm, this seems to be related to the fact that the tab I have opened is a match in quick search, it does not reproduce when I search for something else 🤔

Oh, so the repro steps are:

open a file
quick search for something that appears in the open file and a closed file.
navigate through to the results in the closed file, then back to the results in the open file.
There is a preview editor still opened for the file that was previously closed.

I can confirm that this happens.

authors: andreamah bpasero


text:
performance issue

Type: Performance Issue
Hello, my visual studio code is being so laggy the scrolls arent smooth at all. I have tried deleting it and installing it many times from different sources but its still the same, I hope I can get some help.
Thank you,
VS Code version: Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:33:54.889Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz (12 x 2688)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
7.74GB (0.95GB free)

Process Argv
--crash-reporter-id 01fbab3a-d09c-4d59-bbb2-0930e891e8c6

Screen Reader
no

VM
0%

Process Info
CPU %	Mem MB	   PID	Process
    0	   111	  5304	code main
    0	   101	  6992	window [2] (Issue Reporter)
    0	    57	  8292	fileWatcher [1]
    0	    74	  9740	shared-process
    0	    28	 10244	   crashpad-handler
    0	    98	 14248	extensionHost [1]
    0	    62	  2084	     electron-nodejs (server.js )
    0	    54	 11132	     "D:\d\kowshek\Sem 8\Microsoft VS Code\Code.exe" "d:\d\kowshek\Sem 8\Microsoft VS Code\resources\app\extensions\css-language-features\server\dist\node\cssServerMain" --node-ipc --clientProcessId=14248
    0	    96	 15464	     "D:\d\kowshek\Sem 8\Microsoft VS Code\Code.exe" "d:\d\kowshek\Sem 8\Microsoft VS Code\resources\app\extensions\html-language-features\server\dist\node\htmlServerMain" --node-ipc --clientProcessId=14248
    0	    52	 17896	     electron-nodejs (server.js )
    0	    92	 19324	     "D:\d\kowshek\Sem 8\Microsoft VS Code\Code.exe" "d:\d\kowshek\Sem 8\Microsoft VS Code\resources\app\extensions\markdown-language-features\server\dist\node\workerMain" --node-ipc --clientProcessId=14248
    0	    40	 16580	   utility-network-service
    0	    59	 16904	ptyHost
    0	    63	  9084	     C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"d:\d\kowshek\Sem 8\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}"
    0	     7	 18524	     conpty-agent
    0	   160	 17144	   gpu-process
    0	   310	 18740	window [1] (Settings - Angular - Visual Studio Code)

Workspace Info
|  Window (Settings - Angular - Visual Studio Code)
|    Folder (Angular): 5 files
|      File types: json(1) jpg(1) html(1) css(1)
|      Conf files: settings.json(1);

Extensions (3)

Extension
Author (truncated)
Version

vscode-html-css
ecm
2.0.9

vscode-css-peek
pra
4.4.1

LiveServer
rit
5.7.9

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes516:30244333
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelc:31048052
dsvsc021:30996838
jg8ic977:31013176
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
pythonprt:31056678
dwnewjupytercf:31046870
26j00206:31048877

Please follow the steps from https://github.com/microsoft/vscode/wiki/Performance-Issues#profiling-the-renderer-process and attach the cpu profile. Thanks!

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!

authors: Kowshek VSCodeTriageBot deepak1556


text:
terminal not open

Type: Bug
it show thst the terminal proces failed to launnch: access was denied to the path containg your executable
and i check all th epath stepwhich it was shown and nothing happen
VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz (4 x 1995)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
3.91GB (0.77GB free)

Process Argv
--crash-reporter-id fbe0827b-849f-4e2e-82b5-a2ac82c400e7

Screen Reader
no

VM
0%

Extensions (8)

Extension
Author (truncated)
Version

code-runner
for
0.12.2

cmake-tools
ms-
1.18.42

cpptools
ms-
1.21.0

cpptools-extension-pack
ms-
1.3.0

js-debug-nightly
ms-
2024.6.2117

react-native-text-watcher
sup
1.0.2

cmake
twx
0.0.17

vscode-java-debug
vsc
0.57.0

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelc:31048052
dsvsc021:30996838
945dj816:31013170
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
legacy_priority:31077528

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.
Happy Coding!


text:
The drag and drop function is no longer functional in the latest code

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

work success
Version: 1.90.2
Commit: Unknown
Date: Unknown
Electron: 29.4.0
ElectronBuildId: undefined
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 6.5.0-41-generic

work failed
Version: 1.91.0
Commit: Unknown
Date: Unknown
Electron: 29.4.0
ElectronBuildId: undefined
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 6.5.0-41-generic

This issue occurs when opening a webview type window while developing extensions
Steps to Reproduce:

I use mdn demo https://mdn.github.io/dom-examples/drag-and-drop/copy-move-DataTransfer.html
add html to webview html
open webview .dragover loss,and can't drop

I use tag 1.90.2 compile and run vscode-oss work .but use latest commit aea213b7fcc7de5c24ad797ac1af209b159d451f doesn't work.

Does the technique described at https://github.com/microsoft/vscode/issues/213045#issuecomment-2158437545 get you to the exact commit where the problem appeared?

Does the technique described at #213045 (comment) get you to the exact commit where the problem appeared?

https://github.com/microsoft/vscode/commit/51917e869e4d643f9ecd5cfc6b618ba264d905c1
After constantly switching commit. I found that after submitting '51917e869e4d643f9ecd5cfc6b618ba264d905c1', there was an abnormal drag in the webview
And according to the submitted information, it was found that when dragging inside the 'webview', it is necessary to hold down the 'shift' to drop it inside the 'webview'. Is this a normal operating behavior
Cannot hold down 'shift' before dragging, it is necessary to hold down while dragging, which is a strange operation behavior

And according to the submitted information, it was found that when dragging inside the 'webview', it is necessary to hold down the 'shift' to drop it inside the 'webview'. Is this a normal operating behavior

I believe it is expected operating behavior
@mjbvz said this on the original issue

Here's the behavior we want:

If the user drags a file over a webview without holding shift, they see the editor drop overlay. Dropping the file opens in that editor group
Once the user presses shift while dragging, they instead start dropping the content into the webview. The drop overlay should now go away
Once the user releases shift, the drop overlay shows again
Also the tooltip indicates that the user should hold shift to drop a file into the editor

And according to the submitted information, it was found that when dragging inside the 'webview', it is necessary to hold down the 'shift' to drop it inside the 'webview'. Is this a normal operating behavior

I believe it is expected operating behavior
@mjbvz said this on the original issue #182449

Here's the behavior we want:

If the user drags a file over a webview without holding shift, they see the editor drop overlay. Dropping the file opens in that editor group
Once the user presses shift while dragging, they instead start dropping the content into the webview. The drop overlay should now go away
Once the user releases shift, the drop overlay shows again

Also the tooltip indicates that the user should hold shift to drop a file when using the editor view. Maybe we should include a similar tooltip when dropping into webviews?

Hello swordensen,
I also meet this situation when I want to drag files on to webView, and I saw you already fixed and merged in https://github.com/microsoft/vscode/pull/209211. But I didn't find related information in the change log from v1.90.1 and v1.90.2. Do you have a plan to release the pull request?

And according to the submitted information, it was found that when dragging inside the 'webview', it is necessary to hold down the 'shift' to drop it inside the 'webview'. Is this a normal operating behavior

I believe it is expected operating behavior
@mjbvz said this on the original issue #182449

Here's the behavior we want:

If the user drags a file over a webview without holding shift, they see the editor drop overlay. Dropping the file opens in that editor group
Once the user presses shift while dragging, they instead start dropping the content into the webview. The drop overlay should now go away
Once the user releases shift, the drop overlay shows again

Also the tooltip indicates that the user should hold shift to drop a file when using the editor view. Maybe we should include a similar tooltip when dropping into webviews?

not editor=>webview or webview => editor;
Internal drag in webview will fail

Holding shift to drop is expected when dropping external content into a webview, such as from the explorer. However it's unexpected here as there's no file content on the drag event that could be opened in an editor. That's why you don't see even any overlay that mentions holding shift
I'm going to revert #209211 for now until we can get a more reliable fix for the original issue

I see I didnt understand the issue. I didn't run into it myself because I was only dealing with dragging and dropping files.
Maybe we should only bubble up the drag event if the user is dragging a file.

Okay, so I updated my new PR so that only drag events coming from outside the editor with a file will be consumed by the new drag event listener.
Now internal drag events will not be blocked.
https://github.com/microsoft/vscode/assets/21202515/89032354-23c4-41a1-b9ab-09aa529884ce

I'm unable to view the full mp4s or download them on MS Edge on Windows. I wonder if they got corrupted.
The MDN demo seems to work on my end, now.
Verified.

Kindly make an immediate release with the solution as this is blocking our production release for a plugin which uses drag drop feature.

The issue has been closed and verified, so this issue should be fixed in the incoming Stable Recovery release, coming this week.

[like]  Sachin Shivagonda Ibrahimpur reacted to your message:

From: Michael Lively @.>
Sent: Tuesday, July 9, 2024 8:25:22 PM
To: microsoft/vscode @.>
Cc: Sachin Shivagonda Ibrahimpur @.>; Comment @.>
Subject: Re: [microsoft/vscode] The drag and drop function is no longer functional in the latest code (Issue #219047)
The issue has been closed and verified, so this issue should be fixed in the incoming Stable Recovery release, coming this week.
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode/issues/219047#issuecomment-2218667332, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALKQNNMZY7TZKG7FEERQFYTZLRBLFAVCNFSM6AAAAABKA5EKI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJYGY3DOMZTGI.
You are receiving this because you commented.Message ID: @.***>
------------------------------------------------------------------------------ Disclaimer: The following terms shall apply to the recipients of the mails received from Celestial Systems. The content of this email is intended for the person or entity to which it is addressed only. This email may contain confidential information. If you are not the person to whom this message is addressed, be aware that any use, reproduction, or distribution of this message is strictly prohibited. If you received this in error, please contact the sender and immediately delete this email and any attachments ----------------------------------------------------------------------------------------

@mjbvz This problem was reintroduced in vscode 1.92.0
The way that I can reproduce is to do an interactive rebase (GUI) via GitLens

I thought this might happen, if the maintainers want to merge in the recovery branch into main I don't mind handling conflicts on my fix PR https://github.com/microsoft/vscode/pull/219148

I also noticed that the problem was re-introduced in version 1.92.0. It worked fine in 1.91.0.
Related ticket in ThunderClient: #1567

I also noticed that the problem was re-introduced in version 1.92.0 using ThunderClient. It worked fine in vscode 1.91.0. Related issue in ThunderClient: #1567
Please re-open this issue.

afaik the bug was introduced in 1.91.0 resolved in 1.91.1 and re-introduced in 1.92.0 . A fix has been merged into main but, it has not been released.
However, if you can re-create the issue by building from source with the latest changes please let me know and I will look into it.
In the meantime, we have to wait for the next release/patch before the fix is available.

Hi all, Logic Apps vscode extension is also having trouble with the drag and drop experience no working inside our own webview. This really hits out main experience in the extension, therefore users can't use it correctly. Could you please make a hotfix for the 1.92.x version?  . https://github.com/Azure/LogicAppsUX/issues/5265

This is now fixed in vscode 1.92.1. Thank you so much!

authors: Yoyokrazy ZoolMons ccastrotrejo daulis gjsjohnmurray mjbvz rzhao271 ssibrahimpur stefanfrings2 swordensen wszgrcy


text:
Images not showing

Type: Bug
Images in html are broken.
VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
13th Gen Intel(R) Core(TM) i7-13620H (16 x 2918)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
undefined

Memory (System)
15.71GB (7.12GB free)

Process Argv
--crash-reporter-id 8748a189-9f69-4977-9396-e69260a7a748

Screen Reader
no

VM
0%

Extensions (12)

Extension
Author (truncated)
Version

composer-php-vscode
DEV
1.52.16226

intelli-php-vscode
DEV
0.12.15062

phptools-vscode
DEV
1.52.16226

profiler-php-vscode
DEV
1.52.16226

html-preview-vscode
geo
0.2.5

vscode-latex
mat
1.3.0

latex-previewer
mjp
0.9.9

debugpy
ms-
2024.12.0

python
ms-
2024.14.1

vscode-pylance
ms-
2024.10.1

LiveServer
rit
5.7.9

latex-viewer
Sap
0.0.1

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
f3je6385:31013174
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
impr_priority:31102340
nativerepl1:31139838
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31132770
wkspc-ranged-t:31151552
cf971741:31144450
defaultse:31146405
iacca1:31156133
notype1cf:31157160
controlgs:31153265
5fd0e150:31155592

/needsMoreInfo
Please specify how it's related to VS Code editor itself with  steps to reproduce and code samples.

https://www.w3schools.com/html/html_images.asp

Closing due to lack of reproducible steps.

authors: IllusionMH MThomadakis aeschli jd-apprentice


text:
Unable to sign in

Type: Bug

Click the profile icon in the sidebar
Click the sign in button
Nothing happens post that

VS Code version: Code 1.95.2 (e8653663e8840adaf45af01eab5c627a5af81807, 2024-11-07T11:07:22.054Z)
OS version: Windows_NT x64 10.0.19045
Modes:

/duplicate https://github.com/microsoft/vscode/issues/232516#issuecomment-2467966702

authors: TylerLeonhardt karananeja


text:
Feature Request: Reload when extensions update finishes

While extensions are installed / updated, the Extension icon changes to have a small clock.
When done it swaps to original icon.
Please add a new icon with a similar color exclamation mark or checkmark to denote that ALL updates/installs have finished, and add an event that clicking it will cause a reload message and reload upon accepting it. Instead of me having to scroll again in the extension list and find the first updated extension i can and click its own green "reload" button.
I could trace that to the  ExtensionEditor.css file, adding a new style like:
extension-editor > .body > .content.loading.done  or .content.loading.complete (what ever the right way to name it) and adding a new file loadingdone.svg as its background url.
I just have no idea how to create an actionable event that pressing that button will be the equivalent to reloading VS.
Wish i had more time to make a PR, so instead i just created this issue hoping someone can continue this :)
Alternatively or complimentary, having an option to set in the configuration that it will auto reload upon completing all updates.

Our C++ extension would also like VS Code to expose an "auto-reload" setting, because during our installation the user will otherwise have to click a Reload button 2 times.

The one issue with "auto-reloading", if it works like ctrl-f5, it currently kills your terminal. So that should be addressed as well. Ideally you can make changes and it would JustWork™. I notice that when I load npm modules I have to basically kill terminal because I have force-refresh before the module is registered.

While @sean-mcmanus needs an auto-reload feature, I don't.
My request still falls in the realm of manual operation.
I only asked for a visual cue that ALL of the extensions finished updating, a means to press the extension button to do a reload or pop the message you get today, when you do click the green Unload button asking for user permission to reload.
Perhaps the issue Sean has might have a different alternate method of implementation or require a complete rethinking of how extension engine works to accommodate that scenario but its not what my feature request is all about :)

We won't ever have auto reload, it just opens too many doors for failure.
This is a good idea. I'd place an action at the top of the viewlet though, to reload due to any extension having been updated.

@joaomoreno I think that isn't the best placement actually as pressing the extension button on the left bar, can hide the extension window while updating still occurs.
Using the extension icon on the extension button on the left bar makes a bit more sense in terms of behavior consistency as that icon already changes to have a small clock on the lower left side when the update is in progress. Simply using a different graphic for when ALL of the extensions finished updating will serve as a cue, even if said user did hide the extension window to get more screen space as he continued writing code.

Using the extension icon on the left bar makes a bit more sense in terms of behavior consistency as that icon already changes to have a small clock on the lower right side when the update are in progress.

Or it doesn't make sense, since no other viewlet icon has double click areas depending on their badges. I would avoid creating a new UI concept for this.

Simply using a different graphic for when ALL of the extensions finished updating will serve as a cue, even if said user did hide the extension window to get more screen space as he continued writing code.

I don't mind if the condition is either ANY or ALL. But let's stay standard in where actions appear in the UI.

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!

authors: ArieHein VSCodeTriageBot babakness joaomoreno sean-mcmanus


text:
I can't open folder dialog

Issue Type: Bug

open app on windows
click "Open Folder" button
do nothing

VS Code version: Code 1.28.2 (7f3ce96ff4729c91352ae6def877e59c561f4850, 2018-10-17T00:23:51.859Z)
OS version: Windows_NT x64 10.0.17134

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6 x 2808)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
23.92GB (20.51GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions: none

@DarkTemplar008 can you please attach a screen recording? Are you potentially running in full-screen mode? I wonder if the dialog is behind or off-screen.

/needsMoreInfo

good job, with new editon, it doesn't happen any more
my best editor, not vim


text:
Comments precondition not respected

Refs: https://github.com/microsoft/vscode/issues/74472
Have an extension (you can take the comment sample) that contribues the following in the package.json
{
					"command": "mywiki.startDraft",
					"group": "inline",
					"precondition": "commentThread == draft",
					"when": "commentThread != draft"
				}

Note that this action should always be disabled, since the precondition is the opposite of the when clause. However the action does not appear as disabled, but enabled

Duplicate of https://github.com/microsoft/vscode/issues/74541, "precondition" should be "enablement"

authors: RMacfarlane isidorn


text:
not close git-branch window when focus-out

Issue Type: Bug
F1 window close when focus-out.
press the branch mark at the lower left of vscode, the focus is not closed.

VS Code version: Code 1.35.1 (c7d83e57cd18f18026a8162d042843bda1bcf21f, 2019-06-12T14:30:02.622Z)
OS version: Windows_NT x64 10.0.18362

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2400)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
3.93GB (1.39GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (5)

Extension
Author (truncated)
Version

gitlens
eam
9.8.2

EditorConfig
Edi
0.13.0

vscode-language-pack-ja
MS-
1.35.1

vscodeintellicode
Vis
1.1.7

vscode-icons
vsc
8.8.0

It was the same.


text:
Deprecated Tag strikethrough renders strangely multicolored

Testing #78096
When a strikethrough renders over some text it can change opacity and color multiple times depending on the underlying tokens. This makes the strikethrough look bad IMO. It should be one solid color and above the underlying text.
When two diagnostics overlap, it can be even worse:

Yeah, I agree but I am unsure if that can be achieved. We use text decorations and I believe that always picks up the foreground color. Tho, I believe in real world this will be less funky as language brains are likely only striking out single tokens/words not multiple tokens/statements.
@alexandrudima Do you have an idea how we draw the strikeout different? Some special decoration?

Turns out that text-decoration-color exists: https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-color

authors: jrieken sbatten


text:
VS Code fails to open from file explorers address bar

Issue Type: Bug
VS Code fails to open from windows file explorer address bar (when writing "code" + enter). Instead it prompts an "Open with..." dialog. When chosing Visual Studio Code, it opens a sh script named code within
C:\Users<user>\AppData\Local\Programs\Microsoft VS Code\bin
This used to work previously.
VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z)
OS version: Windows_NT x64 10.0.18362

Can you record a screen recording to show me what you mean?

Hi,
I failed to record explorer actions with built in windows 10 recorder.
Here is a poor quality mobile phone recording.
As soon as I hit enter after typing "code" in the address bar of file
explorer, I expect VS code to open up, not the program selector.
After selecting Visual Studio Code, it opens up displaying a .sh script.
Den fre 30 aug. 2019 kl 14:10 skrev João Moreno notifications@github.com:

Can you record a screen recording to show me what you mean?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/79638?email_source=notifications&email_token=AKJTOKFHJ2HQ4R6MNSKSY63QHEE3NA5CNFSM4IOUXW32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5ROULY#issuecomment-526576175,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKJTOKAVAA4WZV3SVXJN2EDQHEE3NANCNFSM4IOUXW3Q
.

@joaomoreno
Type code in the file explorer, it should open the cat folder

@sbatten Would you happen to know how to achieve this?

I have to do a correction to my error description.
I wrote : "This used to work previously"
Previously starting VS code from file explorer it did open VS code, but it didn't open the file explorer path as "open folder" which I hoped to.
The current version is worse in the sense that it opens the program "Open with" dialog.

In the Open with dialog, if you pick Code and choose "always use Code", does it fix it?

This sounds more like an issue with Windows than Code.

Don't have the "always use Code" option in the "Open with.." dialog that pops up. Running the latest Windows 10 (1903).

If I run cmd or powershell from file explorer it works. they opens up with current directory set to where file explorer pointed to.

@joaomoreno no, idk how this is hooked up normally, maybe someone from the terminal team is familiar with this functionality?
@Tyriar can you cc someone from there if you don't know?

This is happening because it's seeing code the sh script in the bin directory which takes precedence over code.cmd, you can run the Windows CLI by entering code.cmd .. It will open an annoying conhost window, that is happening because it's a script that needs to be run inside a shell.
cmd/powershell work because only the exe is on the path, you could achieve what you're after by adding the folder containing code.exe to your Path and running code.exe in explorer, however you might the exe will need to be low priorities otherwise you might not be able to run the CLI in your terminal.

I can understand why you close this issue.
Still, from a user perspective, I think it is annoying to type code.cmd.
Also as a windows user I expect VS code to open the the path with "open folder" like cmd.exe and powershell.exe does. If it does not, I see no reason to type code.cmd in the file explorers address bar.

The reason is because code needs to be on the path in order to enable git bash/cygwin support. Typing in an exe/script into the explorer address bar is used significantly less than that.

authors: Tyriar joaomoreno sbatten tpvin


text:
Webpack guidance does not explain how to launch as debug

Issue Type: Bug
I am trying to webpack my extension as described at https://code.visualstudio.com/api/working-with-extensions/bundling-extension and the linked repositories, and I am having trouble testing my extension under the debugger.
I have tried two approaches, one based on the webpack-extension sample and one on the vscode-references-view referred to in the article.
If I set launch.json > preLaunchTask to npm: watch, then if I make an edit and hit F5, webpack --watch doesn't complete in time, and I find myself running the previous edit of the extension.
If I set launch.json > preLaunchTask to npm: webpack, then it takes many seconds (as my extension is quite big) for webpack to do its thing, so it becomes quite painful to test frequently.
It would be good to have clear and specific guidance on exactly how to configure launch.json and the NPM scripts to enable accurate but rapid testing in the bundled environment.
VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z)
OS version: Windows_NT x64 10.0.18912

System Info

Item
Value

CPUs
Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz (12 x 3492)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwareoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
63.93GB (38.61GB free)

Process Argv
--folder-uri file:///d%3A/GitHub/vscode-kubernetes-tools

Screen Reader
no

VM
0%

Extensions (17)

Extension
Author (truncated)
Version

better-toml
bun
0.3.2

gitlens
eam
9.9.3

EditorConfig
Edi
0.13.0

vscode-pull-request-github
Git
0.10.0

terraform
mau
1.4.0

vscode-docker
ms-
0.7.0

duffle-vscode
ms-
0.3.0

python
ms-
2019.8.30787

remote-wsl
ms-
0.39.2

azure-account
ms-
0.8.4

csharp
ms-
1.21.1

Go
ms-
0.11.4

powershell
ms-
2019.5.0

vscode-typescript-tslint-plugin
ms-
1.2.2

quicktype
qui
12.0.46

java
red
0.47.0

vscode-yaml
red
0.5.1

If it helps, the current state of webpack for the particular extension I'm asking about is at https://github.com/Azure/vscode-kubernetes-tools/pull/586.

I also tried cloning https://github.com/microsoft/vscode-references-view to see how that works, because I noticed the webpack PR modified the background watch task, and got an error Invalid problemMatcher reference: $ts-webpack.  So that isn't what I'm missing either.

I'm still stuck on this.  I have two extensions that are getting bug reports about high CPU load and vsce warnings about too many files, and I can't webpack them without fouling up my ability to test/debug them.  Please send advice!  Thanks!

Hey sorry for not responding, this somehow slipped through my radar.
The preLaunchTask should not be the npm: webpack. That should be done before releasing, not before debugging the extension.
The correct one should be the watch If the watch doesn't complete in time than this is an issue with the tasks / debug and for that can you please file a new issue - that the preLaunchTask does not finish before debugging starts.
fyi @jrieken on advice since he wrote the weback tutorial

ts-webpack is an extension that you need to install, also consider running web pack in watch mode to speed things up

Hmm, using a preLaunchTask of npm: watch now doesn't seem to be working at all.  On a clean checkout it doesn't generate anything into dist, and after running npm run compile it doesn't reflect any updates.
My package.json looks like this:
    "scripts": {
        "vscode:prepublish": "webpack --mode production",
        "compile": "webpack --mode none",
        "watch": "webpack --mode none --watch",
        "test-compile": "tsc -p ./",
        "postinstall": "node ./node_modules/vscode/bin/install",
        "test": "npm run compile && node ./node_modules/vscode/bin/test"
    },
    "devDependencies": {
        "@types/mocha": "^2.2.32",
        "@types/node": "^10.2.0",
        "@types/request": "^2.48.1",
        "file-loader": "^4.0.0",
        "gulp": "^4.0.2",
        "gulp-tslint": "^8.1.2",
        "mocha": "^4.1.0",
        "ts-loader": "^6.0.4",
        "ts-webpack": "1.0.0",
        "tslint": "^5.9.1",
        "typescript": "^3.5.2",
        "vscode": "^1.1.21",
        "webpack": "^4.35.2",
        "webpack-cli": "^3.3.5"
    },

My .vscode/launch.json looks like this:
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Extension",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": [
                "--extensionDevelopmentPath=${workspaceFolder}"
            ],
            "outFiles": [
                "${workspaceFolder}/dist/**/*.js"
            ],
            "preLaunchTask": "npm: watch",
            "skipFiles": [
                "<node_internals>/**/*.js"
            ]
        }
    ]
}

My .vscode/tasks.json looks like this:
{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "npm",
            "script": "watch",
            "problemMatcher": [
                "$ts-webpack"
            ],
            "isBackground": true,
            "presentation": {
                "echo": true,
                "reveal": "never",
                "panel": "shared",
                "showReuseMessage": true,
                "clear": false
            }
        }
    ]
}

I get a warning Incorrect type. Expected "object". on the problemMatcher line here but this is copied from the references sample (though it is not mentioned in the webpack guidance).
I can't see where I'm diverging from the references sample... but, as mentioned, the references sample doesn't work for me either.
I'm clearly doing something wrong, because this obviously works for lots of other people.  But I can't for the life of me see what.
@jrieken I thought the debug task would already run webpack in watch mode.  Are you saying that when I start a new VS Code session I should open a terminal and manually run webpack --watch?

Oh, I see.  The $ts-webpack thing needs this: https://marketplace.visualstudio.com/items?itemName=eamodio.tsl-problem-matcher.  I'm afraid that wasn't obvious to me; perhaps it could be called out in the readme/documentation?
I assume everyone who contributes to my extension will need to to install this too?

Okay, installing the eamodio.tsl-problem-matcher extension gets me back to the situation where hitting F5 debugs the code as it was a couple of seconds before I hit F5.  If I save, count slowly to 3, and then hit F5 it works - this is definitely progress...!
@jrieken Is there a way to force the extension to install when a contributor updates the project, e.g. as part of npm install?  Or at least to issue a meaningful warning/error on build, so that contributors know what they need to install?

Yeah, there is .vscode/extensions.json, e.g this is how we use it in vscode: https://github.com/microsoft/vscode/blob/2724ca6c053585673ee9cb26527d18657a51dfa9/.vscode/extensions.json#L4

@jrieken Belated thanks!  Love that you folks have anticipated this sort of issue.
@isidorn I don't know whether I'm being a doofus but I am definitely seeing stale code being debugged unless I explicitly save and wait a few seconds before hitting F5.  I will raise a separate issue for this.

@isidorn Raised #82076 to track the watch issue (or to figure out where I am messing up!) - thanks for your help!

authors: isidorn itowlson jrieken


text:
Using env varibales in tasks.json

VSCode Version: 1.34.0
OS Version: windows 10

Steps to Reproduce:

Create new task in tasks.json
Use environment variable(having installation path stored) in command of that task

I created new vscode task in tasks.json where I want to execute one exe file from command. So I created on environment variable(i.e. MY_PATH) to store the path of that exe.
Below is the command of the vscode task which I am using:
"command": "${env:MY_PATH}\MyApp.exe ${file}"
MY_PATH points to the directory of the installed application in C:\Program Files\MyApp\
Below is the error message:
C:\Program : The term 'C:\Program' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

C:\Program Files\MyApp\MyApp.exe ...

  + CategoryInfo          : ObjectNotFound: (C:\Program:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException

Which seems to me that there is a space which is creating the issue.
Please help me to solve this out.

Does putting single ticks around the variable fix it?
Like "'${env:MY_PATH}'\MyApp.exe ${file}"

Or, does
"command": "${env:MY_PATH}\MyApp.exe",
"args": ["${file}"]

work? Since you have a space between MyApp.exe and ${file}, we won't know the right way to escape your command.

This worked: '${env:CPPCHECK_ROOT}\MyApp.exe'
Thank you.

authors: ArturoDent alexr00 rohitkotak


text:
TypeError: Cannot read property 'shutdown' of undefined

From https://dev.azure.com/monacotools/Monaco/_build/results?buildId=59149&view=logs&j=a5e52b91-c83f-5429-4a68-c246fc63a4f7&t=a83823bd-5dbd-5313-d0d6-a425f162cca0&l=1185
Cannot read property 'shutdown' of undefined: TypeError: Cannot read property 'shutdown' of undefined
	at y.$acceptProcessShutdown (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:612:558)
	at f._doInvokeHandler (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:636:275)
	at f._invokeHandler (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:635:971)
	at f._receiveRequest (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:634:639)
	at f._receiveOneMessage (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:633:468)
	at _protocol.onMessage.e (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:631:691)
	at l.fire (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:50:519)
	at _.fire (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:181:274)
	at e.onMessage.e (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:788:104)
	at l.fire (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:50:519)
	at _.fire (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:181:274)
	at t.PersistentProtocol._receiveMessage (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:185:629)
	at _socketDisposables.push._socketReader.onMessage.e (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:182:824)
	at l.fire (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:50:519)
	at f.acceptChunk (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:178:588)
	at _register._socket.onData.e (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:177:958)
	at Socket.t (/Users/vsts/agent/2.155.1/work/1/VSCode-darwin/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:187:68)
	at Socket.emit (events.js:182:13)
	at addChunk (_stream_readable.js:283:12)
	at readableAddChunk (_stream_readable.js:264:11)
	at Socket.Readable.push (_stream_readable.js:219:10)
	at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

Not sure if related, but there is also:
n.charCodeAt is not a function: TypeError: n.charCodeAt is not a function
  at e.onMessage.e (/Users/vsts/agent/2.155.1/work/1/vscode-reh-darwin/out/vs/server/remoteExtensionHostProcess.js:806:104)
   at l.fire (/Users/vsts/agent/2.155.1/work/1/vscode-reh-darwin/out/vs/server/remoteExtensionHostProcess.js:50:519)
   at _.fire (/Users/vsts/agent/2.155.1/work/1/vscode-reh-darwin/out/vs/server/remoteExtensionHostProcess.js:181:274)
   at t.PersistentProtocol._receiveMessage (/Users/vsts/agent/2.155.1/work/1/vscode-reh-darwin/out/vs/server/remoteExtensionHostProcess.js:185:629)
   at _socketDisposables.push._socketReader.onMessage.e (/Users/vsts/agent/2.155.1/work/1/vscode-reh-darwin/out/vs/server/remoteExtensionHostProcess.js:182:824)
   at l.fire (/Users/vsts/agent/2.155.1/work/1/vscode-reh-darwin/out/vs/server/remoteExtensionHostProcess.js:50:519)
   at p.acceptChunk (/Users/vsts/agent/2.155.1/work/1/vscode-reh-darwin/out/vs/server/remoteExtensionHostProcess.js:178:588)
   at _register._socket.onData.e (/Users/vsts/agent/2.155.1/work/1/vscode-reh-darwin/out/vs/server/remoteExtensionHostProcess.js:177:958)
   at Socket.t (/Users/vsts/agent/2.155.1/work/1/vscode-reh-darwin/out/vs/server/remoteExtensionHostProcess.js:187:68)
   at Socket.emit (events.js:182:13)
   at addChunk (_stream_readable.js:283:12)
   at readableAddChunk (_stream_readable.js:264:11)
   at Socket.Readable.push (_stream_readable.js:219:10)
   at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

@bpasero Do you have source maps with those stack traces? The first one (found via the unique $acceptProcessShutdown) is:
https://github.com/microsoft/vscode/blob/e2f1ee3573513e3f8f849b8995efd68bf9e7640e/src/vs/workbench/api/common/extHostTerminalService.ts#L490-L492
I cannot comment about the second stacktrace since I cannot pinpoint charCodeAt / fire... @bpasero we would need to convert those stack traces and then based on the result assign someone from the team...

n.charCodeAt is not a function: TypeError: n.charCodeAt is not a function

@alexandrudima I've been seeing this one on and off for months on web, I think it also showed up running the web smoke tests. Looks like a separate issue to the 'shutdown' one though.

Does it reproduce when running the smoke test from source? Because then we could get a stack trace and identify the owner :).

@alexandrudima the commit ID of that build seems to be 8eaec303ea9b12291540e729ad32b930169e67a4 and as such the sourcemap URI for workbench at least is: https://ticino.blob.core.windows.net/sourcemaps/8eaec303ea9b12291540e729ad32b930169e67a4/core/vs/workbench/workbench.desktop.main.js.map. I am not 100% sure about the URI for the extension host though, but probably similar.

There you go: https://ticino.blob.core.windows.net/sourcemaps/8eaec303ea9b12291540e729ad32b930169e67a4/core/vs/workbench/services/extensions/node/extensionHostProcess.js.map

Thanks for digging into that. Unfortunately the source map is not of good quality and cannot resolve the first stack element:
Deminified using https://github.com/alexandrudima/vscode-stack-beautifier
n.charCodeAt is not a function: TypeError: n.charCodeAt is not a function  at   at call (./common/event.ts:580:15)  at fire (./parts/ipc/common/ipc.net.ts:453:18)  at fire (./parts/ipc/common/ipc.net.ts:733:20)  at _receiveMessage (./parts/ipc/common/ipc.net.ts:592:72)  at call (./common/event.ts:580:15)  at fire (./parts/ipc/common/ipc.net.ts:239:20)  at acceptChunk (./parts/ipc/common/ipc.net.ts:200:50)  at _listener (./parts/ipc/node/ipc.net.ts:28:37)

I suspect the charCodeAt thing is probably my problem actually, I'll action this issue soon.

I see the original issue and linked issues were are flakey integration tests. @Tyriar are there any particular steps we can take to verify your fix?

@connor4312 probably can't repro it outside of the tests. I checked the build output for the PR and the message is gone, you can do a quick review of https://github.com/microsoft/vscode/pull/83788/files#diff-500e25740503223dd60ee4118d95d0a2, it should be impossible to get that error now because I'm using ?.

Yea, looks good to me, I'll mark as verified

authors: Tyriar alexandrudima bpasero connor4312


text:
Links to Slack extension workspace invite expired

Steps to Reproduce:

https://github.com/Microsoft/vscode/wiki/Feedback-Channels
Click on the " join the Slack workspace" link
You see "This invite link is no longer active."

@eamodio do we need to update the aka.ms link?

@Tyriar Argh -- the "non-expiring" slack invite link expired again (sadly it expires based on usage -- 2000 invites, so its hard to keep track of). I've update my redirect to point to the new link, so once the DNS change propagates it should work again.

This is now fixed

Thank you!!

authors: Tyriar bkelley13 eamodio


text:
Freeze Issue

Issue Type: Performance Issue
Hello,
The code area and live server and other services freezes this has been happening even after application re installation
.
1 Observation is my html uses a lot of svg code in html and has been happening after i paste new svg code text.
VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:35:18.241Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz (4 x 3093)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwareoop_rasterization: unavailable_offprotected_video_decode: unavailable_offrasterization: unavailable_offskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.88GB (4.03GB free)

Process Argv

Screen Reader
no

VM
0%

Process Info
CPU %	Mem MB	   PID	Process
    1	    73	 12580	code main
    0	   179	  6008	   window (● index.html - template - Visual Studio Code)
    0	    80	 14260	     extensionHost
    0	   117	   528	       "C:\Users\ankitk\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\ankitk\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\html-language-features\server\dist\htmlServerMain" --node-ipc --clientProcessId=14260
    0	    88	  3352	       electron_node server.js
    0	    11	 15212	     watcherService
    0	    11	  8104	       console-window-host (Windows internal process)
    0	    38	 15444	     searchService
    2	    65	  8240	   window (Issue Reporter)
    1	    91	 15964	   gpu-process
    0	    64	 16852	   shared-process
    0	    13	 17268	   electron-crash-reporter

Workspace Info
|  Window (● index.html - template - Visual Studio Code)
|    Folder (template): 213 files
|      File types: scss(33) jpg(33) svg(20) DS_Store(18) js(18) html(18)
|                  css(8) ttf(6) woff(6) woff2(6)
|      Conf files:;

Extensions (7)

Extension
Author (truncated)
Version

auto-close-tag
for
0.5.6

auto-rename-tag
for
0.1.1

beautify
Hoo
1.5.0

vscode-css-peek
pra
3.0.2

LiveServer
rit
5.6.1

bootstrap4-vscode
the
6.1.0

html-css-class-completion
Zig
1.19.0

/needsMoreInfo
Please use this guide to provide more information: https://github.com/Microsoft/vscode/wiki/Performance-Issues. Thanks.

authors: aknewlife jrieken


text:
Don't hide breakpoint dot in gutter

Issue Type: Bug
We should not be hiding the breakpoint dot in the gutter, even when it is only an inline breakpoint. It is easy to miss the inline decoration and you can still toggle the breakpoint on an off via the gutter.

VS Code version: Code - Insiders 1.41.0-insider (599c076d91be1374cf51004cec610f3bcaf4c9cd, 2019-11-22T07:25:24.031Z)
OS version: Windows_NT x64 10.0.19028

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.93GB (14.06GB free)

Process Argv

Screen Reader
no

VM
0%

We are not hidding it on purpose, this is a bug which is a duplicate of https://github.com/microsoft/vscode/issues/85148

authors: eamodio isidorn


text:
Unresponsive & freezes

Issue Type: Bug
Freezes for a few seconds, is unresponsive to mouse and keyboard. Started with 1.40.2
VS Code version: Code 1.40.2 (f359dd69833dd8800b54d458f6d37ab7c78df520, 2019-11-25T14:54:45.096Z)
OS version: Windows_NT x64 10.0.17134

/needsMoreInfo
Please use this guide to provide more information: https://github.com/Microsoft/vscode/wiki/Performance-Issues. Thanks.

authors: jrieken robopo


text:
Feature request: Rename extension

VS Code: v1.43.0
Feature request: Rename extension.
I want to rename my extension completely without losing downloads/install data.
Though it is possible to rename the extension in marketplace by updating displayName in package.json without losing downloads.
Changing the unique identifier or the name key in package.json does.
publisher_name.unique_identifier
Expected: Rename unique_identifier without losing downloads/install data.
https://github.com/Microsoft/vscode/issues/25988#issuecomment-304358692

Hi sorry I just saw this
The ID for an extension is publishername.extensionname all meta data hangs off this e.g. downloads, ratings. This is also used for install/updates.
In this case I actually think most users would expect this to be a new extension i.e. it's pretty different from Material.
So I think publishing with a new ID would make the most sense - otherwise users will get updated and not understand that this is actually a different theme.
We don't have support for renaming today - so choosing a new name is typically something people only do in the display name or again they are forced to re-publish :(
Sean

I was told here updating name key in package.json will lose all my downloads and install data
https://github.com/Binaryify/OneDark-Pro/issues/54#issuecomment-599565246

@Binaryify have you tried updating"name" in package.json to "one-dark-pro"? I also wanted to rename my extension. I resolved into what you did I renamed the "displayName".
@ElecTreeFrying that will lose download and install data

publisher_name.unique_identifier is the unique identifier for an extension. Updating it is not a common scenario on the Marketplace.
You can the Marketplace support to update identifier or transfer the extension to different publisher without loosing download counts

Yes, for now the best option is to contact Marketplace support regarding this.
Another reason why I think this feature is very helpful in VS Code, is because, in atom, publishers can rename their package by this script apm publish --rename new-package-name.
I hope they consider this feature in VS Code for extension publishers.

No action items here, recommendation is to contact Marketplace support for this.

For anyone that happens upon this thread -- the renaming of the extension identifier is no longer supported by the Marketplace. The renaming operation was breaking existing extension users and creating complications in the backend. I was able to verify this recently with Marketplace support.

authors: ElecTreeFrying TanyaScales isidorn prashantvc