Repository navigation
Commit 737bb95
committed
Scroll diff editors to the first changed line when opening previews
- once diff between two files is shown, trigger 'next change' to focus on the first change
- if position after running [Fragment] is 0:0, don't run [Fragment], if it isn't, run [Fragment]
- should not run this 'if' block [Fragment] if the first change is on the first line
- wrap [Changes] in a function
└── apps
└── editor
└── src
├── commands
│ └── apply-response-command
│ ├── apply-response-command.ts
│ ├── types
│ │ └── original-file-state.ts
│ └── utils
│ ├── preview
│ │ ├── build-history-files.ts
│ │ ├── diff-utils.ts
│ │ ├── file-preparer.ts
│ │ ├── index.ts
│ │ ├── preview.ts
│ │ ├── temp-file-manager.ts
│ │ ├── types.ts
│ │ ├── virtual-document-provider.ts
│ │ ├── vscode-ui.ts
│ │ └── workspace-listener.ts
│ └── preview-handler.ts
└── views
└── prompt
└── backend
└── message-handlers
└── handle-show-diff.ts1 parent 6f395f7 commit 737bb95
1 file changed
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
40 | 83 | | |
41 | 84 | | |
42 | 85 | | |
| |||
55 | 98 | | |
56 | 99 | | |
57 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
58 | 107 | | |
59 | 108 | | |
60 | 109 | | |
| |||
0 commit comments