@codingame/monaco-vscode-issue-service-override 20.5.0 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/issue/browser/baseIssueReporterService.d.ts +21 -5
- package/vscode/src/vs/workbench/contrib/issue/browser/baseIssueReporterService.js +273 -113
- package/vscode/src/vs/workbench/contrib/issue/browser/issue.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/issue/browser/issueFormService.js +13 -7
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterPage.js +33 -32
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterService.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterService.js +11 -5
- package/vscode/src/vs/workbench/contrib/issue/browser/issueService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/issue/browser/issueService.js +7 -5
- package/vscode/src/vs/workbench/contrib/issue/browser/issueTroubleshoot.js +23 -23
- package/vscode/src/vs/workbench/contrib/issue/browser/media/issueReporter.css +69 -5
- package/vscode/src/vs/workbench/contrib/issue/common/issue.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/issue/common/issue.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-issue-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - issue service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "
|
|
19
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "21.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-api": "21.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { Button } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button";
|
|
1
|
+
import { Button, ButtonWithDropdown } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button";
|
|
2
2
|
import { Delayer } from "@codingame/monaco-vscode-api/vscode/vs/base/common/async";
|
|
3
3
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
4
|
import { IProductConfiguration } from "@codingame/monaco-vscode-api/vscode/vs/base/common/product";
|
|
5
5
|
import { IFileDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
6
6
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
7
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
7
8
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
9
|
+
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
8
10
|
import { IssueReporterData, IssueReporterExtensionData } from "../common/issue.js";
|
|
9
11
|
import { IIssueFormService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/issue/common/issue.service";
|
|
10
12
|
import { IssueReporterModel } from "./issueReporterModel.js";
|
|
13
|
+
import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
|
|
11
14
|
export declare class BaseIssueReporterService extends Disposable {
|
|
12
15
|
disableExtensions: boolean;
|
|
13
16
|
data: IssueReporterData;
|
|
@@ -23,6 +26,9 @@ export declare class BaseIssueReporterService extends Disposable {
|
|
|
23
26
|
readonly themeService: IThemeService;
|
|
24
27
|
readonly fileService: IFileService;
|
|
25
28
|
readonly fileDialogService: IFileDialogService;
|
|
29
|
+
readonly contextMenuService: IContextMenuService;
|
|
30
|
+
readonly authenticationService: IAuthenticationService;
|
|
31
|
+
readonly openerService: IOpenerService;
|
|
26
32
|
issueReporterModel: IssueReporterModel;
|
|
27
33
|
receivedSystemInfo: boolean;
|
|
28
34
|
numberOfSearchResultsDisplayed: number;
|
|
@@ -33,17 +39,27 @@ export declare class BaseIssueReporterService extends Disposable {
|
|
|
33
39
|
loadingExtensionData: boolean;
|
|
34
40
|
selectedExtension: string;
|
|
35
41
|
delayedSubmit: Delayer<void>;
|
|
36
|
-
|
|
42
|
+
publicGithubButton: Button | ButtonWithDropdown;
|
|
43
|
+
internalGithubButton: Button | ButtonWithDropdown;
|
|
37
44
|
nonGitHubIssueUrl: boolean;
|
|
38
45
|
needsUpdate: boolean;
|
|
39
46
|
acknowledged: boolean;
|
|
47
|
+
private createAction;
|
|
48
|
+
private previewAction;
|
|
49
|
+
private privateAction;
|
|
40
50
|
constructor(disableExtensions: boolean, data: IssueReporterData, os: {
|
|
41
51
|
type: string;
|
|
42
52
|
arch: string;
|
|
43
53
|
release: string;
|
|
44
|
-
}, product: IProductConfiguration, window: Window, isWeb: boolean, issueFormService: IIssueFormService, themeService: IThemeService, fileService: IFileService, fileDialogService: IFileDialogService);
|
|
54
|
+
}, product: IProductConfiguration, window: Window, isWeb: boolean, issueFormService: IIssueFormService, themeService: IThemeService, fileService: IFileService, fileDialogService: IFileDialogService, contextMenuService: IContextMenuService, authenticationService: IAuthenticationService, openerService: IOpenerService);
|
|
45
55
|
render(): void;
|
|
46
56
|
setInitialFocus(): void;
|
|
57
|
+
updateButtonStates(): void;
|
|
58
|
+
private updateInternalFilingNote;
|
|
59
|
+
private updatePublicGithubButton;
|
|
60
|
+
private updatePublicRepoLink;
|
|
61
|
+
private updateInternalGithubButton;
|
|
62
|
+
private updateInternalElementsVisibility;
|
|
47
63
|
private updateIssueReporterUri;
|
|
48
64
|
private handleExtensionData;
|
|
49
65
|
private updateExtensionSelector;
|
|
@@ -51,7 +67,6 @@ export declare class BaseIssueReporterService extends Disposable {
|
|
|
51
67
|
private updateAcknowledgementState;
|
|
52
68
|
setEventHandlers(): void;
|
|
53
69
|
updatePerformanceInfo(info: Partial<IssueReporterData>): void;
|
|
54
|
-
updatePreviewButtonState(): void;
|
|
55
70
|
private isPreviewEnabled;
|
|
56
71
|
private getExtensionRepositoryUrl;
|
|
57
72
|
getExtensionBugsUrl(): string | undefined;
|
|
@@ -74,10 +89,11 @@ export declare class BaseIssueReporterService extends Disposable {
|
|
|
74
89
|
owner: string;
|
|
75
90
|
repositoryName: string;
|
|
76
91
|
}): Promise<boolean>;
|
|
77
|
-
createIssue(): Promise<boolean>;
|
|
92
|
+
createIssue(shouldCreate?: boolean, privateUri?: boolean): Promise<boolean>;
|
|
78
93
|
writeToClipboard(baseUrl: string, issueBody: string): Promise<string>;
|
|
79
94
|
addTemplateToUrl(baseUrl: string, owner?: string, repositoryName?: string): string;
|
|
80
95
|
getIssueUrl(): string;
|
|
96
|
+
getPrivateIssueUrl(): string | undefined;
|
|
81
97
|
parseGitHubUrl(url: string): undefined | {
|
|
82
98
|
repositoryName: string;
|
|
83
99
|
owner: string;
|