Adding latest commands from @github/copilot-language-server#236
Adding latest commands from @github/copilot-language-server#236TerminalFi wants to merge 37 commits intomasterfrom
Conversation
9ca25e4 to
721606f
Compare
|
What's holding up the ability to change models? |
#235 should be merged first. And it has a blocker sublimehq/sublime_text#6424 (not sure whether we can workaround this in ST) |
|
@phene Yes, as @jfcherng stated, while functionality wise this works. When we switch over to the GH provided npm package it is 200+ MB and that causes ST to fail loading the files sadly. There is technically a potential work around, and that is to change how LSP looks for these files :) But I doubt they want to diverge from the build in solution. The other option is that we can put these new commands behind a setting, and tell the user they must provide the package and update the settings. I highly encourage you to contribute. It would be greatly appreciated |
763a290 to
dbc2c3b
Compare
|
I have update to the latest server with |
There was a problem hiding this comment.
Pull Request Overview
This PR integrates the latest commands and edit-conversation support from the @github/copilot-language-server package.
- Adds edit‐conversation UI, client handlers, and request/notification constants
- Introduces GitHelper and a code‐review request function
- Registers new commands (code review, commit generation, edit conversation, model listing) and updates package.json to use the new server
Reviewed Changes
Copilot reviewed 11 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| plugin/ui/init.py | Exported WindowEditConversationManager |
| plugin/types.py | Added TypedDicts for edit conversations and model definitions |
| plugin/templates/edit_conversation.md.jinja | New Jinja template for the edit-conversation UI |
| plugin/helpers.py | Added prepare_code_review_request_doc and GitHelper class |
| plugin/constants.py | Defined new request and notification constants for edit/chat, context, git, and models |
| plugin/client.py | Integrated edit‐conversation flow, context provider registration, and new notification handlers |
| plugin/init.py | Registered new Copilot commands (code review, commit generation, edit conversation, models) |
| language-server/package.json | Switched dependency to @github/copilot-language-server and bumped version |
| README.md | Updated documentation links to point at the new language server package |
| Main.sublime-commands | Added new entries for code review, commit generation, edit conversation, and models |
| LSP-copilot.sublime-settings | Introduced initializationOptions for future configuration |
Files not reviewed (1)
- language-server/package-lock.json: Language not supported
Comments suppressed due to low confidence (6)
plugin/helpers.py:351
- [nitpick] The new
GitHelperclass and its methods currently lack unit tests. Consider adding tests to cover key behaviors likerun_git_commandandget_git_changes.
class GitHelper:
plugin/helpers.py:408
Pathis not imported in this module, which will cause a NameError. Addfrom pathlib import Pathto the imports.
full_path = Path(repo_root) / file_path
Main.sublime-commands:90
- Comments using
//are not valid JSON in.sublime-commandsfiles and may break parsing; remove or convert this to a valid JSON field.
// Debug Command
plugin/client.py:57
- [nitpick] The imports
log_infoandlog_debugare not used in this file; consider removing them to keep imports clean.
from .log import log_warning, log_info, log_debug
plugin/client.py:80
- [nitpick] Imported
find_window_by_idis not used anywhere in this module; it can be removed to avoid dead code.
find_window_by_id,
plugin/templates/edit_conversation.md.jinja:84
- Typo in UI text:
Github Copilotshould beGitHub Copilotto match correct branding casing.
<img class="icon" src="{{ asset_url('github.png') }}"> Github Copilot
cd7f0e0 to
eac80ae
Compare
52a9196 to
f8bcecb
Compare
042beda to
0cf7d3d
Compare
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
|
We can ship
and do
later if someone wants to pick that up. What do you think @TerminalFi ? |
|
I'm fine with that |
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
|
I think I will just stop here. Leaving "Ability for Edit Conversations" undone. |
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
bf3a543 to
35bd2e4
Compare
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
|
I am considering just merge this PR since there is no ETA for this PR for ALL goals to be done and this PR has existed for 1 year. |
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
I'm fine with that. Maybe I will get to this this year 😅😂 |
|
Can we get this merged? Thanks |
Todo