You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -827,6 +831,108 @@ ClassMethod %OnDashboardAction(pAction As %String, pContext As %ZEN.proxyObject)
827
831
Return $$$OK
828
832
}
829
833
834
+
}
835
+
`;
836
+
}elseif(type==NewFileType.Message){
837
+
// Create the prompt for message type
838
+
inputSteps.push({
839
+
type: "quickPick",
840
+
title: "Pick the message type",
841
+
items: [
842
+
{
843
+
label: "Request",
844
+
value: "Request",
845
+
},
846
+
{
847
+
label: "Response",
848
+
value: "Response",
849
+
},
850
+
],
851
+
});
852
+
853
+
// Prompt the user
854
+
constresults=awaitmultiStepInput(inputSteps);
855
+
if(!results){
856
+
return;
857
+
}
858
+
cls=results[0];
859
+
const[,desc,msgType]=results;
860
+
861
+
letrespClass: string;
862
+
if(msgType=="Request"){
863
+
// Prompt the user for the response type
864
+
constrespClasses: vscode.QuickPickItem[]=api
865
+
? awaitapi
866
+
.getEnsClassList(4)
867
+
.then((data)=>
868
+
data.result.content.map((label: string)=>{
869
+
return{ label };
870
+
})
871
+
)
872
+
.catch(()=>[])
873
+
: [];
874
+
if(respClasses.length){
875
+
// Use a QuickPick
876
+
respClass=awaitnewPromise((resolve)=>{
877
+
constquickPick=vscode.window.createQuickPick();
878
+
quickPick.items=respClasses;
879
+
quickPick.title=
880
+
"Pick an optional response class for this request. You may also enter a class name that is not in the list and press 'Enter' to use it. Press 'Escape' to skip.";
0 commit comments