MCPcopy Index your code
hub / github.com/LeetCode-OpenSource/vscode-leetcode / promptForOpenOutputChannel

Function promptForOpenOutputChannel

src/utils/uiUtils.ts:17–36  ·  view source on GitHub ↗
(message: string, type: DialogType)

Source from the content-addressed store, hash-verified

15}
16
17export async function promptForOpenOutputChannel(message: string, type: DialogType): Promise<void> {
18 let result: vscode.MessageItem | undefined;
19 switch (type) {
20 case DialogType.info:
21 result = await vscode.window.showInformationMessage(message, DialogOptions.open, DialogOptions.no);
22 break;
23 case DialogType.warning:
24 result = await vscode.window.showWarningMessage(message, DialogOptions.open, DialogOptions.no);
25 break;
26 case DialogType.error:
27 result = await vscode.window.showErrorMessage(message, DialogOptions.open, DialogOptions.no);
28 break;
29 default:
30 break;
31 }
32
33 if (result === DialogOptions.open) {
34 leetCodeChannel.show();
35 }
36}
37
38export async function promptForSignIn(): Promise<void> {
39 const choice: vscode.MessageItem | undefined = await vscode.window.showInformationMessage(

Callers 14

activateFunction · 0.90
signInMethod · 0.90
deleteCacheFunction · 0.90
switchEndpointFunction · 0.90
testSolutionFunction · 0.90
addFavoriteFunction · 0.90
removeFavoriteFunction · 0.90
listProblemsFunction · 0.90
submitSolutionFunction · 0.90
manageSessionsFunction · 0.90
parseSessionsToPicksFunction · 0.90
createSessionFunction · 0.90

Calls 1

showMethod · 0.45

Tested by

no test coverage detected