mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
This commit is contained in:
@@ -1026,7 +1026,7 @@ class ProblemPatternRegistryImpl implements IProblemPatternRegistry {
|
||||
|
||||
private fillDefaults(): void {
|
||||
this.add('msCompile', {
|
||||
regexp: /^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\)\s*:\s+(error|warning|info)\s+(\w{1,2}\d+)\s*:\s*(.*)$/,
|
||||
regexp: /^(?:\s+\d+\>)?([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\)\s*:\s+(error|warning|info)\s+(\w{1,2}\d+)\s*:\s*(.*)$/,
|
||||
file: 1,
|
||||
location: 2,
|
||||
severity: 3,
|
||||
@@ -1180,13 +1180,13 @@ export class ProblemMatcherParser extends Parser {
|
||||
let kind: FileLocationKind;
|
||||
if (Types.isUndefined(description.fileLocation)) {
|
||||
fileLocation = FileLocationKind.Relative;
|
||||
filePrefix = '${cwd}';
|
||||
filePrefix = '${workspaceFolder}';
|
||||
} else if (Types.isString(description.fileLocation)) {
|
||||
kind = FileLocationKind.fromString(<string>description.fileLocation);
|
||||
if (kind) {
|
||||
fileLocation = kind;
|
||||
if (kind === FileLocationKind.Relative) {
|
||||
filePrefix = '${cwd}';
|
||||
filePrefix = '${workspaceFolder}';
|
||||
}
|
||||
}
|
||||
} else if (Types.isStringArray(description.fileLocation)) {
|
||||
@@ -1601,7 +1601,7 @@ class ProblemMatcherRegistryImpl implements IProblemMatcherRegistry {
|
||||
owner: 'typescript',
|
||||
applyTo: ApplyToKind.closedDocuments,
|
||||
fileLocation: FileLocationKind.Relative,
|
||||
filePrefix: '${cwd}',
|
||||
filePrefix: '${workspaceFolder}',
|
||||
pattern: ProblemPatternRegistry.get('gulp-tsc')
|
||||
});
|
||||
|
||||
@@ -1629,7 +1629,7 @@ class ProblemMatcherRegistryImpl implements IProblemMatcherRegistry {
|
||||
owner: 'eslint',
|
||||
applyTo: ApplyToKind.allDocuments,
|
||||
fileLocation: FileLocationKind.Relative,
|
||||
filePrefix: '${cwd}',
|
||||
filePrefix: '${workspaceFolder}',
|
||||
pattern: ProblemPatternRegistry.get('eslint-compact')
|
||||
});
|
||||
|
||||
@@ -1648,7 +1648,7 @@ class ProblemMatcherRegistryImpl implements IProblemMatcherRegistry {
|
||||
owner: 'go',
|
||||
applyTo: ApplyToKind.allDocuments,
|
||||
fileLocation: FileLocationKind.Relative,
|
||||
filePrefix: '${cwd}',
|
||||
filePrefix: '${workspaceFolder}',
|
||||
pattern: ProblemPatternRegistry.get('go')
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user