@@ -144,6 +144,13 @@ function initializeCodeLens(context: vscode.ExtensionContext) {
144144 public async provideCodeLenses ( document : vscode . TextDocument ) : Promise < vscode . CodeLens [ ] > {
145145 const topOfDocument = new vscode . Range ( 0 , 0 , 0 , 0 )
146146
147+ const openCustomEditorCommand : vscode . Command = {
148+ command : 'aws.stepfunctions.switchToWorkflowStudio' ,
149+ title : localize ( 'AWS.command.stepFunctions.openWithWorkflowStudio' , 'Open with Workflow Studio' ) ,
150+ arguments : [ document . uri ] ,
151+ }
152+ const openCustomEditor = new vscode . CodeLens ( topOfDocument , openCustomEditorCommand )
153+
147154 const renderCodeLens = previewStateMachineCommand . build ( ) . asCodeLens ( topOfDocument , {
148155 title : localize ( 'AWS.stepFunctions.render' , 'Render graph' ) ,
149156 } )
@@ -155,9 +162,9 @@ function initializeCodeLens(context: vscode.ExtensionContext) {
155162 }
156163 const publishCodeLens = new vscode . CodeLens ( topOfDocument , publishCommand )
157164
158- return [ publishCodeLens , renderCodeLens ]
165+ return [ openCustomEditor , publishCodeLens , renderCodeLens ]
159166 } else {
160- return [ renderCodeLens ]
167+ return [ openCustomEditor , renderCodeLens ]
161168 }
162169 }
163170 }
0 commit comments