sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Snippet variables kebabcase transform
Labels: feature-request,snippets

<!-- ⚠️⚠️ 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. -->
Currently we have `upcase`, `downcase`, `capitalize`, `camelcase`, `pascalcase` transforms.

Example for adding `kebabcase` transform:

`TM_FILENAME_BASE` is `UserProfileItem`
```
"${TM_FILENAME_BASE/(.*)/${1:/kebabcase}/}"
```
Result:
```
user-profile-item
```

Also suggesting other cases that could be useful.
| **Case** | **Result** | **Already Have** |
| - | - | - |
| `camelcase` | `userProfileItem` | ✓ |
| `pascalcase` | `UserProfileItem` | ✓ |
| `kebabcase` | `user-profile-item` | ✗ |
| `snakecase` | `user_profile_item` | ✗ |
| `dotcase` | `user.profile.item` | ✗ |
| `slashcase` | `user/profile/item` | ✗ |
| `titlecase` | `User Profile Item` | ✗ |
| `sentencecase` | `User profile item` | ✗ |
Repository: pytorch
Issue: Feature Request: torch.testing.make_scalar (make_tensor for scalars)
Labels: feature,triaged,module: testing

Came up in the discussion on https://github.com/pytorch/pytorch/pull/74313. The function would produce a Python scalar.
Repository: youtube-dl
Issue: Save chapter marks without video
Labels: question

Can i save only chapter marks without video (which downloaded before)?
Repository: godot
Issue: unexpected behavior animationplayer seek( )
Labels: discussion,documentation,topic:animation

### Godot version

3.3.stable

### System information

windows 10

### Issue description

animationplayer.seek(0,true) looks at keyframe later on in animation track to determine the state of an object.

This is unexpected ; if no keyframe is present in a track at time 0, the animationplayer should determine the state from the code, or, if not specified in code, from the scene nodetree. Instead the animationplayer is using the first available keyframe in the track.

