@@ -20,16 +20,16 @@ export const save_to_workspace_state = async (params: {
2020 let { merged : internal_contexts , context_to_roots } =
2121 load_and_merge_global_contexts ( params . extension_context )
2222 const LABEL_SAVE_NEW_CONTEXT = t (
23- 'command.context-restoration .save-new-context.label'
23+ 'command.save-file-selection .save-new-context.label'
2424 )
2525
2626 const edit_button = {
2727 iconPath : new vscode . ThemeIcon ( 'edit' ) ,
28- tooltip : t ( 'command.context-restoration .action.rename' )
28+ tooltip : t ( 'command.save-file-selection .action.rename' )
2929 }
3030 const delete_button = {
3131 iconPath : new vscode . ThemeIcon ( 'trash' ) ,
32- tooltip : t ( 'command.context-restoration .action.delete' )
32+ tooltip : t ( 'command.save-file-selection .action.delete' )
3333 }
3434
3535 let name_to_highlight : string | undefined
@@ -40,7 +40,7 @@ export const save_to_workspace_state = async (params: {
4040
4141 if ( internal_contexts . length > 0 ) {
4242 items . push ( {
43- label : t ( 'command.context-restoration .recent-entries' ) ,
43+ label : t ( 'command.save-file-selection .recent-entries' ) ,
4444 kind : vscode . QuickPickItemKind . Separator
4545 } )
4646 for ( const context of internal_contexts ) {
@@ -61,8 +61,8 @@ export const save_to_workspace_state = async (params: {
6161 }
6262
6363 const quick_pick = vscode . window . createQuickPick < any > ( )
64- quick_pick . title = t ( 'command.context-restoration .select-saved.title' )
65- quick_pick . placeholder = t ( 'command.context-restoration .save.placeholder' )
64+ quick_pick . title = t ( 'command.save-file-selection .select-saved.title' )
65+ quick_pick . placeholder = t ( 'command.save-file-selection .save.placeholder' )
6666 quick_pick . items = items
6767 quick_pick . buttons = [ vscode . QuickInputButtons . Back ]
6868
@@ -112,8 +112,8 @@ export const save_to_workspace_state = async (params: {
112112
113113 if ( selection . triggeredButton === edit_button ) {
114114 const input_box = vscode . window . createInputBox ( )
115- input_box . title = t ( 'command.context-restoration .rename.title' )
116- input_box . prompt = t ( 'command.context-restoration .rename.prompt' )
115+ input_box . title = t ( 'command.save-file-selection .rename.title' )
116+ input_box . prompt = t ( 'command.save-file-selection .rename.prompt' )
117117 input_box . value = old_name
118118 const new_name = await new Promise < string | undefined > ( ( resolve ) => {
119119 let accepted = false
@@ -122,7 +122,7 @@ export const save_to_workspace_state = async (params: {
122122 const trimmed = value . trim ( )
123123 if ( ! trimmed ) {
124124 input_box . validationMessage = t (
125- 'command.context-restoration .rename.empty'
125+ 'command.save-file-selection .rename.empty'
126126 )
127127 return false
128128 }
@@ -132,7 +132,7 @@ export const save_to_workspace_state = async (params: {
132132 )
133133 ) {
134134 input_box . validationMessage = t (
135- 'command.context-restoration .rename.exists'
135+ 'command.save-file-selection .rename.exists'
136136 )
137137 return false
138138 }
@@ -184,12 +184,12 @@ export const save_to_workspace_state = async (params: {
184184 new_name && new_name != old_name ? new_name : old_name
185185 } else if ( selection . triggeredButton === delete_button ) {
186186 const choice = await vscode . window . showInformationMessage (
187- t ( 'command.context-restoration .delete.prompt' , { name : old_name } ) ,
187+ t ( 'command.save-file-selection .delete.prompt' , { name : old_name } ) ,
188188 { modal : true } ,
189- t ( 'command.context-restoration .delete.action' )
189+ t ( 'command.save-file-selection .delete.action' )
190190 )
191191
192- if ( choice == t ( 'command.context-restoration .delete.action' ) ) {
192+ if ( choice == t ( 'command.save-file-selection .delete.action' ) ) {
193193 const roots = context_to_roots . get ( old_name ) || [ ]
194194 for ( const root of roots ) {
195195 const root_contexts = load_contexts_for_workspace ( {
@@ -262,14 +262,14 @@ export const save_to_workspace_state = async (params: {
262262 if ( selection . context ) {
263263 const context_name = selection . context . name
264264 const choice = await vscode . window . showWarningMessage (
265- t ( 'command.context-restoration .overwrite.prompt' , {
265+ t ( 'command.save-file-selection .overwrite.prompt' , {
266266 name : context_name
267267 } ) ,
268268 { modal : true } ,
269- t ( 'command.context-restoration .overwrite.action' )
269+ t ( 'command.save-file-selection .overwrite.action' )
270270 )
271271
272- if ( choice === t ( 'command.context-restoration .overwrite.action' ) ) {
272+ if ( choice === t ( 'command.save-file-selection .overwrite.action' ) ) {
273273 const current_roots = context_to_roots . get ( context_name ) || [ ]
274274 const all_roots = new Set ( [
275275 ...current_roots ,
0 commit comments