How microsoft/copilot-for-eclipse works
GitHub Copilot for Eclipse is an Eclipse IDE assistant. Users sign in, receive inline completion or next-edit suggestions, and use Ask/Agent chat for project-aware tasks; the core language-server connection mediates Copilot requests, while chat also supports customization, MCP tools, and review of proposed file changes. Conversation state can be persisted locally. The README establishes capabilities beyond the sampled implementation; those are represented as documented subsystems without asserting unsampled call paths. Edges below are limited to relationships visible in excerpts or explicitly documented.
Main entry points: CopilotLanguageServerConnection.java Language server · ChatView.java Chat experience · chat Agent capabilities · AuthStatusManager.java Authentication
Components 18
Plugin and identity
- Core plugin
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/CopilotCore.java - Authentication
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java
Editor assistance
- Code completions
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/completion/CompletionProvider.java - Next edit suggestions
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/nes/NextEditSuggestionProvider.java
Chat and agents
- Chat experience
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatView.java - Agent capabilities
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat - Custom agents
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/FileBasedCustomModeService.java - Customization files
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/CustomizationFileService.java - File change review
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/FileToolService.java - Context window
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/contextwindow/ContextWindowService.java - File references
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/DragReferenceManager.java
Language server and tools
- MCP setup
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/dialogs/mcp/McpServerInstallManager.java - Terminal tools
com.microsoft.copilot.eclipse.terminal.api/src/com/microsoft/copilot/eclipse/terminal/api/TerminalServiceManager.java - Language server
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageServerConnection.java
Preferences and persistence
- Server settings
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/LanguageServerSettingManager.java - Conversation persistence
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/persistence/ConversationPersistenceService.java
Other components
- Eclipse user
- Copilot service
Connections 22
- Eclipse user → Authentication: signs in
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java - Authentication → Language server: requests auth
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java - Eclipse user → Code completions: edits code
README.md - Eclipse user → Next edit suggestions: edits code
README.md - Eclipse user → Chat experience: asks Copilot
README.md - Code completions → Language server: requests suggestions
- Next edit suggestions → Language server: requests edits
- Chat experience → Agent capabilities: supports chat
README.md - Agent capabilities → Language server: sends requests
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/FileBasedCustomModeService.java - Custom agents → Language server: loads modes
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/FileBasedCustomModeService.java - Customization files → Language server: lists files
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/service/CustomizationFileService.java - Eclipse user → File references: drops files
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/DragReferenceManager.java - File references → Chat experience: adds references
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/DragReferenceManager.java - Eclipse user → File change review: reviews changes
README.md - Chat experience → File change review: reviews proposals
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/FileToolService.java - Eclipse user → MCP setup: configures MCP
README.md - MCP setup → Server settings: updates config
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/dialogs/mcp/McpServerInstallManager.java - Agent capabilities → Terminal tools: uses tools
- Language server → Copilot service: exchanges protocol
- Server settings → Language server: syncs settings
- Chat experience → Conversation persistence: persists turns
- Language server → Context window: provides usage