vscode--log-object-property.md

 1+++
 2repository_url = "https://github.com/microsoft/vscode"
 3revision = "e28a92fc1fbe9de11eca2f8ad19899334bff8525"
 4+++
 5
 6This prediction requires the model to see the `IDiffComputationResult` type definition.
 7
 8## Edit History
 9
10```diff
11--- a/src/vs/editor/browser/widget/diffEditorWidget.ts
12+++ b/src/vs/editor/browser/widget/diffEditorWidget.ts
13@@ -1117,6 +1117,7 @@
14 				&& currentModifiedModel === this._modifiedEditor.getModel()
15 			) {
16 				this._setState(editorBrowser.DiffEditorState.DiffComputed);
17+				console.log("did quit:")
18 				this._diffComputationResult = result;
19 				this._updateDecorationsRunner.schedule();
20 				this._onDidUpdateDiff.fire();
21```
22
23## Cursor Position
24
25```src/vs/editor/browser/widget/diffEditorWidget.ts
26			if (currentToken === this._diffComputationToken
27				&& currentOriginalModel === this._originalEditor.getModel()
28				&& currentModifiedModel === this._modifiedEditor.getModel()
29			) {
30				this._setState(editorBrowser.DiffEditorState.DiffComputed);
31				console.log("did quit:")
32				//                    ^[CURSOR_POSITION]
33				this._diffComputationResult = result;
34				this._updateDecorationsRunner.schedule();
35				this._onDidUpdateDiff.fire();
36			}
37```
38
39## Expected Patch
40
41```diff
42--- a/src/vs/editor/browser/widget/diffEditorWidget.ts
43+++ b/src/vs/editor/browser/widget/diffEditorWidget.ts
44@@ -1115,10 +1115,10 @@
45 			if (currentToken === this._diffComputationToken
46 				&& currentOriginalModel === this._originalEditor.getModel()
47 				&& currentModifiedModel === this._modifiedEditor.getModel()
48 			) {
49 				this._setState(editorBrowser.DiffEditorState.DiffComputed);
50-				console.log("did quit:")
51+				console.log("did quit:", result.quitEarly)
52 				this._diffComputationResult = result;
53 				this._updateDecorationsRunner.schedule();
54 				this._onDidUpdateDiff.fire();
55 			}
56```