You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source dates are supported in Code for IBM i, but not by default.
8
8
9
9
## Prerequisites to using source dates
10
+
10
11
For source dates to be enabled, the QCCSID system value must not be 65535. See [our documentation about encoding](../../tips/ccsid/) and [IBM's documentation about the QCCSID system value](https://www.ibm.com/docs/en/i/7.5?topic=faqs-i-system-value-qccsid)<Iconname="external"color="cyan"class="icon-inline" />.
11
12
12
13
## Source date settings
13
14
14
15
Source dates can be enabled in the connection settings.
15
16
16
-
There are three options pertaining to source dates:
17
+
There are two options pertaining to source dates:
17
18
18
19
**Enable Source Dates*: If source date support is enabled for source members
19
-
**Source date tracking mode*: What type of mode should be used to track changes. More below.
20
20
**Source Dates in Gutter*: Whether the source dates should appear in the gutter of the editor when enabled
21
21
22
-
## Tracking modes
23
-
24
-
There are two types of editing modes for source dates
25
-
26
-
**Edit mode* which is the traditional style for editing. When a line changes, the source date of that line will be updated. It does not understand undo/redo. It is considered the 'dumb' mode.
27
-
**Diff mode* is the modern approach to source date tracking. Instead of tracking edits line by line, it is doing [a diff](https://en.wikipedia.org/wiki/Diff)<Iconname="external"color="cyan"class="icon-inline" /> to understand what has changed in the document. It diffs the base document (from last open or last save) against the latest dirty version of the document. This is a Test enhancement. It does understand undo/redo. It is considered the 'smarter' mode of the two modes.
28
-
22
+
## How dates are tracked
29
23
30
-
<Asidetype="caution">
31
-
As of Code for IBM i 2.15.0, the 'edit' tracking mode has been removed and only diff will be used. The documentation will be updated to reflect that change for 3.0.0.
32
-
</Aside>
24
+
*Diff mode* is the modern approach to source date tracking. Instead of tracking edits line by line, it is doing [a diff](https://en.wikipedia.org/wiki/Diff)<Iconname="external"color="cyan"class="icon-inline" /> to understand what has changed in the document. It diffs the base document (from last open or last save) against the latest dirty version of the document. This is a Test enhancement. It does understand undo/redo. It is considered the 'smarter' mode of the two modes.
33
25
34
26
## Source date filtering
35
27
36
28
<CardGrid>
37
29
38
30
<Card>
39
31
40
-
This feature is only enabled when using 'Diff mode' tracking, as well as having the source dates gutter enabled.
32
+
This feature is only enabled when the source dates gutter is enabled.
41
33
42
34
Hovering over the gutter will show two buttons to:
43
35
@@ -68,4 +60,12 @@ There is also a button on the status bar the user can use to start a new date fi
68
60
69
61
</Card></CardGrid>
70
62
71
-
---
63
+
## Source sequence view
64
+
65
+
This feature is only enabled when the source dates gutter is enabled.
66
+
67
+
You are able to hover over the gutter to enable or disable the sequence view. This will show the `SRCSEQ` value of the source member in the gutter. The sequence view will revert back to the source date when the file is edited.
68
+
69
+
Source sequences are not retained. This means that when saving a member, Code for IBM i will resequence the source member.
0 commit comments