Skip to content

Commit 9620fdf

Browse files
authored
feat: better interactive experience (#55)
* chore: simplified launch steps * WIP: Refactoring main code * WIP: remove walkthroughs files * wip: optimize code * wip: complete codelens commands * wip: support chat history and slash command * wip: hide debugRunR command * wip: migration fix command * wip: migration more model providers * wip: perfect document * wip: add file ignore rules * wip: fix executeIns and quick search * test: fix test env
1 parent 4a26cda commit 9620fdf

File tree

339 files changed

+10920
-9334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

339 files changed

+10920
-9334
lines changed

.cspell.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@
1111
"useGitignore": true,
1212
"ignorePaths": [],
1313
"words": [
14+
"inversify",
1415
"ollama",
16+
"onnx",
1517
"openai",
16-
"phodal"
18+
"phodal",
19+
"identifer",
20+
"qianfan",
21+
"tolist",
22+
"tongyi",
23+
"xenova"
1724
],
1825
"allowCompoundWords": true,
1926
"overrides": []

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = tab
8+
indent_size = 2
9+
tab_width = 2
10+
continuation_indent_size = 4 # IntelliJ family IDEs
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[Makefile]
18+
indent_size = 4
19+
indent_style = tab

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ vite.config.mjs
4444
bin
4545
build/
4646
examples/ollama-chat-server/demo/chat.mjs
47+
48+
backup

.prettierrc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"printWidth": 120,
5+
"arrowParens": "avoid",
6+
"trailingComma": "all",
7+
"plugins": [
8+
"@trivago/prettier-plugin-sort-imports"
9+
],
10+
"importOrder": [
11+
"^node:(.*)$",
12+
"<THIRD_PARTY_MODULES>",
13+
"^base/(.*)$",
14+
"^[./]"
15+
],
16+
"importOrderParserPlugins": [
17+
"decorators-legacy",
18+
"typescript",
19+
"explicitResourceManagement"
20+
],
21+
"importOrderSeparation": true,
22+
"importOrderCaseInsensitive": true,
23+
"importOrderSortSpecifiers": true,
24+
"overrides": [
25+
{
26+
"files": ".prettierrc",
27+
"options": {
28+
"parser": "json"
29+
}
30+
}
31+
]
32+
}

.vscode/launch.json

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,31 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/dist/**/*.js"
17-
],
18-
"preLaunchTask": "npm: watch",
19-
},
20-
{
21-
"name": "Extension Tests",
22-
"type": "extensionHost",
23-
"request": "launch",
24-
"args": [
25-
"--extensionDevelopmentPath=${workspaceFolder}",
26-
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
27-
],
28-
"outFiles": [
29-
"${workspaceFolder}/out/**/*.js",
30-
"${workspaceFolder}/dist/**/*.js"
31-
],
32-
"preLaunchTask": "tasks: watch-tests"
33-
}
34-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"cwd": "${workspaceFolder}/extensions/vscode",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14+
"pauseForSourceMap": false,
15+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
16+
"preLaunchTask": "extension:build"
17+
},
18+
{
19+
"name": "Extension Tests",
20+
"type": "extensionHost",
21+
"request": "launch",
22+
"args": [
23+
"--extensionDevelopmentPath=${workspaceFolder}",
24+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
25+
],
26+
"outFiles": [
27+
"${workspaceFolder}/out/**/*.js",
28+
"${workspaceFolder}/dist/**/*.js"
29+
],
30+
"preLaunchTask": "tasks: watch-tests"
31+
}
32+
]
3533
}

.vscode/tasks.json

