Consider to change RelativePattern ctor argument order (fixes #35103)

This commit is contained in:
Benjamin Pasero
2017-09-26 17:07:38 +02:00
parent 14b519c2e6
commit fd19798aa1
2 changed files with 4 additions and 4 deletions

View File

@@ -1451,8 +1451,8 @@ export class RelativePattern implements IRelativePattern {
base: string;
pattern: string;
constructor(pattern: string, base: vscode.WorkspaceFolder | string) {
this.pattern = pattern;
constructor(base: vscode.WorkspaceFolder | string, pattern: string) {
this.base = typeof base === 'string' ? base : base.uri.fsPath;
this.pattern = pattern;
}
}