Skip to content

Commit

Permalink
ZETA-7039: fix code snippets (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieGreenman authored Nov 10, 2023
1 parent b182f04 commit 8d3ab68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/snippets/log-position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function logCursorPosition(context: vscode.ExtensionContext, select
const nonFilePathParameters = (selectedOption as any).parameters.filter(parameter => parameter.paramType !== 'filePath');
const parameters = await collectInputBoxValues(nonFilePathParameters);
codeSnippetGeneratingNotification();
const generateVsCodeDownloadCodeParameters = createGenerateVsCodeDownloadCodeParameters(context, (selectedOption as any).orgId as string, (selectedOption as any).pathId, (selectedOption as any).recipeId, (selectedOption as any).id, parameters, fileName);
const generateVsCodeDownloadCodeParameters = createGenerateVsCodeDownloadCodeParameters(context, (selectedOption as any).orgId as string, (selectedOption as any).pathId, (selectedOption as any).recipeId, (selectedOption as any).id, parameters, fileName, vsCodeInstanceId);
generateVsCodeDownloadCode(generateVsCodeDownloadCodeParameters, context, isProduction).then(data => {
});
}
Expand Down Expand Up @@ -136,7 +136,7 @@ async function showInputBox(nonFilePathParameters: any, index: number, parameter
}

function createGenerateVsCodeDownloadCodeParameters(context, orgId: string,
pathId: string, recipeId: string, stepId: string, parameters: any, fileName?: string) {
pathId: string, recipeId: string, stepId: string, parameters: any, fileName?: string, vsCodeInstanceId?: string) {

return {
projectName: '',
Expand All @@ -146,7 +146,7 @@ function createGenerateVsCodeDownloadCodeParameters(context, orgId: string,
recipeId: recipeId,
stepId: stepId,
fileName: fileName,
vsCodeInstanceId: context.workspaceState.get(MEMENTO_RAZROO_ID_VS_CODE_TOKEN) as string,
vsCodeInstanceId: vsCodeInstanceId,
userId: context.globalState.get(MEMENTO_RAZROO_USER_ID) as string,
userOrgId: context.globalState.get(MEMENTO_RAZROO_ORG_ID) as string,
};
Expand Down
2 changes: 1 addition & 1 deletion src/update-vscode/update-vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function updateVsCode(context: vscode.ExtensionContext, isProductio
setWorkspaceState(context, accessToken, refreshToken, userId, orgId, isInProgress);
if(isInProgress) {
if(selectedProjects) {
await subscribeToGenerateVsCodeDownloadCodeSub({ context, isProduction, selectedProjects });
await subscribeToGenerateVsCodeDownloadCodeSub({ context, isProduction, selectedProjects, userId });
await updatePrivateDirectoriesInVSCodeAuthentication(accessToken, isProduction, userId, orgId, selectedProjects);
}
vscode.window.showInformationMessage('User successfully authenticated with Razroo.');
Expand Down

0 comments on commit 8d3ab68

Please sign in to comment.