@@ -112,23 +112,23 @@ async function quickEditActivation() {
112112 // Delete all files in the directory
113113 await deleteFilesInFolder ( workspacePath )
114114
115- // Remove workspace folder
116- const workspaceIndex = vscode . workspace . workspaceFolders ?. findIndex (
117- ( folder ) => folder . uri . fsPath . toLowerCase ( ) === workspacePath
118- )
119- if ( workspaceIndex !== undefined && workspaceIndex >= 0 ) {
120- vscode . workspace . updateWorkspaceFolders ( workspaceIndex , 1 )
121- }
122-
123- await setFunctionInfo ( lambda , { undeployed : false } )
124-
125115 // Show message to user about next steps
126116 void vscode . window . showInformationMessage (
127117 localize (
128118 'AWS.lambda.refresh.complete' ,
129119 'Local workspace cleared. Navigate to the Toolkit explorer to get fresh code from the cloud.'
130120 )
131121 )
122+
123+ await setFunctionInfo ( lambda , { undeployed : false } )
124+
125+ // Remove workspace folder
126+ const workspaceIndex = vscode . workspace . workspaceFolders ?. findIndex (
127+ ( folder ) => folder . uri . fsPath . toLowerCase ( ) === workspacePath
128+ )
129+ if ( workspaceIndex !== undefined && workspaceIndex >= 0 ) {
130+ vscode . workspace . updateWorkspaceFolders ( workspaceIndex , 1 )
131+ }
132132 }
133133 } catch ( e ) {
134134 void vscode . window . showWarningMessage (
@@ -147,7 +147,7 @@ async function quickEditActivation() {
147147 * Activates Lambda components.
148148 */
149149export async function activate ( context : ExtContext ) : Promise < void > {
150- await quickEditActivation ( )
150+ void quickEditActivation ( )
151151
152152 context . extensionContext . subscriptions . push (
153153 Commands . register ( 'aws.deleteLambda' , async ( node : LambdaFunctionNode | TreeNode ) => {
0 commit comments