git: use resource configuration

related to #37041
This commit is contained in:
Joao Moreno
2017-10-27 16:21:13 +02:00
parent fcf4c4fc5b
commit d5c3e6b75a

View File

@@ -675,7 +675,7 @@ export class Repository implements Disposable {
async show(ref: string, filePath: string): Promise<string> {
return await this.run(Operation.Show, async () => {
const relativePath = path.relative(this.repository.root, filePath).replace(/\\/g, '/');
const configFiles = workspace.getConfiguration('files');
const configFiles = workspace.getConfiguration('files', Uri.file(filePath));
const encoding = configFiles.get<string>('encoding');
return await this.repository.buffer(`${ref}:${relativePath}`, encoding);