![bug_animplayer_seek](https://user-images.githubusercontent.com/59080934/159447543-fbe8e4d3-6215-4c34-9a5d-a4ce01bedac3.png)



### Steps to reproduce

. disable coll shape from code
. animationtrack with 1 keyframe @1 sec : toggles coll shape activity
. use animplayer.seek(0,true)

### Minimal reproduction project

[test_animplayer_seek.zip](https://github.com/godotengine/godot/files/8322951/test_animplayer_seek.zip)
Repository: vscode
Issue: File name seems to be lost when navigating directories
Labels: feature-request,simple-file-dialog

Testing #145573

It is a little confusing that the file name seems to be lost when navigating directories. What makes it worse is that if you navigate upwards (`..`) it is preserved but downwards not

<img width="473" alt="capture" src="https://user-images.githubusercontent.com/1931590/159448403-986bb6c0-5938-49ed-9944-4dbd1986fe1a.png">

<img width="498" alt="capture" src="https://user-images.githubusercontent.com/1931590/159448463-a500284e-27ee-47fe-8b1d-94ca10bfde6f.png">


In the first one we could do

```
/home/dirkb/Projects/mseng/VSCode/Playgrounds/testpass/../file4.txt
```

where we highlight `..` blue

and in the second

```
/home/dirkb/Projects/mseng/VSCode/Playgrounds/testpass/143556/file4.txt
```

where we highlight `143556` blue.
Repository: vscode
Issue: CallHierarchyProvider's provided name should be used in references window for previous searches when there is no result for call hierarchy search
Labels: feature-request,callhierarchy

<!-- ⚠️⚠️ 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. -->
I set up a CallHierarchyProvider for my extension. The logic of the language is such that incoming calls aren't position-specific, but identified by the name of the file.
I can set the name in CallHierarchyItem constructor, which is shown corectly when returned from prepareCallHierarchy.
When an outgoing call search has no results, the References view reverts to show previous searches. Here the searches are identified with the word at cursor (at time of search) instead of the provided name.
The word at cursor doesn't identify the searches for the language the extension works with, I'm asking the provided name and detail should be shown instead.

correct:
![image](https://user-images.githubusercontent.com/5570057/159457992-8e7bf8c5-e8e7-4723-b469-9cc2bee980b3.png)

incorrect:
![image](https://user-images.githubusercontent.com/5570057/159458685-eeff0df6-c1e2-4b40-b3b7-aba58757fd16.png)
Repository: electron
Issue: [Feature Request]: Allow `setWindowOpenHandler` to create BrowserView instead of BrowserWindow
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

Right now it is not possible to have reference to `window` of BrowserView in renderer process.

This is however possible for BrowserWindow with `const windowRef = window.open()`. 

In some cases, it'd be very useful to be able to have `window.open()` create new BrowserView in parent window instead of new BrowserWindow.

Example use case:
- we render some external website using BrowserView
- we want to show some content on top of it
- we'd like to allow main renderer process to have DOM control over this overlay part

### Proposed Solution

I'd be like

```tsx
// renderer
const overlayWindow = window.open("about:blank", "overlay");

overlayWindow.document.write("<h1>Hello</h1>");

// main

mainWindow.webContents.setWindowOpenHandler(({ frameName }) => {
  if (frameName === 'overlay') {
    return { action: "allow", useBrowserView: true }
  }
})

mainWindow.on("browser-view-added", (view) => {
  // Manage position, etc here
})
```

### Alternatives Considered

I tried to manage such 'overlay' using new window on top of main window.

I was mirroring their position and size, trying to make it look as if there is only one window.

It was tricky due to multiple reasons: window shadow was flickering when focus was switching from one window to another, same with vibrancy effect, I also had to manage `setIgnoreMouseEvents` with forward options handling a lot of edge-cases

### Additional Information

_No response_
Repository: go
Issue: x/text/cmd/gotext: support `...` patterns
Labels: NeedsInvestigation,FeatureRequest

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.18 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes, go1.18 is the latest release as the time of filing this issue ticket.

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/harald/.cache/go-build"
GOENV="/home/harald/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/harald/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/harald/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/snap/go/current"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/snap/go/current/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/harald/github/lxkns/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build665793402=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->

Inside a Go module I've created a file `internal/translations/translations.go`:

```go
package translations

//go:generate gotext -srclang=en-US update -out=catalog.go -lang=en-US github.com/thediveo/lxkns/...
```

Then executing:

```bash
go generate ./internal/translations/
```

### What did you expect to see?

A correctly populated file `internal/translations/locales/en-US/out.gotext.json`:

```json
{
    "language": "en-US",
    "messages": [
        {
            "id": "discovered {Arg_1} composer projects",
            "message": "discovered {Arg_1} composer projects",
            "translation": "discovered {Arg_1} composer projects",
            "translatorComment": "Copied from source.",
            "placeholders": [
                {
                    "id": "Arg_1",
                    "string": "%[1]s",
                    "type": "",
                    "underlyingType": "string",
                    "argNum": 1
                }
            ],
            "fuzzy": true
        }
    ]
}
```


### What did you see instead?

`internal/translations/locales/en-US/out.gotext.json` lacking any messages:

```json
{
    "language": "en-US",
    "messages": null
}
```

### Notes

`gotext` does neither work correctly with `./...` nor `github.com/thediveo/lxkns/...`
Repository: vscode
Issue: QuickInput error aligns weirdly
Labels: feature-request,ux,quick-pick

Testing #145626

Notice how the quick input validation message aligns weirdly with the rest of quick input:
1. It overwrites the placeholder text to "Accept on enter..."
2. It goes below the quick input

It feels like it was just stuck on top of the existing quick input UI. I would love it feel a bit more native in the quick input.

![Screenshot 2022-03-22 at 12 18 57](https://user-images.githubusercontent.com/1926584/159470393-66566f5e-37ea-4cc8-ab4f-f3c8a72e79b2.png)
Repository: vscode
Issue: Limit length of InputBox validation message?
Labels: bug,quick-pick

Testing #145626

Currently there is no length limit to the validation message.
I like that it wraps.
Should we introduce some length limit so it can not go off screen?

![Screenshot 2022-03-22 at 12 26 52](https://user-images.githubusercontent.com/1926584/159471692-4d07b35f-cf0f-40db-b59f-15d93f5861e3.png)
Repository: vscode
Issue: [themes] Preserve my search for theme search in marketplace
Labels: feature-request,themes

![Recording 2022-03-22 at 12 37 00](https://user-images.githubusercontent.com/900690/159473329-b4d7c902-14e3-4cbd-8e47-1387d67f7ab1.gif)
Repository: PowerToys
Issue: FancyZones doesn't maintain windows position on graphics driver reset
Labels: Issue-Bug,Product-FancyZones

### Microsoft PowerToys version

0.56.2

### Running as admin

- [X] Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

Position some windows and then reset graphics driver with Win + Ctrl + Shift + B.

### ✔️ Expected Behavior

Positioned windows remain where they were.

### ❌ Actual Behavior

Positioned windows shift slightly.

### Other Software

_No response_
Repository: PowerToys
Issue: Image Resizer always ignores images orientation with images
Labels: Issue-Bug,Product-Image Resizer,Priority-3,Status-Reproducible

### Microsoft PowerToys version

"0.56.2"

### Running as admin

- [ ] Yes

### Area(s) with issue?

Image Resizer

### Steps to reproduce

- Trying to resize a jpeg image with 600px width and 1200px height (=portrait).
- Resize type: Fit; Width: 1200; Heigth: 768; Unit: Pixel; Make images smaller, not bigger: checked

### ✔️ Expected Behavior

The resized image should have 384px width and 768px height.

### ❌ Actual Behavior

The image still has 600px width and 1200px height.
The behavior is independent of setting 'Ignore image orientation' - this setting seems to be ignored.

### Other Software

_No response_
Repository: PowerToys
Issue: Creation of additional file types from file explorer
Labels: Idea-New PowerToy,Product-Tweak UI Design

### Description of the new feature / enhancement

Allow creation of files of type
text (.txt)
generic (.)
PowerShell (.ps1)
batch commands (.cmd) <= perhaps not anymore

or customizing this be bespoke types and content

Additional creation of symlinks (for folders or files) would be neat. After adding the user group to the proper list.

### Scenario when this would be used?

From the file explorer new files are restricted to folders, shortcuts and office documents. Adding new file types is not possible.

### Supporting information

I believe this used to be possible in windows 7
Repository: vscode
Issue: Expose checkbox in extension dialog API
Labels: feature-request,api,dialogs

Testing #145525

<img width="658" alt="image" src="https://user-images.githubusercontent.com/10746682/159488555-852724c4-3620-4aa8-a196-0f0a5392a09b.png">

**Don't show again** should be a checkbox instead of button. It is not an action. Sync or Do not Sync are actions. I would choose one action and check Don't show again option.
Repository: excalidraw
Issue: Support custom elements
Labels: enhancement,package:excalidraw

Spec

- `{ type: "custom", svgContent: '...' }`
- custom rendering function `renderCustomElement(element: ExcalidrawElement): void` that will be called on each render loop
- should support disabling resizing/rotation
- should support binding on other excalidraw elements (dropping the custom element on top of another element should bind to it so that that dragging the parent element will move the bound custom element as well)
- `onPointerDown(element: ExcalidrawElement, eventData: { ... })`, `onPointerUp(element: ExcalidrawElement, eventData: { ... })`  handler
	- technically, we could put the handler on the custom element itself — but it could be hard making it work with how the editor is designed right now (around serialization etc.). So we'll need to start with having the callback on the editor component-level
- an easy way for the host app to get editor coords, and/or subscribe to coords changes (scene coords + viewport/offsets), so that if the host app renders custom UI on top of canvas (such as one that's supposed to be visually aligned to the custom element), it's position can be synced properly to the canvas
Repository: vscode
Issue: [css] Inconsistent results when formatting range/selection
Labels: bug,css-less-scss

Testing #145604

* have the snippet below
* select the block including the curly brackets, format range -> all good
* undo
* select the block excluding the curly bracket, format range -> everything is now formatted onto one line

```css
div {
	color:green
}
```

https://user-images.githubusercontent.com/1794099/159491036-2a5978b1-ef2c-4eeb-a10b-b5ea4fdfdc9a.mov
Repository: vscode
Issue: [css] Support format on type
Labels: feature-request,css-less-scss

Testing #145604

Being able to format a selection (syntax tree subset) should enable one to implement format on type with relative ease. Define formatting characters like `}` or `;` which you can use to derive a selection/range that is to be formatted, e.g when typing `}` format the block that it closes, when typing `;` format the statement that it terminates etc
Repository: pytorch
Issue: Making PyTorch more pythonic:  the PyTorch functions should be inspectable.
Labels: feature,triaged

### 🚀 The feature, motivation and pitch

I am working on translating an intermediate specification pytorch code.  To map the parameters, I need to inspect the signature of the pytorch functions (e.g. `torch.empty` or `torch.nn.functional.conv2d`) and find out the parameter it is expecting.

But, the usual pythonic way of inspecting a python function with `inspect` does not work with PyTorch.  It results in an exception.

```python
>>> import inspect
>>> import torch
>>> inspect.signature(torch.empty)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/anaconda/envs/gc/lib/python3.8/inspect.py", line 3105, in signature
    return Signature.from_callable(obj, follow_wrapped=follow_wrapped)
  File "/home/anaconda/envs/gc/lib/python3.8/inspect.py", line 2854, in from_callable
    return _signature_from_callable(obj, sigcls=cls,
  File "/home/anaconda/envs/gc/lib/python3.8/inspect.py", line 2308, in _signature_from_callable
    return _signature_from_builtin(sigcls, obj,
  File "/home/anaconda/envs/gc/lib/python3.8/inspect.py", line 2119, in _signature_from_builtin
    raise ValueError("no signature found for builtin {!r}".format(func))
ValueError: no signature found for builtin <built-in method empty of type object at 0x7f382e1321c0>
```
A prerequisite for such inspect-ability is the `__code__` attribute. 
```python
>>> torch.empty.__code__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'builtin_function_or_method' object has no attribute '__code__'
```
Can PyTorch functions be made to carry the `__code__` attribute?

### Alternatives

_No response_

### Additional context

_No response_
Repository: pytorch
Issue: No factory functions for strided quantized tensors
Labels: oncall: quantization,feature,low priority,triaged

### 🐛 Describe the bug

For non-quantized tensors, there is both `empty` and `empty_strided`. However, for quantized tensors there are only `empty` variants for functions. This means that it is difficult for quantized operators to properly preserve strides when they should (e.g., TensorIterator style ops).

If this is affecting you please comment here.

### Versions

master

cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo
Repository: vscode
Issue: For language-specific settings, modified settings should be shown first
Labels: feature-request,settings-editor

Testing #145588

1. Settings UI. Search for `@lang:markdown`
2. The results should be sorted such that the settings that are actually changed for markdown are shown on top

fyi @sandy081
Repository: storybook
Issue: Add the possibility to define output-dir inside .storybook/main.js configuration file
Labels: feature request,needs triage

When using `build-storybook`, I would like to be able to set the `output-dir` directory inside Storybook main configuration file instead of defining it directly as an inline option in command line. It would really be a lot more versatile in JavaScript.

```
// .storybook/main.js

module.exports = {
  outputDir: '../my-deployed-storybook', 
};
```
Repository: pytorch
Issue: Many inplace operators are not being tested for variant consistency (test_variant_consistency_eager)
Labels: module: tests,triaged,better-engineering

### 🐛 Describe the bug

I was running code coverage style analysis on OpInfos and I noticed that this condition which disables inplace testing in `test_variant_consistency_eager` is too stringent

```
                # Skips inplace variants if the output dtype is not the same as
                #   the input dtype
                skip_inplace = False
                if (isinstance(expected_forward, torch.Tensor) and
                        expected_forward.dtype is not tensor.dtype):
                    skip_inplace = True
```

This skips too many ops; for example, it means we skip consistency for `ge_`, which takes two float tensors and returns a bool tensor. In the inplace case, the bool tensor gets promoted back to float. We should test for this case.

### Versions

master

cc @mruberry
Repository: PowerToys
Issue: Do not read two-key shortcuts when additional key pressed
Labels: Idea-Enhancement,Area-Runner,Needs-Triage

### Description of the new feature / enhancement

Do not read two-key shortcuts when a third key is being pressed/held at the same time. Example: when Alt-Esc-S is being held & Alt-Esc is remapped to "Disable", do not perform the original function of the latter shortcut.

### Scenario when this would be used?

To block out the triggering of window minimisation hotkeys in a keyboard-only video game.

### Supporting information

_No response_
Repository: pytorch
Issue: importing open3d before pytorch causes matmul to produce a segfault
Labels: module: crash,module: cuda,triaged,module: cublas,module: regression,module: third_party

### 🐛 Describe the bug

I am met with a weird problem: when I import open3d before pytorch, the `@` operator, or `torch.matmul` always produce a segfault. But if I import both the other way around, it is fine. Code to reproduce:

```python
import open3d
import torch
torch.eye(3).cuda()@torch.eye(3).cuda()
```

open3d is installed with `pip install open3d==0.15.2`. I have also tested `0.14.1` but the problem persists. I have also tried `torch1.10+cu113` but still got a segfault. However this problem does not appear in earlier versions of PyTorch, e.g. `torch1.9.0+cu111` and the LTS version.

### Versions

PyTorch version: 1.11.0+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.4 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Clang version: Could not collect
CMake version: version 3.16.3
Libc version: glibc-2.31

Python version: 3.9.0 (default, Nov 15 2020, 14:28:56)  [GCC 7.3.0] (64-bit runtime)
Python platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: 11.3.58
GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1660 Ti with Max-Q Design
Nvidia driver version: 470.103.01
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.22.3
[pip3] torch==1.11.0+cu113
[conda] numpy                     1.22.3                   pypi_0    pypi
[conda] torch                     1.11.0+cu113             pypi_0    pypi

cc @ngimel @csarofeen @ptrblck @xwang233
Repository: flutter
Issue: [web] Clamp selection boxes like Flutter does
Labels: a: typography,platform-web,e: web_html,P2,team-web,triaged-web

Quoting a comment from https://github.com/flutter/engine/pull/31937:

> During text painting/rendering, Flutter treats trailing spaces as if they were zero-width (e.g. no background).
> 
> During text editing (cursor placement & selection highlighting), Flutter treats trailing spaces the same as other spaces.
> 
> | Left | Right | Justify |
> |-|-|-|
> | ![image](https://user-images.githubusercontent.com/1278212/159339726-d63a4784-62e4-428c-8585-be8a4a5a9d6f.png) | ![image](https://user-images.githubusercontent.com/1278212/159339806-bf0bc4a5-3597-4893-a550-0804dbafd0a3.png) | ![image](https://user-images.githubusercontent.com/1278212/159339901-fa41705e-678f-4251-9b91-20a54decc2fa.png) |
> 
> I believe what's happening during text editing is they have no special case for trailing spaces, but they clamp the results of `getBoxesForRange` to the width of the paragraph.