text:
Provide a way for extension that have extension specific telemetry opt-in settings to use the new API

The Julia extension has used telemetry for a long time, and we have a strict user opt-in policy for collecting it. So, there are two existing settings in the extension for usage and crash telemetry, and we only ever send anything if the users explicitly opted in.
I would like to use the new TelemetryLogger infrastructure (together with https://github.com/microsoft/vscode-extension-telemetry), but I can't figure out how we could integrate our custom opt-in settings with that.
I think conceptually the right thing would be that TelemetryLogger provides some way for extensions to indicate their own opt-in settings, and then TelemetryLogger takes that and the VS Code-wide setting into account to decide whether anything should be sent, right? But right now it seems that TelemetryLogger only ever looks at the system wide settings, with no way to integrate extension specific settings?
Is there some way around that? I initially thought I could write a custom TelemetrySender to add another level of filtering, but 1) conceptually that seems not right, and 2) when using https://github.com/microsoft/vscode-extension-telemetry, then it seems to provide the TelemetrySender, so that option is also not open to me.

Number one would be the suggested way to do it since we avoid placing any extension specific concepts in the API and allow extensions to abstract things however they so wish.
Number two seems to be https://github.com/microsoft/vscode-extension-telemetry/issues/54

Number one would be the suggested way to do it since we avoid placing any extension specific concepts in the API and allow extensions to abstract things however they so wish.

I don't fully understand this :) Are you saying that the proper way to do this is to write a custom TelemetrySender who takes extension specific settings into account? But isn't the idea of the current design that all the filtering etc. happens inside the TelemetryLogger? To me that seems to make more sense than to put this into the TelemetrySender, which AFAIK is really just there to connect with various telemetry backends, right?
In my mind, a good design would be if a TelemetryLogger had methods that would allow an extension to enable and disable usage and crash telemetry. Say something like logger.enableErrorLogging(true), logger.disableUsageLogging(false). TelemetryLoggerOptions would probably also need two more fields for this (say enableErrorLogging and enableUsageLogging) for the initial state of these two. The implementation of TelemetryLogger would then check whether the extension had enabled things, and the global telemetry settings were enabled, and only if both are the case would it send telemetry. This design would be very non-specific with respect to any given extension. I could completely control how I want to set extension specific telemetry settings etc.

Number two seems to be https://github.com/microsoft/vscode-extension-telemetry/issues/54

To me that seems really not an ideal solution, for two reasons: first, isn't the primary purpose of vscode-extension-telemetry to bridge to appinsights? It seems inefficient if every telemetry sender has to implement this separately. And second, that proposal seems very specific and constraint on how an extension could actually store its extension-specific telemetry settings.

I get what you're saying for number one, but my idea was that you would wrap the logger entirely and do your additional filtering before calling log. I understand it's not ideal, but extensions may have many metrics which determine when telemetry is on and off. Additionally, I wonder if it may be confusing if someone says .enableUsage(true) but then the setting is off so it doesn't get sent even though you enabled it. To me the VS Code API should be simple and easy to use for the common case while enabling more advanced use cases like this one. VS Code does this in core in a way as does the extension-telemetry module by basically exposing a telemetry service which wraps the logger. I understand the logger should handle most of the logic which it does especially for the common case, but I'm not sure we will ever be able to cover all of the use cases.
As for updating the module, the module wouldn't modify the sender just when the logger is called. We expose a wrapped interface so this logic can live one level up.

my idea was that you would wrap the logger entirely and do your additional filtering before calling log

That won't work with the catch-all-unhandled-exceptions feature, though, right? That is the primary thing from the new telemetry stuff I am interested in :)

To me the VS Code API should be simple and easy to use for the common case while enabling more advanced use cases like this one.

