sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: [CustomTextEditor extensions] Untitled document content is lost when doing "Reopen with..." custom text editor
Labels: bug,custom-editors

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.67.2
- OS Version: Windows 10

When doing "Reopen with... Cat Scratch" on **untitled** file, the content is lost

Steps to Reproduce:

1. Open the https://github.com/microsoft/vscode-extension-samples/tree/0d36653b0da5041f49fe049e34f6d8671f8e1002/custom-editor-sample
2. Augment the `catScratchEditor.ts` `updateWebview` code to add logging: `console.log("updateWebview called. Document length = " + document.getText().length);`
3. Press F5 to debug the extension.
4. Double-click on the tab bar to open new "Untitled 1" tab.
5. Paste valid catScratch content:
```json
{
  "scratches": [
    {
      "id": "8lYOoWqz2rHtPuhvnZ43eMx1mG6WnFrm",
      "text": "😸",
      "created": 1584577931699
    },
    {
      "id": "aZ57bJUEaXZ5wuBAX6NfGuj85Y6iw84N",
      "text": "😻",
      "created": 1584577933329
    }
  ]
}
```
6. Use  "Reopen with..." / "Cat Scratch" on the "Untitled 1" file.
7. Observe: That the editor has no scratches
8. Observe "updateWebview called. Document length = 0" in the log. The document content got lost

I expect the untitled document content to be preserved when reopening with custom editor.

https://user-images.githubusercontent.com/1829149/169727649-f22a7ae9-a680-49fa-a0b2-1a1310485be0.mp4
Repository: godot
Issue: New TileMap editor: Tilemap > can select both pencil & erase tool
Labels: discussion,topic:editor,usability,documentation,topic:2d

### Godot version

4.0.alpha8

### System information

Windows 10, Mac 11

### Issue description

When I created a tilemap and attempted to draw tiles, nothing would happen. I was confused because I selected the pencil icon in the Tiles/Tilemap lower pane and was expecting something to happen. After testing on two computers, I realized that the Erase button was never getting deselected when I selected the pencil icon, and the delete functionality was still being enforced. I hope this isn't the intended behavior of these buttons, so flagging this as a bug. 


### Steps to reproduce

1. In Scene, open a tilemap.
2. Attach a tileset to it.
3. In the bottom pane, click Erase icon and then click pencil icon. Notice how both icons are highlighted.
4. Attempt to draw. Won't work.
5. De-select erase icon.
6. Works.

### Minimal reproduction project

_No response_
Repository: pytorch
Issue: [primTorch] Meta function for item creates a dummy value
Labels: triaged,module: primTorch

The Meta function for item currently creates a dummy value. This is harmless for now, but we need improve our modeling of "meta numbers" to indicate that this value is unknown except at runtime. 

cc @ezyang @mruberry @ngimel
Repository: pytorch
Issue: [primTorch] item prim can't return a bool properly
Labels: triaged,module: primTorch

This is because its schema is `item(Tensor a) -> Scalar`, but the actual torch.Tensor.item can return a bool or a scalar. Trying to return a bool from the implementation of the item prim will convert the result to an integer.

cc @ezyang @mruberry @ngimel
Repository: vscode
Issue: Cannot auth if vscode.dev is in iframe
Labels: feature-request,authentication

ADD ISSUE DESCRIPTION HERE

Hi
I noticed that there is a problem with github authentication when the page is in iframe, the external window is displayed for a while, it disappears but authentication doesn't go any further.

Tested on localhost (by xampp with standard configuration)


Version: 1.67.2
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36
Embedder: vscode.dev

<!-- generated by web issue reporter -->
Repository: youtube-dl
Issue: Feature Request: Adding Hallmark Channel
Labels: site-support-request

Movies can be viewed via URLS:

https://www.watchhallmarktv.com/#/movies/Romance+to+the+Rescue
Repository: create-react-app
Issue: Start support stable version of CRA
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

Yes. There is only latest version of cra. But that version is not stable, IMO. For example, version 5.0.1 oblige me to use react 18. But storybook does not support it yet. I have to edit project. If I have storybook im my custom template, installing of template breaks.

IMO, stable version should work with all common tools. New patch shoudn't break simple templates. Otherwise, it's breaking change.

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

Start to support stable version. In ideal, It will very closely to latest vestion. 

Stable version determine some SLA, which tell, that particular feature should work.

### Alternative

For enough, determine SLA. For example, decide, that all customization in templates not support. Or there is supported only one type of customization.

There are some things, I wish to be in SLA:
1. tools, that I can use with available cra.
2. customizations of react-script, that I can do with third party libraries
Repository: godot
Issue: ViewportContainer not properly scaling rendering with STRETCH_MODE_2D
Labels: bug,topic:rendering

