@codingame/monaco-vscode-issue-service-override 5.2.0 → 6.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/issue.js +9 -6
- package/package.json +2 -2
- package/vscode/src/vs/platform/issue/common/issue.js +8 -0
- package/vscode/src/vs/workbench/contrib/issue/browser/issue.contribution.js +17 -3
- package/vscode/src/vs/workbench/contrib/issue/browser/issue.js +1034 -0
- package/vscode/src/vs/workbench/contrib/issue/browser/issueFormService.js +182 -0
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterModel.js +222 -0
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterPage.js +161 -0
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterService.js +183 -0
- package/vscode/src/vs/workbench/contrib/issue/browser/issueService.js +205 -0
- package/vscode/src/vs/workbench/{services → contrib}/issue/browser/issueTroubleshoot.js +14 -10
- package/vscode/src/vs/workbench/contrib/issue/browser/media/issueReporter.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/issue/common/issue.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/issue/browser/issueService.js +0 -66
package/issue.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
|
-
import { IWorkbenchIssueService } from 'vscode/vscode/vs/workbench/
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { IWorkbenchIssueService } from 'vscode/vscode/vs/workbench/contrib/issue/common/issue.service';
|
|
3
|
+
import { TroubleshootIssueService } from './vscode/src/vs/workbench/contrib/issue/browser/issueTroubleshoot.js';
|
|
4
|
+
import { ITroubleshootIssueService } from 'vscode/vscode/vs/workbench/contrib/issue/browser/issueTroubleshoot.service';
|
|
5
|
+
import { BrowserIssueService } from './vscode/src/vs/workbench/contrib/issue/browser/issueService.js';
|
|
6
|
+
import { IIssueMainService } from 'vscode/vscode/vs/platform/issue/common/issue.service';
|
|
7
|
+
import { IssueFormService } from './vscode/src/vs/workbench/contrib/issue/browser/issueFormService.js';
|
|
6
8
|
import './vscode/src/vs/workbench/contrib/issue/browser/issue.contribution.js';
|
|
7
9
|
|
|
8
10
|
function getServiceOverride() {
|
|
9
11
|
return {
|
|
10
|
-
[( IWorkbenchIssueService.toString())]: new SyncDescriptor(
|
|
11
|
-
[( ITroubleshootIssueService.toString())]: new SyncDescriptor(TroubleshootIssueService, [], false)
|
|
12
|
+
[( IWorkbenchIssueService.toString())]: new SyncDescriptor(BrowserIssueService, [], false),
|
|
13
|
+
[( ITroubleshootIssueService.toString())]: new SyncDescriptor(TroubleshootIssueService, [], false),
|
|
14
|
+
[( IIssueMainService.toString())]: new SyncDescriptor(IssueFormService, [], false)
|
|
12
15
|
};
|
|
13
16
|
}
|
|
14
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-issue-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@6.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var IssueType;
|
|
2
|
+
( (function(IssueType) {
|
|
3
|
+
IssueType[IssueType["Bug"] = 0] = "Bug";
|
|
4
|
+
IssueType[IssueType["PerformanceIssue"] = 1] = "PerformanceIssue";
|
|
5
|
+
IssueType[IssueType["FeatureRequest"] = 2] = "FeatureRequest";
|
|
6
|
+
})(IssueType || (IssueType = {})));
|
|
7
|
+
|
|
8
|
+
export { IssueType };
|
|
@@ -1,25 +1,39 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
4
|
+
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
5
|
+
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
4
6
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
5
7
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
6
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
7
|
-
import '
|
|
8
|
+
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
9
|
+
import './issueService.js';
|
|
8
10
|
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
11
|
import { BaseIssueContribution } from '../common/issue.contribution.js';
|
|
10
12
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
13
|
+
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
14
|
+
import './issueFormService.js';
|
|
15
|
+
import './issueTroubleshoot.js';
|
|
11
16
|
|
|
12
17
|
const _moduleId = "vs/workbench/contrib/issue/browser/issue.contribution";
|
|
13
18
|
let WebIssueContribution = class WebIssueContribution extends BaseIssueContribution {
|
|
14
19
|
constructor(productService, configurationService) {
|
|
15
20
|
super(productService, configurationService);
|
|
21
|
+
( (Registry.as(Extensions.Configuration))).registerConfiguration({
|
|
22
|
+
properties: {
|
|
23
|
+
'issueReporter.experimental.webReporter': {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
default: productService.quality !== 'stable',
|
|
26
|
+
description: 'Enable experimental issue reporter for web.',
|
|
27
|
+
},
|
|
28
|
+
}
|
|
29
|
+
});
|
|
16
30
|
}
|
|
17
31
|
};
|
|
18
32
|
WebIssueContribution = ( (__decorate([
|
|
19
33
|
( (__param(0, IProductService))),
|
|
20
34
|
( (__param(1, IConfigurationService)))
|
|
21
35
|
], WebIssueContribution)));
|
|
22
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(WebIssueContribution,
|
|
36
|
+
( (Registry.as(Extensions$1.Workbench))).registerWorkbenchContribution(WebIssueContribution, LifecyclePhase.Restored);
|
|
23
37
|
CommandsRegistry.registerCommand('_issues.getSystemStatus', (accessor) => {
|
|
24
38
|
return ( localizeWithPath(_moduleId, 0, "The --status argument is not yet supported in browsers."));
|
|
25
39
|
});
|