Yes, I think that is exactly the right spirit. But at the same time, I don't think having an extension-specific way to enable/disable its own telemetry is an advanced scenario, in my mind pretty much any third-party extension should provide that option.
Telemetry for every third-party extension will have a different legal entity in charge of the telemetry data, different data retention policies etc. The idea that users have to opt-out of either all telemetry from all vendors that they have extensions from, or none seems weird. What if a user has one extension from vendor A and one from B, and they are comfortable with the privacy policy from A but not B. So with this design of one global switch, they now have to turn off all telemetry. That is really not in the interest of vendor A: they designed a good policy, and now because B has a bad one, they aren't getting telemetry data anymore.
Case in point: what if a user is not comfortable with the MS data collection policy (and there seem to be some ;), but OK with the Julia extension privacy policy? Why should we not be able to receive our own telemetry data in that case? Just anecdotally, we have a fair number of users in that camp (I personally don't hold that view, just to be clear).

I wonder if it may be confusing if someone says .enableUsage(true) but then the setting is off so it doesn't get sent even though you enabled it.

Maybe a better API would be that TelemetryLogger has two new properties called usageStatus and crashStatus (not the best names, so probably would be good to iterate on that) of enum type TelemetryStatus that can have values Off (no telemetry is sent), On (telemetry is sent no matter what, i.e. ignores the main VS Code setting) and FollowSystemSetting (the current behavior and maybe this could be the default). To me that would strike a good balance between simple and easy, but at the same time giving extensions all the flexibility to enable their custom handling of opt-in, opt-out etc.

That won't work with the catch-all-unhandled-exceptions feature, though, right? That is the primary thing from the new telemetry stuff I am interested in :)
That is correct

Case in point: what if a user is not comfortable with the MS data collection policy (and there seem to be some ;), but OK with the Julia extension privacy policy? Why should we not be able to receive our own telemetry data in that case? Just anecdotally, we have a fair number of users in that camp (I personally don't hold that view, just to be clear).

It's because the extensions live inside VS Code that we feel if the user disables global telemetry it should extend to extensions. This is the current policy we operate under and have done so since the beginning. Maybe it needs to be revisited at some point to cover cases like this, but I do not feel we should combine those discussions.

I don't understand this :) What "module" are you referring to in the first part of the sentence?
The @vscode/extension-telemetry npm module

I believe everything requested is currently possible by wrapping the TelemetryLogger or is covered by a feature request in vscode-extension-telemetry.
You can see even the unhandled error handler will call the logger
https://github.com/microsoft/vscode/blob/99a0a99fc371fa4b6a5c6f3968fcfc69ce047387/src/vs/workbench/api/common/extHostTelemetry.ts#L167
The other discussions surrounding extension settings being above global settings is something we won't do and is out of scope


text:
Terminal buffer is not updating information

Type: Bug
In the insiders version, I noticed that the buffer is no longer automatically reflecting terminal information.
For example, when executing the mvn clean install command in my project, the information of the build that starts to run is updated from time to time in the buffer, sometimes it is only necessary to give a tab to go to the terminal and give a shift tab that I have the information updated while the build is running and printing various information.
In the insiders version, this update no longer occurs.
I have to keep pressing alt + f2, but I couldn't be sure if I still have all the updated information.
VS Code version: Code - Insiders 1.82.0-insider (35be9bf683eace09796e59d54f1f225bbc3a7866, 2023-08-30T05:33:47.972Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz (8 x 1896)

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)
31.72GB (11.44GB free)

Process Argv
--crash-reporter-id dd13835f-488a-4675-bdf9-21fedc4249ef

Screen Reader
yes

VM
0%

Item
Value

Remote
WSL: ubuntu

OS
Linux x64 5.15.90.1-microsoft-standard-WSL2

CPUs
Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz (4 x 1896)

Memory (System)
15.62GB (5.22GB free)

VM
0%

Extensions (22)

Extension
Author (truncated)
Version

remote-containers
ms-
0.307.0

remote-wsl
ms-
0.81.0

cucumber-official
Cuc
1.7.0

gitlens
eam
2023.8.3005

copilot
Git
1.106.367

copilot-chat
Git
0.7.2023083001

vscode-docker
ms-
1.26.0

vscode-language-pack-pt-BR
MS-
1.82.2023083009

postman-for-vscode
Pos
0.6.2

vscode-thunder-client
ran
2.10.5

java
red
1.21.0

intellicode-api-usage-examples
Vis
0.2.8

vscodeintellicode
Vis
1.2.30

vscode-boot-dev-pack
vmw
0.2.1

vscode-spring-boot
vmw
1.48.0

vscode-java-debug
vsc
0.54.0

vscode-java-dependency
vsc
0.23.1

vscode-java-pack
vsc
0.25.13

vscode-java-test
vsc
0.39.1

vscode-maven
vsc
0.42.0

vscode-spring-boot-dashboard
vsc
0.13.1

vscode-spring-initializr
vsc
0.11.2

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30404738
py29gd2263:30784851
vsclangdf:30492506
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30618038
2i9eh265:30646982
showlangstatbar:30737417
0bi6i642:30823812
ecj1e332:30687743
pythonfmttext:30716741
fixshowwlkth:30771523
showindicator:30805243
pythongtdpath:30726887
i26e3531:30792625
gsofa:30797620
welcomedialog:30812478
pythonnosmt12:30779711
pythonidxpt:30768918
pythonnoceb:30776497
copilotsettingt:30808721
dsvsc013:30777762
dsvsc014:30777825
diffeditorv2:30786206
pythonlinttypecf:30823782
pythonmpsinfo:30815194
dsvsc015:30821418

@jeanbrazcosta Shift+tab no longer works and in fact breaks things in today's insider's, which will be fixed in tomorrow's build. When using alt+f2 only, it is working for me.
@jooyoungseo is this working for you?

@meganrogge shift+tab be deprecated in future releases?
If yes, I understand the change more sincerely I prefer shift + tab than pressing alt +f2 I think shift + tab is a faster way, but I understand if it is no longer possible.
Another thing I noticed is that when opening new terminals the buffer doesn't appear, I always have to press alt +f2 with each new terminal that opens.

It appears to be working, but I have not run a longer session with something like building the sources for NVDA, for example. I have honestly never felt confident enough with the integrated terminal from VS Code, so I have tried to build my workflows by always launching an external terminal. I may give it a more serious try when entering commands become more stable.

@jeanbrazcosta yes, that is deprecated. You can still add it to your keybindings though.

Another thing I noticed is that when opening new terminals the buffer doesn't appear, I always have to press alt +f2 with each new terminal that opens.

This is by design as one cannot input into the accessible buffer.

I can reproduce``

Interestingly, this works for me on mac in 1.82 but does not work in insider's.

source: gharchive/issue

authors: jeanbrazcosta meganrogge rperez030

repo: microsoft/vscode

license: MIT

license_type: permissive

license_source: github-api


text:
The Lua Analyzer server crashed 5 times in the last 3 minutes. The server will not be restarted.

After updating to the latest version, the luapanda plug-in reported an error

Please file on the extension's repo, thanks

authors: evilzhou roblourens


text:
markdown outline stuck on loading document symbols for xxx.md

Type: Bug
I use vscode to edit a lot of markdown files, and many of them is very big. after update 2023 september，i found many markdown files can not open outline panel, it just stuck on loading document symbols for xxx.md. it's very important to have outline to go through a big markdown text files.
I suspect that:

The hierarchical structure of my Markdown file may not be standardized, such as having a fourth-level heading directly below a second-level heading. 2. There is an unreachable intranet link in the Markdown file? Uncertain

VS Code version: Code 1.83.1 (Universal) (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:46:55.789Z)
OS version: Darwin arm64 21.3.0
Modes:

System Info

Item
Value

CPUs
Apple M1 (8 x 24)

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)
9, 11, 10

Memory (System)
16.00GB (0.07GB free)

Process Argv
--crash-reporter-id 85b09c04-8ca1-4e20-bd4a-ad480131f021

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263cf:30856253
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyonecf:30548226
2e4cg342:30602488
89544117:30613380
showlangstatbar:30737416
0bi6i642:30841073
a2ce3375:30757347
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofa:30866041
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
copilotsettingc:30859502
asynctokenver:30821569
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015:30845448
pyreplss1:30865275
pythoncet00cf:30866519
h48ei257:30867296
pythontbext0:30864172

Supplement, there are several processes with high CPU usage in the system，all is markdown-language-features process
/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/markdown-language-features/server/dist/node/workerMain --node-ipc --clientProcessId=82274

Can you please share the markdown file which causes this issue

same bug here, how to solve?

Can you please share the markdown file which causes this issue

I find out the issue is caused by no-US language document.
if you open document contains ASCII only, then it is ok. for example this md: https://github.com/RedHat-Middleware-Workshops/dayinthelife-streaming/blob/master/README.md
if you open document contains Chinese words, it will stuck, any outline will not display, for example this md: https://github.com/wangzheng422/docker_env/blob/dev/redhat/notes/2023/satellite.demo.md

Thank you @wangzheng422!
I believe this is a duplicate of #195487. The next VS Code 1.85 insiders build should have a fix (I also quickly tested using the document you shared and everything looks good). Please let me know if you still see this issue in VS Code 1.85+

My Chinese document also had the same bug, but when I switched the vscode language to Chinese and restarted, the bug disappeared.


text:
VSCode in golang adding the letter 'o' to the right of '0' number

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

VS Code Version: Version: 1.84.2
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:52:57.054Z (2 wks ago)
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.1.0
OS Version: Macos 14.1.1 (23B81)
Steps to Reproduce:

having numbers numbers in golang code that starts in 0's after saving (linter?) o added to the right of that 0 number:
{code}
os.Chmod(bastionKey, 0600)
os.Chmod(privateKey, 0600)
to
os.Chmod(bastionKey, 0o600)
os.Chmod(privateKey, 0o600)
{code}

Please file this against to go extension.

authors: aeschli rrasouli


text:
Custom title bar style setting is confusing if I have title bar style set to custom

For those who are on Mac with already custom title bar, this might be confusing. Please note that changing this setting has no impact in Mac.
Probably we should write in the description that this has a relation with title bar style

Actually it does have an impact on mac even with title style custom. Setting to windowed will cause the custom title bar to hide in full screen.

Thats right, but never option does not do anything. It would be helpful if we can update that in the description.


text:
VSCode becomes incredibly laggy after clicking Ctrl + .

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

VS Code Version: 1.85.2 installed from code repo with Pacman
OS Version: 6.7.2-arch1-2 On X11 KDE

Hi, I have a consistent issue with VSCode. Whenever I press Ctrl + . to open the Quick Fix menu, VSCode becomes incredibly laggy and unusable. It also becomes impossible to close it -- the only way to do so is to kill the process.
I tried disabling all extensions.
I tried reinstalling from scratch.
I tried running with GPU disabled.
I've launched VSCode with verbose mode enabled and looked for errors or warning when Ctrl + . is pressed, but there were none.
I've searched on Google and found nobody experiencing a similar issue.
Steps to Reproduce:

Open VScode
Press Ctrl + . and open (or just attempt to open!) the Quick Fix menu.

Any ideas why this could be caused? I'm clueless at this point.
https://github.com/microsoft/vscode/assets/84674906/e81e721b-081d-4c46-9f7f-1ba1e6fb1b36

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

Replaced code with visual-studio-code-bin, which is version 1.86.0. Problem persists, although now instead of hanging through multiple kill attempts, it closes on the third or so attempt.

Please use the Start Extension Bisect command to investigate whether the problem is being caused by one of your extensions.

Please use the Start Extension Bisect command to investigate whether the problem is being caused by one of your extensions.

As I already said, I have tried disabling all extensions and running a fresh install. It does not fix the situation.

Sorry, I was misled by the lack of response in the first paragraph of the issue template.

Have you reviewed the guidance at https://github.com/microsoft/vscode/wiki/Performance-Issues yet?

I have started a profile session, as the page suggested, but received an error when saving -- "Failed to save timeline: The request is not allowed by the user agent or the platform in the current context. (NotAllowedError)".
"Toggle Shared Process" was missing from the F1 menu, and the JavaScript Profiler was missing from the "More tools" menu...

@Yaron-Ha can you confirm that this happens in other languages as well (ie, JS or TS, or Python)?

I reinstalled my computer for other reasons, and it seems to have solved this problem as well, so sadly I can't investigate the root of the issue.
Thank you all for your time, and have a good day :)

authors: VSCodeTriageBot Yaron-Ha gjsjohnmurray justschen


text:
Display Tab Indexes

When writing code, it's often necessary to switch between tabs, and VSCode already has the workbench.action.openEditorAtIndex command for quickly switching tabs. Setting up a shortcut for this would be very handy, especially for Vim users. However, tabs themselves do not display their index number, which makes using this feature inconvenient. Therefore, I want to add a setting option for users that allows displaying the index number on tabs, making it convenient to use the workbench.action.openEditorAtIndex command.
shows like this,

It is necessary to display the tabindex, and I am looking forward to it

It would be nice to have the option to activate this when holding down the ctrl key so it's not showing all the time.

authors: diminutivesloop ghrejoe swordjjjkkk


text:
Exclude git-rebase-todo in recently opened

The recently opened picker does currently not support files.exclude or search.exclude setting, you would have to open a new feature request.

Originally posted by @bpasero in https://github.com/microsoft/vscode/issues/203872#issuecomment-2079033756
Currently, search.exclude and files.exclude don't work for workbench.action.openRecent:
{
  "files.exclude": {
    "**/.git/**": true
  },
  "search.exclude": {
    "**/.git/**": true
  }
}

Please add support.

@bpasero I think this feature request is pretty basic, from my past experience, issues moved to the backlog candidate most likely get closed, could you please consider moving it to the backlog?

Hello, @andremmsilva and I would like to start working in this. If moved to the backlog, could this issue be assigned to us? Thank you!

I wonder if the example above falls into the category of this filter which we maintain already:
https://github.com/microsoft/vscode/blob/f5d6ea112a9ddd9c0d5a33c99752b92688cfedd5/src/vs/platform/workspaces/electron-main/workspacesHistoryMainService.ts#L301-L304
The idea here being to not automatically add git related files to the history. Is your case any special in terms of git operations?

@bpasero I use git rebase a lot, git-rebase-todo should be filtered out also:

@bpasero I use git rebase a lot, git-rebase-todo should also be filtered out from workbench.action.openRecent, since they are only temporary files:

Yeah that sounds reasonable to me, feel free to add it as PR.

duplicate of https://github.com/microsoft/vscode/issues/157395 ?

related: https://github.com/microsoft/vscode/issues/15604

@TylerLeonhardt this FR is for the "File" > "Open Recent" > "More..." picker. I actually think https://github.com/microsoft/vscode/issues/157395 can be closed as fixed for March already, I commented.

Yeah that sounds reasonable to me, feel free to add it as PR.

@bpasero See https://github.com/microsoft/vscode/pull/211614

This bug has been fixed in the latest release of VS Code Insiders!
@wenfangdu, you can help us out by commenting /verified if things are now working as expected.
If things still don't seem right, please ensure you're on version 03dd3c3b93322b41fe108a3448308595ee7077a4 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
Happy Coding!

