vscodium icon indicating copy to clipboard operation
vscodium copied to clipboard

Add fixes for github copilot in product.json "extensionEnabledApiProposals"

Open TimTheBig opened this issue 10 months ago • 7 comments

Fixes based on https://github.com/VSCodium/vscodium/issues/1546#issuecomment-1793619431. With these fixes GitHub copilot and copilot chat work on the latest stable build.

  "extensionEnabledApiProposals": {
    "GitHub.copilot": [
      "inlineCompletionsAdditions",
      "interactive",
      "interactiveUserActions",
      "terminalDataWriteEvent",
      "chatParticipant"
    ],
    "GitHub.copilot-nightly": [
      "inlineCompletionsAdditions",
      "interactive",
      "interactiveUserActions",
      "terminalDataWriteEvent",
      "chatParticipant"
    ],
    "GitHub.copilot-chat": [
      "handleIssueUri",
      "interactive",
      "interactiveUserActions",
      "terminalDataWriteEvent",
      "terminalExecuteCommandEvent",
      "terminalSelection",
      "terminalQuickFixProvider",
      "chatProvider",
      "chatVariables",
      "chatAgents",
      "chatAgents2",
      "chatAgents2Additions",
      "defaultChatAgent",
      "readonlyMessage",
      "mappedEditsProvider",
      "aiRelatedInformation",
      "codeActionAI",
      "findTextInFiles",
      "textSearchProvider",
      "chatVariableResolver",
      "newSymbolNamesProvider",
      "aiTextSearchProvider",
      "contribSourceControlInputBoxMenu",
      "testObserver",
      "findFiles2",
      "chatParticipant",
      "createAgent",
      "scmInputBoxValueProvider"
    ],

TimTheBig avatar Apr 14 '24 20:04 TimTheBig

Maybe create a PR instead?

melroy89 avatar Apr 18 '24 18:04 melroy89

Will do, should I leave the new lines or put them on one line?

TimTheBig avatar Apr 18 '24 19:04 TimTheBig

I believe they have it all on a single line.. So I would stay with that. At least the arrays are on a single line.

melroy89 avatar Apr 18 '24 19:04 melroy89

VSCodium is using the same extensionEnabledApiProposals as Visual Studio Code. I've checked.

Here the script doing it https://github.com/VSCodium/vscodium/blob/master/build/update_api.sh

Those Apis depend on the version of the editor and of the extension. Your needs seem like an older version

daiyam avatar Apr 18 '24 19:04 daiyam

This is the current product.json, as you can see missing quite a lot:

    "GitHub.copilot": [
      "inlineCompletionsAdditions"
    ],
    "GitHub.copilot-nightly": [
      "inlineCompletionsAdditions"
    ],
    "GitHub.copilot-chat": [
      "handleIssueUri",
      "interactive",
      "terminalDataWriteEvent",
      "terminalExecuteCommandEvent",
      "terminalSelection",
      "terminalQuickFixProvider",
      "chatParticipant",
      "chatParticipantAdditions",
      "defaultChatParticipant",
      "chatVariableResolver",
      "chatProvider",
      "mappedEditsProvider",
      "aiRelatedInformation",
      "codeActionAI",
      "findTextInFiles",
      "textSearchProvider",
      "contribSourceControlInputBoxMenu",
      "newSymbolNamesProvider",
      "findFiles2",
      "extensionsAny",
      "authLearnMore",
      "testObserver"
    ],

TimTheBig avatar Apr 18 '24 20:04 TimTheBig

VSCodium is using the same extensionEnabledApiProposals as Visual Studio Code.

daiyam avatar Apr 19 '24 07:04 daiyam

Is it possible that those APIs are not experimental in VSCode?

TimTheBig avatar Apr 20 '24 00:04 TimTheBig