Skip to content

Commit 4981113

Browse files
committed
Remove the prop and its associated translation from the Presets component
1 parent e7c931e commit 4981113

3 files changed

Lines changed: 1 addition & 10 deletions

File tree

packages/ui/src/components/editor/Presets/Presets.stories.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export const Multiple = () => {
3939
has_instructions={true}
4040
is_in_code_completions_mode={false}
4141
has_context={true}
42-
is_in_context_dependent_mode={true}
4342
web_mode="edit-context"
4443
translations={{
4544
my_chat_presets: 'My Chat Presets',
@@ -51,7 +50,6 @@ export const Multiple = () => {
5150
preset_cannot_be_used_with_selection:
5251
'Preset cannot be used with an active selection',
5352
initialize_chat_with_preset: 'Initialize chat with this preset',
54-
add_files_to_context_first: 'Add files to context first',
5553
type_or_add_prompt_to_use_preset:
5654
'Type or add a prompt to use this preset',
5755
copy_to_clipboard: 'Copy to clipboard',
@@ -89,7 +87,6 @@ export const CodeCompletionsMode = () => {
8987
has_instructions={true}
9088
is_in_code_completions_mode={false}
9189
has_context={true}
92-
is_in_context_dependent_mode={true}
9390
web_mode="edit-context"
9491
translations={{
9592
my_chat_presets: 'My Chat Presets',
@@ -101,7 +98,6 @@ export const CodeCompletionsMode = () => {
10198
preset_cannot_be_used_with_selection:
10299
'Preset cannot be used with an active selection',
103100
initialize_chat_with_preset: 'Initialize chat with this preset',
104-
add_files_to_context_first: 'Add files to context first',
105101
type_or_add_prompt_to_use_preset:
106102
'Type or add a prompt to use this preset',
107103
copy_to_clipboard: 'Copy to clipboard',

packages/vscode/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 (CWC)",
44
"description": "Free AI coding for everyone",
5-
"version": "1.228.0",
5+
"version": "1.229.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

packages/vscode/src/view/frontend/home/HomeView/HomeView.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,6 @@ export const HomeView: React.FC<Props> = (props) => {
355355
has_active_editor={props.has_active_editor}
356356
has_active_selection={props.has_active_selection}
357357
has_instructions={!!props.instructions}
358-
is_in_context_dependent_mode={
359-
props.web_mode == 'edit-context' || props.web_mode == 'ask'
360-
}
361358
has_context={props.token_count > 0}
362359
is_in_code_completions_mode={
363360
props.web_mode == 'code-completions'
@@ -392,8 +389,6 @@ export const HomeView: React.FC<Props> = (props) => {
392389
'Preset in this mode cannot be used with a text selection',
393390
initialize_chat_with_preset:
394391
'Initialize chat with this preset',
395-
add_files_to_context_first:
396-
'Add some files to the context first',
397392
type_or_add_prompt_to_use_preset:
398393
'Type something or add a prefix/suffix to this preset to use it',
399394
copy_to_clipboard: 'Copy to clipboard',

0 commit comments

Comments
 (0)