Skip to content

Commit

Permalink
Start to fmt response
Browse files Browse the repository at this point in the history
Signed-off-by: cjkfyi <165058376+cjkfyi@users.noreply.github.com>
  • Loading branch information
cjkfyi committed Apr 4, 2024
1 parent 9986ba9 commit 49ef015
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "gemify",
"displayName": "Gemify",
"description": "Yet another coding assistant 🌬️",
"version": "0.5.2",
"version": "0.6.1",
"engines": {
"vscode": "^1.86.2"
},
Expand Down
3 changes: 2 additions & 1 deletion extension/src/styles/webview.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ main {
#convoArea {
display: flex;
flex-direction: column;
white-space: pre-line;
overflow-y: auto;
}

Expand Down Expand Up @@ -142,6 +143,6 @@ main {
}

.bot {
background-color: red;
background-color: #2e2e2e;
align-self: flex-start;
}
11 changes: 2 additions & 9 deletions extension/src/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ window.addEventListener('message', e => {

function streamGeminiRes() {

// console.log(resChunkQueue)

if (resChunkQueue.length === 0) {
resInProg = false;
return;
Expand All @@ -78,13 +76,8 @@ function streamGeminiRes() {
};

let messageContent;
try {
const parsedChunk = JSON.parse(chunk);
messageContent = parsedChunk.message;
} catch (error) {
messageContent = chunk;
};

messageContent = chunk;

let currentIndex = 0;
const animationInterval = 10;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gemify",
"description": "Yet another coding assistant 🌬️",
"version": "0.5.2",
"version": "0.6.1",
"author": "@cjkfyi",
"license": "MIT",
"scripts": {
Expand Down

0 comments on commit 49ef015

Please sign in to comment.