sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Support `@var` or `@member` JSDoc tags
Labels: Suggestion,Awaiting More Feedback,Domain: JSDoc

### 🔍 Search Terms

`jsdoc`
`@var`
`@member`

### ✅ Viability Checklist

- [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [X] This wouldn't change the runtime behavior of existing JavaScript code
- [X] This could be implemented without emitting different JS based on the types of the expressions
- [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

Recognize and support JSDoc's `@var` or `@member` tags.

### 📃 Motivating Example

It will allow the declaration of globals in JS files that use JSDoc for checking that are not declared within that specific file.

This will then allow for tools and tool chains that add to the global scope for a file or program to be documented without using ts, d.ts or other ts exclusive notation and features.

### 💻 Use Cases

1. What do you want to use this for?

Electron preload scripts and `contextBridge.exposeInMainWorld`!

2. What workarounds are you using in the meantime?

```JS
/**@type {import("./preload.js").ElectronAPI} */
var ElectronAPI;
```

3. What shortcomings exist with current approaches?

Relies on JS's support of variable redeclaration. Changing `var` to `let` throws the following error on runtime:

`Identifier 'ElectronAPI' has already been declared`

The following *should* do the same as the two lines above, but neither [vscode](https://github.com/microsoft/vscode/issues/200033) nor TS supports it.

```JS
/** @var {import("./preload.js").ElectronAPI} ElectronAPI */
```

It does not rely on confusion inducing variable redeclaration and is much cleaner.

I believe it is also a way to declare members of a class without declaring them at the root level of the class.

These should be the same (as far as TS is concerned):

```JS
class test1{
    /**@type {string}*/
    name;
}

class test2{
    /**@var {string} name */
}
```
Repository: PowerToys
Issue: Consistent window corners on W10
Labels: Idea-Enhancement,Help Wanted,Area-User Interface,Priority-3

### Description of the new feature / enhancement

In most cases the UI is right-angled (classic Metro style), while in some cases it's rounded corner(modernized Fluent UI). 

![Snipaste_2023-12-05_20-18-26](https://github.com/microsoft/PowerToys/assets/119717335/d81a819d-f927-4609-8e34-0d2dc6252694)
![Snipaste_2023-12-05_20-19-39](https://github.com/microsoft/PowerToys/assets/119717335/5c31ba8b-1368-478b-b946-0935468b7e35)
![Snipaste_2023-12-05_20-19-13](https://github.com/microsoft/PowerToys/assets/119717335/e9bd62b6-6d32-4599-a77d-a3e945c674b8)
That means the UI of PowerToys is not very coordinated.

I use Windows 10 now and prefer the classic Metro style, but for Windows 11 users, they may prefer modernized Fluent UI,
adding a button to switch UI mode should make PowerToys looks more coordinated and will be very much appreciated by both Windows 10 and Windows 11 users !!

also sorry for my poor English.

### Scenario when this would be used?

Scenario when this would be used : Every PowerToys user's daily use. 
We will be happy to change the UI mode according to our prefererces.

### Supporting information

_No response_
Repository: tauri
Issue: [feat] CORS workaround
Labels: type: feature request

### Describe the problem

I've hit a roadblock with CORS and I am stuck. This isn't necessarily an issue caused by Tauri but I believe something may be done about it. I'm aware we cannot simply disable CORS as Tauri isn't chromium. 

My specific use case:

I have user generated `html` documents which users can download to their devices via my Tauri app. It isn't a simple as just displaying the iframes as I need to interact with them via the app window.

The users can `view` their html documents (I have a carousel like slider). When a document is in view, I call a js function inside these html documents from the app. At the moment, this is being blocked due to `protocol mismatch`.

```
Blocked a frame with origin "tauri://localhost" from accessing a frame with origin "asset://localhost".  The frame requesting access has a protocol of "tauri", the frame being accessed has a protocol of "asset". Protocols must match
```

### Describe the solution you'd like

One of the ways I think this can be solved is via having a symlink. I've solved similar CORS related issues on the web with this method.

At `http://localhost:1420/{reserved_path_for_symlink}`, `tauri://localhost/{reserved_path_for_symlink}` and `custom` protocols pointing to user defined locations.

This could be configurable via `tauri.conf.json`. Ie; `%APPDATA%` => `/appDataDir`.

```
"symlink": [
  {
    "targetPath": "%APPDATA%",
    "linkPath": "appDataDir"
  },
]
```

### Alternatives considered

For the time being, I'm using `fetch` to read the contents of the html document and writing the result to the iframe tag. This isn't ideal as it's causing other issues with the contents itself.

### Additional context

Message posting is not a solution as I have no control over the html files.
Repository: PowerToys
Issue: Peek closes after a few seconds
Labels: Issue-Bug,Needs-Triage,Product-Peek

### Microsoft PowerToys version

0.76.0

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

Peek

### Steps to reproduce

I press the combination set for Peek (CTRL+Space) for any file, the preview starts but lasts a few seconds (usually with only a blank screen), then it closes. I have to press the combination again 2/3 times to get it to work (and it doesn't work every time).

I've already tried different files from different locations (even network paths), I've tried enabling and disabling administrator mode, I've tried uninstalling and reinstalling PowerToys, but it doesn't work. The problem was also present in the previous version.

https://github.com/microsoft/PowerToys/assets/53441975/2975d548-64f3-48d3-ae5a-a4871f9ec5f5



### ✔️ Expected Behavior

Pressing CTRL + Space opens the file preview and stays open until I press ESC or click somewhere else

### ❌ Actual Behavior

Pressing CTRL + Space starts the preview, usually with a blank screen, and then closes. I have to press the combination again 2/3 times to finally get it to work and stay open. Many times it doesn't open the preview at all, even if I try several times.

### Other Software

_No response_
Repository: godot
Issue: MultiplayerSpawner's auto spawn list not updated on file renames
Labels: bug,topic:editor,topic:multiplayer

### Tested versions

Reproducible in:
- v4.2.stable.official [46dc27791]
- v4.0.stable.official [92bee43ad]

### System information

Godot v4.2.stable - Debian GNU/Linux trixie/sid trixie - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (nvidia) - Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6 Threads)

### Issue description

If a `MultiplayerSpawner` has a scene in its auto spawn list, and that scene is renamed in the filesystem dock, then the filename stored against the spawner (eg. in the inspector) does not get updated to the new name.

When in this state, if the main scene is reloaded, the "auto spawn list" will appear empty and an error will be logged:
> modules/multiplayer/multiplayer_spawner.cpp:103 - Condition "!FileAccess::exists(p_path)" is true.

The main scene's tab will not show a `*` indicator, but if saved the now-erroneous entry will be removed from the list of spawnable scenes in the scene file.

### Steps to reproduce

1. Create a `MultiplayerSpawner`
2. Add a scene to its Auto Spawn List
3. Rename the spawnable scene
4. :warning: Notice the filename hasn't updated in the Auto Spawn List

### Minimal reproduction project (MRP)

n/a
Repository: TypeScript
Issue: Generic type changes depending if its parameter type is wrapped or not.  
Labels: Needs Investigation

### 🔎 Search Terms

generic type bug

### 🕗 Version & Regression Information

latest version as of today.

### ⏯ Playground Link

https://www.typescriptlang.org/play?#code/C4TwDgpgBAkgZjAJhAdsAlgYwIYBsA8AGgDRQCapAglALxTABOArhKQEK1Rx4DOEAfLQBQUUVAAU+ACr9xASlqCpUCAA9gqRDyiEoAfigBGKAC4oAJgVqNKLSLGSZ8xVGXXN2svqOmLCg9RmbADcQmGgkLBwAPIM+AAKpACKpFLM0HSMLKQAYrwZXPmCdPBIqBg4BImFuHykpchoWHj4KTV1UHm1rK7p-Kl9oUIR0AD6xiUxcVk9M-zBUAD0i-Tpw+Bj5pzwsfgzpNzd80srM+uRowDM21P4hx1zC8urLOdjACw3u-c9P8fPPzCb1gPAAyox0CgAObSYpRMpNSrSUg8CHQ+bhDZQUYAVm2YLRMJQTAAtgAjCAMDFAkbYqQQVETKLffL1AkMSFE0kUqn-FY-AB0UEwAHsGAwIJhgABCIHAnYMADq6GAAAt4OCOdDYV84j82ZrObDqbTRvTUVtJrFlWqNYT8MTyZS+S8IAYyUwobKgA

### 💻 Code

```ts
type IfIdentical<X, Y, A = true, B = false> =
    (<T>() => T extends X ? 1 : 2) extends
    (<T>() => T extends Y ? 1 : 2) ? A : B;


type IfOr<P, Q, True = true, False = false> = IfIdentical<P, false, IfIdentical<Q, false, False, True>, True>;

type _1 = IfOr<true, true>; // true
type _2 = IfOr<true, false>; // true
type _3 = IfOr<false, true>; // true
type _4 = IfOr<false, false>; // false


type IsString<T> = IfIdentical<T, string>;

type _5 = IsString<number>;



type _Test1 = IfOr<false, IsString<number>>; // false. correct!



type IfOrWithIfString<T> = IfOr<false, IsString<T>>;

type _Test2 = IfOrWithIfString<number>; // true? bug!
```

### 🙁 Actual behavior

types `_Test1` and `_Test2` are different even though they are calculated the same way.

### 🙂 Expected behavior

types `_Test1` and `_Test2` should be the same.

### Additional information about the issue

Not sure if it's the best minimal reproduction, because it's difficult to pinpoint the actual problem.
The example is based on the a type suggested by Matt McCutchen [here](https://github.com/Microsoft/TypeScript/issues/27024#issuecomment-421529650), but I can't tell if the issue is unique to that type or if it happens in other scenarios.

Based on that `IsEqual` type I created a "if or" type `IfOr<P, Q>` and a "is string" type `IsString<T>`.

The difference between `_Test1` and `_Test2` is that the first passes `IsString<number>` result (`false`) directly to `IfOr`, while the second passes `number` to an intermediary type, sort of wrapping the `IsString`.
Repository: opencv
Issue: VitTracker return all BB and scores
Labels: feature,category: dnn

### Describe the feature and motivation

It would be great if VitTracker would back all BBs and scores and not only the BB that corresponds to the highest score.
The main reasson is that VitTracker is very sensetivy to similar apperance so if you give the option (for example flag) that returns all BBs and scores we can add other post-processing algorithms using opencv that improve the results.

### Additional context

I tried to make this myself. I am more Python guy, I change the update function to:
```
bool TrackerVitImpl::update(InputArray image_, std::vector<Rect>& boundingBoxes)
{
    image = image_.getMat().clone();
    Mat crop;
    crop_image(image, crop, rect_last, 4);
    Mat blob;
    preprocess(crop, blob, searchSize);
    net.setInput(blob, "search");
    std::vector<String> outputName = {"output1", "output2", "output3"};
    std::vector<Mat> outs;
    net.forward(outs, outputName);
    CV_Assert(outs.size() == 3);

    Mat conf_map = outs[0].reshape(0, {16, 16});
    Mat size_map = outs[1].reshape(0, {2, 16, 16});
    Mat offset_map = outs[2].reshape(0, {2, 16, 16});

    multiply(conf_map, (1.0 - hanningWindow), conf_map);

    // Store all bounding boxes and scores
    boundingBoxes.clear();
    for (int y = 0; y < conf_map.rows; ++y)
    {
        for (int x = 0; x < conf_map.cols; ++x)
        {
            float score = conf_map.at<float>(y, x);
            float cx = (x + offset_map.at<float>(0, y, x)) / 16;
            float cy = (y + offset_map.at<float>(1, y, x)) / 16;
            float w = size_map.at<float>(0, y, x);
            float h = size_map.at<float>(1, y, x);

            Rect boundingBox = returnfromcrop(cx - w / 2, cy - h / 2, w, h, rect_last);
            boundingBoxes.push_back(boundingBox);
        }
    }

    return true;
}
```

but I get an error when I try to compile I would be happy to any help and of course, if you can add this as a flag to your code it will be awesome. thank you for a great job:)
Repository: pytorch
Issue: nansum with complex support
Labels: feature,triaged,module: complex,module: NaNs and Infs,module: masked operators

### 🚀 The feature, motivation and pitch

I am missing support for complex input in nansum(). nansum() is the basis for many of the nan* functions such as nanmean(), nanstd() etc, so missing support for complex is problematic i think. 

### Alternatives

This is a workaround:
torch.sum(z[z.isnan().logical_not()])
but having nansum() would be a lot cleaner. 

### Additional context

_No response_

cc @ezyang @anjali411 @dylanbespalko @mruberry @Lezcano @nikitaved
Repository: PowerToys
Issue: Screen Recording in Windows for Non game application
Labels: Needs-Triage,Needs-Team-Response

### Description of the new feature / enhancement

Screen recordign in non game application can be added 

### Scenario when this would be used?

When browsing in non gaming application windows doesnt allow to use screen recording while using win+G shortcut where as if powertoys added that future to force screen record on other apps it would be useful

### Supporting information

_No response_
Repository: terminal
Issue: Support for redacting private/sensitive information
Labels: Area-Output,Product-Terminal,Issue-Task

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement

I'd like the ability to automatically mask sensitive information in terminal windows. Masking application output would be great; masking user input (e.g., passwords on command line) would be nice as well.

This would be useful when screen sharing, demos, and when recording screencasts.

[Warp does this](https://mkennedy.codes/posts/hide-those-terminal-secrets/).

<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

# Proposed technical implementation details (optional)

Terminal needs to know what to mask. At the very least it should have a user-editable series of regexes to detect potentially sensitive information. Even better would be integration with GitHub's existing secret scanning code, masking anything that matches GitHub's token patterns.

Masked information could use a specific Unicode character (or one of a few similar Unicode characters), so it's as obvious as possible that the output was masked.

Ideally, copying a masked value would copy the original plaintext, so copy/paste works the same as it always does, ignoring the masking.

<!-- 
A clear and concise description of what you want to happen.
-->
Repository: PowerToys
Issue: Export/Import Environment variables profile
Labels: Idea-Enhancement,Issue-Feature,Product-Environment Variables

### Description of the new feature / enhancement

It should be possible to import/export a environment variables profile

### Scenario when this would be used?

When I want to create a backup or to export/import a profile to/from another pc

### Supporting information

_No response_
Repository: storybook
Issue: [Bug]: "Open canvas in new tab" missing in <Canvas> toolbar
Labels: bug,ui,sev:S3

### Describe the bug

In the Storybook docs there is an "Open canvas in new tab" button here (see screenshot).  I have tried fresh installations and it never appears. I tried looking for the option in the docs to show this action but couldn't find one.

![image](https://github.com/storybookjs/storybook/assets/111290090/0015e189-201f-4563-8e5b-fa1514c33136)


### To Reproduce

Just do a fresh install of Storybook latest and you'll see that it's missing.

### System

```bash
Storybook Environment Info:

  System:
    OS: macOS 14.1
    CPU: (10) x64 Apple M1 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.5.1 - ~/.nvm/versions/node/v20.5.1/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn <----- active
    npm: 9.8.0 - ~/.nvm/versions/node/v20.5.1/bin/npm
  Browsers:
    Chrome: 119.0.6045.199
    Edge: 107.0.1418.52
    Safari: 17.1
  npmPackages:
    @storybook/addon-essentials: ^7.6.3 => 7.6.3 
    @storybook/addon-interactions: ^7.6.3 => 7.6.3 
    @storybook/addon-links: ^7.6.3 => 7.6.3 
    @storybook/addon-onboarding: ^1.0.9 => 1.0.9 
    @storybook/blocks: ^7.6.3 => 7.6.3 
    @storybook/react: ^7.6.3 => 7.6.3 
    @storybook/react-webpack5: ^7.6.3 => 7.6.3 
    @storybook/test: ^7.6.3 => 7.6.3 
    storybook: ^7.6.3 => 7.6.3
```


### Additional context

_No response_
Repository: next.js
Issue: Styled components example provided in the docs causes hydration errors even when rendering nothing
Labels: bug

### Link to the code that reproduces this issue

[new codesandbox](https://codesandbox.io/p/devbox/headless-sound-mlpy6k)

### To Reproduce

Create a new application, install `styled-components`, follow the instructions found [here for styled-components](https://nextjs.org/docs/app/building-your-application/styling/css-in-js#styled-components), run the app with the appropriate modifications (and something in the page), see the error shown.

### Current vs. Expected behavior

I expect no hydration errors from following the documentation instructions on setting up `styled-components`.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 14.0.4-canary.42
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router

### Additional context

It breaks with or without `styledComponents: true` in the config file's compiler options.
Repository: PowerToys
Issue: Misplaced scrollbar arrow in the new powertoys run
Labels: Issue-Bug,Product-PowerToys Run,Needs-Triage,Needs-Team-Response,Status-Reproducible

### Microsoft PowerToys version

0.76.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Open PowerToys run > hover to the scrollbar > (Bug)

### ✔️ Expected Behavior

It should be alighted correctly like a normal window 11 scrollbar.

### ❌ Actual Behavior

![image](https://github.com/microsoft/PowerToys/assets/108791227/c06da297-ac69-4498-9700-3e3bcb2ae4d2)


### Other Software

_No response_
Repository: godot
Issue: The Godot 4.2 debugging cursor is not displayed
Labels: bug,topic:gdscript,topic:editor,needs testing

### Tested versions

Version with error: 4.2.stable.mono.official [46dc27791]
It worked on version v4.1.1

### System information

Godot v4.2.stable.mono - Windows 10.0.19042 - GLES3 (Compatibility) - AMD Radeon(TM) RX Vega 11 Graphics (Advanced Micro Devices, Inc.; 31.0.14057.5006) - AMD Ryzen 5 2400G with Radeon Vega Graphics (8 Threads)

### Issue description

I have 2 scenes with an embedded script. When running in one of the scenes during debugging, there is such a triangle
![image](https://github.com/godotengine/godot/assets/56413584/4b622ed4-5f8f-4390-a7d6-23d8e29b8a2a)
but when I go from this script to the script of the second scene or start the second scene via F6, the cursor is not displayed. At the same time, you can see in the stack window that the breakpoint has worked and the variables are filled in with each step.
![image](https://github.com/godotengine/godot/assets/56413584/2ac8b06f-5115-497a-b511-445a2c8643a3)


### Steps to reproduce

I'm not sure, my project has been migrated from version 4.1, extends TextureButton. It is played at both F5 and F6. The script is built-in.

### Minimal reproduction project (MRP)

N / A
Repository: stable-diffusion-webui
Issue: [Feature Request]: Add support for a --lowvram-sdxl command line argument.
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

It would be nice to have a --lowvram-sdxl command line argument that works similar to the --medvram-sdxl one only for lowvram mode as some video cards have enough memory for regular SD 1.5 models but require lowvram mode for XL models to have any kind of reasonable performance.

### Proposed workflow

1. Add --lowvram-sdxl to the command line arguments
2. Low vram mode is enabled only when running SDXL models.



### Additional information

With my current video card (6GB 1660 Super) I have to use lowvram with sdxl models to get any kind of decent performance (less than 10s/it) but regular SD 1.5 models work fine without any vram switches.  With SD 1.5 models using lowvram is much slower than without any vram options so currently I have to close down the webui program entirely and restart it with a different batch file each time I want to switch between xl and 1.5 models.
Repository: TypeScript
Issue:  Settings to prefer local import over external import v2
Labels: Suggestion,Awaiting More Feedback,Domain: Auto-import

<!-- ⚠️⚠️ 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. -->

Ideally I would have just reopened https://github.com/microsoft/vscode/issues/166924, but I'm restating it here:


![image](https://github.com/microsoft/vscode/assets/219063/f0296ca1-4ad7-42f4-ab29-60deaac9f49f)
> The auto import in vscode right now seems to prefer the external module over my local one with the same name. i would like to have a settings where we can configure this behaviour


In response, @mjbvz asked
> Is this only for quick fixes, or also for auto imports added by IntelliSense?

I can't speak for the original issue author, but from my point of view: Both, but if possible. 

Otherwise I'll take what I can get. E.g., just being able to blacklist some imports from ever being suggested would be enough.