@bpasero Is this released in 1.90.2? If it is, I think the PR https://github.com/microsoft/vscode/pull/211614 didn't solve this issue.

Yes, this was part of the 1.90.x release.

@bpasero Thanks, perhaps reopen this issue? I just tried, the issue still exists.

@bpasero Can you please try touch ./.git/git-rebase-todo, then the rest?

Same

authors: TylerLeonhardt VSCodeTriageBot bpasero franciscacarneiro wenfangdu


text:
Accessibility issue with screen reader and vscode keep saying name of project and WSL env (program title bar value)

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

VS Code Version: 1.91.0
OS Version: WSL 2 / Ubuntu 20.04 / Windows 10

Steps to Reproduce:

Search by Name CTRL+P

or

Typing a function and open paren so the intellisence / function argument appear abc(
Both triggers the same very verbose info which is not required as we're already in the app.

The screen reader will say:
[File name] - [Project name] - WLS Ubuntu 20.04 - Visual Srudio Code - Document
And than will repeat that a second time with "Application" instead of "Document".
And finally "Search file by name".
It's the same for the function arguments, it's saying all of this twice before finally starting to announce the arguments.
Basically the screen reader says the same as when the vscode application gets the main OS focus with the following difference:
When I ALT+TAB to vscode or return from a different virtual desktop it will say all info, but instead of "Document" will say "Desktop 2" and repeat with the "Application"
When ALT-Tabing I'm all good / can live with what the screen reader is saying.
But for CTRL+P and also for intellisence, is there a way to remove this long and superflus info?
Because I either have to wait to get the function arguments or the confirmation that CTRL+P is open, and if I hit a key to skip, I than need to redo the operation.
Thank you.

JFYI, same behavior with the latest 1.91.1 version.

On macOS (voiceover) / windows (nvda), I am not able to reproduce the issues you are describing, thus closing for now. @rperez030 , can you?

I cannot reproduce it either, but I don't have WSL configured in my system at the moment. I tried with JAWS on Windows as well. @dstpierre which screen reader are you using?

Hey @meganrogge @rperez030 I recorded an mp4 showcasing the issue
I'm using NVDA on Windows, maybe with that video this will help you reproduce the issue.
Hopefully it will as it is exrtremely disturbing.
Thanks again for the effort improving the a11y.

It looks like this is happening for you when you clear the line.

@jooyoungseo or @rperez030 have you experienced this? It does seem unexpected that something that loses focus would be announced by the screen reader

authors: dstpierre meganrogge rperez030


text:
Search exclude broken once again

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

VS Code Version:  Version: 1.93.0-insider
Commit: d751e4324d12370e950f8cd031aa8829637ce300
Date: 2024-08-16T05:03:54.591Z (3 days ago)
Electron: 30.3.1
ElectronBuildId: 9960165
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0
OS Version: Mac 14.6 (23G80)

Steps to Reproduce:
"search.exclude": {
    "**/*/build": true,
    "**/*/build/**/*": true,
    "**/build": true,
    "**/dist": true,
    "**/dist/**/*": true,
    "**/node_modules/**": true,
    "**/node_modules/**/*": true,
    "/node_modules": true,
    "build": true,
    "build/**": true
  }

https://github.com/user-attachments/assets/2aeaa14d-fd06-4058-a57b-54dcfbf891bc
When the exclude glob is added to the UI, it works

But when added in settings it is does not work.

Can you try toggling this button? Seems that exclude files are not enabled in your screencap.

authors: andreamah stoplion


text:
Secondary sidebar does not fallback to its view when view got removed

See how the aux sidebar appears as if empty even though it has a view:

Steps to Reproduce:

setup exploration and insiders build to use settings sync
in insiders have chat in the aux bar, close aux bar
in exploration move chat into primary bar and trigger sync
in insiders wait for sync to apply and open aux bar

=> aux bar appears empty even though it has a view
I think here our logic for falling back to another "default" view is not picking up the other view that is there.
Note: the view in aux bar is registered based on a condition that evaluates late, so its possible this would not happen if the view was there on startup 🤔

Easier way to reproduce (at least I think it is the same bug):

only have chat in secondary side bar
move chat to primary side bar
right click on it and reset location

authors: benibenj bpasero


text:
No me deja abrir carpetas

Type: Bug
Que cuando que quiero abrir la carpeta de un proyecto, al seleccionar la carpeta y darle abrir, no lo hace, y se me desaparece la opcion de el manejo de archivos
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
12th Gen Intel(R) Core(TM) i5-12450H (12 x 2496)

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)
23.71GB (14.81GB free)

Process Argv
C:\Users\juanu\Documentos\PoliRefri\index.html --crash-reporter-id 049dd367-b30e-4e3d-bc0f-60f481d6c7bf

Screen Reader
no

VM
0%

Extensions (33)

Extension
Author (truncated)
Version

pythoncreatevenv
car
1.0.0

vscode-html-css
ecm
2.0.11

bootstrap-4-cdn-snippet
eve
1.13.0

c-cpp-runner
fra
9.4.9

copilot
Git
1.249.0

copilot-chat
Git
0.22.4

rainbow-csv
mec
3.13.0

csdevkit
ms-
1.14.14

csharp
ms-
2.55.29

vscode-dotnet-runtime
ms-
2.2.3

debugpy
ms-
2024.12.0

python
ms-
2024.20.0

jupyter
ms-
2024.10.0

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.21

vscode-jupyter-cell-tags
ms-
0.1.9

vscode-jupyter-slideshow
ms-
0.1.6

cmake-tools
ms-
1.19.52

cpptools
ms-
1.23.2

cpptools-extension-pack
ms-
1.3.0

java
red
1.37.0

LiveServer
rit
5.7.9

bootstrap4-vscode
the
6.1.0

cmake
twx
0.0.17

vscode-lldb
vad
1.11.1

intellicode-api-usage-examples
Vis
0.2.9

vscodeintellicode
Vis
1.3.2

vscode-gradle
vsc
3.16.4

vscode-java-debug
vsc
0.58.1

vscode-java-dependency
vsc
0.24.1

vscode-java-pack
vsc
0.29.0

vscode-java-test
vsc
0.43.0

vscode-maven
vsc
0.44.0

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

Hi @juansito17 thanks for reporting this. I cannot quite reproduce the issue, mind providing more information on the repro steps? Also did you to disable all extensions before opening the folder?


text:
Valor de variáveis de ambiente (.env) atualizam apenas ao fechar o vs code

Type: Bug
Depois de atualizar o vs code para a versão lançada no dia 19/12/2024 (1.96), o mesmo passou a apresentar problemas em variáveis de ambiente atualizadas no meu projeto.
Exemplo: Atualizei uma variável de True para False. No entanto, o sistema continuava inicializando essa variável como True. Apenas ao fechar o vs code e abrir novamente, o sistema passou a identificar o valor atualizado da variável. Isso segue acontecendo para qualquer alteração que faço.
Testado pelo menos 10 vezes.
Criar variável de ambiente booleana com valor True
Printar o valor da variável
Alterar o valor para False
Printar o valor da variável (Continuará como True)
Fechar o vs code a abrir novamente
Printar o valor da variável (Agora será False)
VS Code version: Code 1.96.1 (42b266171e51a016313f47d0c48aca9295b9cbb2, 2024-12-17T17:50:05.206Z)
OS version: Linux x64 6.8.0-49-generic snap
Modes:

System Info

Item
Value

CPUs
13th Gen Intel(R) Core(TM) i7-1355U (12 x 4008)

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_graphite: disabled_offvideo_decode: disabled_softwarevideo_encode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_softwarewebgpu: disabled_offwebnn: unavailable_software

Load (avg)
5, 5, 4

Memory (System)
15.31GB (7.29GB free)

Process Argv
--no-sandbox --force-user-env --crash-reporter-id 5fa2d761-1817-41d3-b1d1-33fbb4c5f66a

Screen Reader
no

VM
0%

DESKTOP_SESSION
ubuntu

XDG_CURRENT_DESKTOP
Unity

XDG_SESSION_DESKTOP
ubuntu

XDG_SESSION_TYPE
wayland

Extensions (35)

Extension
Author (truncated)
Version

project-manager
ale
12.8.0

cucumberautocomplete
ale
3.0.5

python-environment-manager
don
1.2.4

es7-react-js-snippets
dsz
4.4.3

gitlens
eam
16.0.5

prettier-vscode
esb
11.0.0

code-runner
for
0.12.2

todo-tree
Gru
0.0.226

csharpextensions
kre
1.7.3

vscode-docker
ms-
1.29.3

vscode-language-pack-pt-BR
MS-
1.96.2024121109

csdevkit
ms-
1.14.14

csharp
ms-
2.60.26

vscode-dotnet-runtime
ms-
2.2.3

vscodeintellicode-csharp
ms-
2.2.3

python
ms-
2024.22.0

vscode-pylance
ms-
2024.12.1

cpptools
ms-
1.22.11

live-server
ms-
0.4.15

material-icon-theme
PKi
5.16.0

java
red
1.37.0

LiveServer
rit
5.7.9

vscode-coverage-gutters
rya
2.12.0

intellicode-api-usage-examples
Vis
0.2.9

vscodeintellicode
Vis
1.3.2

vscode-boot-dev-pack
vmw
0.2.1

vscode-spring-boot
vmw
1.59.0

vscode-gradle
vsc
3.16.4

vscode-java-debug
vsc
0.58.1

vscode-java-dependency
vsc
0.24.1

vscode-java-pack
vsc
0.29.0

vscode-java-test
vsc
0.43.0

