forked from openkylin/kylin-code
移除任务task菜单中'msbuild,donet,ms编译器问题'等菜单.
This commit is contained in:
parent
9a2320b0e1
commit
56c98b8d0d
|
@ -1205,15 +1205,15 @@ class ProblemPatternRegistryImpl implements IProblemPatternRegistry {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fillDefaults(): void {
|
private fillDefaults(): void {
|
||||||
this.add('msCompile', {
|
// this.add('msCompile', {
|
||||||
regexp: /^(?:\s+\d+>)?(\S.*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\)\s*:\s+(error|warning|info)\s+(\w+\d+)\s*:\s*(.*)$/,
|
// regexp: /^(?:\s+\d+>)?(\S.*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\)\s*:\s+(error|warning|info)\s+(\w+\d+)\s*:\s*(.*)$/,
|
||||||
kind: ProblemLocationKind.Location,
|
// kind: ProblemLocationKind.Location,
|
||||||
file: 1,
|
// file: 1,
|
||||||
location: 2,
|
// location: 2,
|
||||||
severity: 3,
|
// severity: 3,
|
||||||
code: 4,
|
// code: 4,
|
||||||
message: 5
|
// message: 5
|
||||||
});
|
// });
|
||||||
this.add('gulp-tsc', {
|
this.add('gulp-tsc', {
|
||||||
regexp: /^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(\d+)\s+(.*)$/,
|
regexp: /^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(\d+)\s+(.*)$/,
|
||||||
kind: ProblemLocationKind.Location,
|
kind: ProblemLocationKind.Location,
|
||||||
|
@ -1784,14 +1784,14 @@ class ProblemMatcherRegistryImpl implements IProblemMatcherRegistry {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fillDefaults(): void {
|
private fillDefaults(): void {
|
||||||
this.add({
|
// this.add({
|
||||||
name: 'msCompile',
|
// name: 'msCompile',
|
||||||
label: localize('msCompile', 'Microsoft compiler problems'),
|
// label: localize('msCompile', 'Microsoft compiler problems'),
|
||||||
owner: 'msCompile',
|
// owner: 'msCompile',
|
||||||
applyTo: ApplyToKind.allDocuments,
|
// applyTo: ApplyToKind.allDocuments,
|
||||||
fileLocation: FileLocationKind.Absolute,
|
// fileLocation: FileLocationKind.Absolute,
|
||||||
pattern: ProblemPatternRegistry.get('msCompile')
|
// pattern: ProblemPatternRegistry.get('msCompile')
|
||||||
});
|
// });
|
||||||
|
|
||||||
this.add({
|
this.add({
|
||||||
name: 'lessCompile',
|
name: 'lessCompile',
|
||||||
|
|
|
@ -12,7 +12,7 @@ export interface TaskEntry extends IQuickPickItem {
|
||||||
autoDetect: boolean;
|
autoDetect: boolean;
|
||||||
content: string;
|
content: string;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
const dotnetBuild: TaskEntry = {
|
const dotnetBuild: TaskEntry = {
|
||||||
id: 'dotnetCore',
|
id: 'dotnetCore',
|
||||||
label: '.NET Core',
|
label: '.NET Core',
|
||||||
|
@ -81,6 +81,7 @@ const msbuild: TaskEntry = {
|
||||||
'}'
|
'}'
|
||||||
].join('\n')
|
].join('\n')
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
const command: TaskEntry = {
|
const command: TaskEntry = {
|
||||||
id: 'externalCommand',
|
id: 'externalCommand',
|
||||||
|
@ -135,7 +136,7 @@ const maven: TaskEntry = {
|
||||||
let _templates: TaskEntry[] | null = null;
|
let _templates: TaskEntry[] | null = null;
|
||||||
export function getTemplates(): TaskEntry[] {
|
export function getTemplates(): TaskEntry[] {
|
||||||
if (!_templates) {
|
if (!_templates) {
|
||||||
_templates = [dotnetBuild, msbuild, maven].sort((a, b) => {
|
_templates = [maven].sort((a, b) => {
|
||||||
return (a.sort || a.label).localeCompare(b.sort || b.label);
|
return (a.sort || a.label).localeCompare(b.sort || b.label);
|
||||||
});
|
});
|
||||||
_templates.push(command);
|
_templates.push(command);
|
||||||
|
|
Loading…
Reference in New Issue