mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
Merge branch 'master' into scm-api
This commit is contained in:
@@ -21,7 +21,7 @@ class TextDocumentContentProvider {
|
||||
constructor(private git: Git, private rootPath: string) { }
|
||||
|
||||
async provideTextDocumentContent(uri: Uri): Promise<string> {
|
||||
const relativePath = path.relative(this.rootPath, uri.fsPath);
|
||||
const relativePath = path.relative(this.rootPath, uri.fsPath).replace(/\\/g, '/');
|
||||
|
||||
try {
|
||||
const result = await this.git.exec(this.rootPath, ['show', `HEAD:${relativePath}`]);
|
||||
|
||||
Reference in New Issue
Block a user