Commit graph

290 commits

Author SHA1 Message Date
Tom Spielvogel
ed8381c6cb
Add Syntax Highlighting to Sidebar Code Snippets 2024-10-16 13:29:46 +02:00
Tom Spielvogel
40b4ecb4f8
Add Syntax Highlighting to Sidebar Code Snippets 2024-10-16 13:29:27 +02:00
Tom Spielvogel
5268ededbb
Add Syntax Highlighting to Sidebar Code Snippets 2024-10-16 13:28:48 +02:00
Tom Spielvogel
a69e1b940f
Add Syntax Highlighting to Sidebar Code Snippets 2024-10-16 13:26:24 +02:00
Tom Spielvogel
15994c46d1
Adapted to new type CodeSelection 2024-10-16 11:28:23 +02:00
Tom Spielvogel
b565a91194
Connect-src needs hold the entire path for chat completions for OpenAICompatible
Simply using the enpoint will trigger a Content-Security-Policy error in vscode when trying to send messages to the LLM
2024-10-16 10:56:46 +02:00
Andrew
b30937934a progress moving settings to be extension-native 2024-10-16 01:12:57 -07:00
Tom Spielvogel
eec7cd7321
Update SidebarChat.tsx
Build the prompt based on the actual use-case.
If no files or code is selected, don't prompt the LLM to change it. It saves time and tokens
2024-10-16 08:55:37 +02:00
Andrew
cd9bca0451 split up message direction and Sidebar tabs 2024-10-15 20:51:46 -07:00
Darion
ce3043b595
Merge branch 'main' into main 2024-10-15 21:36:00 -04:00
Andrew Pareles
68c5ebb000
Merge pull request #101 from voideditor/diff-selections
Refactor and fix diff highlighting
2024-10-15 15:57:33 -07:00
w1gs
08e91e921b style fixes 2024-10-15 12:36:38 -04:00
w1gs
6c2ca794f5 fixed merge conflicts 2024-10-15 12:24:26 -04:00
Darion
b3fd408cf7
Merge branch 'main' into main 2024-10-15 11:09:32 -04:00
Andrew
07fd622901 add OpenRouter - Fixes Add OpenRouter hosting option #20 2024-10-14 23:50:34 -07:00
Andrew
bb74cbb56b swap 2024-10-14 23:32:25 -07:00
mp
ffab60b4b8 Merge branch 'main' into diff-selections 2024-10-14 21:48:34 -07:00
mp
2309fc53fb Merge dynamic diff features 2024-10-14 20:37:45 -07:00
Andrew
a3d741d685 Merge branch 'main' into pr/okxiaoliang4/51 2024-10-14 20:24:38 -07:00
Andrew
a12e35c5f0 merge package.json 2024-10-14 20:14:44 -07:00
Andrew
5f3e664eed delete ctrl+K placeholder 2024-10-14 18:12:11 -07:00
Andrew
fb69afd5c4 fix thread history persistence 2024-10-14 18:07:22 -07:00
Andrew
00f59e9555 Merge branch 'main' into pr/ShikangPang/98 2024-10-14 16:45:31 -07:00
Andrew
767c45080f update openai 2024-10-14 16:44:57 -07:00
Tom Spielvogel
7f81836d9f
Update sendLLMMessage.ts
In order to take the enpoint specified for the OpenAICompatible setting - the openai class needs to be instanciated with the baseURL setting from apiConfig
2024-10-14 16:18:41 +02:00
Mathew P
33c3ef6751 Fix newline bug 2024-10-13 22:05:10 -07:00
Mathew P
20056f209e Fix accept/reject diff 2024-10-13 17:47:13 -07:00
Andrew
69d848f22b update MarkdownRender 2024-10-13 17:11:29 -07:00
Mathew P
1557a44934 Better diff algorithm 2024-10-13 00:15:41 -07:00
pangshikang
89dd63a0ee fix: Refactor openAICompatible initialization in sendLLMMessage.ts 2024-10-12 16:03:29 +08:00
Andrew
e5c55145e9 update selectedFiles display 2024-10-11 23:18:23 -07:00
Andrew
2638d62a24 only start a new thread if empty 2024-10-11 20:05:10 -07:00
Andrew
0158e2fd5d fix ref issues with useInstantState 2024-10-11 19:18:28 -07:00
Andrew
3e308f2082 state is broken 2024-10-11 18:05:01 -07:00
Andrew
429224993b Merge branch 'main' into pr/anetaj/53 2024-10-11 17:15:52 -07:00
Andrew
29ef6b5b43 finish merge from 'main' 2024-10-11 17:11:44 -07:00
Andrew
23a42659b3 Merge branch 'main' into pr/anetaj/52 2024-10-11 17:09:19 -07:00
Andrew
9d7a5eccd3 Merge branch 'main' into pr/anetaj/52 2024-10-11 16:58:55 -07:00
anetaj
42bdcf54ca
Copy code block (#47)
* rearrange markdown components

* add copy button

* add default style for small button

* hide entire toolbar in user messages

* finish merge

* refactor

---------

Co-authored-by: Andrew <andrewpareles@gmail.com>
2024-10-11 16:56:44 -07:00
Andrew
251b65d04d finish merge 2024-10-11 16:35:33 -07:00
Andrew
b72da01632 Merge branch 'main' into pr/anetaj/53 2024-10-11 16:35:09 -07:00
Andrew
e2f337f882 OpenAICompatible improvements + misc refactor 2024-10-11 15:02:43 -07:00
Mathew P
496c0178de Prepare to fix diff highlighting 2024-10-11 14:03:11 -07:00
Darion
ef94de48c2
Merge branch 'main' into main 2024-10-11 12:56:08 -04:00
w1gs
14a8b0ee4e fixed merge conflicts 2024-10-11 12:52:12 -04:00
Mathew P
38d31ae737 Make diffs dynamic on changes 2024-10-11 01:06:17 -07:00
Andrew Pareles
73fb5bb3c6
Merge branch 'main' into main 2024-10-11 00:36:43 -07:00
jackxiong
2e5be73f0c Supports calling LLM in a way compatible with OpenAI's API, and adds explicit configuration items for users。 2024-10-11 14:58:24 +08:00
Darion
2ca1db35af
Merge branch 'main' into ide-fixes 2024-10-07 10:23:48 -04:00
Mathew P
11baebdf54 diffArea works. Need to fix highlighting 2024-10-07 01:56:29 -07:00
w1gs
f96416be38 fixed dependencies that were preventing IDE builds 2024-10-06 00:17:15 -04:00
Jérôme Commaret
a4ef0de0ac MacOS Full IDE ARM 2024-10-06 01:50:01 +02:00
Aneta Jastrzębska
f7a905e27f Merge branch 'main' into feature/style-include-files 2024-10-05 11:57:04 +02:00
w1gs
bed7929e48 Added error messages in UI 2024-10-03 21:24:53 -04:00
Mathew P
b07842ec3f Remove _computedLensesOfDocument 2024-10-03 03:01:27 -07:00
Mathew P
19b2b8bd77 create diffArea; remove _computedLensesOfDocument 2024-10-03 03:00:55 -07:00
Mathew P
f4a407d80f Refactor and prepare to create addNewChanges 2024-10-03 00:33:17 -07:00
Andrew
95be6e0b37 update config provider string and prompt 2024-10-03 00:02:18 -07:00
Andrew
6741a6fceb update description 2024-10-02 23:25:42 -07:00
Andrew
db560744fb update defaults, credit @okxiaoliang4 for package.json enum changes 2024-10-02 23:23:07 -07:00
Andrew
7550b96389 update settings 2024-10-02 00:00:04 -07:00
Andrew
631f724138 merge ollama 2024-10-01 22:25:16 -07:00
w1gs
74c610632e Merge remote-tracking branch 'upstream/main' 2024-09-30 23:21:08 -04:00
Aneta Jastrzębska
2496a2c42e Merge branch 'main' into feature/persist-threads-history 2024-09-30 11:34:28 +02:00
Andrew Pareles
dab75a6614
Merge branch 'main' into main 2024-09-30 00:54:02 -07:00
Mathew Pareles
4747691e74 add enum 2024-09-30 00:53:07 -07:00
Andrew Pareles
6dac9626c0
Merge pull request #66 from voideditor/rebase
Rebase vscode into Void
2024-09-30 00:39:16 -07:00
SOUMITRO-SAHA
b8a5e5b67c Fix: Add Syntax Highlighting to Sidebar Code Snippets 2024-09-29 20:49:59 +05:30
Andrew
c159b2138e minor lint updates 2024-09-24 01:01:50 -07:00
Darion
5039ca8fdf
Merge branch 'voideditor:main' into main 2024-09-24 02:05:10 -04:00
Andrew
8ca1354580 rebase from vscode f35c3823 2024-09-24 04:46:08 +00:00
Aneta Jastrzębska
0a5ebc1c50 add settings button in ext 2024-09-23 12:02:12 +02:00
Andrew
aec1434a0c case analysis on insert, delete, and replace 2024-09-22 18:56:00 -07:00
Dave Hogan
cbe3d4bd45 Removes unnessary default 2024-09-22 17:36:53 +01:00
Dave Hogan
16b84ec933 Merge branch 'main' of https://github.com/DaveHogan/void 2024-09-22 17:35:02 +01:00
Dave Hogan
2661f5e8e1 Implemented feedback, removing explict defaults as this comes from package.json 2024-09-22 17:34:48 +01:00
Dave Hogan
760f8c447c
Merge branch 'voideditor:main' into main 2024-09-22 17:22:17 +01:00
Darion
57db928f7a
Merge branch 'voideditor:main' into main 2024-09-22 08:11:43 -04:00
Andrew
315c5a65f2 add test back 2024-09-22 04:12:00 -07:00
Jelf
9b130edcfe feat: read .voidrules for system prompt 2024-09-22 17:35:51 +08:00
Aneta Jastrzębska
ff0dcd5095 handle show thread history 2024-09-22 11:04:28 +02:00
Aneta Jastrzębska
30b528402c add new toolbar + commands 2024-09-22 11:03:42 +02:00
Jelf
6d513a1e60 chore: improve setting 2024-09-22 16:00:08 +08:00
Aneta Jastrzębska
7269c4e582 show new thread button 2024-09-21 21:19:36 +02:00
Aneta Jastrzębska
083bbf7d9f start new chat; toggle thread history 2024-09-21 21:11:52 +02:00
Aneta Jastrzębska
e54f49ebfb threads history list 2024-09-21 19:19:26 +02:00
Aneta Jastrzębska
31cd10b9e6 handle receive threads history 2024-09-21 19:19:16 +02:00
Aneta Jastrzębska
c6dcb8eb9e add message to history & sync saved thread 2024-09-21 18:07:07 +02:00
Aneta Jastrzębska
3a98d1edb1 add chat context 2024-09-21 18:06:26 +02:00
Aneta Jastrzębska
22d32aca3a save chat threads to workspace history 2024-09-21 18:05:25 +02:00
Aneta Jastrzębska
fe5e02c3a9 unify toolbar button styles 2024-09-21 16:05:06 +02:00
Aneta Jastrzębska
3d58627f30 style included code tag + toolbar 2024-09-21 15:39:06 +02:00
Aneta Jastrzębska
20fd8f318b more vsc css vars 2024-09-21 15:36:48 +02:00
Aneta Jastrzębska
98ee94018e add className util 2024-09-21 15:36:25 +02:00
Aneta Jastrzębska
ac9bc80e20 style included files list 2024-09-21 15:01:49 +02:00
Aneta Jastrzębska
8203b42169 hide entire toolbar in user messages 2024-09-21 14:14:31 +02:00
w1gs
bc027b2fca resolve conflicts 2024-09-21 07:46:19 -04:00
Darion
afa24231e6
Merge branch 'main' into main 2024-09-21 07:33:45 -04:00
w1gs
da5bb4b68e updated styles 2024-09-21 07:27:19 -04:00
Dave Hogan
f2d741d01f
Merge branch 'voideditor:main' into main 2024-09-21 12:17:21 +01:00
Aneta Jastrzębska
e893dc0327 add default style for small button 2024-09-21 13:12:22 +02:00
Aneta Jastrzębska
e05a399177 add copy button 2024-09-21 13:03:31 +02:00
Aneta Jastrzębska
4f285ce364 rearrange markdown components 2024-09-21 13:03:00 +02:00
w1gs
2be5a2d13a Extension disabled when no keys set 2024-09-21 06:50:17 -04:00
Aneta Jastrzębska
49bb34ec73 always show msg input; misc css improvements 2024-09-21 11:49:42 +02:00
Aneta Jastrzębska
915d041c5d add default styles for input & button 2024-09-21 11:39:17 +02:00
Aneta Jastrzębska
afb0247063 inject vscode css vars 2024-09-21 11:38:31 +02:00
w1gs
5e5fe80901 allowed urls updating when configuration changes 2024-09-21 04:56:41 -04:00
Jelf
44bc8bfdbf chore: update 2024-09-21 16:09:28 +08:00
Jelf
4f9b5ac873 chore: rm 2024-09-21 15:47:48 +08:00
Jelf
1beb011bfa refactor: configuration 2024-09-21 15:45:36 +08:00
Jelf
bf9029f9bc chore: remove console.log 2024-09-21 14:56:15 +08:00
Jelf
d7a3c44e31 chore: eslint 2024-09-21 14:54:27 +08:00
Jelf
7b31f2841a
chore: improve settings (#1)
* refactor: refine `anthropic` and `openai` settings

* refactor: improve configuration

* chore: move to headers config

* fix: ollama baseURL, add description

* chore: change azure deploymentId

* chore: eslint

* chore: update allowed_urls
2024-09-21 14:16:27 +08:00
w1gs
e8cf6ee9e7 Replaced fetch with Ollama client 2024-09-21 00:36:11 -04:00
w1gs
2b3f828654 Fixed parsing error in package.json 2024-09-21 00:24:51 -04:00
Darion
7ee1840e77
Merge branch 'voideditor:main' into main 2024-09-21 00:17:36 -04:00
Dave Hogan
1843cd0878 Makes anthropic model and max_tokens configurable
Makes whichApi an enum for less error prone configuration
2024-09-21 01:57:34 +01:00
Jelf
78e10a5593 feat: update ollama config 2024-09-21 02:15:19 +08:00
Darion
7bcefd4536
Update extensions/void/package.json
Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
2024-09-20 13:56:21 -04:00
Jelf
6d5f885306 feat: ai sdk 2024-09-20 22:18:41 +08:00
Robo
e1b116cc9c
feat: swtich to npm as default package manager 2024-09-19 02:22:27 +02:00
Darion
0269411c16
Merge branch 'voideditor:main' into main 2024-09-18 13:39:34 -04:00
w1gs
f4ceb53738 Added Ollama integration 2024-09-18 02:02:43 -04:00
Morgan Sun
4cd40ca312 Update Sidebar.tsx 2024-09-17 22:20:58 -04:00
Morgan Sun
aada99d55b Revert "Create an x that clears selection"
This reverts commit 0b09b3621f.
2024-09-17 22:17:51 -04:00
Morgan Sun
0b09b3621f Create an x that clears selection 2024-09-17 22:11:48 -04:00
Andrew
25c2c177b2 deletions comment 2024-09-17 14:43:15 -07:00
Andrew
3f132ca9e5 add comment 2024-09-12 07:59:35 -07:00
Andrew
a893ecd380 rename contrib/linemage -> contrib/void, and extensions/linemage -> extensions/void 2024-09-12 03:37:25 -07:00
Andrew
2b4652499d rename linemage -> void, LineMage -> Void (partial) 2024-09-12 03:35:24 -07:00
Andrew
8698908881 + 2024-09-11 22:33:53 -07:00
Andrew
f4f8013c53 rename myExtension to linemage 2024-09-10 22:29:43 -07:00
Andrew
cfe968d024 rename glass to LineMage 2024-09-10 21:22:34 -07:00
Andrew
93132a36e6 rename void to linemage 2024-09-10 21:08:19 -07:00
Andrew
c9c8df6a95 remove randomly placed readme 2024-09-10 21:03:47 -07:00
Andrew Pareles
4bacb251d7
Delete extensions/void/CHANGELOG.md 2024-09-10 20:57:02 -07:00
Andrew
9642af1eb8 contributing changes + styles 2024-09-10 20:55:03 -07:00
Andrew Pareles
26360b3b27
Update README.md 2024-09-10 20:02:37 -07:00
Andrew
82ca70a51d init commit 2024-09-10 19:37:36 -07:00