Skip to content

Commit

Permalink
Fix bug report button when using CSS (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Apr 2, 2024
1 parent ab73148 commit c00d3b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"theme": "dark"
},
"publisher": "Katsute",
"version": "2.10.1",
"version": "2.10.2",
"private": true,
"engines": {
"vscode": "^1.87.0"
Expand Down
8 changes: 5 additions & 3 deletions src/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

import { platform, release } from "os";
import { Uri, commands, env, version } from "vscode";
import { commands, env, version } from "vscode";

import { pkg } from "../extension/package";
import { UI, configuration, get } from "../extension/config";
Expand All @@ -34,7 +34,7 @@ import { show as repeatMenu } from "./repeat";
import { show as sizeMenu } from "./size";
import { show as timeMenu } from "./time";

const issueUrl: string = `https://github.com/KatsuteDev/Background/issues/new?template=bug.yml&os=${encodeURI(`${platform()} ${release()}`)}&vs=${encodeURI(version)}&version=${encodeURI(pkg.version)}`;
const issueUrl: string = `https://github.com/KatsuteDev/Background/issues/new?template=bug.yml&os=${encodeURIComponent(`${platform()} ${release()}`)}&vs=${encodeURIComponent(version)}&version=${encodeURIComponent(pkg.version)}`;

// main menu

Expand Down Expand Up @@ -77,7 +77,9 @@ export const show: () => void = () =>
}),
quickPickItem({
label: `$(github) Report an issue on GitHub`,
handle: () => env.openExternal(Uri.parse(`${issueUrl}&settings=${encodeURI("```json\n" + JSON.stringify(configuration(), null, 4) + "\n```")}`))
// unfixed bug in vscode https://github.com/microsoft/vscode/issues/85930
// @ts-ignore
handle: () => env.openExternal(`${issueUrl}&settings=${encodeURIComponent("```json\n" + JSON.stringify(configuration(), null, 4) + "\n```")}`)
})
], {
title: "Background",
Expand Down

0 comments on commit c00d3b1

Please sign in to comment.