vscode-maven
vsc
0.44.0

vscode-spring-boot-dashboard
vsc
0.14.0

vscode-spring-initializr
vsc
0.11.2

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

You may check these answers: https://stackoverflow.com/questions/77338955/vscode-does-not-update-environment-variables-upon-env-modification

authors: MatheusPhillip Zalnd


text:
"The specified task cannot be tracked" before debugging

Issue Type: Bug
After having today's update of VSCode installed, I cannot succesfully debug my C/C++ program any more.
Steps to reproduce:

Navigate to a file that needs ro run preLaunchTask before debugging, such as a .cpp file;
Press F5 or select Debug > Start debugging to start debugging.

Expected:
The task (in the case of .cpp file, it is to compile the current file) that should be run before launching is successfully executed, and the program is launched for debugging.
Actual:
There pops up a dialog that reads

The specified task cannot be tracked.

And the task that should be run are actually not executed.
Additional info:
When I have not installed this update and everything works well, the terminal panel will pop up and it can be seen that the tasks are being run. However, after this update, when I start debugging, the terminal panel does not pop up, which may indicate that the task needed are actually not being run.
I almost disabled all the extensions (only leaving the language pack and the cpptools extension) and the problem still occurs.
VS Code version: Code - Insiders 1.36.0-insider (6520c22b83c0b6f168ba7de3309ffab42281e905, 2019-06-19T05:19:10.147Z)
OS version: Windows_NT x64 10.0.18917

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)

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: enabledrasterization: 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)
7.92GB (1.20GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

vscode-language-pack-zh-hans
MS-
1.36.0

cpptools
ms-
0.24.0-insiders

@alexr00 can you please look into this?

This issue may be the duplicate of #75774.

@YangHanlin What happens if run the task from the command palette?

Also, what does your launch.json and tasks.json look like? I created a C++ project, added a build task, and added a launch config that uses the build task as a preLaunch task. It all works as expected for me. If you have a repo I can clone to reproduce that would really help.
My task:
{
            "label": "build",
            "type": "shell",
            "command": "msbuild",
            "args": [
                "project.vcxproj",
                "/property:GenerateFullPaths=true",
                "/t:build",
            ],
            "group": "build",
            "problemMatcher": "$msCompile"
        }

My launch config:
        {
            "name": "(Windows) Launch",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "Debug\\project.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": true,
            "preLaunchTask": "build"
        }

@alexr00 If I attempt to run the task from the Command Palette, the task will not be executed either, and the terminal panel does not pop up as well. (I did not disable the extension cpptools, as I set the problem matcher as $gcc which can only be recognized by this extension.) This behavior is the same as described in #75774, therefore I think this issue is a duplicate of it.

@alexr00 I will try to reproduce it and pack them into a repo. Please wait a minute.

@alexr00 I have reproduced the error again and packed the necessary files into the repository YangHanlin/vscode-troubleshooting.
I can confirm that the same problem occurs in this directory with the current Insiders build, and it works well with the stable build (1.35.1) of VSCode.
You can reproduce the error by:

Clone the repo;
Open the directory in VSCode;
Navigate to the file hello-world.cpp and attempt to start debugging or run the task Compile current file.

Note that I am using g++ and gdb in Mingw-w64 as my toolchain. I am sorry that I don't know how to modify the configuration to use MSVC :-(
PS: During the time I tried to set up this repo, the VSCode received another update. Unfortunately, the tasks cannot run either after the update; and more unfortunately, as I attempt to start debugging, VSCode will not show the error dialog; instead, VSCode will close without any warning or error message.

Yes, this is a duplicate of #75774

authors: YangHanlin alexr00 isidorn


text:
Terminal title shifts when background terminal closes

Issue Type: Bug
Expected: No change in terminal title in dropdown
Actual: Shifts to whatever entry was in that index before other terminal closed. One background terminal closing changes title to "------------", 2 or more changes it to "Select Default Shell".
before 1: powershell closing:

after

run sleep 5; exit in terminal
open other terminal

VS Code version: Code - Insiders 1.37.0-insider (310cb67b0e5df5b0644f42df93ada186130dcd1b, 2019-08-02T11:11:48.598Z)
OS version: Windows_NT x64 10.0.17134
Remote OS version: Linux x64 4.15.0-54-generic

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

authors: Briaoeuidhtns Tyriar


text:
open url with encode %2B is wrong

VSCode Version: 1.38.0
OS Version: macOS 10.14.5(18F132)

Steps to Reproduce:
url = "http://httpbin.org/get?a=1&b=14%2B80"

open a empty file, input this url,there will be a link-detect
click url,VSCode will open http://httpbin.org/get?a=1&b=14+80,it's wrong

may other url encode is also wrong, I have tried some encode char,found http://httpbin.org/get?a=1&b=14%2B80%26=b%3D2 is a good example,as a url params,it's
{
"a": "1",
"b": "14+80&=b=2"
}

but when I input this url in VSCode, the url opened by VSCode url opener,  is: http://httpbin.org/get?a=1&b=14+80&=b=2
params is
{
"": "b=2",
"a": "1",
"b": "14 80"
}

Does this issue occur when all extensions are disabled?: Yes
I'm trying to solve this issue,
I read some code at src/vs/editor/contrib/links/links.ts,
src/vs/editor/browser/services/openerService.ts
can I send some PR?

ok fine,I found #79474 and it's not fixed,I will work for it too


text:
Opening a script in unity locks up Visual Studio code

Issue Type: Bug
Trying to open any script in unity fails and locks up Visual Studio code
Any time I try to open a script, visual studio code does not appear. This was not the case in the past when using previous versions of unity
Now, once I've tried to open a script in unity, opening vs code can't be done manually either. If I go to the task manager and end the vs code tasks, then I get an error message I'm able to launch vs code manually through windows.
If I launch vs code manually through windows, then unity is able to open scripts in vs code by clicking on scripts in unity. It would appear that unity is still correctly able to open scripts in unity, but something about how unity is trying to launch vs code causes vs code to not launch correctly.
This occurs with any unity project
VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:35:15.005Z)
OS version: Windows_NT x64 10.0.18362

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz (12 x 3299)

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)
31.93GB (25.21GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

unity-code-snippets
kle
1.3.0

csharp
ms-
1.21.2

(1 theme extensions excluded)

Investigating this issue should start with the unity/C# extension. Please file the issue there.

authors: TheCrake kieferrm


text:
Typescript: Missing suggestions in field initializers

I'm finding that TypeScript fails to provide suggestions in very easy places. Check this out:

Thanks. Opened https://github.com/microsoft/vscode/issues/82989 to track this upstream

@mjbvz You might've missed a copy, that points to this issue.

Fixed https://github.com/microsoft/TypeScript/issues/34621

authors: joaomoreno mjbvz


text:
All entered characters are removed when some characters are removed before conversion by Japanese IME.

VSCode Version: 1.41.1
OS Version: Windows 10 (1909, build 18363.592)
From VSCode version info

バージョン: 1.41.1 (system setup)
コミット: 26076a4de974ead31f97692a0d32f90d735645c0
日付: 2019-12-18T14:58:56.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363

Steps to Reproduce:

Enable Japanese IME
Input any characters
Press arrow key before conversion
Press delete or backspace key to remove one character
Press enter key

Expected result:
Some characters, except removed one at step 4, remains
Actual result:
All characters are removed.

https://twitter.com/hori__hiro/status/1223081019084902400
https://twitter.com/hori__hiro/status/1223081543062581253

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

This is a bug with certain versions of chromium.
It has been fixed in google chrome 77 or later, so it seems to be fixed if the version of electron is increased.

We will verify this issue once we adopt Electron 7 which ships with Chromium 78.

I can confirm it's already fixed in Insiders.

authors: Nikumo horihiro rebornix


text:
Support detecting bash.bat shells correctly

This comes from https://github.com/microsoft/vscode-python/issues/9795
The Python extension uses the VS Code API to detect shells, and if it fails, it tries to detect it itself. If it fails, it falls back to the default terminal in that OS.
The issue in question is that we don't detect git bash. While we could implement the detection ourselves, it seems that having this upstream would benefit more than just the Python devs.

Git bash should be detected here?
https://github.com/microsoft/vscode/blob/3c1e64220f137f9f4710841022b9d58e654e9f01/src/vs/workbench/contrib/terminal/node/terminal.ts#L115-L121
Could you elaborate where you're expecting it or what's not working?

authors: Tyriar luabud


text:
Terminal experience

Issue Type: Feature Request
Once we set up the default terminal tool, click on the plus sign will create a default terminal, but this leads to the creation of other terminals is very cumbersome, such as the default is powershell, click plus sign will create a new powershell, but I want to create a cmd is very troublesome, So hope to be able to provide available terminals in the selected place of the terminal and then can quickly create a new non-default terminal tool.

VS Code version: Code 1.43.2 (0ba0ca52957102ca3527cf479571617f0de6ed50, 2020-03-24T07:38:38.248Z)
OS version: Windows_NT x64 10.0.19041

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

authors: Tyriar heartacker


text:
Numbering items in the TreeView

I'd like to have numbering for the items in the tree view, similar to how the editor has line numbers. Configurable. It would be useful if you have a long list of similar items (e.g. I was working with a directory of .sql files). If there is already an extension for this, please point me in the right direction, thanks.

Sounds like a feature request to have a setting that turns on some numbering for trees.

This won't ever happen for the tree itself, but rather for each tree instance. The tree doesn't own what is rendered inside each tree element. Which VS Code feature tree would you like this in? The file explorer?

Yes, the Explorer :)

