Skip to content

Commit 5b1b936

Browse files
authored
Merge pull request #309 from VSC-NeuroPilot/remove-chat
Remove chat and completions
2 parents b6810ea + 06e3726 commit 5b1b936

11 files changed

Lines changed: 6 additions & 578 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Changes between each version before then will not be listed.
1313
- NeuroPilot now has a public, extensible API that can be accessed by other extensions.
1414
- Details, including API interfaces, documentation, and versioning can be found at https://vsc-neuropilot.github.io/
1515
- API changelogs will usually not be listed here.
16-
- The Git integration has been ripped out of the extension and is now published as a separate extension, and uses the API. The Copilot Chat integration is also planned to be given the same treatment.
16+
- The Git integration and Copilot Chat integration have been ripped out of the extension and are now published as separate extensions, which use the API.
1717
- Because of this, you may see fairly reduced bundle sizes.
1818
- If you want to re-add these features, you can simply install the corresponding extensions.
1919
- Whenever companion extensions (extensions that hook into NeuroPilot) are connected, you'll see them listed in a new sidebar panel.

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@ The amount of times the extension should retry is [also configurable](vscode://s
3535
We refer to permission modes in NeuroPilot as either Autopilot mode (top GIF) or Copilot mode (bottom GIF) which can be configured alongside disabling it completely.
3636
These refer to different levels of permission Neuro can be given over certain groups of actions.
3737

38-
### Copilot Chat integration
39-
40-
This extension adds a chat participant that allows you to interact with her as if she was Copilot.
41-
This includes:
42-
43-
- Chatting with her through the chat sidebar (invoked by typing `@neuro`, `@evil` or `@neuroapi`).
44-
- Requesting inline completions (tab-complete, as its known).
45-
- Asking her to fix or explain lint errors.
46-
4738
## Security
4839

4940
The extension has multiple security measures in place to prevent Neuro from doing any real damage.
@@ -53,8 +44,6 @@ Neuro cannot open, edit, or otherwise access files or folders that start with a
5344
This is mainly to prevent her from opening `.vscode/tasks.json` to essentially run arbitrary commands in the terminal, or editing `.vscode/settings.json` to escalate her permissions.
5445
**Warning: If your workspace is inside such a folder, Neuro will not be able to edit *any* files!**
5546

56-
Neuro also can't change the global git configuration, only the one local to the current repository.
57-
5847
Note that:
5948

6049
- if Neuro has direct terminal access;

package.json

Lines changed: 4 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -32,62 +32,6 @@
3232
"main": "./out/desktop/extension.js",
3333
"browser": "./out/web/extension.js",
3434
"contributes": {
35-
"chatParticipants": [
36-
{
37-
"id": "neuropilot.api",
38-
"name": "neuroapi",
39-
"fullName": "Neuro API (custom name selected)",
40-
"description": "Chat with the connected server",
41-
"when": "config.neuropilot.currentlyAsNeuroAPI != 'Neuro' && config.neuropilot.currentlyAsNeuroAPI != 'Evil'",
42-
"isSticky": true,
43-
"commands": [
44-
{
45-
"name": "fix",
46-
"description": "Ask the server to fix an error"
47-
},
48-
{
49-
"name": "explain",
50-
"description": "Ask the server to explain something in your code"
51-
}
52-
]
53-
},
54-
{
55-
"id": "neuropilot.neuro",
56-
"name": "neuro",
57-
"fullName": "Neuro-sama",
58-
"description": "Chat with Neuro-sama",
59-
"when": "config.neuropilot.currentlyAsNeuroAPI == 'Neuro'",
60-
"isSticky": true,
61-
"commands": [
62-
{
63-
"name": "fix",
64-
"description": "Ask Neuro to fix an error"
65-
},
66-
{
67-
"name": "explain",
68-
"description": "Ask Neuro to explain something in your code"
69-
}
70-
]
71-
},
72-
{
73-
"id": "neuropilot.evil",
74-
"name": "evil",
75-
"fullName": "Evil Neuro",
76-
"description": "Chat with Evil Neuro",
77-
"when": "config.neuropilot.currentlyAsNeuroAPI === 'Evil'",
78-
"isSticky": true,
79-
"commands": [
80-
{
81-
"name": "fix",
82-
"description": "Ask Evil to fix an error"
83-
},
84-
{
85-
"name": "explain",
86-
"description": "Ask Evil to explain something in your code"
87-
}
88-
]
89-
}
90-
],
9135
"commands": [
9236
{
9337
"command": "neuropilot.reconnect",
@@ -247,37 +191,12 @@
247191
"neuropilot.beforeContext": {
248192
"type": "integer",
249193
"default": 500,
250-
"description": "The number of lines before the cursor position to include as context when editing a file or sending a completion request"
194+
"description": "The number of lines before the cursor position to include as context when editing a file."
251195
},
252196
"neuropilot.afterContext": {
253197
"type": "integer",
254198
"default": 500,
255-
"description": "The number of lines after the cursor position to include as context when editing a file or sending a completion request"
256-
},
257-
"neuropilot.maxCompletions": {
258-
"type": "integer",
259-
"default": 3,
260-
"description": "The maximum number of completions to request"
261-
},
262-
"neuropilot.completionTrigger": {
263-
"type": "string",
264-
"default": "invokeOnly",
265-
"description": "When to trigger completions",
266-
"enum": [
267-
"off",
268-
"invokeOnly",
269-
"automatic"
270-
],
271-
"enumDescriptions": [
272-
"Disable inline completion suggestions",
273-
"Only request completions when the user explicitly invokes the completion provider",
274-
"Automatically request completions when the user stops typing"
275-
]
276-
},
277-
"neuropilot.timeout": {
278-
"type": "integer",
279-
"default": 10000,
280-
"description": "The timeout in milliseconds for completions and chat responses in ms"
199+
"description": "The number of lines after the cursor position to include as context when editing a file."
281200
},
282201
"neuropilot.includePattern": {
283202
"markdownDeprecationMessage": "This setting has been moved to `neuropilot.access.includePattern`."
@@ -627,7 +546,7 @@
627546
},
628547
"neuropilot.connection.nameOfAPI": {
629548
"type": "string",
630-
"markdownDescription": "Who is currently acting as the Neuro API server?\nThis only changes the name in certain areas (such as Copilot-mode requests or Git commit messages) due to limitations.\n\nYou can add custom characters using `settings.json` if you ignore the lint error from VS Code.\n\n(Most) names mentioned here are not associated with NeuroPilot.",
549+
"markdownDescription": "Who is currently acting as the Neuro API server?\nThis only changes the name in certain areas (such as Copilot-mode requests) due to limitations.\n\nYou can add custom characters using `settings.json` if you ignore the lint error from VS Code.\n\n(Most) names mentioned here are not associated with NeuroPilot.",
631550
"default": "Neuro",
632551
"enum": [
633552
"Neuro",
@@ -785,7 +704,7 @@
785704
"capabilities": {
786705
"virtualWorkspaces": {
787706
"supported": "limited",
788-
"description": "In virtual workspaces, Terminal, Tasks, Git support (restricted on web) and Copilot Chat mode (restricted on web) is not available."
707+
"description": "In virtual workspaces, Terminal and Tasks are not available."
789708
},
790709
"untrustedWorkspaces": {
791710
"supported": "limited",

0 commit comments

Comments
 (0)