Skip to content

Commit aef9972

Browse files
authored
Add hybrid workspace index for uncommitted changes (#9057)
2 parents 618de54 + 06bead7 commit aef9972

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/copilot/reference/workspace-context.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For small projects, the entire workspace can be included directly in the chat co
3636

3737
The following steps outline how VS Code constructs the workspace context:
3838

39-
1. Determine which information from the workspace is needed to answer your question, also including the conversation history, workspace structure, and currently editor selection.
39+
1. Determine which information from the workspace is needed to answer your question, also including the conversation history, workspace structure, and current editor selection.
4040

4141
1. Collect relevant code snippets from the [workspace index](#workspace-index) by using various approaches:
4242

@@ -51,6 +51,10 @@ The following steps outline how VS Code constructs the workspace context:
5151

5252
Chat in VS Code uses an index to quickly and accurately search your codebase for relevant code snippets. This index can either be maintained by GitHub or stored locally on your machine.
5353

54+
The remote index is built from the committed state of your repository on GitHub or Azure DevOps. This means that any uncommitted changes in your local workspace are not included in the remote index.
55+
56+
When you have local uncommitted changes, VS Code uses a hybrid approach combining the remote index with local file tracking. VS Code detects which files have been modified since the indexed commit and also reads the current file content from the editor for real-time content.
57+
5458
You can view the type of index that is being used and its indexing status in the Copilot status dashboard in the VS Code Status Bar.
5559

5660
![Screenshot showing the workspace index status in the Copilot status menu.](../images/workspace-context/workspace-index-status.png)

0 commit comments

Comments
 (0)