This is a fair feature request, however we do not have it on our immediate plan. Thus assigning to backlog and we might add this in the future. Thanks

authors: Jacquers alexr00 isidorn joaomoreno


text:
TS Server fatal error:  Cannot read property 'enable' of undefined

TypeScript Version: 3.8.3
Steps to reproduce crash

browse through common js libraries
vscode reports typescript error even though js is not typescript file

TS Server Error Stack
TypeError: Cannot read property 'enable' of undefined
    at convertTypeAcquisition (tsserver.js:142208:37)
    at ProjectService.sendProjectTelemetry (tsserver.js:142189:38)
    at ConfiguredProject.updateGraph (tsserver.js:140657:37)
    at updateProjectIfDirty (tsserver.js:141076:45)
    at ProjectService.assignProjectToOpenedScriptInfo (tsserver.js:143114:29)
    at tsserver.js:143396:107
    at Object.mapDefined (tsserver.js:562:30)
    at ProjectService.applyChangesInOpenFiles (tsserver.js:143396:48)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:144260:46)
    at tsserver.js:146003:88
    at IOSession.Session.executeWithRequestId (tsserver.js:145994:28)
    at IOSession.Session.executeCommand (tsserver.js:146003:33)
    at IOSession.Session.onMessage (tsserver.js:146027:35)
    at Interface.<anonymous> (tsserver.js:147342:27)
    at Interface.emit (events.js:203:13)
    at Interface._onLine (readline.js:316:10)
    at Interface._normalWrite (readline.js:461:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:203:13)
    at addChunk (_stream_readable.js:295:12)
    at readableAddChunk (_stream_readable.js:276:11)
    at Socket.Readable.push (_stream_readable.js:210:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)

Duplicate of https://github.com/microsoft/TypeScript/issues/36834

authors: getalex mjbvz


text:
fixes #101631

This PR fixes #101631
@joaomoreno I guessed on your implementation, but feel free to take this PR over and merge at your leisure.

Thanks a bunch @sbatten !

source: gharchive/pull-request

authors: joaomoreno sbatten


text:
compact fold for typescript/javascript, see #3352

This PR fixes #111731

Thanks so much for the review, will fix them over the weekend.

@aminroosta Hey, just checking on on this PR. Let me know if you have any questions about my comments

@aminroosta Hey, just checking on on this PR. Let me know if you have any questions about my comments

authors: aminroosta mjbvz


text:
Prompt user with dialog if triggering open with on unsaved file

Similar to #114947, my fork got deleted so I had to remake the PR and placing this in editor action offers a solution for both notebooks and custom editors. I would be open to other solutions as it feels weird being prompted before the quickpick is opened. I also think it is a little silly that you get prompted even if you select the same editor that you're in as we shouldn't force the user to take any action in that case.

I have added https://github.com/microsoft/vscode/issues/116272 where I feel we should cleanup editorOpenWith and move its code into respective existing files.

I believe now that with the work in https://github.com/microsoft/vscode/issues/100281 you do not have to do anything special. If we end up calling IEditorService.replaceEditors, the editor group will take care of prompting the user in case the editor is dirty.

My comment https://github.com/microsoft/vscode/pull/115264#issuecomment-776770853 was wrong, but with https://github.com/microsoft/vscode/commit/f294b6f81090546583ba995b947d66ed468f8d17 calling replaceEditors will now ask for each dirty editor that get's replaced what to do with it.

Closing as in theory this is obsolete now due to Ben's changes


text:
Yaqianlv/test

测试

authors: huajiankan mlincyy


text:
Explorer adopt new tree

Work in progress!
This PR adopts the new tree in the Explorer.
Requires a lot of testing, this is a first very rough sketch.
Missing features:

[x] Drag and drop #63762
[x] Highlight renamed elements via css
[x] Auto expand single children #64888
[x] Customised sort order #63148
[x] Preserving view state #65005
[x] File actions need to be aware of the new tree
[x] File icon theme support #64894
[ ] Horizontal scroll #63684
[x] Bring back willResolveExplorer and didResolveExplorer
[x] Bring back root error decorations

Issues:

[x] Input box is broken
[x] auto revealing feels lagy
[x] Multi Root workspaces is slightly broken #65500
[x] editorService gets called twice to open on click
[x] muti selection not working due to focus

Random todos:

[x] Test all explorer configuration settings
[x] Check explorer performance when there are a lot of file events
[x] Alt click works as expected to expand / collapse

fyi @joaomoreno @jrieken

@isidorn Did you notice perf improvements with tree in explorer?

@Astrantia I have not yet thougoughly tested it but I expect perf improvments.

@bpasero might you have some old test cases how you tested the explorer for intensive file events?
I just did the simple having the explorer open while doing yarn && yarn watch in our repo.
Ideas welcome on how to test I did not introduce any regressions in this area.
Also let me know if there are some other delicate things I might have missed in my list from above

Yeah I think doing npm install produces many events, but keep in mind that we ignore changes in node modules by default. You should easily be able to produce file events with a simple node script that creates/touches/deletes files, no?

Also let me know if there are some other delicate things I might have missed in my list from above

We will know what you missed once this hits stable :)

I must be misunderstanding something, I can't seem to find any command anywhere for expanding all folders, only a command for collapsing all folders.

There is no such command.

That seems like a massive design flaw to not allow opening of all folders, unless the devs are worried VS Code can't handle the memory of opening massive tree structures.

authors: Astrantia JosephTLyons bpasero isidorn


text:
Problem with v17.3.1 : The active test run is aborted due to System.TimeSpan deserialization

Description

Tests fail due to this reason: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.TimeSpan'
Downgrading to Microsoft.NET.Test.Sdk v17.0.0 resolves this issue.

Steps to reproduce

The integration tests are for RestfulApi Controllers and are deriving from IClassFixture<WebTestFixture<Startup>>
A fake repository is mocked which returns an object containing a  System.TimeSpan property.

Actual behavior

When debugging the tests ,they run successfully until the end without breaking, and there is no indication that the test passed or failed. Output shows System.Exception is thrown from Newtonsoft.Json.Serialization.

Diagnostic logs

The active test run was aborted. Reason: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.TimeSpan' because the type requires a JSON primitive value (e.g. string, number, boolean, null) to deserialize correctly.
To fix this error either change the JSON to a JSON primitive value (e.g. string, number, boolean, null) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'Payload.TestRunCompleteArgs.ElapsedTimeInRunningTests.ticks', line 17, position 16.
Results File: /home/vsts/work/_temp/_fv-az158-963_2022-09-28_03_34_37.trx

Test Run Aborted with error System.Exception: One or more errors occurred.
---> System.Exception: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.TimeSpan' because the type requires a JSON primitive value (e.g. string, number, boolean, null) to deserialize correctly.
To fix this error either change the JSON to a JSON primitive value (e.g. string, number, boolean, null) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'Payload.TestRunCompleteArgs.ElapsedTimeInRunningTests.ticks', line 17, position 16.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)

Environment

Microsoft.NET.Test.Sdk 17.3.1
TargetFramework net6.0
xunit.runner.visualstudio 2.4.5
xunit 2.4.2
coverlet.msbuild 3.1.2

Could you try to bump to 17.4.0 and let us know if you are still having the issue? If so, would it be possible to create a small repro?

I am on version 17.4.1 and still getting the error;
Microsoft (R) Test Execution Command Line Tool Version 17.4.0 (x64)
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
The active test run was aborted. Reason: Error converting value "PT0.002328S" to type 'System.TimeSpan'. Path 'Payload.NewTestResults[0].Duration', line 1, position 865.

Downgrading to Microsoft.NET.Test.Sdk v17.0.0 resolves this issue for me as well.

authors: Evangelink barbarosalp farnazansari90

repo: microsoft/vstest


text:
Error message when module not found is very unhelpful

The error message when a module is not found is not very helpful:
error: Module not found
  --> bindings\build.rs:3:25
   |
3  |           windows::mynamespace::{
   |  _________________________^
4  | |             Foo,
5  | |             Bar,
6  | |             Baz,
...  |
40 | |             Qux
41 | |         }
   | |_________^

The issue is that the windows::mynamespace module itself is missing. The error span should point to that path instead of all the types being imported.

This should be fixed as of #773 - let me know if you notice any further issues.

authors: kennykerr rylev

repo: microsoft/windows-rs


text:
OBS Studio not exporting in package list

Brief description of your issue
While other winget packages successfully export when running the winget export command, OBS Studio doesn't successfully add itself to the list of packages. The winget export command displays this in its output. This is abnormal behavior, considering that OBS Studio lists a valid version number in winget and doesn't have any issues performing upgrades when a new version is released.
Steps to reproduce
Run winget export -o packages.txt, where packages.txt is the location of the destination package file. The command will run, but winget will show OBS Studio failing to be added to the package file, and when the file is opened, this behavior can be confirmed.
Expected behavior
I expect winget to be able to export OBS Studio, along with the rest of my installed programs, to a package file when the winget export command is run.
Actual behavior
winget fails to add OBS Studio to the package file, outputting the following error message: Installed package is not available from any source: OBS Studio.
Environment
Windows Package Manager v1.1.13405
Windows: Windows.Desktop v10.0.19044.1526
Package: Microsoft.DesktopAppInstaller v1.16.13405.0

I believe this is an issue related to #147
The reason it seems to not export is because it cannot disambiguate between OBSProject.OBSStudio and OBSProject.OBSStudio.Prerelease. Since it can’t definitively determine which of the packages is installed, it reports it as unavailable.

