VSCodium / vscodium

binary releases of VS Code without MS branding/telemetry/licensing
https://vscodium.com
MIT License
24.29k stars 1.02k forks source link

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

Open TimTheBig opened 2 months ago

TimTheBig commented 2 months ago

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"
    ],
melroy89 commented 2 months ago

Maybe create a PR instead?

TimTheBig commented 2 months ago

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

melroy89 commented 2 months ago

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.

daiyam commented 2 months ago

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

TimTheBig commented 2 months ago

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"
    ],
daiyam commented 2 months ago

VSCodium is using the same extensionEnabledApiProposals as Visual Studio Code.

TimTheBig commented 2 months ago

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