Skip to content

Adding latest commands from @github/copilot-language-server #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions LSP-copilot.sublime-commands
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@
"default": "// Settings in here override those in \"LSP-copilot/LSP-copilot.sublime-settings\"\n\n{\n\t$0\n}\n",
},
},
{
"caption": "Copilot: Inline Completion with Prompt",
"command": "copilot_inline_completion_prompt",
},
{
"caption": "Copilot: Inline Completion",
"command": "copilot_inline_completion",
},
]
1 change: 1 addition & 0 deletions LSP-copilot.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"buffer",
"res"
],
"initializationOptions": {},
"settings": {
"auto_ask_completions": true,
"commit_completion_on_tab": true,
Expand Down
25 changes: 25 additions & 0 deletions Main.sublime-commands
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
"caption": "Copilot: Chat",
"command": "copilot_conversation_chat"
},
{
"caption": "CopilotSelectInlineCompletionCommand",
"command": "copilot_select_inline_completion"
},
{
"caption": "Copilot: Code Review",
"command": "copilot_code_review"
},
{
"caption": "Copilot: Generate Commit Message",
"command": "copilot_git_commit_generate"
},
{
"caption": "Copilot: Edit Conversation",
"command": "copilot_edit_conversation_create"
},
{
"caption": "Copilot: Explain",
"command": "copilot_conversation_chat",
Expand All @@ -28,6 +44,10 @@
"caption": "Copilot: Get Prompt",
"command": "copilot_get_prompt",
},
{
"caption": "Copilot: Models",
"command": "copilot_models",
},
{
"caption": "Copilot: Fix This",
"command": "copilot_conversation_chat",
Expand Down Expand Up @@ -70,6 +90,11 @@
"caption": "Copilot: Conversation Templates",
"command": "copilot_conversation_templates",
},
{
// Debug Command
"caption": "Copilot: Register Conversation Tools",
"command": "copilot_register_conversation_tools",
},
{
"caption": "Copilot: Check Status",
"command": "copilot_check_status"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Copilot](https://raw.githubusercontent.com/TheSecEng/LSP-copilot/master/docs/screenshot.png)

GitHub Copilot support for Sublime Text LSP plugin provided through [Copilot.vim][].
GitHub Copilot support for Sublime Text LSP plugin provided through [@github/copilot-language-server][].

This plugin uses [Copilot][] distribution which uses OpenAI Codex to suggest codes
and entire functions in real-time right from your editor.
Expand Down Expand Up @@ -110,7 +110,7 @@ In LSP-copilot's plugin settings, add the following `env` key:
}
```

[@github/copilot-language-server]: https://www.npmjs.com/package/@github/copilot-language-server
[Copilot]: https://github.com/features/copilot
[Copilot.vim]: https://github.com/github/copilot.vim
[LSP]: https://packagecontrol.io/packages/LSP
[LSP-copilot]: https://packagecontrol.io/packages/LSP-copilot
[LSP]: https://packagecontrol.io/packages/LSP
1 change: 1 addition & 0 deletions boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def reload_plugin() -> None:
del sys.modules[module_name]



reload_plugin()

from .plugin import * # noqa: E402, F403
95 changes: 72 additions & 23 deletions language-server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions language-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"private": true,
"dependencies": {
"copilot-node-server": "^1.41.0"
}
"private": true,
"dependencies": {
"@github/copilot-language-server": "^1.326.0"
},
"version": "0.0.0"
}
20 changes: 20 additions & 0 deletions plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
CopilotCheckFileStatusCommand,
CopilotCheckStatusCommand,
CopilotClosePanelCompletionCommand,
CopilotCodeReviewCommand,
CopilotConversationAgentsCommand,
CopilotConversationChatCommand,
CopilotConversationChatShimCommand,
Expand All @@ -17,6 +18,10 @@
CopilotConversationDebugCommand,
CopilotConversationDestroyCommand,
CopilotConversationDestroyShimCommand,
CopilotGitCommitGenerateCommand,
CopilotInlineCompletionPromptCommand,
CopilotInlineCompletionCommand,
CopilotSelectInlineCompletionCommand,
CopilotConversationInsertCodeCommand,
CopilotConversationInsertCodeShimCommand,
CopilotConversationRatingCommand,
Expand All @@ -25,14 +30,19 @@
CopilotConversationToggleReferencesBlockCommand,
CopilotConversationTurnDeleteCommand,
CopilotConversationTurnDeleteShimCommand,
CopilotEditConversationCreateCommand,
CopilotEditConversationDestroyShimCommand,
CopilotEditConversationDestroyCommand,
CopilotGetPanelCompletionsCommand,
CopilotGetPromptCommand,
CopilotGetVersionCommand,
CopilotModelsCommand,
CopilotNextCompletionCommand,
CopilotPrepareAndEditSettingsCommand,
CopilotPreviousCompletionCommand,
CopilotRejectCompletionCommand,
CopilotSendAnyRequestCommand,
CopilotSetModelPolicyCommand,
CopilotSignInCommand,
CopilotSignInWithGithubTokenCommand,
CopilotSignOutCommand,
Expand All @@ -53,7 +63,14 @@
"CopilotAskCompletionsCommand",
"CopilotCheckFileStatusCommand",
"CopilotCheckStatusCommand",
"CopilotCodeReviewCommand",
"CopilotInlineCompletionPromptCommand",
"CopilotEditConversationCreateCommand",
"CopilotEditConversationDestroyShimCommand",
"CopilotEditConversationDestroyCommand",
"CopilotClosePanelCompletionCommand",
"CopilotInlineCompletionCommand",
"CopilotSelectInlineCompletionCommand",
"CopilotConversationAgentsCommand",
"CopilotConversationChatCommand",
"CopilotConversationChatShimCommand",
Expand All @@ -73,10 +90,13 @@
"CopilotGetPanelCompletionsCommand",
"CopilotGetPromptCommand",
"CopilotGetVersionCommand",
"CopilotGitCommitGenerateCommand",
"CopilotModelsCommand",
"CopilotNextCompletionCommand",
"CopilotPreviousCompletionCommand",
"CopilotRejectCompletionCommand",
"CopilotSendAnyRequestCommand",
"CopilotSetModelPolicyCommand",
"CopilotSignInCommand",
"CopilotSignInWithGithubTokenCommand",
"CopilotSignOutCommand",
Expand Down
Loading
Loading