I have the same issue.
Further, running "winget list" doesn't show winget as the Source for OBS Studio despite installing it from winget.
Same problem of not being able to export, and not being listed as winget as the Source for other programs such as voidtools.Everything and Zoom.Zoom.

authors: JerryWinkler Trenly mariobrostech

repo: microsoft/winget-cli


text:
Winget not working from PowerShell window elevated using Intune EPM

Brief description of your issue
I am running Powershell as Admin, which I launched by using Intune Endpoint Privilege Manager (EPM).  I am trying to run winget and it is not working.
Steps to reproduce
I open a Powershell Administrator session, by using the 'Run with Elevated Access' feature of Intune EPM

When I then run winget.exe it gives an error
Expected behavior
winget runs normally, with Administrator privilege (because it was run with an elevated PowerShell session) and allows me to install/manage packages
Actual behavior
When I then try to run winget.exe it fails; when I first try to run it is unable to recognize the cmdlet.  When I change to the location of winget.exe the error is different.
unable to recognize the cmdlet

PS C:\Windows\System32\WindowsPowerShell\v1.0> winget
winget : The term 'winget' 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

winget

  + CategoryInfo          : ObjectNotFound: (winget:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\System32\WindowsPowerShell\v1.0>

When I change to the path where winget.exe is located, I get an access denied / NativeCommandFailed error:

PS C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.20.1572.0_x64__8wekyb3d8bbwe> .\winget
Program 'winget.exe' failed to run: Access is deniedAt line:1 char:1

.\winget

At line:1 char:1

.\winget

  + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
  + FullyQualifiedErrorId : NativeCommandFailed

PS C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.20.1572.0_x64__8wekyb3d8bbwe>

Environment
PS C:\Users\118258> winget --info
Windows Package Manager v1.5.1572
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.2057
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.1572.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
PS C:\Users\118258>

To reframe what I'm trying to do - what I want is to be able to use winget to install software, without giving people local admin rights.
Ideally, I would put apps in Intune Company Portal, but most of what I want is not in the MS Store repository (but a lot is in the Community Repository), and thus winget is unhelpful it seems

@denelon This is great!  I have managed to get winget working today.  I installed PowerShell 7.3.5, then installed the winget Powershell module, and (re)installed winget from the elevated PowerShell session, and now it works!
Now we just need integration of the Community Repository with Intune...


text:
Error while trying to list installed packages or upgrade them (Win 11)

Brief description of your issue
Error when trying to upgrade, list or install anything with winget.
Steps to reproduce
Don't have any exact steps - from the events in last time it could possibly be connected to computer migration from one company domain to another (new user in windows which is in every other aspect identical to previous one) - but I don't have info about the exact steps of migration...
Expected behavior
Winget should be able to work with any profile on the Windows...
Actual behavior
I'm getting error:
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x800f024b : The hash for the file is not present in the specified catalog file. The file is likely corrupt or the victim of tampering.
Environment
Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.2215
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.2201.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

I know there are sometimes issues when trying to use winget from a different user account than the user who installed it (depending on how it was installed). I don't quite remember which issue contains the details, but if I can find it, I'll link it.
Are you able to try installing winget manually on your profile, either by using Add-AppxPackage https://aka.ms/getwinget or downloading and running the package from https://aka.ms/getwinget?

I'm sorry, i didn't catch the notification for your message.
Yes. Actually I've tried it but doesn't understand the result. Installation process run and ended without any errors. In manual installer I see information that App is already installed with version 1.20.2201, when I try to run it.
But it doesn't make any change to winget behaviour.

I've a similiar Issue, which is connected to this, resulting in the same error.
https://github.com/marticliment/WingetUI/issues/1544

authors: Camatius LittleFreak Trenly


text:
Can't install "Gnu Arm Embedded Toolchain"

Brief description of your issue
Trying to install Gnu Arm Embedded Toolchain and it either doesn't work or I can't figure out proper commands (which could be some kind of UX issue).
It is present in winget-pkgs and searchable by winget search.

Steps to reproduce
C:\> winget search Arm.GnuArm
Name                       Id                          Version
-----------------------------------------------------------------------
Gnu Arm Embedded Toolchain Arm.GnuArmEmbeddedToolchain 9-2020-q2-update

C:\> winget install -e --id="Arm.GnuArmEmbeddedToolchain"
No package found matching input criteria.

C:\> winget install -e --name="Gnu Arm Embedded Toolchain"
No package found matching input criteria.

Expected behavior
Gnu Arm Toolchain installed

Actual behavior
Error No package found matching input criteria.

Environment
Windows Package Manager v0.1.42101 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19042.421
Package: Microsoft.DesktopAppInstaller v1.10.42101.0
...

@LK4D4  Arm.GnuArmEmbeddedToolchain is the package Id.
Try winget install Arm.GnuArmEmbeddedToolchain

@denelon Thanks! That works, but why --id= doesn't? It worked for powershell for example.

@LK4D4 the syntax would be:
winget install -e --id Arm.GnuArmEmbeddedToolchain
The "=" sign is not part of the syntax for an argument.
I'm going to close the Issue since I believe your problem has been addressed. Feel free to open any new Issues you encounter.


text:
Gramps.Gramps does not allow uninstall

after running winget install -e --id Gramps.Gramps
when running

winget uninstall -e --id Gramps.Gramps

winget uninstall Gramps

will return

No installed package found matching input criteria.

however the items is still found in control pannel uninstall apps

winget list gramps
Name        Id                Version
GrampsAIO64 GrampsAIO64 5.1.3 5.1.3

winget uninstall grampsAIO64   Does work
winget uninstall gramps  does not work

winget search gramps
Name   Id            Version
Gramps Gramps.Gramps 5.1.3

This issue should be solved now:
Name                                      Id                                        Version
-----------------------------------------------------------------------------------------------------
GrampsAIO                                 Gramps.Gramps                             5.1.3

repo: microsoft/winget-pkgs


text:
New version: JetBrains.Gateway version 2023.3.1

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run

/AzurePipelines run

Hi @PckgrBot,

Current manifest version 2023.3 has 2 parameters, which is less than this PR's version number 2023.3.1's 3 parameters.

Is this intentional?
(Automated response - build 486)

authors: PckgrBot stephengillie


text:
Add PowerBI Agreements

Testing only
Microsoft Reviewers: Open in CodeFlow

@wingetbot run

Manifest Error: Field usage requires verified publishers. [Agreements]

Manifest Error: Field usage requires verified publishers. [Agreements]

Yep; Just was checking to see if the changes the team was working on were published yet

Is this PR still needed for testing?

authors: Trenly stephengillie


text:
New version: ChidiWilliams.Buzz version 0.9.0

Pull request has been created with komac v2.1.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Programs\Buzz\ffmpeg.EXE returned exit code: 1
Executable C:\Users\validator\AppData\Local\Programs\Buzz\ffprobe.EXE returned exit code: 1
Executable C:\Users\validator\AppData\Local\Programs\Buzz\torch\bin\protoc.exe returned exit code: -1073741515

(Automated response - build 870.)

@wingetbot waivers Add Validation-Executable-Error

authors: OfficialEsco stephengillie


text:
New package: NomanDhoni.BlinkEye version 1.4

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?
[x] Have you tested your manifest locally with winget install --manifest <path>?
[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Verify:

The application apparently doesn't have further UI - from the project page:

Usage

The app will display a full-screen popup every 20 minutes with a 20-second countdown to remind you to look away and reduce eye strain.

Click the "Skip Reminder" button to close the popup for the current session.

Audio will be automatically muted during reminders and restored afterward.

Verify:

The application apparently doesn't have further UI - from the project page:

Usage

The app will display a full-screen popup every 20 minutes with a 20-second countdown to remind you to look away and reduce eye strain.

Click the "Skip Reminder" button to close the popup for the current session.

Audio will be automatically muted during reminders and restored afterward.

That's correct

authors: fluentmoheshwar stephengillie


text:
OnlineMediaTechnologiesLtd.AVSDiscCreator version 6.2.4.564

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] Have you validated your manifest locally with winget validate --manifest <path>?
[x] Have you tested your manifest locally with winget install --manifest <path>?
[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

It's approved so why isn't it merged?

@sanikdah one of our moderators needs to review to apply the "Moderator-Approved" label.

Ahh ok I see, extra measures past the azure pipelines testing, got it.

OnlineMediaTechnologiesLtd seems quite long. I would remove the "Ltd" from the end of the PackageIdentifier and subsequently the directory name.

The short description shouldn't have "setup" in the name unless the product is actually used to setup a disc.
From: https://onlinehelp.avs4you.com/avs-disc-creator/index.aspx
"AVS Disc Creator is a compact and fully functional application that lets you perform different burning tasks with any kind of files."

The short description shouldn't have "setup" in the name unless the product is actually used to setup a disc.
From: https://onlinehelp.avs4you.com/avs-disc-creator/index.aspx
"AVS Disc Creator is a compact and fully functional application that lets you perform different burning tasks with any kind of files."

I would have to remake the entire PR then because last time I tried to change the files it just gave me a manifest content error.

If you know how to use git, you can rename the files. Otherwise you can create a new pr as wingetcreate does the most for you.

There you go.

authors: KaranKad denelon sanikdah


text:
Remove version: Jackett.Jackett version 0.21.1344

404 - release deleted
Microsoft Reviewers: Open in CodeFlow

URL: https://github.com/Jackett/Jackett/releases/download/v0.21.1344/Jackett.Installer.Windows.exe
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 918)

authors: russellbanks stephengillie


text:
Remove version: Wesnoth.BattleForWesnoth version 1.15.17

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://sourceforge.net/projects/wesnoth/files/wesnoth/wesnoth-1.15.17/wesnoth-1.15.17-win64.exe/download
OK
(Automated message - build 923)

URL: https://sourceforge.net/projects/wesnoth/files/wesnoth/wesnoth-1.15.17/wesnoth-1.15.17-win64.exe/download
OK
(Automated message - build 923)

URL: https://sourceforge.net/projects/wesnoth/files/wesnoth/wesnoth-1.15.17/wesnoth-1.15.17-win64.exe/download
OK
(Automated message - build 923)

Close with reason: Package still available.;


text:
Update: Joplin.Joplin version 2.2.2

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?
[X] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

/azp run

/azp run

/azp run

authors: OfficialEsco msftrubengu


text:
New version: Postbox.Postbox version 7.0.52

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?
[X] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.0 schema?

Microsoft Reviewers: Open in CodeFlow

/azp run

authors: OfficialEsco ryfu-msft


text:
Xanthus58.StillAliveReforged version 0.5.0

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] Have you validated your manifest locally with winget validate --manifest <path>?
[x] Have you tested your manifest locally with winget install --manifest <path>?
[x] Does your manifest conform to the 1.1 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

