Skip to content

Commit d456933

Browse files
Merge pull request #58 from olasunkanmi-SE/fonts
disable the text box
2 parents 29be7d3 + f9e0922 commit d456933

File tree

4 files changed

+5
-67
lines changed

4 files changed

+5
-67
lines changed

src/events/fix.ts

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/events/optimize.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export class OptimizeCode extends EventGenerator {
1515
Resource Utilization: Examine how the code utilizes system resources such as CPU, I/O operations, or network calls. Propose optimizations to minimize resource overhead and improve overall efficiency.
1616
Caching and Memoization: Identify computations or function calls that can benefit from caching or memoization. Suggest ways to store and reuse previously computed results to avoid redundant calculations.
1717
Parallelization and Concurrency: Identify portions of the code that can be parallelized or executed concurrently to leverage multi-core processors or distributed systems. Propose appropriate parallelization techniques or libraries to improve performance.
18+
Error Handling, check if the code is handling potential errors, and suggest the right approach
1819
Please provide the optimized code along with explainations for each significant optimization made. Justify how the optimizations improve the code's performance and efficiency. If trade-offs are involved, discuss the benefits and drawbacks of each optimization approach.
1920
Respond based on the programming language of the requested code. Unless stated otherwise.
2021
`;

src/webview/chat_html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ${chatCss}
3131
<div id="chat-title">ChatBuddy (Ola)</div>
3232
<div id="chat-messages"></div>
3333
<div id="chat-input-container">
34-
<input id="chat-input" type="text" placeholder="Ask me to explain, debug, or optimize your code" />
34+
<input id="chat-input" type="text" placeholder="The text area is diabled for now, type in your vscode window" />
3535
</div>
3636
<button id="chat-send">Send</button>
3737
<div id="loading">

src/webview/chat_js.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ const chatMessages = document.getElementById("chat-messages");
44
const chatInput = document.getElementById("chat-input");
55
const chatSendButton = document.getElementById("chat-send");
66
7+
const textArea = document.getElementById("chat-input-container");
8+
testArea.setAttribute('disabled', 'true')
9+
710
chatSendButton.disabled = true;
811
912
let chatVisible = false;

0 commit comments

Comments
 (0)