Skip to content

Commit a568cf4

Browse files
CopilotJustinGrote
andauthored
Clarify Saved semantics as file-backed state
Agent-Logs-Url: https://github.com/PowerShell/PowerShellEditorServices/sessions/b2f2d9b7-95c7-413b-8a23-7845a964c98a Co-authored-by: JustinGrote <15258962+JustinGrote@users.noreply.github.com>
1 parent 29ae10f commit a568cf4

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/PowerShellEditorServices/Extensions/EditorWorkspace.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal EditorWorkspaceDocument(EditorWorkspace workspace, string path, bool sa
2626
public string Path { get; }
2727

2828
/// <summary>
29-
/// Gets whether the document is saved (has no unsaved changes).
29+
/// Gets whether the document is backed by a saved file path (not in-memory).
3030
/// </summary>
3131
public bool Saved { get; }
3232

src/PowerShellEditorServices/Extensions/IEditorOperations.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ internal WorkspaceOpenDocument(string path, bool saved)
1414
Saved = saved;
1515
}
1616

17+
/// <summary>
18+
/// Gets the path or URI of the open document.
19+
/// </summary>
1720
public string Path { get; }
1821

22+
/// <summary>
23+
/// Gets whether the document is backed by a saved file path (not in-memory).
24+
/// </summary>
1925
public bool Saved { get; }
2026
}
2127

0 commit comments

Comments
 (0)