This appears to require the VC Runtime on my local attempt.

This appears to require the VC Runtime on my local attempt.

The program is built and compiled with rust and cargo respectively. I'm unaware of any dependency's needed to make it run on windows. As I've only just started learning the language a day or two ago. I did test it on a cloud vm; and it worked there without me downloading rust or cargo in any form.

If anyone has any possible suggestions I'll be more than happy to work on it, but as of right now I don't have any ideas. I'm currently researching the subject to see if there's a way for me to fix the issue.


text:
Add XSK_NOTIFY_FLAG_WAKE Support

Closes #43.

LGTM now.

authors: mtfriesen nibanks

repo: microsoft/xdp-for-windows


text:
MS Teams API don't send statusCode when answering to a call

I have a bot which should answer to calls, here's the documentation
Actually I can Answer a call (MS Team unhook  the call ) but I get no response status code or error. In documentation it mentioned that I should get a 202 accepted status code Microsoft Graph SDK  ( api method right after initialisation):
client
    .api('/users/me/sendMail')
    .post({message: mail}, (err, res) => {
        console.log(res)
    })

Here's my function :
    //before  initialisation is OK
    Call.prototype.Answer = function Answer() {
      console.log("answering __________>");
      var answer = {
        callbackUri: "https://ucbot.serveo.net/api/call",
        acceptedModalities: ["audio"],
        mediaConfig: {
          "@odata.type": "#microsoft.graph.appHostedMediaConfig",
          removeFromDefaultAudioGroup: false
        }
      };
      Graph.Client.api(
        "https://graph.microsoft.com/beta/app/calls/" + this.id + "/answer"
      )
      .post(answer, (err, res) => {
          console.log(
            JSON.stringify(
              " err (answer)  " + JSON.stringify(err, null, 1),
              null,
              1
            )
          );
          console.log(
            JSON.stringify("res (answer)  " + JSON.stringify(res, null, 1), null, 1)
          );
        });
    };

I think that the post request is working because my bot is answering to call, but res is undefined
Here's how I define my workflow
    function PlayWorkflow(call, event) {
      switch (event.resourceData.state) {
        case "Incoming":
          call.Answer();
          break;
        case "Establishing":
          //console.log("Establishing");
          break;
        case "Established":
          // console.log("Established");
          // call.Prompt();
          // call.SubscribeToTones();
          break;
        case "Deleted":
          console.log("Deleted");
          break;
        default:
          console.log(" default");
      }
    }

I have tried to check res.statusCode but I get no content.
How can I get response from MS Teams API ?

Please check this link on rawResponse to be able to get to the status code.  Answer does not reply with a body.

Thanks that's working

authors: Githamza kanchm


text:
[Snippet Generation] Stale C# v4 snippets are in the docs

Describe the bug
Snippet generation process doesn't remove existing snippet if it fails to generate a new one. When we moved from v4 to v5, some of the snippet generation failures meant that the docs ended up with stale v4 snippets.
e.g. https://learn.microsoft.com/en-us/graph/api/driveitem-post-children?view=graph-rest-beta&tabs=csharp
Expected behavior
Snippet generation process should remove the snippet files that it can't generate for that particular run.

Resolved with https://github.com/OneDrive/apidoctor/pull/197.
Will close once weekly generation runs tomorrow and docs update published.

Will close this one for now after the docs update at https://github.com/microsoftgraph/microsoft-graph-docs/pull/20976

authors: andrueastman zengin

repo: microsoftgraph/microsoft-graph-devx-api


text:
GET /teams/{team-id}/channels/{channel-id}/messages/$count is not supported

The path  /teams/{team-id}/channels/{channel-id}/messages/$count under GET operation is undocumented/not supported yet available in the metadata.
Below is the result from graph explorer.

This path should be removed from the open API files.

Having the same issue in graph explorer and powershell

repo: microsoftgraph/msgraph-metadata


text:
Редизайн кнопки "Добавить в список"

Кнопка "Добавить в список" сейчас реализована через элемент Menu. Из-за этого есть проблемы с версткой, так как к Menu не применяются стили от кнопок, поэтому эта кнопка выглядит всрато рядом с кнопкой "Смотреть" (по крайней мере на tvOS).
Нужно переверстать это с помощью элемента Button:

В виде лейбла кнопки должен отображаться текущий статус в списке.
При нажатии по кнопке:

Если тайтла еще нет в моем списке, добавить его в список "Смотрю".
Если есть в списке, открывать такую же модалку как на экране "Мой список". Эту модалку следует переиспользовать.

У кнопки на tvOS нужно задать .buttonStyle(.card) (и добавить .padding() по аналогии с кнопкой "Смотреть"), а на остальных платформах — .buttonStyle(.bordered).

Такой редизайн позволит нам сделать кнопку симпатичной, а также позволит гибко управлять списком прямо с экрана сериала.

Не запланировано ли? Потому что статус смотрю автоматом проставится если человек хоть 1 серию посмотрит

authors: dimensi flaksp

repo: midori-no-me/ichime


text:
Can't deploy Tensorflow chatbot on a Apache web server using Flask

Im trying to deploy my flask chatbot on Wamp server using mod_wsgi. I am able to run a simple flask app on wamp. But when i try to run my flask AI chatbot that uses python packages such as tensorflow, numpy, tflearn etc, wamp wouldn't load it. I tested the flask app locally without any problem. But it doesn't work on wamp apache. Also it is unable to load the json file.
This is how i have configured apache
LoadFile "c:/users/juliana thayil/appdata/local/programs/python/python36/python36.dll"
LoadModule wsgi_module "c:/users/juliana thayil/appdata/local/programs/python/python36/lib/site-packages/mod_wsgi/server/mod_wsgi.cp36-win_amd64.pyd"
WSGIPythonHome "c:/users/juliana thayil/appdata/local/programs/python/python36"
WSGIPythonPath "C:/wamp64/www/miniproject"
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
WSGIScriptAlias /miniproject c:/wamp64/www/miniproject/web.wsgi
<Directory c:/wamp64/www/miniproject>
require all granted

Did you see any interesting errors or messages in the log? What do you mean by "it is unable by load the json file"? What json file is this?

There are no errors in the log but i think apache is not able to access the python packages installed in the main python installation.
The json file contains the dataset that the chatbot uses to produce responses.
Do i have to create a virtual environment for the flask app and install all the packages in it? If so, what changes should i make to the apache configuration file ?

@JulianaThayil You may be looking at the wrong log file then, because if Python cannot load packages, then there should be an import error message in the log. This is the Apache error log that you are checking, correct? See https://modwsgi.readthedocs.io/en/develop/user-guides/debugging-techniques.html for details.
You definitely need to install all your dependencies. Whether you do it on a virtualenv or in the global interpreter is a matter of preference. I would make a virtualenv to keep things neatly organized. Unfortunately I don't use Apache/mod_wsgi, so cannot tell you what to change.
I suggest you first concentrate on having good logs for errors, because without that is like driving with a blindfold. You will not be able to figure out the fix if you don't know what the problem is.

I am able to debug after adding LogLevel debug  to the configuration.
Thank you so much for your help.

authors: JulianaThayil miguelgrinberg

repo: miguelgrinberg/flasky

license: mit

license_source: bigquery


text:
I tried your audio code but I can't able to run it alone.

Can u please suggest me some example for streaming live audio to python server

This is the only example I have for audio streaming. Sorry.

I want to run your audio code alone how to run the code

Sorry, but I don't have a better example to show you. This is an old project of mine that I built for a conference talk, it is not a standalone application that you can install and run independently. I suggest that you take the code that you need and build a separate application with it.

authors: BavithraRamesh miguelgrinberg

repo: miguelgrinberg/socketio-examples


text:
Example in readme throws error

package main

import (
	"encoding/hex"
	"fmt"

	solsha3 "github.com/miguelmota/go-solidity-sha3"
)

func main() {
	types := []string{"bytes1"}
	values := []interface{}{
		"0xa",
	}

	hash := solsha3.SoliditySHA3(types, values)

	fmt.Println(hex.EncodeToString(hash))
}

Output
panic: interface conversion: interface {} is string, not uint8