Lines changed: 82 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,86 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
33
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": {
10-
"pattern": {
11-
"regexp": ".*?(build started...).*?",
12-
},
13-
"background": {
14-
"activeOnStart": true,
15-
"beginsPattern": {
16-
"regexp": ".*?(build started...).*?"
17-
},
18-
"endsPattern": {
19-
"regexp": ".*?(built in ).*?"
20-
}
21-
},
22-
},
23-
"isBackground": true,
24-
"presentation": {
25-
"reveal": "never",
26-
"group": "watchers"
27-
},
28-
"group": {
29-
"kind": "build",
30-
"isDefault": true
31-
}
32-
},
33-
{
34-
"type": "npm",
35-
"script": "watch-tests",
36-
"problemMatcher": "$tsc-watch",
37-
"isBackground": true,
38-
"presentation": {
39-
"reveal": "never",
40-
"group": "watchers"
41-
},
42-
"group": "build"
43-
},
44-
{
45-
"label": "tasks: watch-tests",
46-
"dependsOn": [
47-
"npm: watch",
48-
"npm: watch-tests"
49-
],
50-
"problemMatcher": []
51-
}
52-
]
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "extension:build",
8+
"dependsOn": ["extension:dev", "gui:dev"],
9+
"group": {
10+
"kind": "build",
11+
"isDefault": true
12+
}
13+
},
14+
{
15+
"label": "extension:dev",
16+
"type": "npm",
17+
"script": "watch",
18+
"problemMatcher": {
19+
"pattern": {
20+
"regexp": ".*?(build started...).*?"
21+
},
22+
"background": {
23+
"activeOnStart": true,
24+
"beginsPattern": {
25+
"regexp": ".*?(build started...).*?"
26+
},
27+
"endsPattern": {
28+
"regexp": ".*?(built in ).*?"
29+
}
30+
}
31+
},
32+
"isBackground": true,
33+
"presentation": {
34+
"reveal": "never",
35+
"group": "watchers"
36+
},
37+
"group": {
38+
"kind": "build",
39+
"isDefault": true
40+
}
41+
},
42+
{
43+
"type": "npm",
44+
"script": "watch-tests",
45+
"problemMatcher": "$tsc-watch",
46+
"isBackground": true,
47+
"presentation": {
48+
"reveal": "never",
49+
"group": "watchers"
50+
},
51+
"group": "build"
52+
},
53+
{
54+
"label": "tasks: watch-tests",
55+
"dependsOn": ["npm: watch", "npm: watch-tests"],
56+
"problemMatcher": []
57+
},
58+
{
59+
"label": "gui:dev",
60+
"type": "shell",
61+
"command": "npm",
62+
"options": {
63+
"cwd": "${workspaceFolder}/gui-sidebar"
64+
},
65+
"args": ["run", "watch"],
66+
"isBackground": true,
67+
"problemMatcher": [
68+
{
69+
"pattern": [
70+
{
71+
"regexp": ".",
72+
"file": 1,
73+
"location": 2,
74+
"message": 3
75+
}
76+
],
77+
"background": {
78+
"activeOnStart": true,
79+
"beginsPattern": ".",
80+
"endsPattern": "."
81+
}
82+
}
83+
]
84+
}
85+
]
5386
}

.vscodeignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
.github
12
.vscode/**
23
.vscode-test/**
34
out/**
45
node_modules/**
56
src/**
67
.gitignore
78
.yarnrc
9+
.cspell.json
10+
.node-version
811
webpack.config.js
912
vsc-extension-quickstart.md
1013
**/tsconfig.json
@@ -18,6 +21,9 @@ semantic/**
1821
coverage/**
1922
extension-manual-tests/
2023

24+
examples/**
25+
vendors/**
26+
2127
# ignore arm64 build for temporary
2228
dist/bin/napi-v3/linux/arm64
2329
dist/bin/napi-v3/win32/arm64

CONTRIBUTING.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,7 @@ To run extension, follow these steps.
2424
$ npm install
2525
```
2626

27-
4. Installing GUI Dependencies
28-
29-
Please submit any functionality or other issues to the [continuedev/continue](https://github.com/continuedev/continue/tree/main/gui).
30-
31-
```sh
32-
$ cd gui-sidebar
33-
34-
# You can use yarn or pnpm
35-
$ npm install && npm run watch
36-
```
37-
38-
5. Now you can start it with [Run and Debug](https://code.visualstudio.com/docs/editor/debugging).
27+
4. Now you can start it with [Run and Debug](https://code.visualstudio.com/docs/editor/debugging).
3928

4029
## Running The Tests
4130

CONTRIBUTING.zh-cn.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,7 @@
2929
$ npm install
3030
```
3131

32-
4. 安装 GUI 依赖
33-
34-
如有功能性或其他问题,请提交到 [continuedev/continue](https://github.com/continuedev/continue/tree/main/gui)
35-
36-
```sh
37-
$ cd gui-sidebar
38-
39-
$ npm install && npm run watch
40-
```
41-
42-
5. 现在,你可以使用编辑器的 [Run and Debug](https://code.visualstudio.com/docs/editor/debugging) 启动插件了。
32+
4. 现在,你可以使用编辑器的 [Run and Debug](https://code.visualstudio.com/docs/editor/debugging) 启动插件了。
4333

4434
## 运行测试
4535

0 commit comments

Comments
 (0)