Cannot view diff for Dockerfile
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Does this issue occur when all extensions are disabled?: Yes
## Software version
Version: 1.130.0 (user setup)
Commit: 1b6a188127eeaf9194f945eb6eb89a657e93c54c
Date: 2026-07-22T14:55:04Z
Electron: 42.6.0
ElectronBuildId: 14623276
Chromium: 148.0.7778.280
Node.js: 24.18.0
V8: 14.8.178.38-electron.0
OS: Windows_NT x64 10.0.26200
## Steps to Reproduce (edited)
1. Enable code move feature `"diffEditor.experimental.showMoves": true,`
2. Create initial Dockerfile file with [this content](https://gist.github.com/iqfareez/0cf0e9ad0a7224333ec78ba2c12c6709#file-dockerfile1)
3. Commit the Dockerfile
4. Modify the Dockerfile with [this content](https://gist.github.com/iqfareez/0cf0e9ad0a7224333ec78ba2c12c6709#file-dockerfile2).
5. From **Source Control** view on the sidebar, open the changed file.
## Expected Result
The file diff can be viewed for Dockerfile
## Actual Result
The diff view loading indefinitely (See video below).
https://github.com/user-attachments/assets/fcf6a298-c8f3-4799-b734-0c318b048339
## Logs
The logs from `Window`.
```
2026-07-27 22:08:21.901 [error] [Window] Cannot read properties of undefined (reading 'trim'): TypeError: Cannot read properties of undefined (reading 'trim')
at vs (vscode-file://vscode-app/c:/Users/Iqmal/AppData/Local/Programs/Microsoft%20VS%20Code/1b6a188127/resources/app/out/vs/editor/common/services/editorWebWorkerMain.js#editorWorkerService:452:3486)
at Ml (vscode-file://vscode-app/c:/Users/Iqmal/AppData/Local/Programs/Microsoft%20VS%20Code/1b6a188127/resources/app/out/vs/editor/common/services/editorWebWorkerMain.js#editorWorkerService:452:2727)
at Ts (vscode-file://vscode-app/c:/Users/Iqmal/AppData/Local/Programs/Microsoft%20VS%20Code/1b6a188127/resources/app/out/vs/editor/common/services/editorWebWorkerMain.js#editorWorkerService:451:6025)
at Xn.computeMoves (vscode-file://vscode-app/c:/Users/Iqmal/AppData/Local/Programs/Microsoft%20VS%20Code/1b6a188127/resources/app/out/vs/editor/common/services/editorWebWorkerMain.js#editorWorkerService:453:2267)
at Xn.computeDiff (vscode-file://vscode-app/c:/Users/Iqmal/AppData/Local/Programs/Microsoft%20VS%20Code/1b6a188127/resources/app/out/vs/editor/common/services/editorWebWorkerMain.js#editorWorkerService:453:1602)
at r.computeDiff (vscode-file://vscode-app/c:/Users/Iqmal/AppData/Local/Programs/Microsoft%20VS%20Code/1b6a188127/resources/app/out/vs/editor/common/services/editorWebWorkerMain.js#editorWorkerService:459:19774)
at r.$computeDiff (vscode-file://vscode-app/c:/Users/Iqmal/AppData/Local/Programs/Microsoft%20VS%20Code/1b6a188127/resources/app/out/vs/editor/common/services/editorWebWorkerMain.js#editorWorkerService:459:19673)
```
Contributor guide
Assessment
This issue has not been assessed yet.