goroutine 1 [running]:
github.com/miguelmota/go-solidity-sha3.pack(0x41c5805, 0x6, 0x4188e00, 0xc0000ca700, 0x0, 0x1, 0xc0000fe080, 0xc0000f5e38)
        /Users/vaibhavchellani/go/pkg/mod/github.com/miguelmota/go-solidity-sha3@v0.1.0/solsha3.go:970 +0x1b32
github.com/miguelmota/go-solidity-sha3.solsha3(0xc0000c43d0, 0x1, 0x1, 0xc0000f5f40, 0x1, 0x1, 0xc0000ca660, 0xc0000ca6c0, 0xc0000ca640)
        /Users/vaibhavchellani/go/pkg/mod/github.com/miguelmota/go-solidity-sha3@v0.1.0/solsha3.go:829 +0xd8
github.com/miguelmota/go-solidity-sha3.SoliditySHA3(0xc0000f5f30, 0x2, 0x2, 0xc0000ca700, 0x403b38a, 0x42ee5a0)
        /Users/vaibhavchellani/go/pkg/mod/github.com/miguelmota/go-solidity-sha3@v0.1.0/solsha3.go:768 +0x27c

Shouldn't it be bytes instead of bytes1?
types := []string{"bytes"}

Works for me:
c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470

authors: sanilborkar vaibhavchellani


text:
New wheel?

Hey @mihakralj, I see you’ve forked my skender.stock.indicators library recently, but have started on a path for a new library.
Any feedback on how we can do better to meet your needs?
Or, is your library intended to be uniquely for QuantTower?
We’re always looking for contributors too, if you’re interested in joining us.

@DaveSkender, I am flattered you noticed my feeble proto-library within 10 hours of me publishing it! I feel like a kindergarten kiddo tapped on the shoulder by a PhD scholar because I peeked into their thesis paper! :-)
To answer some of your queries:

my library does have a set of classes just for Quantower - and I am considering to add classes to NinjaTrader in the future
the core calculation classes are all made with a fundamental design goal to allow updates of the current value; indicator classes should be able to ingest a new OHLCV of a currently-forming candle, and modify the last calculated value in a list without triggering a full recalculation.
for a similar reason, I am not hiding initial values with NaNs - I am alculating them correctly, even if a total length of an array is shorter than the minimum recommended period.
My real underpinned desire is to build some more advanced indicators, once I have the 'factory' established. See an example of that in HEMA (Hull-EMA hybrid indicator) and in my JMA contribution to Pandas-TA
I am using your library (as well as Pandas-TA) to test validity of results. I love your approach to tests with .CSV reference tables! (I have no formalized tests at the moment!)

There is one design improvement that I am still tinkering with and could be a potential collaboration/contribution: how to abstract C# indicators so the usage syntax would mimic PineScript code as close as possible. There are so many useful and relevant strategies written in PineScript - and converting that code into C# is not elegant at all...

In my (amateur-ish) view, you won't be able to implement a real-time (update-able) indicators if you are sticking with static classes. Each (real-time) indicator needs its own mini-persistence to store buffers, past values and other bits of 'internal state' of indicator, so we don't need to re-calculate on each trigger. Unless I am missing something one static class with bunch of methods cannot maintain persistence (for each instance of each used indicator) across multiple calls.
I solved this by:

each indicator is implemented as its own class that requires to be instantiated at the beginning of the cycle (for example, for MACD I need to instantiate three SMA-based objects)
each indicator's constructor is used to set-up and copy input parameters into persistent internal variables (Period -> _p)
one of constructor's parameters is also (a reference to) an input data signal, allowing me to regularly just call Indicator.Add() with all required parameters already captured during Indicator.New() construction

Perhaps I'll learn how to do the same persistence with static class?

Yah, that's exactly what I was thinking too, for my v2.  There's a persistence problem to solve.  Your approach for managing it is solid and a quite good use of C# class design.  It will work well with multi-threading too, if that's ever a use-case for you.

There is another half-baked magic I am experimenting with: to make each indicator class an event publisher AND an event subscriber.
So, signals on a new data intake would flow from data source to indicators and all Add() statements would be obsolete.
Will ping you once I have a prototype with events. And once my JMA C# implementation is done, I will adapt it for your structure and issue a pull request into your library.

@DaveSkender I completed the (reversible) JMA indicator - and I am very pleased with results (see pic below).  JMA is super-low-lag (like ZLEMA) but also suuuuper smooth with minimal overshooting.
If you use .NET interactive, and build the QuantLibrary.DLL (using QuantLibrary.csproj in /Algos), you can use Tests/quantlib.dib and see it work.
If you like what you see in Jurik Moving Average (JMA), I can retrofit it into your framework and initiate a pull request. Let me know.

I’ll take a look when I have more time.  Looks nice.  Similar to ALMA.
Just Googling a bit, I see that JMA is out there as re-creations from the original.  Do you have an original published formula from Jurik?  I tend to avoid adding community formulas since I can trace the provenance back to a reputable source. Also, adding unlicensed proprietary things could make it legally difficult for professional orgs to use the library.  If the original author published it online or in a book, it’s fair game.

JMA is closer to Wilder's Parabolic MA and ZLEMA than to ALMA; you can see some comparison analysis of JMA here.
Jurik Research never officially discolsed JMA algo, and they stopped developing/selling the proprietary indicator DLL in 2021 (see here). The reverse-engineered JMA indicator that is 98% correct (compared to official JMA tests) was published on several places throughout the years, the most complete paper (that I followed) is here. But even this paper doesn't explain Mark Jurik's volatility bands well-enoguh, so I also followed another reverse-engineered algo here.
The JMA algo has nothing super-proprietary in it - three smoothing stages, the first one being adaptive EMA, the second one reducing the lag and the third one compensating for the over-shooting. The approach to volatiliy in adaptive EMA is a bit unique (and required 65 bars for a warming-up period), so is the usage of a 'phase' parameter (how elastic/rigid is the curve).
JMA (made by Mark Jurik) and HMA (made by Alan Hull) are very comparable, with a minor difference that Alan's algo for HMA is super-simple (12 lines of core code) and published by Alan, while Mark's algo is rather complicated (90+ lines of core code) and Mark never bothered to publish/explain his approach.

Sounds like Jurik retired!  He should have published a book of formulas on his way out to get some residual value out of them.  Lost opportunity for him 🙁

@DaveSkender I packaged and published the proto-version of QuantLib on NuGet. I did that just so you (and others) can play with a .NET interactive notebook that includes MA comparison tests.
Let me know if this .dib notebook works for you (VS.Code should have no problem running it) - and what is your opinion. For me, the 6th plot (Chirp) is particularly good exposing good vs. terrible indicators:

@DaveSkender I'd like your opinion on the updated class model. Here is an example of how MACD could be constructed; data signaling happens through events and pub-sub model. Below is a functional construct of MACDwith the new class model
var history = await Yahoo.GetHistoricalAsync("TQQQ", DateTime.Today.AddDays(-230), DateTime.Now, Period.Daily);
TSeries data = new();
EMA_Series slow = new(data,26);
EMA_Series fast = new(data,12);
SUB_Series macd = new(fast,slow);
EMA_Series signal = new(macd,9);
foreach (var i in history) data.Add((i.DateTime,  (double)i.Close));

MACD is a good use case for your design since it produces several elements (though, you're the missing histogram part).  Functionally, from a programming standpoint, this can work well for incremental calculations since you're really just using Add thereafter, which is nice.
I think the challenge here will be for the user.  You may be asking them to do too much if they'd need to do all six of those steps in proper sequence every time they want to do a different flavored MACD.  It would be more usable if you can get the Series parts into a single interface.

you ALMOST got it - instead of class TSeries, MACD should be packaged into its own class that returns three TSeries: macd, signal and diff (histogram). And when a user looks inside MACD_Series class, it is rather clean and logical, sequencing EMAs and SUBs one after another...
Probably time to start writing some .NET interactive notebooks with usage patterns and how-tos!

I think for my library, I’ll probably be able to keep my IResult based class output intact and do all static elements, with something like:
var quotes = [..];
MacdBase macdBase = quotes.InitMacd(26,12,9);
IEnumerable<MacdResult> results = macdBase.Results();

// to increment
macdBase.Update(quote);

And use an interface design pattern for the base.  Base would need the .Update(quote) part and results would just update automatically without need for new extraction.
Ref: https://github.com/DaveSkender/Stock.Indicators/discussions/216#discussioncomment-2444760

I just published the updated version 1.0.4 that is able to do that too for non-incremental users. see the last example in getting_started.ipynb

Nice.  If you want a real stress test of your design, try to implement Ichimoku Cloud.  It uses more than one candle value, has multiple output series, and projects into the future.
p.s. I've never seen Plotly.NET before.  It looks like a nice tool for certain use cases.  I've added it to my list of data and visualization options.

authors: DaveSkender mihakralj

repo: mihakralj/QuantLib


text:
IMPROVE - iOS 17 @Observable

Describe the feature you want to improve
As the project uses iOS17 as minimum target change all the @Published property wrapper to the new Observation Framework

I want to do this task, if it is ok @mikaelacaron

Closed with #36

repo: mikaelacaron/Basic-Car-Maintenance


text:
Fix bug, and remove workaround in setup.py

Previously, mod_name in setup.py was improperly escaped. This only became apparent on Windows, where a workaround had been implemented to circumvent the effects. This PR fixes the bug, and removes the workaround (which became a bug once the initial one was fixed).

I've fixed this to work with non-Windows, and it will be pushed/merged in the near future. Thanks!

authors: mikeboers vidartf

repo: mikeboers/PyAV