Skip to content

Commit

Permalink
Remove inactive code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sagerb authored Sep 28, 2024
1 parent 0b65c51 commit 6ee316a
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions extensions/vscode/src/multiStepInputs/newDeployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,60 +447,6 @@ export async function newDeployment(
}
}

// // ***************************************************************
// // Step: Input the Content Type, if inspection returns UNKNOWN content type
// // ***************************************************************
// async function inputContentType(
// input: MultiStepInput,
// state: MultiStepState,
// ) {
// if (!newDeploymentData.entrypoint.inspectionResult) {
// return;
// }
// if (
// newDeploymentData.entrypoint.inspectionResult.configuration.type ===
// ContentType.UNKNOWN
// ) {
// // have to prompt user for a content type, since we were unable to determine it.
// const quickPicks: QuickPickItemWithIndex[] = [];
// allValidContentTypes.forEach((contentType, index) => {
// quickPicks.push({
// label: contentType,
// description: contentTypeStrings[contentType],
// picked: newDeploymentData.entrypoint.contentType === contentType,
// index,
// });
// });

// const pick = await input.showQuickPick({
// title: state.title,
// step: 0,
// totalSteps: 0,
// placeholder: `Select the content type for your entrypoint file (${newDeploymentData.entrypoint.filePath}).`,
// items: quickPicks,
// buttons: [],
// shouldResume: () => Promise.resolve(false),
// ignoreFocusOut: true,
// });

// if (!pick) {
// return;
// }
// if (!isQuickPickItemWithIndex(pick)) {
// return;
// }
// newDeploymentData.entrypoint.contentType =
// allValidContentTypes[pick.index];

// return (input: MultiStepInput) => inputTitle(input, state);
// } else {
// newDeploymentData.entrypoint.contentType =
// newDeploymentData.entrypoint.inspectionResult.configuration.type;
// // We're skipping this step, so we must silently just jump to the next step
// return inputTitle(input, state);
// }
// }

// ***************************************************************
// Step: Input the Title
// ***************************************************************
Expand Down

0 comments on commit 6ee316a

Please sign in to comment.