fixed:移除任务task菜单中'msbuild,donet,ms编译器问题'等菜单.

This commit is contained in:
chriswang521 2024-05-29 16:43:30 +08:00 committed by wangpenglong
parent 5b2e60cf3a
commit 372114b5e2
2 changed files with 21 additions and 19 deletions

View File

@ -1283,15 +1283,15 @@ class ProblemPatternRegistryImpl implements IProblemPatternRegistry {
}
private fillDefaults(): void {
this.add('msCompile', {
regexp: /^(?:\s*\d+>)?(\S.*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\)\s*:\s+((?:fatal +)?error|warning|info)\s+(\w+\d+)\s*:\s*(.*)$/,
kind: ProblemLocationKind.Location,
file: 1,
location: 2,
severity: 3,
code: 4,
message: 5
});
// this.add('msCompile', {
// regexp: /^(?:\s*\d+>)?(\S.*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\)\s*:\s+((?:fatal +)?error|warning|info)\s+(\w+\d+)\s*:\s*(.*)$/,
// kind: ProblemLocationKind.Location,
// file: 1,
// location: 2,
// severity: 3,
// code: 4,
// message: 5
// });
this.add('gulp-tsc', {
regexp: /^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(\d+)\s+(.*)$/,
kind: ProblemLocationKind.Location,
@ -1921,15 +1921,15 @@ class ProblemMatcherRegistryImpl implements IProblemMatcherRegistry {
}
private fillDefaults(): void {
this.add({
name: 'msCompile',
label: localize('msCompile', 'Microsoft compiler problems'),
owner: 'msCompile',
source: 'cpp',
applyTo: ApplyToKind.allDocuments,
fileLocation: FileLocationKind.Absolute,
pattern: ProblemPatternRegistry.get('msCompile')
});
// this.add({
// name: 'msCompile',
// label: localize('msCompile', 'Microsoft compiler problems'),
// owner: 'msCompile',
// source: 'cpp',
// applyTo: ApplyToKind.allDocuments,
// fileLocation: FileLocationKind.Absolute,
// pattern: ProblemPatternRegistry.get('msCompile')
// });
this.add({
name: 'lessCompile',

View File

@ -13,6 +13,7 @@ export interface ITaskEntry extends IQuickPickItem {
content: string;
}
/*
const dotnetBuild: ITaskEntry = {
id: 'dotnetCore',
label: '.NET Core',
@ -81,6 +82,7 @@ const msbuild: ITaskEntry = {
'}'
].join('\n')
};
*/
const command: ITaskEntry = {
id: 'externalCommand',
@ -135,7 +137,7 @@ const maven: ITaskEntry = {
let _templates: ITaskEntry[] | null = null;
export function getTemplates(): ITaskEntry[] {
if (!_templates) {
_templates = [dotnetBuild, msbuild, maven].sort((a, b) => {
_templates = [maven].sort((a, b) => {
return (a.sort || a.label).localeCompare(b.sort || b.label);
});
_templates.push(command);