diff --git a/package.json b/package.json index 1296739e..89cffe32 100644 --- a/package.json +++ b/package.json @@ -105,39 +105,6 @@ } ] }, - "problemMatchers": [ - { - "name": "rustc", - "owner": "rust", - "fileLocation": [ - "relative", - "${workspaceRoot}" - ], - "pattern": [ - { - "regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$", - "severity": 1, - "message": 4, - "code": 3 - }, - { - "regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$", - "file": 2, - "line": 3, - "column": 4 - }, - { - "regexp": "^.*$" - }, - { - "regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$", - "file": 2, - "line": 3, - "column": 4 - } - ] - } - ], "configuration": { "type": "object", "title": "Rust configuration", diff --git a/src/tasks.ts b/src/tasks.ts index 9377aaba..96d5ca6f 100644 --- a/src/tasks.ts +++ b/src/tasks.ts @@ -62,7 +62,6 @@ interface CargoTaskDefinition extends TaskDefinition { interface TaskConfigItem { definition: CargoTaskDefinition; - problemMatcher: Array; group?: TaskGroup; presentationOptions?: TaskPresentationOptions; } @@ -84,7 +83,7 @@ function getCargoTasks(): Array { return list; } -function createTask(rootPath: string, { definition, group, presentationOptions, problemMatcher }: TaskConfigItem): Task { +function createTask(rootPath: string, { definition, group, presentationOptions }: TaskConfigItem): Task { const TASK_SOURCE = 'Rust'; const execCmd = `${definition.command} ${definition.args.join(' ')}`; @@ -93,7 +92,9 @@ function createTask(rootPath: string, { definition, group, presentationOptions, }; const exec = new ShellExecution(execCmd, execOption); - const t = new Task(definition, definition.taskName, TASK_SOURCE, exec, problemMatcher); + //Specify no problem matchers so VSC doesn't prompt + //the user for a problem format + const t = new Task(definition, definition.taskName, TASK_SOURCE, exec, []); if (group !== undefined) { t.group = group; @@ -107,8 +108,6 @@ function createTask(rootPath: string, { definition, group, presentationOptions, } function createTaskConfigItem(): Array { - const problemMatcher = ['$rustc']; - const presentationOptions: TaskPresentationOptions = { reveal: TaskRevealKind.Always, panel: TaskPanelKind.New, @@ -124,7 +123,6 @@ function createTaskConfigItem(): Array { 'build' ], }, - problemMatcher, group: TaskGroup.Build, presentationOptions, }, @@ -137,7 +135,6 @@ function createTaskConfigItem(): Array { 'run' ], }, - problemMatcher, presentationOptions, }, { @@ -149,7 +146,6 @@ function createTaskConfigItem(): Array { 'test' ], }, - problemMatcher, group: TaskGroup.Test, presentationOptions, }, @@ -162,7 +158,6 @@ function createTaskConfigItem(): Array { 'clean' ], }, - problemMatcher: [], presentationOptions, }, ];