Skip to content

Commit

Permalink
git: use resource configuration
Browse files Browse the repository at this point in the history
related to #37041
  • Loading branch information
joaomoreno authored and egamma committed Oct 31, 2017
1 parent 36862a4 commit 902a5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/git/src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 902a5f6

Please sign in to comment.