diff options
Diffstat (limited to 'extension/src/diffs.ts')
-rw-r--r-- | extension/src/diffs.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/src/diffs.ts b/extension/src/diffs.ts index 37943de4..d04f9bdb 100644 --- a/extension/src/diffs.ts +++ b/extension/src/diffs.ts @@ -129,7 +129,7 @@ class DiffManager { // Open the diff editor if this is a new diff if (!this.diffs.has(newFilepath)) { // Figure out the first line that is different - const oldContent = fs.readFileSync(originalFilepath).toString("utf-8"); + const oldContent = ideProtocolClient.readFile(originalFilepath); const line = this._findFirstDifferentLine(oldContent, newContent); const diffInfo: DiffInfo = { |