### Godot version

3.x, 4.x

### System information

Windows 10

### Issue description

The 2 sprites in this scene
![image](https://user-images.githubusercontent.com/67792882/169762101-942a335e-2f59-4265-9992-93c16a3f5d29.png)
should be displayed the same when Control and ViewportContainer are laid out with Full Rect.

For now, when the Window stretch mode is set to STRETCH_MODE_2D, SpriteOut is correctly displayed upscaled:
![image](https://user-images.githubusercontent.com/67792882/169762196-d71f4415-c62c-4846-bfec-d9c6cc096bce.png)

while SpriteIn is displayed at a low resolution:
![image](https://user-images.githubusercontent.com/67792882/169762395-18c6de53-5e0e-4ed7-87e0-c4b87ae8605d.png)

### Steps to reproduce

See project below.

The size of the window has to be low, for example (128, 128), and the test size higher, for example (1024, 1024).

### Minimal reproduction project

[ViewportContainer.zip](https://github.com/godotengine/godot/files/8752244/ViewportContainer.zip)
Repository: go
Issue: net/http: readCookies accepts empty cookie in 1.18
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go1.17.10
</pre>

### Does this issue reproduce with the latest release?
No

go1.13 - go1.17 can reproduce it.
go1.12、go1.18 can not reproduce it.



### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env

</pre></details>

### What did you do?

```
req, _ := http.NewRequest("get", "http://www.example.com/", nil)

req.Header["Cookie"] = []string{"a=va;;b=vb"}  // Cookie with continuous semicolon

fmt.Println(req.Cookie("a"))
// go1.12   ->  a=va <nil>
// go1.13   ->  a=va <nil>
// go1.17   ->  a=va <nil>
// go1.18   ->  a=va <nil>


fmt.Println(req.Cookie("b"))
// go1.12   ->   b=vb <nil>
// go1.13   ->  http: named cookie not present
// go1.17   ->  http: named cookie not present
// go1.18   ->   b=vb <nil>
```
https://go.dev/play/p/WLdtvbm5FHx?v=goprev


### What did you expect to see?
same as go1.18/go1.12 's result:
```
a=va <nil>
b=vb <nil>
```


### What did you see instead?
```
a=va <nil>
 http: named cookie not present
```


### How to Fix
https://github.com/golang/go/blob/085c61ae517110168841be0afeb8f883d66fe95a/src/net/http/cookie.go#L259

fix it：
```go
if splitIndex := strings.Index(line, ";"); splitIndex >= 0 {
```
Repository: flutter
Issue: Support extended FABs collapsing into a FAB
Labels: framework,f: material design,team-design,triaged-design

Reference: https://m3.material.io/components/floating-action-button/guidelines

part of https://github.com/flutter/flutter/issues/91605

https://user-images.githubusercontent.com/48603081/169766247-1b702eff-e409-4ba3-8734-ad00b8c608d3.mp4
Repository: angular
Issue: Forms should accept Set collections in addition to arrays
Labels: feature,area: forms,feature: under consideration

### Which @angular/* package(s) are relevant/related to the feature request?

forms

### Description

Currently, using `Validators.required`, `Validators.minLength` and `Validators.maxLength` validators don't work with sets. This is because a set has a `size` property instead of a `length` property. 

### Proposed solution

`Validators.required`, `Validators.minLength` and `Validators.maxLength` validators should work with sets.

Example: 
```ts
const control = new FormControl(new Set(), [Validators.required])
```

### PR

I already created a PR which in my eyes solved the issue: https://github.com/angular/angular/pull/45793 (PR has been closed).
Repository: vscode
Issue: Add context menu contribution point to Watch Variables Pane
Labels: feature-request,debug

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
The title is pretty much self-explanatory. It would essentially work identically to how the "normal" variables list work, since we have variableReferences, expressions and all that stored in the "containers".

This would be a far superior solution than adding individual items as suggested by this issue https://github.com/microsoft/vscode/issues/133284

That way debug adapters can add custom actions like "format this value like so" or "this watch variable has this behavior" by adding a context menu action that gets the clicked item's data passed to it.
Repository: flutter
Issue: [Proposal][WEB]: Ability to skip loading auto-generated manifest files.
Labels: c: new feature,engine,platform-web,c: proposal,P3,team-web,triaged-web

I'm want to release my app as embedded web app on social network platform (namely VK.com). Theirs documentation says, that in order for my app to be visible in apps catalog for end users who uses iOS client of this platform, I have to prepare app as an ODR archive and I have problem running my app in this form. Unfortunately, I cannot access any debug information on their iOS client. Documentation says, that I should try to open app as local web page (without using any web server). In browser console I'm getting next error:
```
Access to XMLHttpRequest at 'file:///home/web/assets/FontManifest.json' from origin 'null' has been blocked by CORS policy: 
Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
```
And, I think that exact same error happens in platform client app.
Is there any way to change, how flutter loads its manifests on application start or maybe disable this function at all, so I can load any necessary assets some other way?
I saw this [issue](https://github.com/flutter/flutter/issues/93260), but there is not much details about whats going on, and [linked issue](https://github.com/flutter/flutter/issues/49901) describes different use case.
Repository: material-ui
Issue: [Tabs] scrollIntoView blocked by scrollable tabs
Labels: new feature,support: question,component: tabs

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

I am trying to use Tabs component to navigate user on page - on tab change I call scrollIntoView to some section on page. It works well in most cases, except when I am on small device tabs turns into scrollable tabs - it that case when I click on tab which is not entirely visible nice animation to switch tabs appear but scrollIntoView is not working (page is not scrolled to section).

Update: window.scrollTo works fine, also without behaviour: smooth it works without problem

### Expected behavior 🤔

scrollIntoView is working in all cases OR there is a way how to know that tabs scroll animation ended so I can delay my scroll functionality

### Steps to reproduce 🕹

Steps:

1. Open minimal example [https://codesandbox.io/s/react-mui-forked-dfm2q5?file=/index.js](https://codesandbox.io/s/react-mui-forked-dfm2q5?file=/index.js)
2. Resize preview so some tab is only partialy visible e.g.
![image](https://user-images.githubusercontent.com/16593470/169785062-f1c07b97-a606-4c01-8da8-c38966f42338.png)

3. click on partially hidden tab (3rd tab) - tabs are switched but view is not scrolled to 3rd tab
4. click on some visible tab or click again on 3rd tab - view is scrolled using scrollIntoView 


### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

  System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
    Memory: 3.82 GB / 15.89 GB
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 8.5.5 - C:\Projects\my-business-v3\node_modules\.bin\npm.CMD
  Managers:
    pip3: 20.2.3 - C:\Python39\Scripts\pip3.EXE
  Utilities:
    Git: 2.21.0.
  Virtualization:
    Docker: 20.10.13 - C:\Program Files\Docker\Docker\resources\bin\docker.EXE
  IDEs:
    Android Studio: Version  3.4.0.0 AI-183.6156.11.34.5522156
    VSCode: 1.67.2 - C:\Users\OndrejBrynda\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
    Visual Studio: 16.11.32407.337 (Visual Studio Professional 2019)
  Languages:
    Python: 3.9.2
  Browsers:
    Chrome: 101.0.4951.67
    Edge: Spartan (44.22000.120.0), Chromium (101.0.1210.53)
    Internet Explorer: 11.0.22000.120
</details>

Tested in Chrome, Firefox
Repository: flutter
Issue: [Proposal] support for switching between flutter versions
Labels: c: new feature,tool,c: proposal,P3,team-tool,triaged-tool

Hi,

Can you please introduce / reintroduce a flutter version command?
So that you can go to a specific version?

Usecase example:
A developer has tested an application in 3.0.0. The build server shall now go to version 3.0.0 an compile flutter for release. But the current version is 3.0.1. There is defenetly a need for a command "pleas go to {version}".
Repository: PowerToys
Issue: Render SVG thumbnails against transparency grid
Labels: Idea-Enhancement,Product-File Explorer

### Description of the new feature / enhancement

When SVG graphics are all-white, it is impossible to see what the graphic is from its thumbnail, as it is rendered against a white background. There should be an option to render SVG thumbnails against a transparency grid.

### Scenario when this would be used?

SVG graphics are often pure-white only. A typical use case for SVG is for logos, which often have pure-white versions.

### Supporting information

_No response_
Repository: create-react-app
Issue: Improve Jest config overrides
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

Currently, [some Jest options can be overridden through Jest config in `package.json`](https://create-react-app.dev/docs/running-tests/#configuration), but the overrides are _appended_ to the built-in config options. This complicates or totally disallows overrides for configuration options, that are sensitive to the order.

For example, the `transform` option in Jest lists an import path regular expression to the [Jest transformer](https://jestjs.io/docs/code-transformation). The `Map<ImportPathRegExp, Transformer>` is iterated in Jest from the beginning, and the first transformer that matches the import path is used. Because the built-in transformers in CRA contain a very general import path regexp for practically all {Java,Type}Script files, it is impossible to specify a custom transformer for {Java,Type}Script files, because the built-in transformer is always listed before the custom transformer and the built-in transformer matches all  {Java,Type}Script files. In this kind of situation, the specific configuration options have to go before the more general ones, but the CRA does not allow us to tweak the order of configuration options.

### Describe the solution you'd like

Currently, [for object types, the CRA simply _spreads_ the custom config into the built-in](https://github.com/facebook/create-react-app/blob/63bba07d584a769cfaf7699e0aab92ed99c3c57e/packages/react-scripts/scripts/utils/createJestConfig.js#L102), this allows to _override via replacing_ e.g. when the custom config contains _exactly the same key_ as built-in config, the custom will replace the built-in, this is apparently used for replacing the built-in Jest transformer with `ts-jest` and this stops working when the built-in config changes slightly (https://github.com/facebook/create-react-app/issues/9667).

A better option would be to spread the custom config _before_ the built-in, this will provide more control to the users and the built-ins will act as a fallback. It is not simple as that, because then the custom option will be _replaced_ by a later appended built-ins when the keys are equal. The sketched implementation would go like

```JavaScript
config[key] = Object.assign({}, overrides[key], Object.assign({}, config[key], overrides[key]));
```

The entries from `overrides[key]` are declared first, then the built-in from `config[key]` are appended but before, it is combined with `overrides[key]` again and this time the `overrides[key]` replaces built-in `config[key]` when the keys are equal.

I hit this problem with the `transform` property and I'm not sure if this behavior will fit [all supported configuration options](https://create-react-app.dev/docs/running-tests/#configuration).
Repository: node
Issue: Expose Undici's ProxyAgent and setGlobalDispatcher within Node
Labels: feature request

_Originally posted by @pimterry in https://github.com/nodejs/node/issues/42814#issuecomment-1134535017_

> As a motivating example: I'd love to automatically support global Fetch in https://www.npmjs.com/package/global-agent (drop-in lib to make all Node HTTP use the system proxy) but even though Node bundles Undici AFAICT this isn't possible without adding a full separate Undici dep to that lib, which would more than double its size, ~~just~~ [EDIT: largely] to ship code that's already present in Node itself.

> This would be immediately solved if `ProxyAgent` and `setGlobalDispatcher` were exposed explicitly somewhere in future.

> I've just done a quick test on main in Undici: exposing ProxyAgent & setGlobalDispatcher explicitly increases the Undici bundle size from 334.2kb to 336.0kb (+1.8kb / +0.5%).

> Could these APIs be included and exposed in future? Agents for HTTP are a very core API that it would be useful to have usable out of the box, the equivalent functionality is usable OOTB for the legacy http module APIs, and 2kb is not a significant jump in bundle size for this functionality.
Repository: material-ui
Issue: [SvgIcon] Stroke color not inherited correctly
Labels: waiting for 👍,component: SvgIcon

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

When setting the `color` prop on an instance of `SvgIcon`, the `fill` property is properly overridden, but the `stroke` property is not, resulting in strokes being invisible (or whatever the default in the SVG markup is).

### Expected behavior 🤔

`stroke` should inherit value from the `color` prop, same as `fill` does. FIx should be as simple as adding `stroke: 'currentColor'` to the component CSS, same as there already is for `fill`. I'm happy to put up a PR to fix this if that indeed is the desired behavior (and there are no concerns about unintended side effects).

### Steps to reproduce 🕹

Steps:

Sandbox: https://codesandbox.io/s/reverent-golick-hifz71

1. Notice the circle is visible, but the line is not
2. Add `stroke="currentColor"` to the `SvgIcon`
3. Notice the circle and line are both visible now


### Context 🔦

Creating a custom SVG icon that uses a mix of circles and lines. 

### Your environment 🌎

I couldn't get `@mui/envinfo` to run, but I'm on Firefox 100.0, `@mui/material 5.8.0` and `@mui/icons-material 5.8.0`
Repository: vscode
Issue: Table: Support horizontal scrolling
Labels: feature-request,table-widget

Currently the setting is there, but things don't really work that well.
Repository: create-react-app
Issue: Error when Analyzing bundle (source-map-explorer). 
Labels: needs triage

I would like to point out an issue I am facing. I followed the exact steps in this [docs](https://create-react-app.dev/docs/analyzing-the-bundle-size) but unfortunately when I try to run `npm run analyze` it gives the following error: 
```
npm run analyze

> tic-tac-toe@0.1.0 analyze
> source-map-explorer build/static/js/*.js

build/static/js/main.0e109ef0.js
  You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
```

`npm run build` was successful.

Can anyone look into this please. 

Thanks!