Skip to content

Commit 570def0

Browse files
committed
Update README wording, bump version to 1.814.0, fix migration ID typo, and refine fallback method messaging
1 parent 761b10b commit 570def0

5 files changed

Lines changed: 30 additions & 23 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<a href="https://marketplace.visualstudio.com/items?itemName=robertpiosik.gemini-coder"><img src="https://img.shields.io/badge/Install-VS_Code_Marketplace-blue" alt="Get from Visual Studio Code Marketplace" /></a> <a href="https://open-vsx.org/extension/robertpiosik/gemini-coder"><img src="https://img.shields.io/badge/Install-Open_VSX_Registry-a60ee5" alt="Get from Open VSX Registry" /></a> <a href="https://github.com/robertpiosik/CodeWebChat/blob/dev/LICENSE"><img src="https://img.shields.io/badge/License-GPL--3.0-green.svg" alt="GPL-3.0 license" /></a>
1212
</p>
1313

14-
Code Web Chat is an open-source and privacy-first **AI coding toolkit for VS Code**. It helps construct prompts for a chatbot's smart workspace (called [project](https://help.openai.com/en/articles/10169521-projects-in-chatgpt), also [gem](https://gemini.google/pl/overview/gems) or [space](https://docs.github.com/en/copilot/concepts/context/spaces)) and APIs. **It's free!**
14+
Code Web Chat is an open-source and privacy-first **AI coding toolkit for VS Code**. It helps construct prompts for chatbot smart workspaces (called [projects](https://help.openai.com/en/articles/10169521-projects-in-chatgpt), [gems](https://gemini.google/pl/overview/gems), or [spaces](https://docs.github.com/en/copilot/concepts/context/spaces)) and APIs. **It's free!**
1515

1616
<br/>
1717

‎apps/editor/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "Free AI coding in chatbots (CWC)",
5-
"version": "1.813.0",
5+
"version": "1.814.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

‎apps/editor/src/migrations/migrate-instructions-state-cleanup.ts‎

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as vscode from 'vscode'
22
import { Logger } from '@shared/utils/logger'
33

4-
const MIGRATION_ID = 'instructions-state-cleanup-20260214'
4+
const MIGRATION_ID = 'instructions-state-cleanup-202602145'
55

66
const KEYS_TO_CLEAR = [
77
'instructions-edit-context',
@@ -18,26 +18,33 @@ export async function migrate_instructions_state_cleanup(
1818
context: vscode.ExtensionContext
1919
): Promise<void> {
2020
try {
21-
if (context.globalState.get(MIGRATION_ID)) {
22-
return
21+
if (!context.globalState.get(MIGRATION_ID)) {
22+
for (const key of KEYS_TO_CLEAR) {
23+
if (context.globalState.get(key) !== undefined) {
24+
await context.globalState.update(key, undefined)
25+
}
26+
}
27+
await context.globalState.update(MIGRATION_ID, true)
28+
Logger.info({
29+
function_name: 'migrate_instructions_state_cleanup',
30+
message:
31+
'Successfully cleared instructions state keys from global state'
32+
})
2333
}
2434

25-
for (const key of KEYS_TO_CLEAR) {
26-
if (context.globalState.get(key) !== undefined) {
27-
await context.globalState.update(key, undefined)
28-
}
29-
if (context.workspaceState.get(key) !== undefined) {
30-
await context.workspaceState.update(key, undefined)
35+
if (!context.workspaceState.get(MIGRATION_ID)) {
36+
for (const key of KEYS_TO_CLEAR) {
37+
if (context.workspaceState.get(key) !== undefined) {
38+
await context.workspaceState.update(key, undefined)
39+
}
3140
}
41+
await context.workspaceState.update(MIGRATION_ID, true)
42+
Logger.info({
43+
function_name: 'migrate_instructions_state_cleanup',
44+
message:
45+
'Successfully cleared instructions state keys from workspace state'
46+
})
3247
}
33-
34-
Logger.info({
35-
function_name: 'migrate_instructions_state_cleanup',
36-
message:
37-
'Successfully cleared instructions state keys from global and workspace state'
38-
})
39-
40-
await context.globalState.update(MIGRATION_ID, true)
4148
} catch (error) {
4249
Logger.error({
4350
function_name: 'migrate_instructions_state_cleanup',

‎packages/ui/src/components/editor/panel/ResponsePreview/ResponsePreview.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export const ResponsePreview: FC<Props> = (props) => {
282282
files_in_preview.length > 1
283283
? `${aggressive_fallback_count} of ${files_in_preview.length} files`
284284
: 'The file'
285-
} used aggressive fallback method`}
285+
} applied with fallback method`}
286286
>
287287
<div
288288
className={cn(
@@ -292,8 +292,8 @@ export const ResponsePreview: FC<Props> = (props) => {
292292
>
293293
<span className="codicon codicon-warning" />
294294
{files_in_preview.length > 1
295-
? `${aggressive_fallback_count} of ${files_in_preview.length} files used aggressive fallback method`
296-
: 'The file used aggressive fallback method'}
295+
? `${aggressive_fallback_count} of ${files_in_preview.length} files applied with fallback method`
296+
: 'The file applied with fallback method'}
297297
</div>
298298
</div>
299299
)}

‎packages/ui/src/components/editor/panel/ResponsePreview/components/FileItem/FileItem.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const get_file_message = (file: FileInPreview): FileMessage | null => {
5151
} else if (file.diff_application_method == 'search_and_replace') {
5252
return {
5353
type: 'warning',
54-
text: 'Used aggressive fallback method'
54+
text: 'Applied with fallback method'
5555
}
5656
} else {
5757
return null

0 commit comments

Comments
 (0)