1717import { describe , it , expect , beforeEach } from '@jest/globals' ;
1818import * as vscode from 'vscode' ;
1919import { ExtensionContext } from 'vscode' ;
20- import { MANAGE_COMPONENTS_PACKS_COMMAND_ID , MERGE_FILE_FROM_PATH_COMMAND_ID } from '../manifest' ;
20+ import { MANAGE_COMPONENTS_PACKS_COMMAND_ID , MERGE_FILE_COMMAND_ID } from '../manifest' ;
2121import * as fsUtils from '../utils/fs-utils' ;
2222import * as vscodeUtils from '../utils/vscode-utils' ;
2323import { solutionManagerFactory , MockSolutionManager } from './solution-manager.factories' ;
@@ -258,15 +258,15 @@ describe('SolutionProblems', () => {
258258
259259 expect ( diagnostic ?. message ) . toBe ( "update required for config file 'config.c' from component 'Device'." ) ;
260260 expect ( code . value ) . toBe ( 'Open in Merge View' ) ;
261- expect ( command ) . toBe ( `command:${ MERGE_FILE_FROM_PATH_COMMAND_ID } ` ) ;
261+ expect ( command ) . toBe ( `command:${ MERGE_FILE_COMMAND_ID } ` ) ;
262262 expect ( JSON . parse ( decodeURIComponent ( args ) ) ) . toEqual ( [ '/packs/Component/config.c' ] ) ;
263263 } ) ;
264264
265265 it ( 'creates a merge command uri with encoded local path' , ( ) => {
266266 const result = solutionProblems [ 'createMergeCommandUri' ] ( '/packs/Component/config.c' ) ;
267267 const [ command , args ] = result . toString ( ) . split ( '?' ) ;
268268
269- expect ( command ) . toBe ( `command:${ MERGE_FILE_FROM_PATH_COMMAND_ID } ` ) ;
269+ expect ( command ) . toBe ( `command:${ MERGE_FILE_COMMAND_ID } ` ) ;
270270 expect ( JSON . parse ( decodeURIComponent ( args ) ) ) . toEqual ( [ '/packs/Component/config.c' ] ) ;
271271 } ) ;
272272
@@ -280,7 +280,7 @@ describe('SolutionProblems', () => {
280280 message : "update required for config file 'config.c' from component 'Device'." ,
281281 code : {
282282 value : 'Open in Merge View' ,
283- target : vscode . Uri . parse ( `command:${ MERGE_FILE_FROM_PATH_COMMAND_ID } ?${ encodeURIComponent ( JSON . stringify ( [ '/packs/Component/config.c' ] ) ) } ` ) ,
283+ target : vscode . Uri . parse ( `command:${ MERGE_FILE_COMMAND_ID } ?${ encodeURIComponent ( JSON . stringify ( [ '/packs/Component/config.c' ] ) ) } ` ) ,
284284 } ,
285285 } ) ;
286286 } ) ;
@@ -318,7 +318,7 @@ describe('SolutionProblems', () => {
318318 expect ( uri . fsPath ) . toContain ( 'mylayer.clayer.yml' ) ;
319319 expect ( diagnostic ?. message ) . toBe ( "update recommended for config file 'mylayer.clayer.yml' has a new version available for merge." ) ;
320320 expect ( code . value ) . toBe ( 'Open in Merge View' ) ;
321- expect ( command ) . toBe ( `command:${ MERGE_FILE_FROM_PATH_COMMAND_ID } ` ) ;
321+ expect ( command ) . toBe ( `command:${ MERGE_FILE_COMMAND_ID } ` ) ;
322322 expect ( JSON . parse ( decodeURIComponent ( args ) ) ) . toEqual ( [ layerPath ] ) ;
323323 } ) ;
324324
0 commit comments