@opensumi/cli-engine 3.8.3-next-1746609719.0 → 3.8.3-next-1746611266.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31454,12 +31454,12 @@ The user's OS is ${(0,_.getOperatingSystemName)()}. The absolute path of the use
31454
31454
  `),P=R[R.length-1],k=[{condition:P.includes("`"),action:d},{condition:P.includes("**"),action:b},{condition:P.match(/\*\w/),action:E},{condition:P.match(/(^|\s)__\w/),action:A},{condition:P.match(/(^|\s)_\w/),action:f},{condition:P.match(/(^|\s)\[.*\]\(\w*/),action:l},{condition:P.match(/(^|\s)\[\w/),action:y}];for(const F of k)if(F.condition)return F.action(I)}}},49601:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatMentionInput=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=e(46541),c=e(41869),_=e(81878),v=e(43718),m=e(92323),p=e(87863),s=e(54414),g=e(47720),a=e(83890),h=e(29037),u=e(72665),d=e(51500),E=e(19413),f=e(27397),l=n.__importDefault(e(6960)),y=e(96086),b=e(44692),A=w=>{const{onSend:T,disabled:D=!1,contextService:I}=w,[O,M]=(0,r.useState)(w.value||""),[R,P]=(0,r.useState)(w.images||[]),k=(0,c.useInjectable)(E.IChatInternalService),F=(0,c.useInjectable)(m.CommandService),L=(0,c.useInjectable)(g.FileSearchServicePath),B=(0,c.useInjectable)(c.RecentFilesManager),j=(0,c.useInjectable)(d.IWorkspaceService),W=(0,c.useInjectable)(s.WorkbenchEditorService),U=(0,c.useInjectable)(c.LabelService),Q=(0,c.useInjectable)(u.IMessageService),V=(0,c.useInjectable)(v.ChatFeatureRegistryToken),G=(0,c.useInjectable)(h.OutlineTreeService),Y=(0,r.useRef)([]),H=r.default.useCallback(()=>{F.executeCommand(f.MCPConfigCommands.OPEN_MCP_CONFIG.id)},[F]);(0,r.useEffect)(()=>{w.value!==O&&M(w.value||"")},[w.value]);const $=(0,r.useCallback)(async(pe,q=[])=>{pe||(pe=(await G.resolveChildren())[0]);const Se=await G.resolveChildren(pe);for(const _e of Se)q.push(_e),a.OutlineCompositeTreeNode.is(_e)&&await $(_e,q);return q},[G]),K=[{id:"code",type:"code",text:"Code",icon:(0,_.getIcon)("codebraces"),getHighestLevelItems:()=>[],getItems:async pe=>{if(!pe||Y.current.length===0){const q=G.currentUri;if(!q)return[];const Se=await $();return Y.current=await Promise.all(Se.map(async _e=>{var ne;const ue=await j.asRelativePath(q);return{id:_e.raw.id,type:b.MentionType.CODE,text:_e.raw.name,symbol:_e.raw,value:_e.raw.id,description:`${ue?.root?ue.path:""}:L${_e.raw.range.startLineNumber}-${_e.raw.range.endLineNumber}`,kind:_e.raw.kind,contextId:`${(ne=G.currentUri)===null||ne===void 0?void 0:ne.codeUri.fsPath}:L${_e.raw.range.startLineNumber}-${_e.raw.range.endLineNumber}`,icon:(0,c.getSymbolIcon)(_e.raw.kind)+" outline-icon"}})),Y.current}else return pe=pe.toLocaleLowerCase(),Y.current.sort((q,Se)=>q.text.toLocaleLowerCase().includes(pe)&&Se.text.toLocaleLowerCase().includes(pe)?0:q.text.toLocaleLowerCase().includes(pe)?-1:Se.text.toLocaleLowerCase().includes(pe)?1:0)}},{id:b.MentionType.FILE,type:b.MentionType.FILE,text:"File",icon:(0,_.getIcon)("file"),getHighestLevelItems:()=>{const pe=W.currentEditor,q=pe?.currentUri;return q?[{id:q.codeUri.fsPath,type:b.MentionType.FILE,text:q.displayName,value:q.codeUri.fsPath,description:`(${(0,v.localize)("aiNative.chat.defaultContextFile")})`,contextId:q.codeUri.fsPath,icon:U.getIcon(q)}]:[]},getItems:async pe=>{if(pe){const q=(await j.roots).map(_e=>new v.URI(_e.uri).codeUri.fsPath.toString()),Se=await L.find(pe,{rootUris:q,useGitIgnore:!0,noIgnoreParent:!0,fuzzyMatch:!0,limit:10});return Promise.all(Se.map(async _e=>{var ne;const ue=new v.URI(_e),Ie=(ne=await j.asRelativePath(ue.parent))===null||ne===void 0?void 0:ne.path;return{id:ue.codeUri.fsPath,type:b.MentionType.FILE,text:ue.displayName,value:ue.codeUri.fsPath,description:Ie||"",contextId:ue.codeUri.fsPath,icon:U.getIcon(ue)}}))}else{const q=await B.getMostRecentlyOpenedFiles();return Promise.all(q.map(async Se=>{var _e;const ne=new v.URI(Se),ue=(_e=await j.asRelativePath(ne.parent))===null||_e===void 0?void 0:_e.path;return{id:ne.codeUri.fsPath,type:b.MentionType.FILE,text:ne.displayName,value:ne.codeUri.fsPath,description:ue||"",contextId:ne.codeUri.fsPath,icon:U.getIcon(ne)}}))}}},{id:b.MentionType.FOLDER,type:b.MentionType.FOLDER,text:"Folder",icon:(0,_.getIcon)("folder"),getHighestLevelItems:()=>{var pe,q;const Se=W.currentEditor,_e=(pe=Se?.currentUri)===null||pe===void 0?void 0:pe.parent;return _e?_e.toString()===((q=j.workspace)===null||q===void 0?void 0:q.uri)?[]:[{id:_e.codeUri.fsPath,type:b.MentionType.FOLDER,text:_e.displayName,value:_e.codeUri.fsPath,description:`(${(0,v.localize)("aiNative.chat.defaultContextFolder")})`,contextId:_e.codeUri.fsPath,icon:(0,_.getIcon)("folder")}]:[]},getItems:async pe=>{let q=[];if(pe){const Se=(await j.roots).map(ue=>new v.URI(ue.uri).codeUri.fsPath.toString()),_e=await L.find(pe,{rootUris:Se,useGitIgnore:!0,noIgnoreParent:!0,fuzzyMatch:!0,excludePatterns:Object.keys(p.defaultFilesWatcherExcludes),limit:10}),ne=Array.from(new Set(_e.map(ue=>new v.URI(ue).parent.toString()).filter(ue=>{var Ie;return ue!==((Ie=j.workspace)===null||Ie===void 0?void 0:Ie.uri.toString())})));return Promise.all(ne.map(async ue=>{var Ie;const xe=new v.URI(ue);return{id:xe.codeUri.fsPath,type:b.MentionType.FOLDER,text:xe.displayName,value:xe.codeUri.fsPath,description:((Ie=await j.asRelativePath(xe.parent))===null||Ie===void 0?void 0:Ie.path)||"",contextId:xe.codeUri.fsPath,icon:(0,_.getIcon)("folder")}}))}else{const Se=await B.getMostRecentlyOpenedFiles(),_e=Array.from(new Set(Se.map(ne=>new v.URI(ne).parent.codeUri.fsPath).filter(ne=>{var ue;return ne!==((ue=j.workspace)===null||ue===void 0?void 0:ue.uri.toString())&&ne!=="/"})));q=await Promise.all(_e.map(async ne=>{const ue=new v.URI(ne),Ie=await j.asRelativePath(ue);return{id:ue.codeUri.fsPath,type:b.MentionType.FOLDER,text:ue.displayName,value:ue.codeUri.fsPath,description:Ie?.root?Ie.path:"",contextId:ue.codeUri.fsPath,icon:(0,_.getIcon)("folder")}}))}return q.filter(Se=>{var _e;return Se.id!==new v.URI((_e=j.workspace)===null||_e===void 0?void 0:_e.uri).codeUri.fsPath})}}],X=(0,r.useMemo)(()=>({modelOptions:[{label:"QWQ 32B",value:"qwq-32b"},{label:"DeepSeek R1",value:"deepseek-r1"}],defaultModel:w.sessionModelId||"deepseek-r1",buttons:[{id:"mcp-server",icon:"mcp",title:"MCP Server",onClick:H,position:b.FooterButtonPosition.LEFT},{id:"upload-image",icon:"image",title:(0,v.localize)("aiNative.chat.imageUpload"),onClick:()=>{const pe=document.createElement("input");pe.type="file",pe.accept="image/*",pe.onchange=q=>{const Se=q.target.files;Se?.length&&ie(Array.from(Se))},pe.click()},position:b.FooterButtonPosition.LEFT}],showModelSelector:!0,disableModelSelector:w.disableModelSelector}),[H,w.disableModelSelector,w.sessionModelId]),Z=(0,r.useCallback)(()=>{k.cancelRequest()},[]),oe=(0,r.useCallback)(async(pe,q)=>{D||(T(pe,R.map(Se=>Se.toString()),void 0,void 0,q),P(w.images||[]))},[T,R,D]),ie=(0,r.useCallback)(async pe=>{const q=["image/jpeg","image/jpg","image/png","image/webp","image/gif"];if(pe.filter(Ie=>!q.includes(Ie.type)).length>0){Q.error("Only JPG, PNG, WebP and GIF images are supported");return}const _e=V.getImageUploadProvider();if(!_e){Q.error("No image upload provider found");return}const ne=await Promise.all(pe.map(Ie=>_e.imageUpload(Ie))),ue=[...R,...ne];P(ue)},[R]),ge=(0,r.useCallback)(pe=>{P(R.filter((q,Se)=>Se!==pe))},[R]);return r.default.createElement("div",{className:l.default.chat_input_container},R.length>0&&r.default.createElement(S,{images:R,onDelete:ge}),r.default.createElement(y.MentionInput,{mentionItems:K,onSend:oe,onStop:Z,loading:D,labelService:U,workspaceService:j,placeholder:(0,v.localize)("aiNative.chat.input.placeholder.default"),footerConfig:X,onImageUpload:ie,contextService:I}))};t.ChatMentionInput=A;const S=({images:w,onDelete:T})=>r.default.createElement("div",null,r.default.createElement("div",{className:l.default.thumbnail_container},w.map((D,I)=>r.default.createElement("div",{key:I,className:l.default.thumbnail},r.default.createElement(o.Image,{src:D.toString()}),r.default.createElement("button",{onClick:()=>T(I),className:l.default.delete_button},r.default.createElement(_.Icon,{iconClass:"codicon codicon-close"}))))))},92635:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatNotify=t.ChatReply=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(48412),_=e(91416),v=e(78569),m=e(72871),p=e(41869),s=e(81878),g=e(89195),a=e(43718),h=e(52416),u=e(90684),d=e(19413),E=e(56474),f=e(17319),l=n.__importDefault(e(6960)),y=T=>{const D=(0,p.useInjectable)(p.LabelService),I=(0,p.useInjectable)(p.CommandService),O=(L,B,j)=>{let W=D.getIcon(L,{isDirectory:B});return B&&j&&(W+=" expanded"),W},M=(0,o.useMemo)(()=>{const L=B=>{const j=typeof B.type=="number"?B.type===a.FileType.Directory:!!B.children,W=new a.URI(B.uri);return{label:B.label,iconClassName:O(W,j,j),expandable:!0,expanded:!0,children:j?(B.children||[]).map(L):null,uri:W}};return(T.treeData.children||[]).map(L)},[T.treeData]),[R,P]=(0,o.useState)(22),k=(0,o.useRef)(null),F=L=>{k.current=L;const B=()=>{let j=L.getModel().root.branchSize;j<1?j=1:j>20&&(j=20),P(j*22)};B(),L.onDidUpdate(B)};return M.length?o.default.createElement("div",{className:l.default.tree_container},o.default.createElement(_.BasicRecycleTree,{height:R,treeData:M,onContextMenu:L=>L.preventDefault(),onClick:(L,B)=>{!k.current||!B||(v.BasicCompositeTreeNode.is(B)?B.raw.iconClassName=O(B.raw.uri,!0,B.expanded):I.executeCommand(p.EDITOR_COMMANDS.OPEN_RESOURCE.id,B.raw.uri,{disableNavigate:!0,preview:!0}))},onReady:F,treeName:T.treeData.label,leaveBottomBlank:!1,baseIndent:0})):null},b=T=>{const{toolCall:D,messageId:I}=T,O=(0,p.useInjectable)(a.ChatAgentViewServiceToken),[M,R]=(0,o.useState)(null);return(0,o.useEffect)(()=>{const P=O.getChatComponent("toolCall");if(P){const{component:F,initialProps:L}=P;R(o.default.createElement(F,{...L,value:D,messageId:I}));return}R(o.default.createElement("div",null,o.default.createElement(g.Loading,null),o.default.createElement("span",{style:{marginLeft:4}},"\u6B63\u5728\u52A0\u8F7D\u7EC4\u4EF6"))),O.getChatComponentDeferred("toolCall").promise.then(({component:F,initialProps:L})=>{R(o.default.createElement(F,{...L,value:D,messageId:I}))})},[D.state]),M},A=T=>{const D=(0,p.useInjectable)(a.ChatAgentViewServiceToken),[I,O]=(0,o.useState)(null);return(0,o.useEffect)(()=>{const M=D.getChatComponent(T.component);if(M){const{component:P,initialProps:k}=M;O(o.default.createElement(P,{...k,value:T.value,messageId:T.messageId}));return}O(o.default.createElement("div",null,o.default.createElement(g.Loading,null),o.default.createElement("span",{style:{marginLeft:4}},"\u6B63\u5728\u52A0\u8F7D\u7EC4\u4EF6"))),D.getChatComponentDeferred(T.component).promise.then(({component:P,initialProps:k})=>{O(o.default.createElement(P,{...k,value:T.value}))})},[T.component,T.value]),I},S=T=>{var D,I;const{relationId:O,request:M,startTime:R=0,onRegenerate:P,onDidChange:k,onDone:F,agentId:L,command:B,history:j,msgId:W}=T,[,U]=(0,o.useReducer)(_e=>(_e+1)%1e6,0),Q=(0,p.useInjectable)(a.IAIReporter),V=(0,p.useInjectable)(h.IIconService),G=(0,p.useInjectable)(p.IContextKeyService),Y=(0,p.useInjectable)(d.IChatInternalService),H=(0,p.useInjectable)(a.ChatServiceToken),$=(0,p.useInjectable)(d.IChatAgentService),K=(0,p.useInjectable)(a.ChatRenderRegistryToken),[X,Z]=(0,o.useState)(M.response.isComplete?new Set(M.response.responseContents.map((_e,ne)=>_e.kind==="reasoning"?ne:-1).filter(_e=>_e!==-1)):new Set);(0,o.useEffect)(()=>{M.response.isComplete&&Z(new Set(M.response.responseContents.map((_e,ne)=>_e.kind==="reasoning"?ne:-1).filter(_e=>_e!==-1)))},[M.response.isComplete]),(0,o.useEffect)(()=>{const _e=new p.DisposableCollection;return _e.push(M.response.onDidChange(()=>{j.updateAssistantMessage(W,{content:M.response.responseText}),M.response.isComplete&&(F&&F(),Q.end(O,{assistantMessage:M.response.responseText,replytime:Date.now()-R,success:!0,isStop:!1,command:B,agentId:L,messageId:W,sessionId:Y.sessionModel.sessionId})),(0,o.startTransition)(()=>{k?.(),U()})})),()=>_e.dispose()},[O,k,F]);const oe=(0,o.useCallback)(()=>{M.response.reset(),P?.()},[P]),ie=(0,o.useCallback)(_e=>{if(K.chatAIRoleRender){const ne=K.chatAIRoleRender;return o.default.createElement(ne,{content:_e.value})}return o.default.createElement(E.ChatMarkdown,{markdown:_e,fillInIncompleteTokens:!0})},[K,K.chatAIRoleRender]),ge=_e=>o.default.createElement(y,{treeData:_e}),pe=_e=>o.default.createElement("div",{className:l.default.placeholder},o.default.createElement(s.Icon,{iconClass:V.fromString("$(codicon/sync~spin)")}),o.default.createElement("div",{className:l.default.placeholder_content},ie(_e))),q=o.default.useMemo(()=>M.response.responseContents.map((_e,ne)=>{let ue;if(_e.kind==="asyncContent")ue=pe(new u.MarkdownString(_e.content));else if(_e.kind==="treeData")ue=ge(_e.treeData);else if(_e.kind==="component")ue=o.default.createElement(A,{component:_e.component,value:_e.value,messageId:W});else if(_e.kind==="toolCall")ue=o.default.createElement(b,{toolCall:_e.content,messageId:W});else if(_e.kind==="reasoning"){const Ie=ne===M.response.responseContents.length-1&&!M.response.isComplete;ue=o.default.createElement("div",{className:(0,r.default)(l.default.reasoning,{[l.default.thinking]:Ie})},o.default.createElement(c.Button,{size:"small",type:"secondary",className:l.default.thinking,onClick:()=>{Ie||(X.has(ne)?X.delete(ne):X.add(ne),Z(new Set(X)))}},o.default.createElement(s.Icon,{iconClass:"codicon codicon-sparkle"}),(0,a.localize)("aiNative.chat.thinking"),Ie?o.default.createElement(g.Loading,null):X.has(ne)?o.default.createElement(s.Icon,{iconClass:"codicon codicon-chevron-right"}):o.default.createElement(s.Icon,{iconClass:"codicon codicon-chevron-down"})),X.has(ne)?null:o.default.createElement("div",{className:l.default.reasoning_content},ie(new u.MarkdownString(_e.content))))}else ue=ie(_e.content);return o.default.createElement(o.Fragment,{key:`${_e.kind}-${ne}`},ue)}),[M.response.responseContents,X]),Se=o.default.useMemo(()=>M.response.followups?M.response.followups.map((_e,ne)=>{let ue=null;if(_e.kind==="reply"){const Ie=o.default.createElement("a",{onClick:()=>{H.sendMessage({...$.parseMessage(_e.message),reportExtra:{actionSource:a.ActionSourceEnum.Chat,actionType:a.ActionTypeEnum.Followup}})}},_e.title||_e.message);ue=_e.tooltip?o.default.createElement(m.Tooltip,{title:_e.tooltip},Ie):Ie}else _e.when&&!G.match(_e.when)&&(ue=null),ue=o.default.createElement(c.Button,{type:"default"},_e.title);return ue&&o.default.createElement(o.Fragment,{key:ne},ue)}):null,[M.response.followups]);return M.response.isComplete?o.default.createElement(f.ChatThinkingResult,{hasMessage:M.response.responseParts.length>0||M.response.responseContents.length>0||!!(!((D=M.response.errorDetails)===null||D===void 0)&&D.message),onRegenerate:oe,requestId:M.requestId},o.default.createElement("div",{className:l.default.ai_chat_response_container},!((I=M.response.errorDetails)===null||I===void 0)&&I.message?o.default.createElement("div",{className:l.default.error},o.default.createElement(s.Icon,{className:(0,s.getIcon)("close-circle")}),o.default.createElement("span",null,M.response.errorDetails.message)):o.default.createElement(o.default.Fragment,null,q,Se?.length!==0&&o.default.createElement("div",{className:l.default.followups},Se)))):o.default.createElement(f.ChatThinking,{message:M.response.responseText},q)};t.ChatReply=S;const w=T=>{const{chunk:D}=T,I=(0,p.useInjectable)(a.ChatRenderRegistryToken),O=o.default.useMemo(()=>{let M;if(D.kind==="component")M=o.default.createElement(A,{component:D.component,value:D.value});else{let R=o.default.createElement(E.ChatMarkdown,{markdown:D.content,fillInIncompleteTokens:!0});if(I.chatAIRoleRender){const P=I.chatAIRoleRender;R=o.default.createElement(P,{content:D.content})}M=R}return M},[D]);return o.default.createElement(f.ChatThinkingResult,{hasMessage:!0,requestId:T.requestId,showRegenerate:!1},o.default.createElement("div",{className:l.default.ai_chat_response_container},O))};t.ChatNotify=w},17319:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatThinkingResult=t.ChatThinking=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=e(41869),c=e(89195),_=e(68974),v=e(43718),m=e(19413),p=n.__importDefault(e(6960)),s=a=>{const{children:h,message:u,thinkingText:d}=a,E=(0,o.useInjectable)(v.ChatRenderRegistryToken),f=(0,r.useMemo)(()=>E.chatThinkingRender,[E,E.chatThinkingRender]),l=(0,r.useMemo)(()=>Array.isArray(h)?h.length===0:!h,[h]),y=(0,r.useCallback)(()=>l?f?r.default.createElement(f,{thinkingText:d}):r.default.createElement("span",{className:p.default.thinking_text},d||"Thinking..."):h,[u,h,d,f]);return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:p.default.content},y()),r.default.createElement("div",{className:p.default.thinking_container},r.default.createElement("div",{className:p.default.stop},!f&&r.default.createElement("span",{className:p.default.progress_bar},l&&r.default.createElement(_.Progress,{loading:!0,wrapperClassName:p.default.ai_native_progress_wrapper})))))};t.ChatThinking=s;const g=({children:a,message:h,onRegenerate:u,requestId:d,hasMessage:E=!0,showRegenerate:f})=>{const l=(0,o.useInjectable)(m.IChatInternalService),[y,b]=(0,r.useState)(l.latestRequestId),A=(0,o.useInjectable)(v.ChatRenderRegistryToken);(0,r.useEffect)(()=>{const I=l.onChangeRequestId(O=>{b(O)});return()=>I.dispose()},[l]);const S=(0,r.useMemo)(()=>A.chatThinkingResultRender,[A,A.chatThinkingResultRender]),w=(0,r.useCallback)(()=>{u&&u()},[u]),T=(0,r.useCallback)(()=>{if(typeof E=="boolean"?!E:!h?.trim()){const I=(0,v.localize)("aiNative.chat.stop.immediately");return S?r.default.createElement(S,{thinkingResult:I}):r.default.createElement("span",null,I)}return a},[h,E,a]),D=(0,r.useMemo)(()=>(0,v.isUndefined)(f)?y===d&&!!d:!!f,[y,d,f]);return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:p.default.content},T()),r.default.createElement("div",{className:p.default.thinking_container},r.default.createElement("div",{className:p.default.bottom_container},r.default.createElement("div",{className:p.default.reset},D?r.default.createElement(c.EnhanceIcon,{icon:"refresh",wrapperClassName:p.default.text_btn,className:p.default.transform,onClick:w,tabIndex:0,role:"button"},r.default.createElement("span",null,(0,v.localize)("aiNative.operate.afresh.title"))):null),r.default.createElement("div",{className:p.default.thumbs},r.default.createElement(c.Thumbs,{relationId:d,wrapperClassName:p.default.icon_btn})))))};t.ChatThinkingResult=g},34817:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatToolRender=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(41869),_=e(81878),v=e(89195),m=e(43718),p=e(33783),s=e(77633),g=e(25834),a=n.__importDefault(e(16796)),h=e(78112),u=d=>{var E,f,l;const{value:y,messageId:b}=d,[A,S]=(0,o.useState)(!1),w=(0,c.useInjectable)(s.TokenMCPServerRegistry);if(!y||!y.function||!y.id)return null;const T=((E=w.getMCPTool(y.function.name))===null||E===void 0?void 0:E.label)||y.function.name,D=w.getToolComponent(y.function.name),I=P=>{switch(P){case"streaming-start":case"streaming":return{label:"Generating",icon:o.default.createElement(v.Loading,null)};case"complete":return{label:"Complete",icon:o.default.createElement(_.Icon,{iconClass:"codicon codicon-check"})};case"result":return{label:"Result Ready",icon:o.default.createElement(_.Icon,{iconClass:"codicon codicon-check-all"})};default:return{label:P||"Unknown",icon:o.default.createElement(_.Icon,{iconClass:"codicon codicon-question"})}}},O=()=>{var P;try{return y.state!=="complete"&&y.state!=="result"?{}:JSON.parse(((P=y.function)===null||P===void 0?void 0:P.arguments)||"{}")}catch{return{}}},M=()=>{S(!A)},R=I(y.state);return D&&(y.state==="complete"||y.state==="result")?o.default.createElement(D,{state:y.state,args:O(),result:y.result,index:y.index,messageId:b,toolCallId:y.id}):o.default.createElement("div",{className:a.default.chat_tool_render},o.default.createElement("div",{className:a.default.tool_header,onClick:M},o.default.createElement("div",{className:a.default.tool_name},o.default.createElement(_.Icon,{iconClass:`codicon codicon-chevron-${A?"down":"right"}`}),o.default.createElement(_.Icon,{size:"small",iconClass:(0,r.default)("codicon codicon-tools",a.default.tool_icon)}),o.default.createElement("span",{className:a.default.tool_label},T)),y.state&&o.default.createElement("div",{className:a.default.tool_state},o.default.createElement("span",{className:a.default.state_icon},R.icon))),o.default.createElement("div",{className:(0,r.default)(a.default.tool_content,{[a.default.expanded]:A})},((f=y?.function)===null||f===void 0?void 0:f.arguments)&&o.default.createElement("div",{className:a.default.tool_arguments},o.default.createElement("div",{className:a.default.section_label},(0,p.localize)("ai.native.mcp.tool.arguments"),":"),o.default.createElement(g.CodeEditorWithHighlight,{input:(l=y?.function)===null||l===void 0?void 0:l.arguments,language:"json",relationId:(0,m.uuid)(4)})),y?.result&&o.default.createElement("div",{className:a.default.tool_result},o.default.createElement("div",{className:a.default.section_label},(0,p.localize)("ai.native.mcp.tool.results"),":"),o.default.createElement(h.ChatToolResult,{result:y.result,relationId:(0,m.uuid)(4)}))))};t.ChatToolRender=u},78112:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatToolResult=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(33783),c=e(25834),_=n.__importDefault(e(48091)),v=({result:m,relationId:p})=>{const s=r.default.useCallback(h=>{try{return JSON.parse(h).content||[]}catch{return[{type:"text",text:h}]}},[]),g=r.default.useCallback((h,u)=>{switch(h.type){case"text":return h.text?r.default.createElement("div",{key:`text-${u}`,className:_.default.text_content},r.default.createElement(c.CodeEditorWithHighlight,{input:h.text,language:"text",relationId:p||""})):null;case"image":return h.data?r.default.createElement("div",{key:`image-${u}`,className:_.default.image_content},r.default.createElement("img",{src:`data:${h.mimeType||"image/png"};base64,${h.data}`,alt:(0,o.localize)("aiNative.chat.result.image")})):null;default:return null}},[p]),a=r.default.useMemo(()=>s(m),[m,s]);return a.length?r.default.createElement("div",{className:_.default.result_container},a.map((h,u)=>g(h,u))):null};t.ChatToolResult=v},29039:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SlashCustomRender=void 0;const r=e(85608).__importStar(e(14041)),o=e(41869),c=e(43718),_=e(19413),v=m=>{const{userMessage:p,relationId:s,requestId:g,renderContent:a,startTime:h,agentId:u,command:d}=m,E=(0,o.useInjectable)(_.IChatInternalService),f=(0,o.useInjectable)(c.IAIReporter);return r.useEffect(()=>{E.setLatestRequestId(g),f.end(s,{message:p,replytime:Date.now()-h,success:!0,isStop:!1,agentId:u,command:d})},[a,g,s]),r.createElement("div",null,a({userMessage:p}))};t.SlashCustomRender=v},86556:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WelcomeMessage=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=e(41869),c=e(81878),_=e(4246),v=e(43718),m=e(90684);e(41937);const p=e(19413),s=e(56474),g=e(17319),a=e(78048),h=n.__importDefault(e(6960)),u=()=>{var d,E;const f=(0,o.useInjectable)(v.ChatServiceToken),l=(0,o.useInjectable)(p.IChatAgentService),y=(0,o.useInjectable)(v.ChatFeatureRegistryToken),b=(0,o.useInjectable)(v.ChatRenderRegistryToken),[A,S]=r.useState([]);(0,o.useUpdateOnEvent)(y.onDidWelcomeMessageChange);const w=r.useMemo(()=>{if(!y.chatWelcomeMessageModel)return[];const{sampleQuestions:O=[]}=y.chatWelcomeMessageModel;return O.map(a.extractIcon)},[(d=y.chatWelcomeMessageModel)===null||d===void 0?void 0:d.sampleQuestions]),T=r.useMemo(()=>{if(!y.chatWelcomeMessageModel)return"";const{content:O}=y.chatWelcomeMessageModel;return O},[(E=y.chatWelcomeMessageModel)===null||E===void 0?void 0:E.content]);if(r.useEffect(()=>{const O=l.onDidChangeAgents(async()=>{const R=(await l.getAllSampleQuestions()).map(a.extractIcon);S(R)});return()=>O.dispose()},[]),!T)return r.createElement(g.ChatThinking,{thinkingText:(0,v.localize)("aiNative.chat.welcome.loading.text")});const D=r.useMemo(()=>w.concat(A),[w,A]);return r.useMemo(()=>{if(b.chatWelcomeRender){const O=b.chatWelcomeRender;return r.createElement(O,{message:T,sampleQuestions:D})}return r.createElement("div",{className:h.default.chat_welcome_head},r.createElement("div",{className:h.default.chat_container_des},(0,m.isMarkdownString)(T)?r.createElement(s.ChatMarkdown,{key:"welcome",markdown:T}):T),r.createElement("div",{className:h.default.chat_container_content},D.map((O,M)=>{const R=r.createElement("a",{className:h.default.link_item,onClick:(0,_.withPrevented)(()=>{f.sendMessage({...l.parseMessage(O.message),reportExtra:{actionType:v.ActionTypeEnum.Welcome,actionSource:v.ActionSourceEnum.Chat}})})},O.icon?r.createElement(c.Icon,{className:O.icon,style:{color:"inherit",marginRight:"4px"}}):"",r.createElement("span",null,O.title));return O.tooltip?r.createElement(c.Tooltip,{title:O.tooltip,key:M},R):r.createElement(r.Fragment,{key:M},R)})))},[b.chatWelcomeRender,T,D])};t.WelcomeMessage=u},83933:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highLightLanguageSupport=void 0,t.highLightLanguageSupport=["1c","abnf","accesslog","actionscript","ada","angelscript","apache","applescript","arcade","arduino","armasm","xml","asciidoc","aspectj","autohotkey","autoit","avrasm","awk","axapta","bash","basic","bnf","brainfuck","c-like","c","cal","capnproto","ceylon","clean","clojure","clojure-repl","cmake","coffeescript","coq","cos","cpp","crmsh","crystal","csharp","csp","css","d","markdown","dart","delphi","diff","django","dns","dockerfile","dos","dsconfig","dts","dust","ebnf","elixir","elm","ruby","erb","erlang-repl","erlang","excel","fix","flix","fortran","fsharp","gams","gauss","gcode","gherkin","glsl","gml","go","golo","gradle","groovy","haml","handlebars","haskell","haxe","hsp","htmlbars","http","hy","inform7","ini","irpf90","isbl","java","javascript","jboss-cli","json","julia","julia-repl","kotlin","lasso","latex","ldif","leaf","less","lisp","livecodeserver","livescript","llvm","lsl","lua","makefile","mathematica","matlab","maxima","mel","mercury","mipsasm","mizar","perl","mojolicious","monkey","moonscript","n1ql","nginx","nim","nix","node-repl","nsis","objectivec","ocaml","openscad","oxygene","parser3","pf","pgsql","php","php-template","plaintext","pony","powershell","processing","profile","prolog","properties","protobuf","puppet","purebasic","python","python-repl","q","qml","r","reasonml","rib","roboconf","routeros","rsl","ruleslanguage","rust","sas","scala","scheme","scilab","scss","shell","smali","smalltalk","sml","sqf","sql_more","sql","stan","stata","step21","stylus","subunit","swift","taggerscript","yaml","tap","tcl","thrift","tp","twig","typescript","vala","vbnet","vbscript","vbscript-html","verilog","vhdl","vim","x86asm","xl","xquery","zephir"]},96086:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MentionInput=t.WHITE_SPACE_TEXT=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(41869),_=e(81878),v=e(89195),m=e(70392),p=n.__importDefault(e(97599)),s=e(80732),g=e(44692);t.WHITE_SPACE_TEXT="&nbsp;";const a=({mentionItems:h=[],onSend:u,onStop:d,loading:E=!1,mentionKeyword:f=g.MENTION_KEYWORD,onSelectionChange:l,onImageUpload:y,labelService:b,workspaceService:A,placeholder:S="Ask anything, @ to mention",footerConfig:w={buttons:[],showModelSelector:!1},contextService:T})=>{const D=o.useRef(null),[I,O]=o.useState({active:!1,startPos:null,filter:"",position:{top:0,left:0},activeIndex:0,level:0,parentType:null,secondLevelFilter:"",inlineSearchActive:!1,inlineSearchStartPos:null,loading:!1}),[M,R]=o.useState(w.defaultModel||""),[P,k]=o.useState({}),[F,L]=o.useState([]),[B,j]=o.useState(-1),[W,U]=o.useState(""),[Q,V]=o.useState(!1),[G,Y]=o.useState({files:[],folders:[]}),H=()=>I.level===0?h:I.parentType?I.loading?P[I.parentType]||[]:P[I.parentType]||[]:[],K=((ye,Ce)=>{const[fe,Pe]=o.useState(ye);return o.useEffect(()=>{const Te=setTimeout(()=>{Pe(ye)},Ce);return()=>{clearTimeout(Te)}},[ye,Ce]),fe})(I.secondLevelFilter,300);o.useEffect(()=>{R(w.defaultModel||"")},[w.defaultModel]),o.useEffect(()=>{if(I.level===1&&I.parentType&&K!==void 0){const ye=h.find(fe=>fe.id===I.parentType);if(!ye)return;O(fe=>({...fe,loading:!0})),(async()=>{try{const fe=[];if(ye.getHighestLevelItems){const Pe=ye.getHighestLevelItems();for(const Te of Pe)fe.some(Ne=>Ne.id===Te.id)||fe.push(Te);k(Te=>({...Te,[I.parentType]:Pe}))}if(ye.getItems)try{const Pe=await ye.getItems(K),Te=[...fe];for(const Ne of Pe)Te.some(me=>me.id===Ne.id)||Te.push(Ne);k(Ne=>({...Ne,[I.parentType]:Te}))}catch{O(Te=>({...Te,loading:!1}))}O(Pe=>({...Pe,loading:!1}))}catch{O(Pe=>({...Pe,loading:!1}))}})()}},[K,I.level,I.parentType]),o.useEffect(()=>{const ye=T?.onDidContextFilesChangeEvent(({attached:Ce,attachedFolders:fe})=>{Y({files:Ce,folders:fe})});return()=>{ye?.dispose()}},[T]);const X=ye=>{const Ce=window.getSelection();if(!Ce||!Ce.rangeCount)return 0;const fe=Ce.getRangeAt(0),Pe=fe.cloneRange();return Pe.selectNodeContents(ye),Pe.setEnd(fe.endContainer,fe.endOffset),Pe.toString().length},Z=()=>{Q&&(V(!1),j(-1));const ye=window.getSelection();if(!ye||!ye.rangeCount||!D.current)return;const Ce=D.current.textContent||"",fe=X(D.current);if(Ce[fe-1]===f&&!I.active&&!I.inlineSearchActive&&O({active:!0,startPos:fe,filter:f,position:{top:0,left:0},activeIndex:0,level:0,parentType:null,secondLevelFilter:"",inlineSearchActive:!1,inlineSearchStartPos:null,loading:!1}),I.active&&I.level===0&&I.startPos!==null)if(fe<I.startPos)O(Pe=>({...Pe,active:!1}));else{const Pe=Ce.substring(I.startPos-1,fe);O(Te=>({...Te,filter:Pe,activeIndex:0}))}if(I.inlineSearchActive&&I.inlineSearchStartPos!==null&&I.parentType){const Pe=h.find(me=>me.id===I.parentType);if(!Pe)return;const Te=`@${Pe.type}:`,Ne=I.inlineSearchStartPos-Te.length;if(Ne>=0&&fe>Ne+Te.length){const me=Ce.substring(Ne+Te.length,fe);me!==I.secondLevelFilter&&O(re=>({...re,secondLevelFilter:me,active:!0,activeIndex:0}))}else fe<=Ne&&O(me=>({...me,inlineSearchActive:!1,active:!1}))}if(D.current&&(D.current.scrollHeight>=120?D.current.style.overflowY="auto":D.current.style.overflowY="hidden"),D.current){const Pe=D.current.innerHTML;(Pe===""||Pe==="<br>"||Pe==="<br/>")&&(D.current.innerHTML="")}},oe=ye=>{if(ye.key==="Escape"&&(I.active||I.inlineSearchActive)){I.level>0?O(fe=>({...fe,level:0,activeIndex:0,secondLevelFilter:"",inlineSearchActive:!1})):O(fe=>({...fe,active:!1,inlineSearchActive:!1})),ye.preventDefault();return}if((ye.key==="Backspace"||ye.key==="Delete")&&D.current&&(!D.current.textContent||D.current.textContent.trim()==="")&&T?.cleanFileContext(),ye.key===g.MENTION_KEYWORD&&!I.active&&!I.inlineSearchActive&&D.current){const fe=X(D.current);O({active:!0,startPos:fe+1,filter:f,position:{top:0,left:0},activeIndex:0,level:0,parentType:null,secondLevelFilter:"",inlineSearchActive:!1,inlineSearchStartPos:null,loading:!1})}if((ye.key==="ArrowUp"||ye.key==="ArrowDown")&&!ye.shiftKey&&!ye.ctrlKey&&!ye.metaKey&&!ye.altKey){if(!I.active&&!I.inlineSearchActive&&D.current&&F.length>0){const fe=D.current.innerHTML;if(!fe||fe==="<br>"||Q&&B>=0&&F[F.length-1-B]===fe){ye.preventDefault(),Q||(U(fe),V(!0));let Te=B;ye.key==="ArrowUp"?Te=Math.min(F.length-1,B+1):Te=Math.max(-1,B-1),j(Te),Te===-1?D.current.innerHTML=W:D.current.innerHTML=F[F.length-1-Te];const Ne=document.createRange();Ne.selectNodeContents(D.current),Ne.collapse(!1);const me=window.getSelection();me&&(me.removeAllRanges(),me.addRange(Ne));return}}}else Q&&ye.key!=="ArrowUp"&&ye.key!=="ArrowDown"&&(V(!1),j(-1));if(ye.key==="Enter"){if(ye.nativeEvent.isComposing)return;if(!ye.shiftKey&&(ye.preventDefault(),!I.active)){_e();return}}if(!I.active)return;let Ce=H();if(I.level===0&&I.filter&&I.filter.length>1){const fe=I.filter.substring(1).toLowerCase();Ce=Ce.filter(Pe=>Pe.text.toLowerCase().includes(fe))}Ce.length!==0&&(ye.key==="ArrowDown"?(O(fe=>({...fe,activeIndex:(fe.activeIndex+1)%Ce.length})),ye.preventDefault()):ye.key==="ArrowUp"?(O(fe=>({...fe,activeIndex:(fe.activeIndex-1+Ce.length)%Ce.length})),ye.preventDefault()):(ye.key==="Enter"||ye.key==="Tab")&&Ce.length>0&&(q(Ce[I.activeIndex]),ye.preventDefault()))},ie=()=>{},ge=async ye=>{const Ce=ye.clipboardData.items,fe=[];for(let De=0;De<Ce.length;De++)if(Ce[De].kind==="file"&&Ce[De].type.startsWith("image/")){const Fe=Ce[De].getAsFile();Fe&&fe.push(Fe)}if(ye.preventDefault(),fe.length>0&&y){await y(fe);return}const Te=ye.clipboardData.getData("text/plain").replace(/\t/g," ").replace(/\n\s*\n/g,`
31455
31455
 
31456
31456
  `).replace(/[ \t]+$/gm,""),Ne=window.getSelection();if(!Ne||!Ne.rangeCount)return;const me=Ne.getRangeAt(0);me.deleteContents();const re=Te.split(`
31457
- `),he=document.createDocumentFragment();re.forEach((De,Fe)=>{const Ge=De.replace(/^[ ]+/g,gt=>{const ot=document.createElement("span");return ot.innerHTML="\xA0".repeat(gt.length),ot.innerHTML}),Ue=document.createElement("span");for(Ue.innerHTML=Ge;Ue.firstChild;)he.appendChild(Ue.firstChild);Fe<re.length-1&&he.appendChild(document.createElement("br"))});const Oe=he.lastChild;if(me.insertNode(he),Oe&&Oe.parentNode){const De=document.createRange();De.setStartAfter(Oe),Ne.removeAllRanges(),Ne.addRange(De)}Z()};o.useEffect(()=>{D.current&&S&&!D.current.textContent&&D.current.setAttribute("data-placeholder",S)},[S]);const pe=ye=>{var Ce;I.active&&!(!((Ce=document.querySelector(`.${p.default.mention_panel}`))===null||Ce===void 0)&&Ce.contains(ye.target))&&O(fe=>({...fe,active:!1,inlineSearchActive:!1}))};o.useEffect(()=>(document.addEventListener("click",pe,!0),()=>{document.removeEventListener("click",pe,!0)}),[I.active]);const q=(ye,Ce=!1)=>{var fe;if(!D.current)return;if(ye.getItems){const Ue=window.getSelection();if(!Ue||!Ue.rangeCount)return;if(I.level===0&&I.startPos!==null){let gt,ot,Mt;const ct=document.createTreeWalker(D.current,NodeFilter.SHOW_TEXT);let At=0,st;for(;st=ct.nextNode();){const rt=((fe=st.textContent)===null||fe===void 0?void 0:fe.length)||0;if(I.startPos-1>=At&&I.startPos-1<At+rt){gt=st,ot=I.startPos-1-At;const lt=Ce?I.startPos+I.filter.length-1:X(D.current);Mt=Math.min(lt-At,rt);break}At+=rt}if(gt){const rt=document.createRange();rt.setStart(gt,ot),rt.setEnd(gt,Mt),rt.deleteContents();const lt=document.createTextNode(`${f}${ye.type}:`);rt.insertNode(lt);const yt=document.createRange();yt.setStartAfter(lt),yt.setEndAfter(lt),Ue.removeAllRanges(),Ue.addRange(yt),O(Ut=>({...Ut,active:!0,level:1,parentType:ye.id,inlineSearchActive:!0,inlineSearchStartPos:X(D.current),secondLevelFilter:"",activeIndex:0})),D.current.focus();return}}return}const Pe=window.getSelection();if(!Pe||!Pe.rangeCount)return;if(I.inlineSearchActive&&I.parentType&&I.inlineSearchStartPos!==null){const Ue=h.find(Mt=>Mt.id===I.parentType);if(!Ue)return;const gt=`${f}${Ue.type}:`,ot=I.inlineSearchStartPos-gt.length;if(ot>=0){let _n=function(Mn){if(Mn.nodeType===3)Ut.push({node:Mn,start:lt,end:lt+Mn.textContent.length}),lt+=Mn.textContent.length;else if(Mn.nodeType===1){const hi=Mn.childNodes||[];for(const Nn of Array.from(hi))_n(Nn)}};const Mt=document.createElement("span");if(Mt.className=p.default.mention_tag,Mt.dataset.id=ye.id,Mt.dataset.type=ye.type,Mt.dataset.contextId=ye.contextId||"",Mt.contentEditable="false",ye.type===g.MentionType.FILE||ye.type===g.MentionType.FOLDER){const Mn=document.createElement("span");Mn.className=(0,r.default)(p.default.mention_icon,ye.type===g.MentionType.FILE?b?.getIcon(new m.URI(ye.text)):(0,_.getIcon)("folder")),Mt.appendChild(Mn),ye.type===g.MentionType.FOLDER?T?.addFolderToContext(new m.URI(ye.contextId),!0):T?.addFileToContext(new m.URI(ye.contextId),void 0,!0)}else if(ye.type===g.MentionType.CODE){const Mn=document.createElement("span");Mn.className=(0,r.default)(p.default.mention_icon,ye.kind&&(0,c.getSymbolIcon)(ye.kind)+" outline-icon"),Mt.appendChild(Mn),ye.symbol&&T?.addFileToContext(new m.URI(ye.contextId),[ye.symbol.range.startLineNumber,ye.symbol.range.endLineNumber],!0)}const ct=A?.workspace;let At=ye.text;ct&&ye.contextId&&(At=ye.contextId.replace(new m.URI(ct.uri).codeUri.fsPath,"").slice(1));const st=document.createTextNode(At);Mt.appendChild(st);const rt=document.createRange();let lt=0,yt=!1;const Ut=[];_n(D.current);for(const Mn of Ut){if(ot>=Mn.start&&ot<=Mn.end){const hi=ot-Mn.start;rt.setStart(Mn.node,hi),yt=!0}if(yt){const hi=Ce?ot+gt.length+I.secondLevelFilter.length:X(D.current);if(hi>=Mn.start&&hi<=Mn.end){const Nn=hi-Mn.start;rt.setEnd(Mn.node,Nn);break}}}if(yt){rt.deleteContents(),rt.insertNode(Mt);const Mn=document.createRange();Mn.setStartAfter(Mt),Mn.setEndAfter(Mt),Pe.removeAllRanges(),Pe.addRange(Mn);const hi=document.createTextNode("\xA0");Mn.insertNode(hi),Mn.setStartAfter(hi),Mn.setEndAfter(hi),Pe.removeAllRanges(),Pe.addRange(Mn)}O(Mn=>({...Mn,active:!1,inlineSearchActive:!1})),D.current.focus();return}}const Te=document.createElement("span");if(Te.className=p.default.mention_tag,Te.dataset.id=ye.id,Te.dataset.type=ye.type,Te.dataset.contextId=ye.contextId||"",Te.contentEditable="false",ye.type==="file"||ye.type==="folder"){const Ue=document.createElement("span");Ue.className=(0,r.default)(p.default.mention_icon,ye.type==="file"?b?.getIcon(new m.URI(ye.text)):(0,_.getIcon)("folder")),Te.appendChild(Ue)}const Ne=A?.workspace;let me=ye.text;Ne&&ye.contextId&&(me=ye.contextId.replace(new m.URI(Ne.uri).codeUri.fsPath,"").slice(1));const re=document.createTextNode(me);Te.appendChild(re);let he=0,Oe=!1;const De=[];function Fe(Ue){if(Ue.nodeType===3)De.push({node:Ue,start:he,end:he+Ue.textContent.length}),he+=Ue.textContent.length;else if(Ue.nodeType===1){const gt=Ue.childNodes;for(const ot of Array.from(gt))Fe(ot)}}Fe(D.current);const Ge=document.createRange();if(I.startPos!==null)for(const Ue of De){if(I.startPos-1>=Ue.start&&I.startPos-1<=Ue.end){const gt=I.startPos-1-Ue.start;Ge.setStart(Ue.node,gt),Oe=!0}if(Oe){const gt=Ce?I.startPos+I.filter.length-1:X(D.current);if(gt>=Ue.start&&gt<=Ue.end){const ot=gt-Ue.start;Ge.setEnd(Ue.node,ot);break}}}if(Oe){Ge.deleteContents(),Ge.insertNode(Te);const Ue=document.createRange();Ue.setStartAfter(Te),Ue.setEndAfter(Te),Pe.removeAllRanges(),Pe.addRange(Ue);const gt=document.createTextNode("\xA0");Ue.insertNode(gt),Ue.setStartAfter(gt),Ue.setEndAfter(gt),Pe.removeAllRanges(),Pe.addRange(Ue)}O(Ue=>({...Ue,active:!1})),D.current.focus()},Se=o.useCallback(ye=>{R(ye),l?.(ye)},[M,l]),_e=()=>{if(!D.current)return;const ye=D.current.innerHTML;if(!ye)return;const Ce=document.createElement("div");Ce.innerHTML=ye,Ce.querySelectorAll(`.${p.default.mention_tag}`).forEach(Te=>{var Ne;const me=Te.getAttribute("data-context-id");if(me){const re=document.createTextNode(`{{${f}${Te.getAttribute("data-type")}:${me}}}`);(Ne=Te.parentNode)===null||Ne===void 0||Ne.replaceChild(re,Te)}});let Pe=Ce.innerHTML;Pe=Pe.trim().replaceAll(t.WHITE_SPACE_TEXT," "),ye&&(L(Te=>[...Te,ye]),j(-1),V(!1)),u&&u(Pe,{model:M,...w}),D.current.innerHTML="",D.current&&(D.current.style.overflowY="hidden",D.current.style.height="auto")},ne=o.useCallback(()=>{T?.cleanFileContext()},[T]),ue=o.useCallback(()=>{d&&d()},[d]),Ie=o.useCallback(ye=>(w.buttons||[]).filter(Ce=>Ce.position===ye).map(Ce=>o.createElement(_.Popover,{key:Ce.id,overlayClassName:p.default.popover_icon,id:`ai-chat-${Ce.id}`,position:_.PopoverPosition.top,title:Ce.title},o.createElement(v.EnhanceIcon,{className:(0,r.default)(Ce.icon?(0,_.getIcon)(Ce.icon):Ce.iconClass,p.default[`${Ce.id}_logo`]),tabIndex:0,role:"button",ariaLabel:Ce.title,onClick:Ce.onClick}))),[w.buttons]),xe=o.useMemo(()=>G.files.length>0||G.folders.length>0,[G]),be=o.useCallback(ye=>w.disableModelSelector?o.createElement(_.Popover,{id:"ai-chat-model-selector",title:(0,c.localize)("aiNative.chat.modelSelector.disableTip"),position:_.PopoverPosition.top},ye):ye,[w.disableModelSelector]);return o.createElement("div",{className:p.default.input_container},I.active&&o.createElement("div",{className:p.default.mention_panel_container},o.createElement(s.MentionPanel,{items:H(),activeIndex:I.activeIndex,onSelectItem:ye=>q(ye,!0),position:{top:0,left:0},filter:I.level===0?I.filter:I.secondLevelFilter,visible:!0,level:I.level,loading:I.loading})),o.createElement("div",{className:p.default.editor_area},o.createElement("div",{ref:D,className:p.default.editor,contentEditable:!0,onInput:Z,onKeyDown:oe,onPaste:ge,onCompositionEnd:ie})),o.createElement("div",{className:p.default.footer},o.createElement("div",{className:p.default.left_control},w.showModelSelector&&be(o.createElement(_.Select,{options:w.modelOptions||[],value:M,onChange:Se,className:p.default.model_selector,size:"small",disabled:w.disableModelSelector})),Ie(g.FooterButtonPosition.LEFT)),o.createElement("div",{className:p.default.right_control},Ie(g.FooterButtonPosition.RIGHT),xe&&o.createElement(_.Popover,{overlayClassName:p.default.popover_icon,id:"ai-chat-clear-context",position:_.PopoverPosition.top,content:(0,c.localize)("aiNative.chat.context.clear")},o.createElement("div",{className:p.default.context_container,onClick:ne},o.createElement("div",{className:p.default.context_icon},o.createElement(_.Icon,{icon:"out-link"}),o.createElement(_.Icon,{icon:"close"})),o.createElement("div",{className:p.default.context_description},(0,c.formatLocalize)("aiNative.chat.context.description",G.files.length+G.folders.length)))),o.createElement(_.Popover,{overlayClassName:p.default.popover_icon,id:"ai-chat-send",position:_.PopoverPosition.top,content:E?"Stop":"Send"},E?o.createElement(v.EnhanceIcon,{wrapperClassName:p.default.stop_logo,className:(0,r.default)((0,_.getIcon)("stop"),p.default.stop_logo_icon),tabIndex:0,role:"button",ariaLabel:"Stop",onClick:ue}):o.createElement(v.EnhanceIcon,{wrapperClassName:p.default.send_logo,className:(0,r.default)((0,_.getIcon)("send-outlined"),p.default.send_logo_icon),tabIndex:0,role:"button",onClick:_e,ariaLabel:"Send"})))))};t.MentionInput=a},40167:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MentionItem=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(81878),_=n.__importDefault(e(97599)),v=({item:m,isActive:p,onClick:s})=>o.createElement("div",{className:`${_.default.mention_item} ${p?_.default.active:""}`,onClick:()=>s(m)},o.createElement("div",{className:_.default.mention_item_left},o.createElement(c.Icon,{className:(0,r.default)(_.default.mention_item_icon,m.icon)}),o.createElement("span",{className:_.default.mention_item_text},m.text),o.createElement("span",{className:_.default.mention_item_description},m.description)),m.getItems&&o.createElement(c.Icon,{className:(0,r.default)(_.default.mention_item_right,(0,c.getIcon)("arrowright"))}));t.MentionItem=v},80732:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MentionPanel=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=n.__importDefault(e(97599)),c=e(40167),_=({items:v,activeIndex:m,onSelectItem:p,position:s,filter:g,visible:a,level:h,loading:u=!1})=>{const d=r.useRef(null);if(r.useEffect(()=>{if(a&&d.current){const l=d.current.querySelector(`.${o.default.mention_item}.${o.default.active}`);l&&l.scrollIntoView({block:"nearest"})}},[m,a]),!a)return null;const f=(()=>{let l=v;if(h===0){if(g&&g.length>1){const y=g.substring(1).toLowerCase();l=v.filter(b=>b.text.toLowerCase().includes(y))}}else g&&g.length>0&&(l=v.filter(y=>y.text.toLowerCase().includes(g.toLowerCase())));return l})();return h===0&&f.length===0?null:r.createElement("div",{ref:d,className:o.default.mention_panel,style:{top:s.top,left:s.left}},u&&r.createElement("div",{className:o.default.loading_bar}),v.length>0?r.createElement("ul",{className:o.default.mention_list},v.map((l,y)=>r.createElement(c.MentionItem,{key:l.id,item:l,isActive:y===m,onClick:()=>p(l,!0)}))):r.createElement("div",{className:o.default.no_results},u?"\u6B63\u5728\u641C\u7D22...":"\u65E0\u5339\u914D\u7ED3\u679C"))};t.MentionPanel=_},44692:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MENTION_KEYWORD=t.MentionType=t.FooterButtonPosition=void 0;var e;(function(r){r.LEFT="left",r.RIGHT="right"})(e||(t.FooterButtonPosition=e={}));var n;(function(r){r.FILE="file",r.FOLDER="folder",r.CODE="code"})(n||(t.MentionType=n={})),t.MENTION_KEYWORD="@"},78048:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractIcon=t.createMessageByAI=t.createMessageByUser=void 0;const n=e(41869),r="",o=m=>({...m,type:"text",className:`${m.position==="left"?"rce-ai-msg":"rce-user-msg"} ${m.className?m.className:""}`}),c=(m,p)=>o({...m,position:"right",title:r,className:p,role:1});t.createMessageByUser=c;const _=(m,p)=>o({...m,position:"left",title:"",className:p,role:2});t.createMessageByAI=_;const v=m=>{let{title:p}=m;const{message:s,tooltip:g}=m;let a=m.icon||"";if(!p)return{icon:a,title:s,message:s,tooltip:g};const h=p.match(/^\$\(([a-z.]+\/)?([a-z0-9-]+)(~[a-z]+)?\)/i);if(h){const[u,d,E,f]=h,l=d?d.slice(0,-1):n.CODICON_OWNER;a=(0,n.getExternalIcon)(E,l),f&&(a+=` ${f.slice(1)}`),p=p.slice(u.length)}return{icon:a,title:p,message:s,tooltip:g}};t.extractIcon=v},19957:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LlmContextContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(46044);let _=class{initialize(){this.llmContextService.startAutoCollection()}};t.LlmContextContribution=_,n.__decorate([(0,r.Autowired)(c.LLMContextServiceToken),n.__metadata("design:type",Object)],_.prototype,"llmContextService",void 0),t.LlmContextContribution=_=n.__decorate([(0,o.Domain)(o.ClientAppContribution)],_)},63536:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LLMContextServiceImpl=void 0;const n=e(85608),r=e(76003),o=e(11050),c=e(25234),_=e(19083),v=e(86560),m=e(96689),p=e(82196),s=e(14951),g=e(6287),a=e(20868);let h=class extends c.WithEventBus{constructor(){super(...arguments),this.isAutoCollecting=!1,this.contextVersion=0,this.maxAttachFilesLimit=10,this.maxAttachFoldersLimit=10,this.maxViewFilesLimit=20,this.attachedFiles=[],this.attachedFolders=[],this.recentlyViewFiles=[],this.onDidContextFilesChangeEmitter=new v.Emitter,this.hasUserManualReference=!1,this.onDidContextFilesChangeEvent=this.onDidContextFilesChangeEmitter.event}addFileToList(d,E,f){const l=E.findIndex(y=>{var b,A,S,w;return y.uri.toString()===d.uri.toString()&&((b=y.selection)===null||b===void 0?void 0:b[0])===((A=d.selection)===null||A===void 0?void 0:A[0])&&((S=y.selection)===null||S===void 0?void 0:S[1])===((w=d.selection)===null||w===void 0?void 0:w[1])});l>-1&&E.splice(l,1),E.push(d),E.length>f&&E.shift()}addFolderToList(d,E,f){const l=E.findIndex(y=>y.uri.toString()===d.uri.toString());l>-1&&E.splice(l,1),E.push(d),E.length>f&&E.shift()}addFileToContext(d,E,f=!1){if(!d)return;f&&(this.hasUserManualReference=!0);const l={uri:d,selection:E},y=f?this.attachedFiles:this.recentlyViewFiles,b=f?this.maxAttachFilesLimit:this.maxViewFilesLimit;f&&this.docModelManager.createModelReference(d),this.addFileToList(l,y,b),this.notifyContextChange()}addFolderToContext(d){if(!d)return;const E={uri:d};this.addFolderToList(E,this.attachedFolders,this.maxAttachFoldersLimit),this.notifyContextChange()}notifyContextChange(){this.onDidContextFilesChangeEmitter.fire(this.getAllContextFiles())}cleanFileContext(){this.attachedFiles=[],this.attachedFolders=[],this.hasUserManualReference=!1,this.notifyContextChange()}getAllContextFiles(){return{viewed:this.recentlyViewFiles,attached:this.attachedFiles,attachedFolders:this.attachedFolders,version:this.contextVersion++}}removeFileFromContext(d,E=!1){const f=E?this.attachedFiles:this.recentlyViewFiles,l=f.findIndex(y=>y.uri.toString()===d.toString());l>-1&&f.splice(l,1),this.notifyContextChange()}startAutoCollection(){this.isAutoCollecting||(this.isAutoCollecting=!0,this.startAutoCollectionInternal())}startAutoCollectionInternal(){this.disposables.push(this.eventBus.on(m.EditorDocumentModelCreationEvent,d=>{d.payload.uri.scheme==="file"&&this.addFileToContext(d.payload.uri,void 0,!1)})),this.disposables.push(this.eventBus.on(m.EditorDocumentModelRemovalEvent,d=>{d.payload.scheme==="file"&&this.removeFileFromContext(d.payload,!1)})),this.disposables.push(this.eventBus.on(m.EditorDocumentModelSavedEvent,d=>{d.payload.scheme})),this.disposables.push(this.eventBus.on(p.EditorSelectionChangeEvent,d=>{if(d.payload.selections.length>0){const E=[d.payload.selections[0].selectionStartLineNumber,d.payload.selections[0].positionLineNumber].sort();this.hasUserManualReference||(E[0]===E[1]?this.addFileToContext(d.payload.editorUri,void 0,!1):this.addFileToContext(d.payload.editorUri,E.sort((f,l)=>f-l),!1))}}))}stopAutoCollection(){this.dispose()}async serialize(){const d=this.getAllContextFiles(),E=v.URI.file(this.appConfig.workspaceDir);return{recentlyViewFiles:this.serializeRecentlyViewFiles(d.viewed,E),attachedFiles:this.serializeAttachedFiles(d.attached,E),attachedFolders:await this.serializeAttachedFolders(d.attachedFolders,E)}}async serializeAttachedFolders(d,E){const f=Array.from(new Set(d.map(l=>l.uri.toString())));return Promise.all(f.map(async l=>{var y;const b=new v.URI(l);return`\`\`\`
31457
+ `),he=document.createDocumentFragment();re.forEach((De,Fe)=>{const Ge=De.replace(/^[ ]+/g,gt=>{const ot=document.createElement("span");return ot.innerHTML="\xA0".repeat(gt.length),ot.innerHTML}),Ue=document.createElement("span");for(Ue.innerHTML=Ge;Ue.firstChild;)he.appendChild(Ue.firstChild);Fe<re.length-1&&he.appendChild(document.createElement("br"))});const Oe=he.lastChild;if(me.insertNode(he),Oe&&Oe.parentNode){const De=document.createRange();De.setStartAfter(Oe),Ne.removeAllRanges(),Ne.addRange(De)}Z()};o.useEffect(()=>{D.current&&S&&!D.current.textContent&&D.current.setAttribute("data-placeholder",S)},[S]);const pe=ye=>{var Ce;I.active&&!(!((Ce=document.querySelector(`.${p.default.mention_panel}`))===null||Ce===void 0)&&Ce.contains(ye.target))&&O(fe=>({...fe,active:!1,inlineSearchActive:!1}))};o.useEffect(()=>(document.addEventListener("click",pe,!0),()=>{document.removeEventListener("click",pe,!0)}),[I.active]);const q=(ye,Ce=!1)=>{var fe;if(!D.current)return;if(ye.getItems){const Ue=window.getSelection();if(!Ue||!Ue.rangeCount)return;if(I.level===0&&I.startPos!==null){let gt,ot,Mt;const ct=document.createTreeWalker(D.current,NodeFilter.SHOW_TEXT);let At=0,st;for(;st=ct.nextNode();){const rt=((fe=st.textContent)===null||fe===void 0?void 0:fe.length)||0;if(I.startPos-1>=At&&I.startPos-1<At+rt){gt=st,ot=I.startPos-1-At;const lt=Ce?I.startPos+I.filter.length-1:X(D.current);Mt=Math.min(lt-At,rt);break}At+=rt}if(gt){const rt=document.createRange();rt.setStart(gt,ot),rt.setEnd(gt,Mt),rt.deleteContents();const lt=document.createTextNode(`${f}${ye.type}:`);rt.insertNode(lt);const yt=document.createRange();yt.setStartAfter(lt),yt.setEndAfter(lt),Ue.removeAllRanges(),Ue.addRange(yt),O(Ut=>({...Ut,active:!0,level:1,parentType:ye.id,inlineSearchActive:!0,inlineSearchStartPos:X(D.current),secondLevelFilter:"",activeIndex:0})),D.current.focus();return}}return}const Pe=window.getSelection();if(!Pe||!Pe.rangeCount)return;if(I.inlineSearchActive&&I.parentType&&I.inlineSearchStartPos!==null){const Ue=h.find(Mt=>Mt.id===I.parentType);if(!Ue)return;const gt=`${f}${Ue.type}:`,ot=I.inlineSearchStartPos-gt.length;if(ot>=0){let _n=function(Mn){if(Mn.nodeType===3)Ut.push({node:Mn,start:lt,end:lt+Mn.textContent.length}),lt+=Mn.textContent.length;else if(Mn.nodeType===1){const hi=Mn.childNodes||[];for(const Nn of Array.from(hi))_n(Nn)}};const Mt=document.createElement("span");if(Mt.className=p.default.mention_tag,Mt.dataset.id=ye.id,Mt.dataset.type=ye.type,Mt.dataset.contextId=ye.contextId||"",Mt.contentEditable="false",ye.type===g.MentionType.FILE||ye.type===g.MentionType.FOLDER){const Mn=document.createElement("span");Mn.className=(0,r.default)(p.default.mention_icon,ye.type===g.MentionType.FILE?b?.getIcon(new m.URI(ye.text)):(0,_.getIcon)("folder")),Mt.appendChild(Mn),ye.type===g.MentionType.FOLDER?T?.addFolderToContext(new m.URI(ye.contextId),!0):T?.addFileToContext(new m.URI(ye.contextId),void 0,!0)}else if(ye.type===g.MentionType.CODE){const Mn=document.createElement("span");Mn.className=(0,r.default)(p.default.mention_icon,ye.kind&&(0,c.getSymbolIcon)(ye.kind)+" outline-icon"),Mt.appendChild(Mn),ye.symbol&&T?.addFileToContext(new m.URI(ye.contextId),[ye.symbol.range.startLineNumber,ye.symbol.range.endLineNumber],!0)}const ct=A?.workspace;let At=ye.text;ct&&ye.contextId&&(At=ye.contextId.replace(new m.URI(ct.uri).codeUri.fsPath,"").slice(1));const st=document.createTextNode(At);Mt.appendChild(st);const rt=document.createRange();let lt=0,yt=!1;const Ut=[];_n(D.current);for(const Mn of Ut){if(ot>=Mn.start&&ot<=Mn.end){const hi=ot-Mn.start;rt.setStart(Mn.node,hi),yt=!0}if(yt){const hi=Ce?ot+gt.length+I.secondLevelFilter.length:X(D.current);if(hi>=Mn.start&&hi<=Mn.end){const Nn=hi-Mn.start;rt.setEnd(Mn.node,Nn);break}}}if(yt){rt.deleteContents(),rt.insertNode(Mt);const Mn=document.createRange();Mn.setStartAfter(Mt),Mn.setEndAfter(Mt),Pe.removeAllRanges(),Pe.addRange(Mn);const hi=document.createTextNode("\xA0");Mn.insertNode(hi),Mn.setStartAfter(hi),Mn.setEndAfter(hi),Pe.removeAllRanges(),Pe.addRange(Mn)}O(Mn=>({...Mn,active:!1,inlineSearchActive:!1})),D.current.focus();return}}const Te=document.createElement("span");if(Te.className=p.default.mention_tag,Te.dataset.id=ye.id,Te.dataset.type=ye.type,Te.dataset.contextId=ye.contextId||"",Te.contentEditable="false",ye.type==="file"||ye.type==="folder"){const Ue=document.createElement("span");Ue.className=(0,r.default)(p.default.mention_icon,ye.type==="file"?b?.getIcon(new m.URI(ye.text)):(0,_.getIcon)("folder")),Te.appendChild(Ue)}const Ne=A?.workspace;let me=ye.text;Ne&&ye.contextId&&(me=ye.contextId.replace(new m.URI(Ne.uri).codeUri.fsPath,"").slice(1));const re=document.createTextNode(me);Te.appendChild(re);let he=0,Oe=!1;const De=[];function Fe(Ue){if(Ue.nodeType===3)De.push({node:Ue,start:he,end:he+Ue.textContent.length}),he+=Ue.textContent.length;else if(Ue.nodeType===1){const gt=Ue.childNodes;for(const ot of Array.from(gt))Fe(ot)}}Fe(D.current);const Ge=document.createRange();if(I.startPos!==null)for(const Ue of De){if(I.startPos-1>=Ue.start&&I.startPos-1<=Ue.end){const gt=I.startPos-1-Ue.start;Ge.setStart(Ue.node,gt),Oe=!0}if(Oe){const gt=Ce?I.startPos+I.filter.length-1:X(D.current);if(gt>=Ue.start&&gt<=Ue.end){const ot=gt-Ue.start;Ge.setEnd(Ue.node,ot);break}}}if(Oe){Ge.deleteContents(),Ge.insertNode(Te);const Ue=document.createRange();Ue.setStartAfter(Te),Ue.setEndAfter(Te),Pe.removeAllRanges(),Pe.addRange(Ue);const gt=document.createTextNode("\xA0");Ue.insertNode(gt),Ue.setStartAfter(gt),Ue.setEndAfter(gt),Pe.removeAllRanges(),Pe.addRange(Ue)}O(Ue=>({...Ue,active:!1})),D.current.focus()},Se=o.useCallback(ye=>{R(ye),l?.(ye)},[M,l]),_e=()=>{if(!D.current)return;const ye=D.current.innerHTML;if(!ye)return;const Ce=document.createElement("div");Ce.innerHTML=ye,Ce.querySelectorAll(`.${p.default.mention_tag}`).forEach(Te=>{var Ne;const me=Te.getAttribute("data-context-id");if(me){const re=document.createTextNode(`{{${f}${Te.getAttribute("data-type")}:${me}}}`);(Ne=Te.parentNode)===null||Ne===void 0||Ne.replaceChild(re,Te)}});let Pe=Ce.innerHTML;Pe=Pe.trim().replaceAll(t.WHITE_SPACE_TEXT," "),ye&&(L(Te=>[...Te,ye]),j(-1),V(!1)),u&&u(Pe,{model:M,...w}),D.current.innerHTML="",D.current&&(D.current.style.overflowY="hidden",D.current.style.height="auto")},ne=o.useCallback(()=>{T?.cleanFileContext()},[T]),ue=o.useCallback(()=>{d&&d()},[d]),Ie=o.useCallback(ye=>(w.buttons||[]).filter(Ce=>Ce.position===ye).map(Ce=>o.createElement(_.Popover,{key:Ce.id,overlayClassName:p.default.popover_icon,id:`ai-chat-${Ce.id}`,position:_.PopoverPosition.top,title:Ce.title},o.createElement(v.EnhanceIcon,{className:(0,r.default)(Ce.icon?(0,_.getIcon)(Ce.icon):Ce.iconClass,p.default[`${Ce.id}_logo`]),tabIndex:0,role:"button",ariaLabel:Ce.title,onClick:Ce.onClick}))),[w.buttons]),xe=o.useMemo(()=>G.files.length>0||G.folders.length>0,[G]),be=o.useCallback(ye=>w.disableModelSelector?o.createElement(_.Popover,{id:"ai-chat-model-selector",title:(0,c.localize)("aiNative.chat.modelSelector.disableTip"),position:_.PopoverPosition.top},ye):ye,[w.disableModelSelector]);return o.createElement("div",{className:p.default.input_container},I.active&&o.createElement("div",{className:p.default.mention_panel_container},o.createElement(s.MentionPanel,{items:H(),activeIndex:I.activeIndex,onSelectItem:ye=>q(ye,!0),position:{top:0,left:0},filter:I.level===0?I.filter:I.secondLevelFilter,visible:!0,level:I.level,loading:I.loading})),o.createElement("div",{className:p.default.editor_area},o.createElement("div",{ref:D,className:p.default.editor,contentEditable:!0,onInput:Z,onKeyDown:oe,onPaste:ge,onCompositionEnd:ie})),o.createElement("div",{className:p.default.footer},o.createElement("div",{className:p.default.left_control},w.showModelSelector&&be(o.createElement(_.Select,{options:w.modelOptions||[],value:M,onChange:Se,className:p.default.model_selector,size:"small",disabled:w.disableModelSelector})),Ie(g.FooterButtonPosition.LEFT)),o.createElement("div",{className:p.default.right_control},Ie(g.FooterButtonPosition.RIGHT),xe&&o.createElement(_.Popover,{overlayClassName:p.default.popover_icon,id:"ai-chat-clear-context",position:_.PopoverPosition.top,content:(0,c.localize)("aiNative.chat.context.clear")},o.createElement("div",{className:p.default.context_container,onClick:ne},o.createElement("div",{className:p.default.context_icon},o.createElement(_.Icon,{icon:"out-link"}),o.createElement(_.Icon,{icon:"close"})),o.createElement("div",{className:p.default.context_description},(0,c.formatLocalize)("aiNative.chat.context.description",G.files.length+G.folders.length)))),o.createElement(_.Popover,{overlayClassName:p.default.popover_icon,id:"ai-chat-send",position:_.PopoverPosition.top,content:E?"Stop":"Send"},E?o.createElement(v.EnhanceIcon,{wrapperClassName:p.default.stop_logo,className:(0,r.default)((0,_.getIcon)("stop"),p.default.stop_logo_icon),tabIndex:0,role:"button",ariaLabel:"Stop",onClick:ue}):o.createElement(v.EnhanceIcon,{wrapperClassName:p.default.send_logo,className:(0,r.default)((0,_.getIcon)("send-outlined"),p.default.send_logo_icon),tabIndex:0,role:"button",onClick:_e,ariaLabel:"Send"})))))};t.MentionInput=a},40167:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MentionItem=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(81878),_=n.__importDefault(e(97599)),v=({item:m,isActive:p,onClick:s})=>o.createElement("div",{className:`${_.default.mention_item} ${p?_.default.active:""}`,onClick:()=>s(m)},o.createElement("div",{className:_.default.mention_item_left},o.createElement(c.Icon,{className:(0,r.default)(_.default.mention_item_icon,m.icon)}),o.createElement("span",{className:_.default.mention_item_text},m.text),o.createElement("span",{className:_.default.mention_item_description},m.description)),m.getItems&&o.createElement(c.Icon,{className:(0,r.default)(_.default.mention_item_right,(0,c.getIcon)("arrowright"))}));t.MentionItem=v},80732:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MentionPanel=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=n.__importDefault(e(97599)),c=e(40167),_=({items:v,activeIndex:m,onSelectItem:p,position:s,filter:g,visible:a,level:h,loading:u=!1})=>{const d=r.useRef(null);if(r.useEffect(()=>{if(a&&d.current){const l=d.current.querySelector(`.${o.default.mention_item}.${o.default.active}`);l&&l.scrollIntoView({block:"nearest"})}},[m,a]),!a)return null;const f=(()=>{let l=v;if(h===0){if(g&&g.length>1){const y=g.substring(1).toLowerCase();l=v.filter(b=>b.text.toLowerCase().includes(y))}}else g&&g.length>0&&(l=v.filter(y=>y.text.toLowerCase().includes(g.toLowerCase())));return l})();return h===0&&f.length===0?null:r.createElement("div",{ref:d,className:o.default.mention_panel,style:{top:s.top,left:s.left}},u&&r.createElement("div",{className:o.default.loading_bar}),v.length>0?r.createElement("ul",{className:o.default.mention_list},v.map((l,y)=>r.createElement(c.MentionItem,{key:l.id,item:l,isActive:y===m,onClick:()=>p(l,!0)}))):r.createElement("div",{className:o.default.no_results},u?"\u6B63\u5728\u641C\u7D22...":"\u65E0\u5339\u914D\u7ED3\u679C"))};t.MentionPanel=_},44692:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MENTION_KEYWORD=t.MentionType=t.FooterButtonPosition=void 0;var e;(function(r){r.LEFT="left",r.RIGHT="right"})(e||(t.FooterButtonPosition=e={}));var n;(function(r){r.FILE="file",r.FOLDER="folder",r.CODE="code"})(n||(t.MentionType=n={})),t.MENTION_KEYWORD="@"},78048:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractIcon=t.createMessageByAI=t.createMessageByUser=void 0;const n=e(41869),r="",o=m=>({...m,type:"text",className:`${m.position==="left"?"rce-ai-msg":"rce-user-msg"} ${m.className?m.className:""}`}),c=(m,p)=>o({...m,position:"right",title:r,className:p,role:1});t.createMessageByUser=c;const _=(m,p)=>o({...m,position:"left",title:"",className:p,role:2});t.createMessageByAI=_;const v=m=>{let{title:p}=m;const{message:s,tooltip:g}=m;let a=m.icon||"";if(!p)return{icon:a,title:s,message:s,tooltip:g};const h=p.match(/^\$\(([a-z.]+\/)?([a-z0-9-]+)(~[a-z]+)?\)/i);if(h){const[u,d,E,f]=h,l=d?d.slice(0,-1):n.CODICON_OWNER;a=(0,n.getExternalIcon)(E,l),f&&(a+=` ${f.slice(1)}`),p=p.slice(u.length)}return{icon:a,title:p,message:s,tooltip:g}};t.extractIcon=v},19957:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LlmContextContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(46044);let _=class{initialize(){this.llmContextService.startAutoCollection()}};t.LlmContextContribution=_,n.__decorate([(0,r.Autowired)(c.LLMContextServiceToken),n.__metadata("design:type",Object)],_.prototype,"llmContextService",void 0),t.LlmContextContribution=_=n.__decorate([(0,o.Domain)(o.ClientAppContribution)],_)},63536:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LLMContextServiceImpl=void 0;const n=e(85608),r=e(76003),o=e(11050),c=e(25234),_=e(19083),v=e(86560),m=e(96689),p=e(82196),s=e(14951),g=e(6287),a=e(20868);let h=class extends c.WithEventBus{constructor(){super(...arguments),this.isAutoCollecting=!1,this.contextVersion=0,this.maxAttachFilesLimit=10,this.maxAttachFoldersLimit=10,this.maxViewFilesLimit=20,this.attachedFiles=[],this.attachedFolders=[],this.recentlyViewFiles=[],this.onDidContextFilesChangeEmitter=new v.Emitter,this.hasUserManualReference=!1,this.onDidContextFilesChangeEvent=this.onDidContextFilesChangeEmitter.event}addFileToList(d,E,f){const l=E.findIndex(y=>{var b,A,S,w;return y.uri.toString()===d.uri.toString()&&((b=y.selection)===null||b===void 0?void 0:b[0])===((A=d.selection)===null||A===void 0?void 0:A[0])&&((S=y.selection)===null||S===void 0?void 0:S[1])===((w=d.selection)===null||w===void 0?void 0:w[1])});l>-1&&E.splice(l,1),E.push(d),E.length>f&&E.shift()}addFolderToList(d,E,f){const l=E.findIndex(y=>y.uri.toString()===d.uri.toString());l>-1&&E.splice(l,1),E.push(d),E.length>f&&E.shift()}addFileToContext(d,E,f=!1){if(!d)return;const l={uri:d,selection:E},y=f?this.attachedFiles:this.recentlyViewFiles,b=f?this.maxAttachFilesLimit:this.maxViewFilesLimit;f&&(this.docModelManager.createModelReference(d),this.hasUserManualReference=!0),this.addFileToList(l,y,b),this.notifyContextChange()}addFolderToContext(d){if(!d)return;const E={uri:d};this.addFolderToList(E,this.attachedFolders,this.maxAttachFoldersLimit),this.notifyContextChange()}notifyContextChange(){this.onDidContextFilesChangeEmitter.fire(this.getAllContextFiles())}cleanFileContext(){this.attachedFiles=[],this.attachedFolders=[],this.hasUserManualReference=!1,this.notifyContextChange()}getAllContextFiles(){return{viewed:this.recentlyViewFiles,attached:this.attachedFiles,attachedFolders:this.attachedFolders,version:this.contextVersion++}}removeFileFromContext(d,E=!1){const f=E?this.attachedFiles:this.recentlyViewFiles,l=f.findIndex(y=>y.uri.toString()===d.toString());l>-1&&f.splice(l,1),E&&this.attachedFiles.length===0&&(this.hasUserManualReference=!1),this.notifyContextChange()}startAutoCollection(){this.isAutoCollecting||(this.isAutoCollecting=!0,this.startAutoCollectionInternal())}startAutoCollectionInternal(){this.disposables.push(this.eventBus.on(m.EditorDocumentModelCreationEvent,d=>{d.payload.uri.scheme==="file"&&this.addFileToContext(d.payload.uri,void 0,!1)})),this.disposables.push(this.eventBus.on(m.EditorDocumentModelRemovalEvent,d=>{d.payload.scheme==="file"&&this.removeFileFromContext(d.payload,!1)})),this.disposables.push(this.eventBus.on(m.EditorDocumentModelSavedEvent,d=>{d.payload.scheme})),this.disposables.push(this.eventBus.on(p.EditorSelectionChangeEvent,d=>{if(d.payload.selections.length>0){const E=[d.payload.selections[0].selectionStartLineNumber,d.payload.selections[0].positionLineNumber].sort();this.hasUserManualReference||(E[0]===E[1]?this.addFileToContext(d.payload.editorUri,void 0,!1):this.addFileToContext(d.payload.editorUri,E.sort((f,l)=>f-l),!1))}}))}stopAutoCollection(){this.dispose()}async serialize(){const d=this.getAllContextFiles(),E=v.URI.file(this.appConfig.workspaceDir);return{recentlyViewFiles:this.serializeRecentlyViewFiles(d.viewed,E),attachedFiles:this.serializeAttachedFiles(d.attached,E),attachedFolders:await this.serializeAttachedFolders(d.attachedFolders,E)}}async serializeAttachedFolders(d,E){const f=Array.from(new Set(d.map(l=>l.uri.toString())));return Promise.all(f.map(async l=>{var y;const b=new v.URI(l);return`\`\`\`
31458
31458
  ${((y=E.relative(b))===null||y===void 0?void 0:y.toString())||"/"}
31459
31459
  ${(await this.getPartiaFolderStructure(b.codeUri.fsPath)).map(S=>`- ${S}`).join(`
31460
31460
  `)}
31461
31461
  \`\`\`
31462
- `}))}async getPartiaFolderStructure(d,E=2){const f=[];try{const l=await this.fileService.getFileStat(d);for(const y of l?.children||[]){const b=new v.URI(d).relative(new v.URI(y.uri)).toString();if(y.isSymbolicLink){const A=await this.fileService.getFileStat(y.realUri||y.uri);A?f.push(`${b} -> ${A} (symbolic link)`):f.push(`${b} (broken symbolic link)`);continue}if(y.type===s.FileType.Directory){if(f.push(`${b}/`),E>1){const A=await this.getPartiaFolderStructure(y.uri,E-1);f.push(...A.map(S=>`${b}/${S}`))}}else y.type===s.FileType.File&&f.push(b)}}catch{return f}return f}serializeRecentlyViewFiles(d,E){return d.map(f=>{var l;return((l=E.relative(f.uri))===null||l===void 0?void 0:l.toString())||f.uri.parent.toString()}).filter(Boolean)}serializeAttachedFiles(d,E){return d.map(f=>this.serializeAttachedFile(f,E)).filter(Boolean)}serializeAttachedFile(d,E){try{const f=this.docModelManager.getModelReference(d.uri);return f?{content:f.instance.getText(d.selection&&new a.Range(d.selection[0],0,d.selection[1]+1,1/0)),lineErrors:this.getFileErrors(d.uri),path:E.relative(d.uri).toString(),language:f.instance.languageId}:null}catch{return null}}getFileErrors(d){return this.markerService.getManager().getMarkers({resource:d.toString(),severities:_.MarkerSeverity.Error}).map(E=>E.message)}};t.LLMContextServiceImpl=h,n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],h.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(m.IEditorDocumentModelService),n.__metadata("design:type",Object)],h.prototype,"docModelManager",void 0),n.__decorate([(0,r.Autowired)(g.IMarkerService),n.__metadata("design:type",Object)],h.prototype,"markerService",void 0),n.__decorate([(0,r.Autowired)(s.IFileServiceClient),n.__metadata("design:type",Object)],h.prototype,"fileService",void 0),t.LLMContextServiceImpl=h=n.__decorate([(0,r.Injectable)()],h)},99906:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BaseAIMonacoEditorController=t.BaseAIMonacoContribHandler=void 0;const r=e(85608),o=e(76003),c=e(43718);class _ extends c.Disposable{constructor(){super(),this.allowAnyScheme=!1,this.allowedSchemes=[c.Schemes.file],this.sessionDisposable=new c.Disposable}shouldHandle(p){return!!(this.allowAnyScheme||this.allowedSchemes.includes(p.scheme))}unload(){this.sessionDisposable.dispose(),this.sessionDisposable=new c.Disposable}load(){this.unload(),this.sessionDisposable.addDispose(this.doContribute())}mountEditor(p){return this.monacoEditor=p,{dispose:()=>{this.monacoEditor=void 0}}}}t.BaseAIMonacoContribHandler=_;let v=n=class extends c.Disposable{static get(p){return p.getContribution(n.ID)}get token(){return this.cancellationTokenSource.token}cancelToken(){this.cancellationTokenSource.cancel(),this.cancellationTokenSource=new c.CancellationTokenSource}constructor(p,s){super(),this.injector=p,this.monacoEditor=s,this.cancellationTokenSource=new c.CancellationTokenSource,this.featureDisposable=new c.Disposable,this.allowedSchemes=[c.Schemes.file,c.Schemes.notebookCell];const g=new c.Disposable;let a=!1;this.addDispose(this.monacoEditor.onDidChangeModel(({newModelUrl:u})=>{if(!u)return;const d=this.allowedSchemes.includes(u.scheme);d!==a&&(a=!!d,a?g.addDispose(this.mount()):g.dispose())}));const h=s.getModel();h&&this.allowedSchemes.includes(h.uri.scheme)&&(a=!0,g.addDispose(this.mount())),this.addDispose(g)}};t.BaseAIMonacoEditorController=v,t.BaseAIMonacoEditorController=v=n=r.__decorate([r.__param(0,(0,o.Optional)()),r.__param(1,(0,o.Optional)()),r.__metadata("design:paramtypes",[o.Injector,Object])],v)},72713:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AICodeActionContribution=void 0;const n=e(85608),r=e(76003),o=e(57925),c=e(43718),_=e(89132);let v=class extends c.Disposable{registerCommands(p){p.registerCommand(o.AI_CODE_ACTION,{execute:(s,g)=>{this.codeActionService.fireCodeActionRun(g,s)}})}};t.AICodeActionContribution=v,n.__decorate([(0,r.Autowired)(_.CodeActionService),n.__metadata("design:type",_.CodeActionService)],v.prototype,"codeActionService",void 0),t.AICodeActionContribution=v=n.__decorate([(0,c.Domain)(c.CommandContribution)],v)},79559:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionSingleHandler=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),_=n.__importStar(e(20868)),v=e(52902),m=e(77714),p=e(85679),s=e(99906),g=e(89132);let a=class extends s.BaseAIMonacoContribHandler{constructor(){super(),this.inlineChatActionEnabled=this.preferenceService.getValid(c.AINativeSettingSectionsId.InlineChatCodeActionEnabled,!0),this.addDispose(this.preferenceService.onSpecificPreferenceChange(c.AINativeSettingSectionsId.InlineChatCodeActionEnabled,({newValue:u})=>{this.inlineChatActionEnabled=u,u?this.load():this.unload()}))}doContribute(){return v.monacoApi.languages.registerCodeActionProvider("*",{provideCodeActions:async(u,d)=>{if(!this.inlineChatActionEnabled)return;const E=u.getLineContent(d.startLineNumber);if(E?.trim()===m.empty||!this.shouldHandle(u.uri))return;const{languageParserService:f,codeActionService:l}=this,y=u.getLanguageId(),b=f.createParser(y);if(!b)return;const A=l.getCodeActions();if(!A||A.length===0)return;const S=d.getStartPosition();if(!S)return;function w(I){return{actions:A.map(O=>{const M={};O.command&&(M.id=O.command.id,M.arguments=[I.range,...O.command.arguments]);let R=O.title;switch(I.infoCategory){case"function":R=R+` for Function: ${I.name}`}return{...O,title:R,ranges:[I.range],command:M}}),dispose(){}}}const T=await b.provideCodeBlockInfo(u,S);if(T)return w(T);if(u.getLineLength(S.lineNumber)===0&&this.monacoEditor){const I=this.monacoEditor.getVisibleRanges();if(I.length===0)return;const O=new _.Range(S.lineNumber,0,I[0].endLineNumber+1,0),M=await b.provideCodeBlockInfoInRange(u,O);if(M)return w(M)}}})}};t.CodeActionSingleHandler=a,n.__decorate([(0,r.Autowired)(g.CodeActionService),n.__metadata("design:type",g.CodeActionService)],a.prototype,"codeActionService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],a.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(p.LanguageParserService),n.__metadata("design:type",p.LanguageParserService)],a.prototype,"languageParserService",void 0),t.CodeActionSingleHandler=a=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],a)},89132:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionService=void 0;const n=e(85608),r=e(76003),o=e(57925),c=e(43718);let _=class extends c.Disposable{constructor(){super(...arguments),this.codeActionsMap=new Map,this._onCodeActionRun=new c.Emitter,this.onCodeActionRun=this._onCodeActionRun.event}dispose(){super.dispose(),this.codeActionsMap.clear()}fireCodeActionRun(m,p){this._onCodeActionRun.fire({id:m,range:p})}getCodeActions(){return Array.from(this.codeActionsMap.values())}deleteCodeActionById(m){this.codeActionsMap.delete(m)}registerCodeAction(m){var p;const{codeAction:s,id:g}=m;if(!s)return;const a={title:s.title||m.name,isAI:!0,isPreferred:(p=s.isPreferred)!==null&&p!==void 0?p:!0,kind:s.kind||"InlineChat",disabled:s.disabled,command:{id:o.AI_CODE_ACTION.id,title:s.title||m.name,arguments:[m.id]}};this.codeActionsMap.set(g,a)}};t.CodeActionService=_,t.CodeActionService=_=n.__decorate([(0,r.Injectable)()],_)},57232:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AIInlineCompletionsProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),_=n.__importStar(e(20868)),v=e(687),m=e(71863),p={line:-1,column:-1,last:null};class s{constructor(){this.queue=[]}addReq(h){this.queue.push(h)}runReq(){return this.queue.length===0?void 0:this.queue.pop().run()}cancelReq(){this.queue.length!==0&&(this.queue.forEach(h=>{h.cancelRequest()}),this.queue=[])}}let g=class extends c.WithEventBus{constructor(){super(),this.inlineComletionsDebounceTime=this.preferenceService.getValid(c.AINativeSettingSectionsId.IntelligentCompletionsDebounceTime,150),this.addDispose(this.preferenceService.onSpecificPreferenceChange(c.AINativeSettingSectionsId.IntelligentCompletionsDebounceTime,({newValue:h})=>{this.inlineComletionsDebounceTime=h})),this.mount()}mount(){this.isManual=!1,this.isDelEvent=!1,this.reqStack=new s}setVisibleCompletion(h){this.aiCompletionsService.setVisibleCompletion(h)}hideStatusBarItem(){this.aiCompletionsService.hideStatusBarItem()}cancelRequest(){this.aiCompletionsService.cancelRequest(),this.reqStack&&this.reqStack.cancelReq()}async provideInlineCompletionItems(h,u,d,E){if(d.triggerKind===_.InlineCompletionTriggerKind.Automatic&&p.column===u.column&&p.line===u.lineNumber&&p.last!==void 0)return p.column=-1,p.line=-1,p.last;this.cancelRequest(),this.hideStatusBarItem();const f=this.isManual;if(this.isDelEvent&&!f)return;this.updateIsManual(!1);const l=this.injector.get(v.InlineCompletionRequestTask,[h,u,E]);if(this.reqStack.addReq(l),f||await(0,c.raceCancellation)((0,c.sleep)(this.inlineComletionsDebounceTime),E),E?.isCancellationRequested)return;const y=await this.reqStack.runReq();if(y)return p.column=u.column,p.line=u.lineNumber,p.last={items:y},p.last}updateIsManual(h){this.isManual=h}};t.AIInlineCompletionsProvider=g,n.__decorate([(0,r.Autowired)(m.AICompletionsService),n.__metadata("design:type",m.AICompletionsService)],g.prototype,"aiCompletionsService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],g.prototype,"injector",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],g.prototype,"preferenceService",void 0),t.AIInlineCompletionsProvider=g=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],g)},2409:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineBasedCompletionModelConfigs=t.DEFAULT_COMPLECTION_MODEL=void 0;const n=e(71585);t.DEFAULT_COMPLECTION_MODEL={maxPromptTokenSize:3e3,maxExecuteTimeMillSecond:1e3,tokenizerName:n.TokenizerName.cl100k_base,wishList:{afterCursor:{enable:!0,attributeName:n.WishListAttributeName.afterCursor,extOption:{suffixPercent:.25,minBlockSize:25},priority:1,strategy:n.StrategyType.InterceptBasedOnLine},beforeCursor:{enable:!0,attributeName:n.WishListAttributeName.beforeCursor,extOption:{prefixPercent:.75,minBlockSize:75},priority:0,strategy:n.StrategyType.InterceptBasedOnLine},importedFile:{attributeName:n.WishListAttributeName.importedFile,enable:!0,extOption:{maxTime:200,importedFilesMaxNum:10,language:["typescript"],maxPercent:.8,patternPrefix:"Import Files from ",patternSuffix:`
31462
+ `}))}async getPartiaFolderStructure(d,E=2){const f=[];try{const l=await this.fileService.getFileStat(d);for(const y of l?.children||[]){const b=new v.URI(d).relative(new v.URI(y.uri)).toString();if(y.isSymbolicLink){const A=await this.fileService.getFileStat(y.realUri||y.uri);A?f.push(`${b} -> ${A} (symbolic link)`):f.push(`${b} (broken symbolic link)`);continue}if(y.type===s.FileType.Directory){if(f.push(`${b}/`),E>1){const A=await this.getPartiaFolderStructure(y.uri,E-1);f.push(...A.map(S=>`${b}/${S}`))}}else y.type===s.FileType.File&&f.push(b)}}catch{return f}return f}serializeRecentlyViewFiles(d,E){return d.map(f=>{var l;return((l=E.relative(f.uri))===null||l===void 0?void 0:l.toString())||f.uri.parent.toString()}).filter(Boolean)}serializeAttachedFiles(d,E){return d.map(f=>this.serializeAttachedFile(f,E)).filter(Boolean)}serializeAttachedFile(d,E){try{const f=this.docModelManager.getModelReference(d.uri);return f?{content:f.instance.getText(d.selection&&new a.Range(d.selection[0],0,d.selection[1],1/0)),lineErrors:this.getFileErrors(d.uri),path:E.relative(d.uri).toString(),language:f.instance.languageId}:null}catch{return null}}getFileErrors(d){return this.markerService.getManager().getMarkers({resource:d.toString(),severities:_.MarkerSeverity.Error}).map(E=>E.message)}};t.LLMContextServiceImpl=h,n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],h.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(m.IEditorDocumentModelService),n.__metadata("design:type",Object)],h.prototype,"docModelManager",void 0),n.__decorate([(0,r.Autowired)(g.IMarkerService),n.__metadata("design:type",Object)],h.prototype,"markerService",void 0),n.__decorate([(0,r.Autowired)(s.IFileServiceClient),n.__metadata("design:type",Object)],h.prototype,"fileService",void 0),t.LLMContextServiceImpl=h=n.__decorate([(0,r.Injectable)()],h)},99906:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BaseAIMonacoEditorController=t.BaseAIMonacoContribHandler=void 0;const r=e(85608),o=e(76003),c=e(43718);class _ extends c.Disposable{constructor(){super(),this.allowAnyScheme=!1,this.allowedSchemes=[c.Schemes.file],this.sessionDisposable=new c.Disposable}shouldHandle(p){return!!(this.allowAnyScheme||this.allowedSchemes.includes(p.scheme))}unload(){this.sessionDisposable.dispose(),this.sessionDisposable=new c.Disposable}load(){this.unload(),this.sessionDisposable.addDispose(this.doContribute())}mountEditor(p){return this.monacoEditor=p,{dispose:()=>{this.monacoEditor=void 0}}}}t.BaseAIMonacoContribHandler=_;let v=n=class extends c.Disposable{static get(p){return p.getContribution(n.ID)}get token(){return this.cancellationTokenSource.token}cancelToken(){this.cancellationTokenSource.cancel(),this.cancellationTokenSource=new c.CancellationTokenSource}constructor(p,s){super(),this.injector=p,this.monacoEditor=s,this.cancellationTokenSource=new c.CancellationTokenSource,this.featureDisposable=new c.Disposable,this.allowedSchemes=[c.Schemes.file,c.Schemes.notebookCell];const g=new c.Disposable;let a=!1;this.addDispose(this.monacoEditor.onDidChangeModel(({newModelUrl:u})=>{if(!u)return;const d=this.allowedSchemes.includes(u.scheme);d!==a&&(a=!!d,a?g.addDispose(this.mount()):g.dispose())}));const h=s.getModel();h&&this.allowedSchemes.includes(h.uri.scheme)&&(a=!0,g.addDispose(this.mount())),this.addDispose(g)}};t.BaseAIMonacoEditorController=v,t.BaseAIMonacoEditorController=v=n=r.__decorate([r.__param(0,(0,o.Optional)()),r.__param(1,(0,o.Optional)()),r.__metadata("design:paramtypes",[o.Injector,Object])],v)},72713:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AICodeActionContribution=void 0;const n=e(85608),r=e(76003),o=e(57925),c=e(43718),_=e(89132);let v=class extends c.Disposable{registerCommands(p){p.registerCommand(o.AI_CODE_ACTION,{execute:(s,g)=>{this.codeActionService.fireCodeActionRun(g,s)}})}};t.AICodeActionContribution=v,n.__decorate([(0,r.Autowired)(_.CodeActionService),n.__metadata("design:type",_.CodeActionService)],v.prototype,"codeActionService",void 0),t.AICodeActionContribution=v=n.__decorate([(0,c.Domain)(c.CommandContribution)],v)},79559:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionSingleHandler=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),_=n.__importStar(e(20868)),v=e(52902),m=e(77714),p=e(85679),s=e(99906),g=e(89132);let a=class extends s.BaseAIMonacoContribHandler{constructor(){super(),this.inlineChatActionEnabled=this.preferenceService.getValid(c.AINativeSettingSectionsId.InlineChatCodeActionEnabled,!0),this.addDispose(this.preferenceService.onSpecificPreferenceChange(c.AINativeSettingSectionsId.InlineChatCodeActionEnabled,({newValue:u})=>{this.inlineChatActionEnabled=u,u?this.load():this.unload()}))}doContribute(){return v.monacoApi.languages.registerCodeActionProvider("*",{provideCodeActions:async(u,d)=>{if(!this.inlineChatActionEnabled)return;const E=u.getLineContent(d.startLineNumber);if(E?.trim()===m.empty||!this.shouldHandle(u.uri))return;const{languageParserService:f,codeActionService:l}=this,y=u.getLanguageId(),b=f.createParser(y);if(!b)return;const A=l.getCodeActions();if(!A||A.length===0)return;const S=d.getStartPosition();if(!S)return;function w(I){return{actions:A.map(O=>{const M={};O.command&&(M.id=O.command.id,M.arguments=[I.range,...O.command.arguments]);let R=O.title;switch(I.infoCategory){case"function":R=R+` for Function: ${I.name}`}return{...O,title:R,ranges:[I.range],command:M}}),dispose(){}}}const T=await b.provideCodeBlockInfo(u,S);if(T)return w(T);if(u.getLineLength(S.lineNumber)===0&&this.monacoEditor){const I=this.monacoEditor.getVisibleRanges();if(I.length===0)return;const O=new _.Range(S.lineNumber,0,I[0].endLineNumber+1,0),M=await b.provideCodeBlockInfoInRange(u,O);if(M)return w(M)}}})}};t.CodeActionSingleHandler=a,n.__decorate([(0,r.Autowired)(g.CodeActionService),n.__metadata("design:type",g.CodeActionService)],a.prototype,"codeActionService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],a.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(p.LanguageParserService),n.__metadata("design:type",p.LanguageParserService)],a.prototype,"languageParserService",void 0),t.CodeActionSingleHandler=a=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],a)},89132:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionService=void 0;const n=e(85608),r=e(76003),o=e(57925),c=e(43718);let _=class extends c.Disposable{constructor(){super(...arguments),this.codeActionsMap=new Map,this._onCodeActionRun=new c.Emitter,this.onCodeActionRun=this._onCodeActionRun.event}dispose(){super.dispose(),this.codeActionsMap.clear()}fireCodeActionRun(m,p){this._onCodeActionRun.fire({id:m,range:p})}getCodeActions(){return Array.from(this.codeActionsMap.values())}deleteCodeActionById(m){this.codeActionsMap.delete(m)}registerCodeAction(m){var p;const{codeAction:s,id:g}=m;if(!s)return;const a={title:s.title||m.name,isAI:!0,isPreferred:(p=s.isPreferred)!==null&&p!==void 0?p:!0,kind:s.kind||"InlineChat",disabled:s.disabled,command:{id:o.AI_CODE_ACTION.id,title:s.title||m.name,arguments:[m.id]}};this.codeActionsMap.set(g,a)}};t.CodeActionService=_,t.CodeActionService=_=n.__decorate([(0,r.Injectable)()],_)},57232:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AIInlineCompletionsProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),_=n.__importStar(e(20868)),v=e(687),m=e(71863),p={line:-1,column:-1,last:null};class s{constructor(){this.queue=[]}addReq(h){this.queue.push(h)}runReq(){return this.queue.length===0?void 0:this.queue.pop().run()}cancelReq(){this.queue.length!==0&&(this.queue.forEach(h=>{h.cancelRequest()}),this.queue=[])}}let g=class extends c.WithEventBus{constructor(){super(),this.inlineComletionsDebounceTime=this.preferenceService.getValid(c.AINativeSettingSectionsId.IntelligentCompletionsDebounceTime,150),this.addDispose(this.preferenceService.onSpecificPreferenceChange(c.AINativeSettingSectionsId.IntelligentCompletionsDebounceTime,({newValue:h})=>{this.inlineComletionsDebounceTime=h})),this.mount()}mount(){this.isManual=!1,this.isDelEvent=!1,this.reqStack=new s}setVisibleCompletion(h){this.aiCompletionsService.setVisibleCompletion(h)}hideStatusBarItem(){this.aiCompletionsService.hideStatusBarItem()}cancelRequest(){this.aiCompletionsService.cancelRequest(),this.reqStack&&this.reqStack.cancelReq()}async provideInlineCompletionItems(h,u,d,E){if(d.triggerKind===_.InlineCompletionTriggerKind.Automatic&&p.column===u.column&&p.line===u.lineNumber&&p.last!==void 0)return p.column=-1,p.line=-1,p.last;this.cancelRequest(),this.hideStatusBarItem();const f=this.isManual;if(this.isDelEvent&&!f)return;this.updateIsManual(!1);const l=this.injector.get(v.InlineCompletionRequestTask,[h,u,E]);if(this.reqStack.addReq(l),f||await(0,c.raceCancellation)((0,c.sleep)(this.inlineComletionsDebounceTime),E),E?.isCancellationRequested)return;const y=await this.reqStack.runReq();if(y)return p.column=u.column,p.line=u.lineNumber,p.last={items:y},p.last}updateIsManual(h){this.isManual=h}};t.AIInlineCompletionsProvider=g,n.__decorate([(0,r.Autowired)(m.AICompletionsService),n.__metadata("design:type",m.AICompletionsService)],g.prototype,"aiCompletionsService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],g.prototype,"injector",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],g.prototype,"preferenceService",void 0),t.AIInlineCompletionsProvider=g=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],g)},2409:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineBasedCompletionModelConfigs=t.DEFAULT_COMPLECTION_MODEL=void 0;const n=e(71585);t.DEFAULT_COMPLECTION_MODEL={maxPromptTokenSize:3e3,maxExecuteTimeMillSecond:1e3,tokenizerName:n.TokenizerName.cl100k_base,wishList:{afterCursor:{enable:!0,attributeName:n.WishListAttributeName.afterCursor,extOption:{suffixPercent:.25,minBlockSize:25},priority:1,strategy:n.StrategyType.InterceptBasedOnLine},beforeCursor:{enable:!0,attributeName:n.WishListAttributeName.beforeCursor,extOption:{prefixPercent:.75,minBlockSize:75},priority:0,strategy:n.StrategyType.InterceptBasedOnLine},importedFile:{attributeName:n.WishListAttributeName.importedFile,enable:!0,extOption:{maxTime:200,importedFilesMaxNum:10,language:["typescript"],maxPercent:.8,patternPrefix:"Import Files from ",patternSuffix:`
31463
31463
  `},priority:3,strategy:n.StrategyType.InterceptBasedOnLine},languageMarker:{attributeName:n.WishListAttributeName.languageMarker,enable:!0,extOption:{language:["python","html"],maxPercent:0},priority:4,strategy:n.StrategyType.InterceptBasedOnLine},pathMarker:{attributeName:n.WishListAttributeName.pathMarker,enable:!0,priority:1,strategy:n.StrategyType.InterceptBasedOnLine},similarFile:{attributeName:n.WishListAttributeName.similarFile,enable:!0,extOption:{maxTime:200,fileMaxLength:5e3,maxPercent:.3,neighboringTabsMaxNum:20,neighboringTabsOption:[n.NeighboringTabsOption.openFileHistory,n.NeighboringTabsOption.editFileRecent,n.NeighboringTabsOption.editFileHistory],patternPrefix:"Compare this snippet from ",patternSuffix:`
31464
31464
  `,similarityThreshold:.6,snippetMaxNum:4,windowSize:60,snippetSelectionMode:n.SnippetSelectionOption.BestMatch},priority:2,strategy:n.StrategyType.InterceptBasedOnLine}}},t.lineBasedCompletionModelConfigs={completionPromptMaxLineSize:1024,completionSuffixMaxLineSize:500}},72991:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionsController=void 0;const r=e(85608).__importDefault(e(12784)),o=e(57925),c=e(43718),_=e(57517),v=e(20868),m=e(52902),p=e(77714),s=e(37355),g=e(19413),a=e(77659),h=e(99906);class u extends h.BaseAIMonacoEditorController{constructor(){super(...arguments),this.sequencer=new c.Sequencer}static get(E){return E.getContribution(u.ID)}get eventBus(){return this.injector.get(c.IEventBus)}get commandService(){return this.injector.get(c.CommandService)}get aiInlineCompletionsProvider(){return this.injector.get(g.IAIInlineCompletionsProvider)}get intelligentCompletionsRegistry(){return this.injector.get(c.IntelligentCompletionsRegistryToken)}mount(){this.aiNativeContextKey=this.injector.get(a.AINativeContextKey,[this.monacoEditor.contextKeyService]);const E=()=>{this.aiInlineCompletionsProvider.hideStatusBarItem();const b=this.monacoEditor.getSelection();b&&(b.startLineNumber!==b.endLineNumber||b.startColumn!==b.endColumn)&&this.aiInlineCompletionsProvider.cancelRequest()},f=(0,r.default)(E,50,{maxWait:200,leading:!0,trailing:!0}),l=new Set([s.InlineCompletionContextKeys.inlineSuggestionVisible.key]);this.featureDisposable.addDispose(this.monacoEditor.contextKeyService.onDidChangeContext(b=>{b.affectsSome(l)&&!s.InlineCompletionContextKeys.inlineSuggestionVisible.getValue(this.monacoEditor.contextKeyService)&&this.preDidShowItems&&(0,c.runWhenIdle)(()=>{this.preDidShowItems=void 0,this.commandService.executeCommand(o.AI_INLINE_COMPLETION_VISIBLE.id,!1)})})),this.featureDisposable.addDispose(this.eventBus.on(_.EditorSelectionChangeEvent,b=>{b.payload.source==="mouse"?f():(f.cancel(),E())})),this.featureDisposable.addDispose(this.monacoEditor.onDidChangeModelContent(b=>{const A=b.changes;for(const S of A)S.text===p.empty?(this.aiInlineCompletionsProvider.isDelEvent=!0,this.aiInlineCompletionsProvider.cancelRequest()):this.aiInlineCompletionsProvider.isDelEvent=!1})),this.featureDisposable.addDispose(this.monacoEditor.onDidBlurEditorText(()=>{this.commandService.executeCommand(o.AI_INLINE_COMPLETION_VISIBLE.id,!1)}));let y;return this.featureDisposable.addDispose(m.monacoApi.languages.registerInlineCompletionsProvider("*",{groupId:"ai-native-intelligent-completions",provideInlineCompletions:async(b,A,S,w)=>{if(this.preDidShowItems){y||(y=A.delta(0,-1));const D=b.getValueInRange(v.Range.fromPositions(y,A));if(this.preDidShowItems.items[0].insertText.toString().startsWith(D))return this.preDidShowItems;y=void 0}return await this.sequencer.queue(()=>this.aiInlineCompletionsProvider.provideInlineCompletionItems(b,A,S,w))},freeInlineCompletions(){},handleItemDidShow:b=>{b.items.length>0&&(this.preDidShowItems=b,this.aiInlineCompletionsProvider.setVisibleCompletion(!0))}})),this.featureDisposable}async fetchProvider(E){const f=this.intelligentCompletionsRegistry.getInlineCompletionsProvider();if(!f||this.aiNativeContextKey.codeEditsIsVisible.get())return;const y=this.monacoEditor.getPosition();return await f(this.monacoEditor,y,E,this.token)}}t.InlineCompletionsController=u,u.ID="editor.contrib.ai.inline.completions"},687:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionRequestTask=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(57925),_=e(43718),v=e(52664),m=e(54414),p=e(51553),s=n.__importStar(e(20868)),g=e(74292),a=e(72991),h=e(64016),u=e(74151),d=e(71863),E=y=>{const b=new Set;for(const A of y)b.add(A);return b},f=(y,b)=>{let A="";const S=E(y);for(const w of b)(w===" "||!S.has(w))&&(A+=w);return A};let l=class extends _.Disposable{constructor(b,A,S){super(),this.model=b,this.position=A,this.token=S,this._disposables=new _.DisposableStore,this.isEnablePromptEngineering=!0,this.isCancelFlag=!1,this.isEnablePromptEngineering=this.preferenceService.getValid(_.AINativeSettingSectionsId.IntelligentCompletionsPromptEngineeringEnabled,this.isEnablePromptEngineering),this._disposables.add(this.preferenceService.onSpecificPreferenceChange(_.AINativeSettingSectionsId.IntelligentCompletionsPromptEngineeringEnabled,({newValue:w})=>{this.isEnablePromptEngineering=w}))}async constructRequestBean(b,A){const S=u.lineBasedPromptProcessor.processPrefix(b.prefix),w=u.lineBasedPromptProcessor.processSuffix(b.suffix);return{prompt:S,suffix:w,sessionId:(0,_.uuid)(),language:b.language,fileUrl:b.fileUrl,workspaceDir:b.workspaceDir}}async run(){const{model:b,position:A,token:S}=this;if(!b)return[];if(S.isCancellationRequested)return[];if(this.isCancelFlag)return[];const w=new s.Range(0,0,A.lineNumber,A.column);let T=b.getValueInRange(w);T===""&&(T+=`
31465
31465
  `);const D=new s.Range(A.lineNumber,A.column,b.getLineCount(),Number.MAX_SAFE_INTEGER),I=b.getValueInRange(D),O=b.getLanguageId(),M={fileUrl:b.uri.fsPath,filename:b.uri.toString().split("/").pop(),language:O,prefix:T,suffix:I,uri:_.URI.from(b.uri),workspaceDir:this.appConfig.workspaceDir},R=await this.constructRequestBean(M,S);if(this.isCancelFlag)return[];const P=Date.now();let k;const F=this.promptCache.getCache(R),L=F?.relationId||this.aiReporter.start(v.AIServiceType.Completion,{message:v.AIServiceType.Completion});if(this.aiCompletionsService.setLastRelationId(L),F)k=F;else try{if(this.aiCompletionsService.updateStatusBarItem("running",!0),this.intelligentCompletionsRegistry.getInlineCompletionsProvider()){const j=this.workbenchEditorService.currentCodeEditor;if(!j)return[];const W=a.InlineCompletionsController.get(j.monacoEditor);k=await W?.fetchProvider(R)}else k=await this.aiCompletionsService.complete(R)}catch(B){return this.aiCompletionsService.reporterEnd(L,{success:!1,replytime:Date.now()-P,message:B.toString()}),this.aiCompletionsService.hideStatusBarItem(),[]}finally{this.aiCompletionsService.hideStatusBarItem()}return k?this.pushLineCompletions(k,R,P,L):[]}pushLineCompletions(b,A,S,w){var T;const{position:D}=this;if(this.aiCompletionsService.setLastSessionId(A.sessionId),!((T=b?.extra)===null||T===void 0)&&T.isCancel||this.token.isCancellationRequested||this.isCancelFlag)return this.aiCompletionsService.reporterEnd(w,{success:!0,replytime:Date.now()-S,isStop:!0,completionNum:0}),this.aiCompletionsService.updateStatusBarItem("canceled",!1),[];if(!b||!b.items||b.items.length===0)return this.aiCompletionsService.reporterEnd(w,{success:!0,replytime:Date.now()-S,completionNum:0}),this.aiCompletionsService.updateStatusBarItem("no result",!1),[];b.items.length>0&&this.promptCache.setCache(A,{...b,relationId:w}),this.aiCompletionsService.updateStatusBarItem("completion result: "+b.items.length,!1),this.dispose();const I=new Array;for(const O of b.items){const R=O.insertText.toString().trimEnd(),P=this.model,k=P.getValueInRange({startLineNumber:D.lineNumber,startColumn:D.column,endLineNumber:D.lineNumber,endColumn:P.getLineMaxColumn(D.lineNumber)}),F=f(R,k),L=R+F;this.aiCompletionsService.setLastCompletionContent(L),I.push({...O,insertText:L,range:new s.Range(D.lineNumber,D.column,D.lineNumber,D.column+R.length+k.length),sessionId:A.sessionId,relationId:w,command:{id:c.AI_INLINE_COMPLETION_REPORTER.id,title:"",arguments:[w,A.sessionId,!0,L]}})}return I}dispose(){this._disposables.dispose()}cancelRequest(){this.isCancelFlag=!0,this.dispose()}};t.InlineCompletionRequestTask=l,n.__decorate([(0,r.Autowired)(v.IAIReporter),n.__metadata("design:type",Object)],l.prototype,"aiReporter",void 0),n.__decorate([(0,r.Autowired)(h.PromptCache),n.__metadata("design:type",h.PromptCache)],l.prototype,"promptCache",void 0),n.__decorate([(0,r.Autowired)(d.AICompletionsService),n.__metadata("design:type",d.AICompletionsService)],l.prototype,"aiCompletionsService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],l.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],l.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(_.IntelligentCompletionsRegistryToken),n.__metadata("design:type",g.IntelligentCompletionsRegistry)],l.prototype,"intelligentCompletionsRegistry",void 0),n.__decorate([(0,r.Autowired)(m.WorkbenchEditorService),n.__metadata("design:type",p.WorkbenchEditorServiceImpl)],l.prototype,"workbenchEditorService",void 0),t.InlineCompletionRequestTask=l=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,s.Position,Object])],l)},64208:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_NEIGHBOR_AGGREGATE_LENGTH=t.EXCLUDED_NEIGHBORS=t.LANGUAGE_COMMENT_MARKERS=void 0,t.LANGUAGE_COMMENT_MARKERS={abap:{start:'"',end:""},bat:{start:"REM",end:""},bibtex:{start:"%",end:""},blade:{start:"#",end:""},c:{start:"//",end:""},clojure:{start:";",end:""},coffeescript:{start:"//",end:""},cpp:{start:"//",end:""},csharp:{start:"//",end:""},css:{start:"/*",end:"*/"},dart:{start:"//",end:""},dockerfile:{start:"#",end:""},elixir:{start:"#",end:""},erb:{start:"<%#",end:"%>"},erlang:{start:"%",end:""},fsharp:{start:"//",end:""},go:{start:"//",end:""},groovy:{start:"//",end:""},haml:{start:"-#",end:""},handlebars:{start:"{{!",end:"}}"},haskell:{start:"--",end:""},html:{start:"<!--",end:"-->"},ini:{start:";",end:""},java:{start:"//",end:""},javascript:{start:"//",end:""},javascriptreact:{start:"//",end:""},jsonc:{start:"//",end:""},jsx:{start:"//",end:""},julia:{start:"#",end:""},kotlin:{start:"//",end:""},latex:{start:"%",end:""},less:{start:"//",end:""},lua:{start:"--",end:""},makefile:{start:"#",end:""},markdown:{start:"[]: #",end:""},"objective-c":{start:"//",end:""},"objective-cpp":{start:"//",end:""},perl:{start:"#",end:""},php:{start:"//",end:""},powershell:{start:"#",end:""},pug:{start:"//",end:""},python:{start:"#",end:""},ql:{start:"//",end:""},r:{start:"#",end:""},razor:{start:"<!--",end:"-->"},ruby:{start:"#",end:""},rust:{start:"//",end:""},sass:{start:"//",end:""},scala:{start:"//",end:""},scss:{start:"//",end:""},shellscript:{start:"#",end:""},slim:{start:"/",end:""},solidity:{start:"//",end:""},sql:{start:"--",end:""},stylus:{start:"//",end:""},svelte:{start:"<!--",end:"-->"},swift:{start:"//",end:""},terraform:{start:"#",end:""},tex:{start:"%",end:""},typescript:{start:"//",end:""},typescriptreact:{start:"//",end:""},vb:{start:"'",end:""},verilog:{start:"//",end:""},"vue-html":{start:"<!--",end:"-->"},vue:{start:"//",end:""},xml:{start:"<!--",end:"-->"},xsl:{start:"<!--",end:"-->"},yaml:{start:"#",end:""},diff:{start:"#",end:""}},t.EXCLUDED_NEIGHBORS=["node_modules","dist","site-packages"],t.MAX_NEIGHBOR_AGGREGATE_LENGTH=2e5},68728:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getImportedFile=t.extractLocalImportContext=t.getImportedFilesInterface=void 0;const n=e(43718),r=e(14951),o=e(55121),c=e(51500),_=e(85679),v=async(s,g,a,h)=>{var u;const d=h.get(_.LanguageParserService);let E=[];const f=[],l=d.createParser(g.languageId);l&&(E=await l.extractImportPaths(s));const y=(u=a.maxTime)!==null&&u!==void 0?u:200,b=Date.now();for(const A of E){let S="";const w=g.uri.parent.codeUri.fsPath;if(!(A.startsWith("@/")||A.startsWith("~")||!A.startsWith("."))){A==="."?S=new o.Path(w).join("index.ts").toString():S=new o.Path(w).join(`${A}${n.LANGUAGE_TO_SUFFIX[g.languageId]}`).toString();try{const T=h.get(r.IFileServiceClient),D=h.get(c.IWorkspaceService),I=n.URI.file(S),O=await T.readFile(I.codeUri.fsPath),M=await l?.extractInterfaceOrTypeCode(O.content.toString());if(M&&M.length>0){const R=await D.asRelativePath(I);R?.path&&f.push([R.path,M])}}catch{}if(Date.now()-b>y)break}}return f};t.getImportedFilesInterface=v;const m=async(s,g,a)=>{const{source:h}=s;return s.languageId==="typescript"?(0,t.getImportedFilesInterface)(h,s,g,a):[]};t.extractLocalImportContext=m;const p=async(s,g,a)=>{if(s.language&&!g.language.includes(s.language))return[];const h=s.prefix;return(0,t.extractLocalImportContext)({source:h,uri:s.uri,languageId:s.language,offset:h.length},g,a)};t.getImportedFile=p},277:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedWindowSizeJaccardMatcher=t.getCursorContext=void 0;const n=e(71585),r=e(79253),o=e(64806),c=(m,p={})=>{const s={tokenizerName:n.TokenizerName.cl100k_base,...p},g=(0,o.getTokenizer)(s.tokenizerName);if(s.maxLineCount&&s.maxLineCount<0)throw new Error("maxLineCount must be non-negative if defined");if(s.maxTokenLength&&s.maxTokenLength<0)throw new Error("maxTokenLength must be non-negative if defined");if(s.maxLineCount===0||s.maxTokenLength===0)return{context:"",lineCount:0,tokenLength:0,tokenizerName:s.tokenizerName};let a=m.source.slice(0,m.offset);return s.maxLineCount&&(a=a.split(`
@@ -31924,7 +31924,7 @@ your modifications. Are you sure to regenerate?`,"aiNative.resolve.conflict.mess
31924
31924
 
31925
31925
  {1}
31926
31926
 
31927
- \u662F\u5426\u8981\u9000\u51FA?`,"authentication.signOutMessageSimple":"\u662F\u5426\u8981\u9000\u51FA {0}?","authentication.useOtherAccount":"\u4F7F\u7528\u5176\u4ED6\u8D26\u6237\u767B\u5F55","authentication.selectAccount":"\u6269\u5C55 '{0}' \u5C06\u8981\u8BBF\u95EE {1} \u8D26\u6237","authentication.getSessionPlaceholder":"\u9009\u62E9\u4E00\u4E2A\u8D26\u6237\u7ED9 '{0}' \u4F7F\u7528","authentication.confirmAuthenticationAccess":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 '{2}' \u8BBF\u95EE {1}","authentication.confirmLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u767B\u5F55","authentication.confirmReLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u518D\u6B21\u767B\u5F55","authentication.signInRequests":"\u767B\u5F55 {0}","authentication.signOut":"\u9000\u51FA {0}","authentication.noAccounts":"\u76EE\u524D\u6CA1\u6709\u767B\u5F55\u4EFB\u4F55\u8D26\u6237","authentication.signedOut":"\u6210\u529F\u9000\u51FA","refactoring-changes.ask.1.create":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.copy":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.move":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.delete":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.create":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.copy":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.move":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.delete":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.msg.showPreview":"\u663E\u793A\u9884\u89C8","refactoring-changes.msg.skipChanges":"\u8DF3\u8FC7\u66F4\u6539","keyboard.chooseKeyboardLayout":"\u9009\u62E9\u5E03\u5C40\u6587\u4EF6\u914D\u7F6E","keyboard.autoDetect.label":"\u81EA\u52A8\u68C0\u6D4B","keyboard.autoDetect.description":"\uFF08\u5F53\u524D\uFF1A'{0} '\uFF09","keyboard.autoDetect.detail":"\u5C1D\u8BD5\u901A\u8FC7\u6D4F\u89C8\u5668\u53CA\u6309\u952E\u4FE1\u606F\u8FDB\u884C\u5E03\u5C40\u81EA\u52A8\u68C0\u6D4B","editor.configuration.suggest.filterGraceful":"\u63A7\u5236\u5BF9\u5EFA\u8BAE\u7684\u7B5B\u9009\u548C\u6392\u5E8F\u662F\u5426\u8003\u8651\u5C0F\u7684\u62FC\u5199\u9519\u8BEF\u3002","editor.configuration.suggest.insertMode":"\u63A7\u5236\u63A5\u53D7\u8865\u5168\u65F6\u662F\u5426\u8986\u76D6\u5355\u8BCD\u3002\u8BF7\u6CE8\u610F\uFF0C\u8FD9\u53D6\u51B3\u4E8E\u6269\u5C55\u9009\u62E9\u4F7F\u7528\u6B64\u529F\u80FD\u3002","editor.configuration.suggest.insertMode.insert":"\u63D2\u5165\u5EFA\u8BAE\u800C\u4E0D\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.insertMode.replace":"\u63D2\u5165\u5EFA\u8BAE\u5E76\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.localityBonus":"\u63A7\u5236\u6392\u5E8F\u65F6\u662F\u5426\u9996\u9009\u5149\u6807\u9644\u8FD1\u7684\u5B57\u8BCD\u3002","editor.configuration.suggest.maxVisibleSuggestions.dep":"\u6B64\u8BBE\u7F6E\u5DF2\u5F03\u7528\u3002\u73B0\u5728\u53EF\u4EE5\u8C03\u6574\u5EFA\u8BAE\u5C0F\u7EC4\u4EF6\u7684\u5927\u5C0F\u3002","editor.configuration.suggest.preview":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u9884\u89C8\u5EFA\u8BAE\u7ED3\u679C\u3002","editor.configuration.suggest.shareSuggestSelections":"\u63A7\u5236\u662F\u5426\u5728\u591A\u4E2A\u5DE5\u4F5C\u533A\u548C\u7A97\u53E3\u95F4\u5171\u4EAB\u8BB0\u5FC6\u7684\u5EFA\u8BAE\u9009\u9879(\u9700\u8981 `#editor.suggestSelection#`)\u3002","editor.configuration.suggest.showIcons":"\u63A7\u5236\u662F\u5426\u5728\u5EFA\u8BAE\u4E2D\u663E\u793A\u6216\u9690\u85CF\u56FE\u6807\u3002","editor.configuration.suggest.showInlineDetails":"\u63A7\u5236\u5EFA\u8BAE\u8BE6\u7EC6\u4FE1\u606F\u662F\u968F\u6807\u7B7E\u4E00\u8D77\u663E\u793A\u8FD8\u662F\u4EC5\u663E\u793A\u5728\u8BE6\u7EC6\u4FE1\u606F\u5C0F\u7EC4\u4EF6\u4E2D","editor.configuration.suggest.showStatusBar":"\u63A7\u5236\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u5E95\u90E8\u7684\u72B6\u6001\u680F\u7684\u53EF\u89C1\u6027\u3002","editor.configuration.suggest.snippetsPreventQuickSuggestions":"\u63A7\u5236\u6D3B\u52A8\u4EE3\u7801\u6BB5\u662F\u5426\u963B\u6B62\u5FEB\u901F\u5EFA\u8BAE\u3002","editor.configuration.suggestFontSize":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u5B57\u53F7\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.fontSize#` \u7684\u503C\u3002","editor.configuration.suggestLineHeight":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u884C\u9AD8\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.lineHeight#` \u7684\u503C\u3002\u6700\u5C0F\u503C\u4E3A 8\u3002","editor.configuration.suggestOnTriggerCharacters":"\u63A7\u5236\u5728\u952E\u5165\u89E6\u53D1\u5B57\u7B26\u540E\u662F\u5426\u81EA\u52A8\u663E\u793A\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnterSmart":"\u4EC5\u5728\u5EFA\u8BAE\u505A\u51FA\u6587\u672C\u66F4\u6539\u65F6\uFF0C\u624D\u4F7F\u7528 `Enter` \u63A5\u53D7\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnter":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728 `Tab` \u952E\u4E4B\u5916\uFF0C\u8FD8\u4F7F\u7528 `Enter` \u952E\u6765\u63A5\u53D7\u5EFA\u8BAE\u3002\u8FD9\u6709\u52A9\u4E8E\u907F\u514D\u5728\u63D2\u5165\u65B0\u884C\u6216\u63A5\u53D7\u5EFA\u8BAE\u4E4B\u95F4\u7684\u6B67\u4E49\u3002","editor.configuration.acceptSuggestionOnCommitCharacter":"\u63A7\u5236\u662F\u5426\u5728\u4F7F\u7528\u63D0\u4EA4\u5B57\u7B26\u65F6\u63A5\u53D7\u5EFA\u8BAE\u3002\u4F8B\u5982\uFF0C\u5728 JavaScript \u4E2D\uFF0C\u5206\u53F7 (`;`) \u662F\u4E00\u4E2A\u63D0\u4EA4\u5B57\u7B26\uFF0C\u53EF\u4EE5\u63A5\u53D7\u4E00\u4E2A\u5EFA\u8BAE\u5E76\u952E\u5165\u8BE5\u5B57\u7B26\u3002","editor.configuration.snippetSuggestions.top":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u9876\u90E8\u3002","editor.configuration.snippetSuggestions.bottom":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u5E95\u90E8\u3002","editor.configuration.snippetSuggestions.inline":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u6DF7\u5408\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u4E2D\u95F4\u3002","editor.configuration.snippetSuggestions.none":"\u4E0D\u5C55\u793A\u4EE3\u7801\u7247\u6BB5\u5EFA\u8BAE\u3002","editor.configuration.snippetSuggestions":"\u63A7\u5236\u4EE3\u7801\u7247\u6BB5\u662F\u5426\u4E0E\u5176\u4ED6\u5EFA\u8BAE\u4E00\u540C\u663E\u793A\u4EE5\u53CA\u5B83\u4EEC\u7684\u6392\u5E8F\u65B9\u5F0F\u3002","editor.configuration.wordBasedSuggestions":"\u63A7\u5236\u662F\u5426\u6839\u636E\u6587\u6863\u4E2D\u7684\u5B57\u8BCD\u8BA1\u7B97\u81EA\u52A8\u8865\u5168\u5217\u8868\u3002","editor.configuration.suggestSelection":"\u63A7\u5236\u5728\u5EFA\u8BAE\u5217\u8868\u4E2D\u5982\u4F55\u9884\u5148\u9009\u62E9\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.first":"\u59CB\u7EC8\u9009\u62E9\u7B2C\u4E00\u4E2A\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.recentlyUsed":"\u9009\u62E9\u6700\u8FD1\u7684\u5EFA\u8BAE\uFF0C\u9664\u975E\u8FDB\u4E00\u6B65\u952E\u5165\u9009\u62E9\u5176\u4ED6\u9879\u3002\u4F8B\u5982 `console. -> console.log`\uFF0C\u56E0\u4E3A\u6700\u8FD1\u8865\u5168\u8FC7 `log`\u3002","editor.configuration.suggestSelection.recentlyUsedByPrefix":"\u6839\u636E\u4E4B\u524D\u8865\u5168\u8FC7\u7684\u5EFA\u8BAE\u7684\u524D\u7F00\u6765\u8FDB\u884C\u9009\u62E9\u3002\u4F8B\u5982\uFF0C`co -> console`\u3001`con -> const`\u3002","editor.configuration.tabCompletion":"\u542F\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.off":"\u7981\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.on":"\u5728\u6309\u4E0B Tab \u952E\u65F6\u8FDB\u884C Tab \u8865\u5168\uFF0C\u5C06\u63D2\u5165\u6700\u4F73\u5339\u914D\u5EFA\u8BAE\u3002","editor.configuration.tabCompletion.onlySnippets":'\u5728\u524D\u7F00\u5339\u914D\u65F6\u8FDB\u884C Tab \u8865\u5168\u3002\u5728 "quickSuggestions" \u672A\u542F\u7528\u65F6\u4F53\u9A8C\u6700\u597D\u3002',"editor.configuration.editor.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.editor.guides.bracketPairsHorizontal":"\u63A7\u5236\u662F\u5426\u542F\u7528\u6C34\u5E73\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.renderLineHighlight":"\u63A7\u5236\u7F16\u8F91\u5668\u7684\u5F53\u524D\u884C\u8FDB\u884C\u9AD8\u4EAE\u663E\u793A\u7684\u65B9\u5F0F\u3002","editor.configuration.renderLineHighlight.all":"\u540C\u65F6\u7A81\u51FA\u663E\u793A\u5BFC\u822A\u7EBF\u548C\u5F53\u524D\u884C\u3002","editor.configuration.renderLineHighlightOnlyWhenFocus":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u4EC5\u5728\u7126\u70B9\u5728\u7F16\u8F91\u5668\u65F6\u7A81\u51FA\u663E\u793A\u5F53\u524D\u884C\u3002","editor.configuration.codeLens":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u663E\u793A CodeLens\u3002","editor.configuration.suggest.showClasss":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7C7B\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showColors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstants":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5E38\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstructors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6784\u9020\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showCustomcolors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u81EA\u5B9A\u4E49\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showDeprecated":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5DF2\u542F\u7528\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEnumMembers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "enumMember" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showEnums":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u679A\u4E3E\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEvents":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u4E8B\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFields":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5B57\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFiles":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFolders":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u5939\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFunctions":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showInterfaces":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u63A5\u53E3\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showIssues":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u95EE\u9898"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showKeywords":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5173\u952E\u5B57\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showMethods":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u65B9\u6CD5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showModules":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6A21\u5757\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showOperators":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u64CD\u4F5C\u7B26\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showPropertys":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5C5E\u6027\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showReferences":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53C2\u8003\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showSnippets":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7247\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showStructs":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7ED3\u6784\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTexts":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u672C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTypeParameters":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "typeParameter" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showUnits":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5355\u4F4D\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showUsers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u7528\u6237"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showValues":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u503C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showVariables":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53D8\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.maxVisibleSuggestions":"\u63A7\u5236 IntelliSense \u5728\u663E\u793A\u6EDA\u52A8\u6761\u4E4B\u524D\u5C06\u663E\u793A\u7684\u5EFA\u8BAE\u6570\u91CF\uFF08\u6700\u591A 15 \u4E2A\uFF09\u3002","editor.configuration.suggest.details.visible":"\u63A7\u5236\u7F16\u8F91\u5668\u4EE3\u7801\u8865\u5168\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u8BE6\u60C5\u4FE1\u606F","editor.configuration.suggest.filtered":"\u63A7\u5236\u662F\u5426\u5E94\u4ECE IntelliSense \u4E2D\u8FC7\u6EE4\u6389\u67D0\u4E9B\u5EFA\u8BAE\u7C7B\u578B\u3002\u53EF\u4EE5\u5728\u6B64\u5904\u627E\u5230\u4E00\u4EFD\u5EFA\u8BAE\u7C7B\u578B\u5217\u8868: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions.","editor.configuration.suggest.filtered.method":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `method` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.function":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `function` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constructor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constructor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.field":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `field` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.variable":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `variable` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.class":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `class` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.struct":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `struct` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.interface":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `interface` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.module":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `module` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.property":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `property` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.event":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `event` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.operator":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `operator` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.unit":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `unit` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.value":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `value` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constant":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constant` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enum":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enum` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enumMember":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enumMember` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.keyword":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `keyword` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.text":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `text` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.color":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `color` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.file":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `file` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.reference":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `reference` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.customcolor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `customcolor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.folder":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `folder` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.typeParameter":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `typeParameter` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.snippet":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `snippet` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.editor.gotoLocation.multiple":'\u63A7\u5236 "\u8F6C\u5230" \u547D\u4EE4\uFF08\u4F8B\u5982\u8F6C\u5230\u5B9A\u4E49\uFF09\u5728\u5B58\u5728\u591A\u4E2A\u76EE\u6807\u4F4D\u7F6E\u65F6\u7684\u884C\u4E3A\u3002',"editor.configuration.gotoLocation.multiple.peek":"\u5728\u901F\u89C8\u89C6\u56FE(Peek View)\u4E2D\u663E\u793A\u7ED3\u679C\u3002(\u9ED8\u8BA4)","editor.configuration.gotoLocation.multiple.gotoAndPeek":"\u8F6C\u5230\u4E3B\u7ED3\u679C\u5E76\u663E\u793A\u901F\u89C8\u89C6\u56FE(Peek View)\u3002","editor.configuration.gotoLocation.multiple.goto":"\u8F6C\u5230\u4E3B\u7ED3\u679C\uFF0C\u5E76\u5BF9\u5176\u4ED6\u7ED3\u679C\u542F\u7528\u65E0\u901F\u89C8\u5BFC\u822A","editor.configuration.experimental.stickyScroll.enabled":"\u5728\u7F16\u8F91\u5668\u9876\u90E8\u7684\u6EDA\u52A8\u8FC7\u7A0B\u4E2D\u663E\u793A\u5D4C\u5957\u7684\u5F53\u524D\u4F5C\u7528\u57DF\u3002","editor.configuration.maxTokenizationLineLength":"\u7531\u4E8E\u6027\u80FD\u539F\u56E0\uFF0C\u8D85\u8FC7\u8FD9\u4E2A\u957F\u5EA6\u7684\u884C\u5C06\u4E0D\u4F1A\u88AB\u6807\u8BC6\u3002","editor.configuration.codeActionsOnSave.organizeImports":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u6574\u7406\u5BFC\u5165\uFF08Import\uFF09\u8BED\u53E5\u3002","editor.configuration.codeActionsOnSave.fixAll":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u8FD0\u884C\u81EA\u52A8\u4FEE\u590D\u64CD\u4F5C\u3002","editor.configuration.codeActionsOnSave":"\u5728\u4FDD\u5B58\u65F6\u8FD0\u884C\u7684\u4EE3\u7801\u64CD\u4F5C\u7C7B\u578B","editor.configuration.codeActionsOnSaveTimeout":"\u5728\u6B64\u8D85\u65F6\u65F6\u95F4(\u6BEB\u79D2)\u4E4B\u540E\u4EE3\u7801\u64CD\u4F5C\u5C06\u88AB\u53D6\u6D88\u3002","editor.configuration.codeActionsOnSaveNotification":"\u4EE3\u7801\u64CD\u4F5C\u6267\u884C\u65F6\u662F\u5426\u5C55\u793A\u901A\u77E5\u4FE1\u606F","editor.configuration.quickSuggestionsDelay":"\u63A7\u5236\u663E\u793A\u667A\u80FD\u63D0\u793A\u7684\u5EF6\u8FDF\u65F6\u957F (\u6BEB\u79D2)\u3002","editor.configuration.tabSize":"\u63A7\u5236 Tab \u7F29\u8FDB\u7B49\u4E8E\u7684\u7A7A\u683C\u6570\u3002\u82E5\u542F\u7528 `#editor.detectIndentation#`\uFF0C\u8BE5\u8BBE\u7F6E\u53EF\u80FD\u4F1A\u88AB\u8986\u76D6","editor.configuration.fontWeight":'\u63A7\u5236\u5B57\u4F53\u7C97\u7EC6\uFF0C\u63A5\u6536 "normal" \u548C "bold" \u5173\u952E\u8BCD\u6216\u8005 1 \u5230 1000 \u6570\u503C\u3002',"editor.configuration.largeFileSize":"\u63A7\u5236\u8D85\u5927\u6587\u4EF6\u7684\u81EA\u5B9A\u4E49\u4F53\u79EF\u3002(\u5355\u4F4D\uFF1AB)","editor.configuration.preferredFormatter":"\u914D\u7F6E\u4F18\u5148\u4F7F\u7528\u7684\u683C\u5F0F\u5316\u5668\u3002","editor.configuration.wrapTab":"\u63A7\u5236\u5F53\u7F16\u8F91\u5668 Tab \u8D85\u8FC7\u53EF\u7528\u7A7A\u95F4\u65F6\uFF0C\u662F\u5426\u4F7F\u7528\u6362\u884C\u6765\u4EE3\u66FF\u6EDA\u52A8\u6A21\u5F0F\u3002","editor.configuration.enablePreviewFromCodeNavigation":"\u63A7\u5236\u5F53\u4EE3\u7801\u5BFC\u822A\u4ECE\u5176\u51FA\u53D1\u65F6\uFF0C\u7F16\u8F91\u5668\u662F\u5426\u4ECD\u5904\u4E8E\u9884\u89C8\u6A21\u5F0F\u3002","editor.configuration.formatOnSaveTimeout":"\u63A7\u5236\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.formatOnSave#` \u542F\u7528\u65F6\u751F\u6548\u3002","editor.configuration.inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","editor.configuration.inlineSuggest.showToolbar":"\u63A7\u5236\u4F55\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.always":"\u6BCF\u5F53\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u65F6\uFF0C\u5C31\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.onHover":"\u5C06\u9F20\u6807\u60AC\u505C\u5728\u5185\u8054\u5EFA\u8BAE\u4E0A\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.never":"\u6C38\u4E0D\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.hover.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u63D0\u793A\u3002","editor.configuration.hover.delay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u663E\u793A\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002","editor.configuration.hover.sticky":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u662F\u5426\u5728\u9F20\u6807\u60AC\u505C\u65F6\u4FDD\u6301\u53EF\u89C1\u3002","editor.configuration.hover.hidingDelay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u9690\u85CF\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u9700\u8981 `editor.hover.sticky` \u8BBE\u7F6E\u4E3A true \u65F6\u751F\u6548\u3002","editor.configuration.hover.above":"\u4F18\u5148\u663E\u793A\u4EE3\u7801\u63D0\u793A\u5728\u884C\u4E0A\u65B9\uFF0C\u5982\u679C\u884C\u6709\u7A7A\u95F4\u3002","editor.configuration.autoSave":"\u63A7\u5236\u5982\u4F55\u81EA\u52A8\u4FDD\u5B58\u6587\u4EF6\u3002","editor.configuration.formatOnSave":"\u5728\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u6587\u4EF6","editor.configuration.formatOnType":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5728\u952E\u5165\u540E\u81EA\u52A8\u683C\u5F0F\u5316\u8BE5\u884C\u3002","editor.configuration.formatOnPaste":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u81EA\u52A8\u683C\u5F0F\u5316\u7C98\u8D34\u7684\u5185\u5BB9\u3002\u9700\u8981\u5F53\u524D\u6587\u4EF6\u6709\u4E00\u4E2A\u683C\u5F0F\u5316\u5DE5\u5177\u5E76\u4E14\u8BE5\u683C\u5F0F\u5316\u683C\u5C40\u5FC5\u987B\u80FD\u591F\u5728\u6587\u6863\u4E2D\u683C\u5F0F\u5316\u4E00\u4E2A\u8303\u56F4\u3002","editor.configuration.autoIndent":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728\u7528\u6237\u952E\u5165\u3001\u7C98\u8D34\u6216\u79FB\u52A8\u884C\u65F6\u81EA\u52A8\u8C03\u6574\u7F29\u8FDB\u3002\u5FC5\u987B\u63D0\u4F9B\u5E26\u6709\u8BE5\u8BED\u8A00\u7F29\u8FDB\u89C4\u5219\u7684\u6269\u5C55\u3002","editor.configuration.autoSaveDelay":"\u63A7\u5236\u81EA\u52A8\u4FDD\u5B58\u7684\u5EF6\u8FDF\u65F6\u957F\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.autoSave#` \u8BBE\u7F6E\u4E3A\u201C\u7F16\u8F91\u540E\u81EA\u52A8\u4FDD\u5B58\u201D\u65F6\u751F\u6548\u3002","editor.configuration.askIfDiff":"\u4FDD\u5B58\u6587\u4EF6\u65F6\u5982\u679C\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u8F83\u65B0\uFF0C\u8FDB\u884C\u63D0\u793A\u624B\u52A8\u89E3\u51B3\u4FDD\u5B58\u51B2\u7A81\u3002","editor.configuration.forceReadOnly":"\u662F\u5426\u542F\u7528 \u53EA\u8BFB\u6A21\u5F0F","editor.configuration.bracketPairColorization.enabled":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u7740\u8272\u3002\u4F7F\u7528 \u201Cworkbench.colorCustomizations\u201D \u66FF\u4EE3\u62EC\u53F7\u7A81\u51FA\u663E\u793A\u989C\u8272\u3002","editor.configuration.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.mouseBackForwardToNavigate":"\u5141\u8BB8\u4F7F\u7528\u9F20\u6807\u6309\u94AE 4 \u548C 5 \u6765\u6267\u884C\u547D\u4EE4\u201CGo Back\u201D\u548C\u201CGo Forward\u201D\u3002","editor.configuration.previewMode":"\u4F7F\u7528\u9884\u89C8\u6A21\u5F0F\u6253\u5F00","editor.configuration.tokenColorCustomizations":"\u8986\u76D6\u5F53\u524D\u6240\u9009\u989C\u8272\u4E3B\u9898\u4E2D\u7684\u7F16\u8F91\u5668\u989C\u8272\u548C\u5B57\u4F53\u6837\u5F0F","editor.configuration.workbench.editorAssociations":'\u5C06 glob \u6A21\u5F0F\u914D\u7F6E\u5230\u7F16\u8F91\u5668(\u4F8B\u5982 `"*\u5341\u516D\u8FDB\u5236": "hexEditor.hexEdit"`)\u3002\u8FD9\u4E9B\u4F18\u5148\u987A\u5E8F\u9AD8\u4E8E\u9ED8\u8BA4\u884C\u4E3A\u3002',"editor.configuration.guides.indentation":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u663E\u793A\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.guides.highlightActiveIndentation":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u7F16\u8F91\u5668\u4E2D\u6D3B\u52A8\u7684\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.trimAutoWhitespace":"\u5220\u9664\u81EA\u52A8\u63D2\u5165\u7684\u5C3E\u968F\u7A7A\u767D\u7B26\u53F7\u3002","editor.configuration.unicodeHighlight.ambiguousCharacters":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u53EF\u80FD\u4E0E\u57FA\u672C ASCII \u5B57\u7B26\u6DF7\u6DC6\u7684\u5B57\u7B26\uFF0C\u4F46\u5F53\u524D\u7528\u6237\u533A\u57DF\u8BBE\u7F6E\u4E2D\u5E38\u89C1\u7684\u5B57\u7B26\u9664\u5916\u3002","editor.configuration.lightbulb.enabled":"\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.off":"\u7981\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.onCode":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.on":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u6216\u5728\u7A7A\u7684\u884C\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","diffEditor.configuration.renderSideBySide":"\u63A7\u5236\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u663E\u793A\u65B9\u5F0F\u3002","diffEditor.configuration.ignoreTrimWhitespace":"\u542F\u7528\u540E\uFF0C\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u524D\u5BFC\u548C\u5C3E\u968F\u7A7A\u767D\u5B57\u7B26\u5C06\u4F1A\u5FFD\u7565","diffEditor.action.toggleCollapseUnchangedRegions":"\u6298\u53E0\u672A\u66F4\u6539\u7684\u4EE3\u7801\u533A\u57DF","inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","view.component.renderedError":"\u89C6\u56FE\u7EC4\u4EF6\u6E32\u67D3\u5F02\u5E38","view.component.tryAgain":"\u91CD\u65B0\u52A0\u8F7D","test.title":"\u6D4B\u8BD5\u7BA1\u7406\u5668","test.result.runFinished":"\u6D4B\u8BD5\u8FD0\u884C\u5B8C\u6210\u4E8E {0}","test.task.unnamed":"\u672A\u547D\u540D\u4EFB\u52A1","test.results":"\u6D4B\u8BD5\u7ED3\u679C","menu.missing.command":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4\u4E0D\u5B58\u5728\uFF1A{1}","menu.missing.altCommand":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4(altCommand)\u4E0D\u5B58\u5728\uFF1A{1}","menu.dupe.command":"\u83DC\u5355{0} command({1}) \u548C alt({2}) \u6CE8\u518C\u91CD\u590D","command.category.developerTools":"\u5F00\u53D1\u4EBA\u5458\u5DE5\u5177","connection.start.rtt":"\u67E5\u770B\u901A\u4FE1\u5EF6\u8FDF","connection.stop.rtt":"\u5173\u95ED\u901A\u4FE1\u5EF6\u8FDF\u68C0\u67E5","debug.terminal.label":"\u521B\u5EFA Javascript Debug Terminal","debug.terminal.title":"\u8C03\u8BD5\u8FDB\u7A0B","workbench.action.tasks.runTask":"\u8FD0\u884C\u4EFB\u52A1","workbench.action.tasks.reRunTask":"\u6267\u884C\u4E0A\u6B21\u8FD0\u884C\u7684\u4EFB\u52A1","workbench.action.tasks.restartTask":"\u91CD\u65B0\u5F00\u59CB\u8FD0\u884C\u4E2D\u7684\u4EFB\u52A1","workbench.action.tasks.terminate":"\u7EC8\u6B62\u4EFB\u52A1","workbench.action.tasks.showTasks":"\u5C55\u793A\u4EFB\u52A1","workbench.action.tasks.showLog":"\u5C55\u793A\u4EFB\u52A1\u65E5\u5FD7","task.contribute":"\u8D21\u732E","task.cannotFindTask":"\u672A\u627E\u5230 {0} \u7684\u4EFB\u52A1\uFF0C\u6309\u56DE\u8F66\u952E\u8FD4\u56DE","comment.reply.count":"{0} \u4E2A\u8BC4\u8BBA","comment.reply.lastReply":"\u6700\u540E\u7531 {0} \u8BC4\u8BBA","walkthroughs.welcome":"\u6B22\u8FCE\u4F7F\u7528","walkthroughs.get.started":"\u6253\u5F00 `\u5165\u95E8` \u6F14\u793A","mergeEditor.reset":"\u91CD\u7F6E","mergeEditor.workbench.tab.name":"\u6B63\u5728\u5408\u5E76: {0}","mergeEditor.conflict.action.apply.confirm.title":"\u5F53\u524D\u6587\u4EF6\u8FD8\u6709\u672A\u5904\u7406\u7684\u51B2\u7A81\u6216\u53D8\u66F4\uFF0C\u662F\u5426\u5E94\u7528\u5E76\u4FDD\u5B58\u66F4\u6539\uFF1F","mergeEditor.conflict.action.apply.confirm.continue":"\u7EE7\u7EED\u5408\u5E76","mergeEditor.conflict.action.apply.confirm.complete":"\u786E\u8BA4\u4FDD\u5B58\u5E76\u66F4\u6539","mergeEditor.action.button.apply":"\u5E94\u7528\u66F4\u6539","mergeEditor.action.button.apply-and-stash":"\u5E94\u7528\u5E76\u6682\u5B58","mergeEditor.action.button.accept.left":"\u63A5\u53D7\u5DE6\u8FB9","mergeEditor.action.button.accept.right":"\u63A5\u53D7\u53F3\u8FB9","mergeEditor.open.3way":"3-way \u7F16\u8F91\u5668","mergeEditor.conflict.prev":"\u4E0A\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.next":"\u4E0B\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.ai.resolve.all":"AI \u89E3\u51B3","mergeEditor.conflict.ai.resolve.all.stop":"\u5168\u90E8\u505C\u6B62","mergeEditor.open.tradition":"\u6587\u672C\u7F16\u8F91\u5668","workbench.quickOpen.preserveInput":"\u662F\u5426\u5728 QuickOpen \u7684\u8F93\u5165\u6846\uFF08\u5305\u62EC\u547D\u4EE4\u9762\u677F\uFF09\u4E2D\u4FDD\u7559\u4E0A\u6B21\u8F93\u5165\u7684\u5185\u5BB9","aiNative.chat.ai.assistant.name":"AI \u7814\u53D1\u52A9\u624B","aiNative.chat.input.placeholder.default":"\u53EF\u4EE5\u95EE\u6211\u4EFB\u4F55\u95EE\u9898\uFF0C\u8F93\u5165 @ \u53EF\u5F15\u7528\u5185\u5BB9","aiNative.chat.stop.immediately":"\u6211\u5148\u4E0D\u60F3\u4E86\uFF0C\u6709\u9700\u8981\u53EF\u4EE5\u968F\u65F6\u95EE\u6211","aiNative.chat.error.response":"\u5F53\u524D\u4E0E\u6211\u4E92\u52A8\u7684\u4EBA\u592A\u591A\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF0C\u611F\u8C22\u60A8\u7684\u7406\u89E3\u4E0E\u652F\u6301","aiNative.chat.code.insert":"\u63D2\u5165\u4EE3\u7801","aiNative.chat.code.copy":"\u590D\u5236\u4EE3\u7801","aiNative.chat.code.copy.success":"\u590D\u5236\u6210\u529F","aiNative.chat.expand.unfullscreen":"\u6536\u8D77","aiNative.chat.expand.fullescreen":"\u5C55\u5F00\u5168\u5C4F","aiNative.chat.enter.send":"Enter \u53D1\u9001","aiNative.chat.defaultContextFile":"\u5F53\u524D\u6587\u4EF6","aiNative.chat.defaultContextFolder":"\u5F53\u524D\u6587\u4EF6\u5939","aiNative.chat.thinking":"\u6DF1\u5EA6\u601D\u8003","aiNative.chat.imageUpload":"\u4E0A\u4F20\u56FE\u7247","aiNative.chat.clearContext":"\u6E05\u7A7A\u4E0A\u4E0B\u6587","aiNative.chat.context.description":"\u5171 {0} \u4E2A\u5F15\u7528","aiNative.chat.context.clear":"\u70B9\u51FB\u6E05\u7A7A\u5F15\u7528","aiNative.chat.modelSelector.disableTip":"\u5982\u9700\u5207\u6362\u6A21\u578B\uFF0C\u8BF7\u65B0\u5EFA\u4F1A\u8BDD\u6216\u6E05\u7A7A\u5F53\u524D\u4F1A\u8BDD","aiNative.inline.chat.operate.chat.title":"Chat({0})","aiNative.inline.chat.operate.check.title":"\u91C7\u7EB3","aiNative.inline.chat.operate.thumbsup.title":"\u8D5E","aiNative.inline.chat.operate.thumbsdown.title":"\u8E29","aiNative.inline.chat.operate.loading.cancel":"\u6309 ESC \u53D6\u6D88","aiNative.inline.chat.input.placeholder.default":"\u8BF7\u8F93\u5165\u4F60\u7684\u610F\u56FE...(\u2191\u2193 \u5207\u6362\u5386\u53F2)","aiNative.inline.chat.generating.canceled":"Inline Chat \u5DF2\u505C\u6B62\u751F\u6210","aiNative.inline.hint.widget.placeholder":"\u6309 {0} \u5524\u8D77 Inline Chat","aiNative.inline.problem.fix.title":"AI \u4FEE\u590D","aiNative.inline.diff.accept":"\u91C7\u7EB3","aiNative.inline.diff.reject":"\u62D2\u7EDD","aiNative.resolve.conflict.dialog.afresh":"\u4F60\u786E\u5B9A\u8981\u91CD\u65B0\u751F\u6210\u5417\uFF1F","aiNative.resolve.conflict.dialog.detection":`\u68C0\u6D4B\u5230\u60A8\u5DF2\u505A\u4E86\u4FEE\u6539\uFF0C\u91CD\u65B0\u751F\u6210\u4F1A\u8986\u76D6\u6389
31927
+ \u662F\u5426\u8981\u9000\u51FA?`,"authentication.signOutMessageSimple":"\u662F\u5426\u8981\u9000\u51FA {0}?","authentication.useOtherAccount":"\u4F7F\u7528\u5176\u4ED6\u8D26\u6237\u767B\u5F55","authentication.selectAccount":"\u6269\u5C55 '{0}' \u5C06\u8981\u8BBF\u95EE {1} \u8D26\u6237","authentication.getSessionPlaceholder":"\u9009\u62E9\u4E00\u4E2A\u8D26\u6237\u7ED9 '{0}' \u4F7F\u7528","authentication.confirmAuthenticationAccess":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 '{2}' \u8BBF\u95EE {1}","authentication.confirmLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u767B\u5F55","authentication.confirmReLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u518D\u6B21\u767B\u5F55","authentication.signInRequests":"\u767B\u5F55 {0}","authentication.signOut":"\u9000\u51FA {0}","authentication.noAccounts":"\u76EE\u524D\u6CA1\u6709\u767B\u5F55\u4EFB\u4F55\u8D26\u6237","authentication.signedOut":"\u6210\u529F\u9000\u51FA","refactoring-changes.ask.1.create":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.copy":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.move":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.delete":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.create":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.copy":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.move":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.delete":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.msg.showPreview":"\u663E\u793A\u9884\u89C8","refactoring-changes.msg.skipChanges":"\u8DF3\u8FC7\u66F4\u6539","keyboard.chooseKeyboardLayout":"\u9009\u62E9\u5E03\u5C40\u6587\u4EF6\u914D\u7F6E","keyboard.autoDetect.label":"\u81EA\u52A8\u68C0\u6D4B","keyboard.autoDetect.description":"\uFF08\u5F53\u524D\uFF1A'{0} '\uFF09","keyboard.autoDetect.detail":"\u5C1D\u8BD5\u901A\u8FC7\u6D4F\u89C8\u5668\u53CA\u6309\u952E\u4FE1\u606F\u8FDB\u884C\u5E03\u5C40\u81EA\u52A8\u68C0\u6D4B","editor.configuration.suggest.filterGraceful":"\u63A7\u5236\u5BF9\u5EFA\u8BAE\u7684\u7B5B\u9009\u548C\u6392\u5E8F\u662F\u5426\u8003\u8651\u5C0F\u7684\u62FC\u5199\u9519\u8BEF\u3002","editor.configuration.suggest.insertMode":"\u63A7\u5236\u63A5\u53D7\u8865\u5168\u65F6\u662F\u5426\u8986\u76D6\u5355\u8BCD\u3002\u8BF7\u6CE8\u610F\uFF0C\u8FD9\u53D6\u51B3\u4E8E\u6269\u5C55\u9009\u62E9\u4F7F\u7528\u6B64\u529F\u80FD\u3002","editor.configuration.suggest.insertMode.insert":"\u63D2\u5165\u5EFA\u8BAE\u800C\u4E0D\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.insertMode.replace":"\u63D2\u5165\u5EFA\u8BAE\u5E76\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.localityBonus":"\u63A7\u5236\u6392\u5E8F\u65F6\u662F\u5426\u9996\u9009\u5149\u6807\u9644\u8FD1\u7684\u5B57\u8BCD\u3002","editor.configuration.suggest.maxVisibleSuggestions.dep":"\u6B64\u8BBE\u7F6E\u5DF2\u5F03\u7528\u3002\u73B0\u5728\u53EF\u4EE5\u8C03\u6574\u5EFA\u8BAE\u5C0F\u7EC4\u4EF6\u7684\u5927\u5C0F\u3002","editor.configuration.suggest.preview":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u9884\u89C8\u5EFA\u8BAE\u7ED3\u679C\u3002","editor.configuration.suggest.shareSuggestSelections":"\u63A7\u5236\u662F\u5426\u5728\u591A\u4E2A\u5DE5\u4F5C\u533A\u548C\u7A97\u53E3\u95F4\u5171\u4EAB\u8BB0\u5FC6\u7684\u5EFA\u8BAE\u9009\u9879(\u9700\u8981 `#editor.suggestSelection#`)\u3002","editor.configuration.suggest.showIcons":"\u63A7\u5236\u662F\u5426\u5728\u5EFA\u8BAE\u4E2D\u663E\u793A\u6216\u9690\u85CF\u56FE\u6807\u3002","editor.configuration.suggest.showInlineDetails":"\u63A7\u5236\u5EFA\u8BAE\u8BE6\u7EC6\u4FE1\u606F\u662F\u968F\u6807\u7B7E\u4E00\u8D77\u663E\u793A\u8FD8\u662F\u4EC5\u663E\u793A\u5728\u8BE6\u7EC6\u4FE1\u606F\u5C0F\u7EC4\u4EF6\u4E2D","editor.configuration.suggest.showStatusBar":"\u63A7\u5236\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u5E95\u90E8\u7684\u72B6\u6001\u680F\u7684\u53EF\u89C1\u6027\u3002","editor.configuration.suggest.snippetsPreventQuickSuggestions":"\u63A7\u5236\u6D3B\u52A8\u4EE3\u7801\u6BB5\u662F\u5426\u963B\u6B62\u5FEB\u901F\u5EFA\u8BAE\u3002","editor.configuration.suggestFontSize":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u5B57\u53F7\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.fontSize#` \u7684\u503C\u3002","editor.configuration.suggestLineHeight":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u884C\u9AD8\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.lineHeight#` \u7684\u503C\u3002\u6700\u5C0F\u503C\u4E3A 8\u3002","editor.configuration.suggestOnTriggerCharacters":"\u63A7\u5236\u5728\u952E\u5165\u89E6\u53D1\u5B57\u7B26\u540E\u662F\u5426\u81EA\u52A8\u663E\u793A\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnterSmart":"\u4EC5\u5728\u5EFA\u8BAE\u505A\u51FA\u6587\u672C\u66F4\u6539\u65F6\uFF0C\u624D\u4F7F\u7528 `Enter` \u63A5\u53D7\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnter":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728 `Tab` \u952E\u4E4B\u5916\uFF0C\u8FD8\u4F7F\u7528 `Enter` \u952E\u6765\u63A5\u53D7\u5EFA\u8BAE\u3002\u8FD9\u6709\u52A9\u4E8E\u907F\u514D\u5728\u63D2\u5165\u65B0\u884C\u6216\u63A5\u53D7\u5EFA\u8BAE\u4E4B\u95F4\u7684\u6B67\u4E49\u3002","editor.configuration.acceptSuggestionOnCommitCharacter":"\u63A7\u5236\u662F\u5426\u5728\u4F7F\u7528\u63D0\u4EA4\u5B57\u7B26\u65F6\u63A5\u53D7\u5EFA\u8BAE\u3002\u4F8B\u5982\uFF0C\u5728 JavaScript \u4E2D\uFF0C\u5206\u53F7 (`;`) \u662F\u4E00\u4E2A\u63D0\u4EA4\u5B57\u7B26\uFF0C\u53EF\u4EE5\u63A5\u53D7\u4E00\u4E2A\u5EFA\u8BAE\u5E76\u952E\u5165\u8BE5\u5B57\u7B26\u3002","editor.configuration.snippetSuggestions.top":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u9876\u90E8\u3002","editor.configuration.snippetSuggestions.bottom":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u5E95\u90E8\u3002","editor.configuration.snippetSuggestions.inline":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u6DF7\u5408\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u4E2D\u95F4\u3002","editor.configuration.snippetSuggestions.none":"\u4E0D\u5C55\u793A\u4EE3\u7801\u7247\u6BB5\u5EFA\u8BAE\u3002","editor.configuration.snippetSuggestions":"\u63A7\u5236\u4EE3\u7801\u7247\u6BB5\u662F\u5426\u4E0E\u5176\u4ED6\u5EFA\u8BAE\u4E00\u540C\u663E\u793A\u4EE5\u53CA\u5B83\u4EEC\u7684\u6392\u5E8F\u65B9\u5F0F\u3002","editor.configuration.wordBasedSuggestions":"\u63A7\u5236\u662F\u5426\u6839\u636E\u6587\u6863\u4E2D\u7684\u5B57\u8BCD\u8BA1\u7B97\u81EA\u52A8\u8865\u5168\u5217\u8868\u3002","editor.configuration.suggestSelection":"\u63A7\u5236\u5728\u5EFA\u8BAE\u5217\u8868\u4E2D\u5982\u4F55\u9884\u5148\u9009\u62E9\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.first":"\u59CB\u7EC8\u9009\u62E9\u7B2C\u4E00\u4E2A\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.recentlyUsed":"\u9009\u62E9\u6700\u8FD1\u7684\u5EFA\u8BAE\uFF0C\u9664\u975E\u8FDB\u4E00\u6B65\u952E\u5165\u9009\u62E9\u5176\u4ED6\u9879\u3002\u4F8B\u5982 `console. -> console.log`\uFF0C\u56E0\u4E3A\u6700\u8FD1\u8865\u5168\u8FC7 `log`\u3002","editor.configuration.suggestSelection.recentlyUsedByPrefix":"\u6839\u636E\u4E4B\u524D\u8865\u5168\u8FC7\u7684\u5EFA\u8BAE\u7684\u524D\u7F00\u6765\u8FDB\u884C\u9009\u62E9\u3002\u4F8B\u5982\uFF0C`co -> console`\u3001`con -> const`\u3002","editor.configuration.tabCompletion":"\u542F\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.off":"\u7981\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.on":"\u5728\u6309\u4E0B Tab \u952E\u65F6\u8FDB\u884C Tab \u8865\u5168\uFF0C\u5C06\u63D2\u5165\u6700\u4F73\u5339\u914D\u5EFA\u8BAE\u3002","editor.configuration.tabCompletion.onlySnippets":'\u5728\u524D\u7F00\u5339\u914D\u65F6\u8FDB\u884C Tab \u8865\u5168\u3002\u5728 "quickSuggestions" \u672A\u542F\u7528\u65F6\u4F53\u9A8C\u6700\u597D\u3002',"editor.configuration.editor.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.editor.guides.bracketPairsHorizontal":"\u63A7\u5236\u662F\u5426\u542F\u7528\u6C34\u5E73\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.renderLineHighlight":"\u63A7\u5236\u7F16\u8F91\u5668\u7684\u5F53\u524D\u884C\u8FDB\u884C\u9AD8\u4EAE\u663E\u793A\u7684\u65B9\u5F0F\u3002","editor.configuration.renderLineHighlight.all":"\u540C\u65F6\u7A81\u51FA\u663E\u793A\u5BFC\u822A\u7EBF\u548C\u5F53\u524D\u884C\u3002","editor.configuration.renderLineHighlightOnlyWhenFocus":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u4EC5\u5728\u7126\u70B9\u5728\u7F16\u8F91\u5668\u65F6\u7A81\u51FA\u663E\u793A\u5F53\u524D\u884C\u3002","editor.configuration.codeLens":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u663E\u793A CodeLens\u3002","editor.configuration.suggest.showClasss":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7C7B\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showColors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstants":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5E38\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstructors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6784\u9020\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showCustomcolors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u81EA\u5B9A\u4E49\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showDeprecated":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5DF2\u542F\u7528\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEnumMembers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "enumMember" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showEnums":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u679A\u4E3E\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEvents":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u4E8B\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFields":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5B57\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFiles":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFolders":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u5939\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFunctions":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showInterfaces":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u63A5\u53E3\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showIssues":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u95EE\u9898"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showKeywords":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5173\u952E\u5B57\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showMethods":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u65B9\u6CD5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showModules":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6A21\u5757\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showOperators":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u64CD\u4F5C\u7B26\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showPropertys":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5C5E\u6027\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showReferences":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53C2\u8003\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showSnippets":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7247\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showStructs":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7ED3\u6784\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTexts":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u672C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTypeParameters":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "typeParameter" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showUnits":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5355\u4F4D\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showUsers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u7528\u6237"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showValues":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u503C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showVariables":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53D8\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.maxVisibleSuggestions":"\u63A7\u5236 IntelliSense \u5728\u663E\u793A\u6EDA\u52A8\u6761\u4E4B\u524D\u5C06\u663E\u793A\u7684\u5EFA\u8BAE\u6570\u91CF\uFF08\u6700\u591A 15 \u4E2A\uFF09\u3002","editor.configuration.suggest.details.visible":"\u63A7\u5236\u7F16\u8F91\u5668\u4EE3\u7801\u8865\u5168\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u8BE6\u60C5\u4FE1\u606F","editor.configuration.suggest.filtered":"\u63A7\u5236\u662F\u5426\u5E94\u4ECE IntelliSense \u4E2D\u8FC7\u6EE4\u6389\u67D0\u4E9B\u5EFA\u8BAE\u7C7B\u578B\u3002\u53EF\u4EE5\u5728\u6B64\u5904\u627E\u5230\u4E00\u4EFD\u5EFA\u8BAE\u7C7B\u578B\u5217\u8868: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions.","editor.configuration.suggest.filtered.method":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `method` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.function":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `function` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constructor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constructor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.field":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `field` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.variable":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `variable` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.class":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `class` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.struct":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `struct` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.interface":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `interface` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.module":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `module` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.property":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `property` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.event":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `event` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.operator":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `operator` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.unit":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `unit` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.value":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `value` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constant":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constant` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enum":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enum` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enumMember":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enumMember` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.keyword":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `keyword` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.text":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `text` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.color":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `color` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.file":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `file` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.reference":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `reference` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.customcolor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `customcolor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.folder":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `folder` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.typeParameter":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `typeParameter` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.snippet":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `snippet` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.editor.gotoLocation.multiple":'\u63A7\u5236 "\u8F6C\u5230" \u547D\u4EE4\uFF08\u4F8B\u5982\u8F6C\u5230\u5B9A\u4E49\uFF09\u5728\u5B58\u5728\u591A\u4E2A\u76EE\u6807\u4F4D\u7F6E\u65F6\u7684\u884C\u4E3A\u3002',"editor.configuration.gotoLocation.multiple.peek":"\u5728\u901F\u89C8\u89C6\u56FE(Peek View)\u4E2D\u663E\u793A\u7ED3\u679C\u3002(\u9ED8\u8BA4)","editor.configuration.gotoLocation.multiple.gotoAndPeek":"\u8F6C\u5230\u4E3B\u7ED3\u679C\u5E76\u663E\u793A\u901F\u89C8\u89C6\u56FE(Peek View)\u3002","editor.configuration.gotoLocation.multiple.goto":"\u8F6C\u5230\u4E3B\u7ED3\u679C\uFF0C\u5E76\u5BF9\u5176\u4ED6\u7ED3\u679C\u542F\u7528\u65E0\u901F\u89C8\u5BFC\u822A","editor.configuration.experimental.stickyScroll.enabled":"\u5728\u7F16\u8F91\u5668\u9876\u90E8\u7684\u6EDA\u52A8\u8FC7\u7A0B\u4E2D\u663E\u793A\u5D4C\u5957\u7684\u5F53\u524D\u4F5C\u7528\u57DF\u3002","editor.configuration.maxTokenizationLineLength":"\u7531\u4E8E\u6027\u80FD\u539F\u56E0\uFF0C\u8D85\u8FC7\u8FD9\u4E2A\u957F\u5EA6\u7684\u884C\u5C06\u4E0D\u4F1A\u88AB\u6807\u8BC6\u3002","editor.configuration.codeActionsOnSave.organizeImports":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u6574\u7406\u5BFC\u5165\uFF08Import\uFF09\u8BED\u53E5\u3002","editor.configuration.codeActionsOnSave.fixAll":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u8FD0\u884C\u81EA\u52A8\u4FEE\u590D\u64CD\u4F5C\u3002","editor.configuration.codeActionsOnSave":"\u5728\u4FDD\u5B58\u65F6\u8FD0\u884C\u7684\u4EE3\u7801\u64CD\u4F5C\u7C7B\u578B","editor.configuration.codeActionsOnSaveTimeout":"\u5728\u6B64\u8D85\u65F6\u65F6\u95F4(\u6BEB\u79D2)\u4E4B\u540E\u4EE3\u7801\u64CD\u4F5C\u5C06\u88AB\u53D6\u6D88\u3002","editor.configuration.codeActionsOnSaveNotification":"\u4EE3\u7801\u64CD\u4F5C\u6267\u884C\u65F6\u662F\u5426\u5C55\u793A\u901A\u77E5\u4FE1\u606F","editor.configuration.quickSuggestionsDelay":"\u63A7\u5236\u663E\u793A\u667A\u80FD\u63D0\u793A\u7684\u5EF6\u8FDF\u65F6\u957F (\u6BEB\u79D2)\u3002","editor.configuration.tabSize":"\u63A7\u5236 Tab \u7F29\u8FDB\u7B49\u4E8E\u7684\u7A7A\u683C\u6570\u3002\u82E5\u542F\u7528 `#editor.detectIndentation#`\uFF0C\u8BE5\u8BBE\u7F6E\u53EF\u80FD\u4F1A\u88AB\u8986\u76D6","editor.configuration.fontWeight":'\u63A7\u5236\u5B57\u4F53\u7C97\u7EC6\uFF0C\u63A5\u6536 "normal" \u548C "bold" \u5173\u952E\u8BCD\u6216\u8005 1 \u5230 1000 \u6570\u503C\u3002',"editor.configuration.largeFileSize":"\u63A7\u5236\u8D85\u5927\u6587\u4EF6\u7684\u81EA\u5B9A\u4E49\u4F53\u79EF\u3002(\u5355\u4F4D\uFF1AB)","editor.configuration.preferredFormatter":"\u914D\u7F6E\u4F18\u5148\u4F7F\u7528\u7684\u683C\u5F0F\u5316\u5668\u3002","editor.configuration.wrapTab":"\u63A7\u5236\u5F53\u7F16\u8F91\u5668 Tab \u8D85\u8FC7\u53EF\u7528\u7A7A\u95F4\u65F6\uFF0C\u662F\u5426\u4F7F\u7528\u6362\u884C\u6765\u4EE3\u66FF\u6EDA\u52A8\u6A21\u5F0F\u3002","editor.configuration.enablePreviewFromCodeNavigation":"\u63A7\u5236\u5F53\u4EE3\u7801\u5BFC\u822A\u4ECE\u5176\u51FA\u53D1\u65F6\uFF0C\u7F16\u8F91\u5668\u662F\u5426\u4ECD\u5904\u4E8E\u9884\u89C8\u6A21\u5F0F\u3002","editor.configuration.formatOnSaveTimeout":"\u63A7\u5236\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.formatOnSave#` \u542F\u7528\u65F6\u751F\u6548\u3002","editor.configuration.inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","editor.configuration.inlineSuggest.showToolbar":"\u63A7\u5236\u4F55\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.always":"\u6BCF\u5F53\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u65F6\uFF0C\u5C31\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.onHover":"\u5C06\u9F20\u6807\u60AC\u505C\u5728\u5185\u8054\u5EFA\u8BAE\u4E0A\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.never":"\u6C38\u4E0D\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.hover.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u63D0\u793A\u3002","editor.configuration.hover.delay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u663E\u793A\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002","editor.configuration.hover.sticky":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u662F\u5426\u5728\u9F20\u6807\u60AC\u505C\u65F6\u4FDD\u6301\u53EF\u89C1\u3002","editor.configuration.hover.hidingDelay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u9690\u85CF\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u9700\u8981 `editor.hover.sticky` \u8BBE\u7F6E\u4E3A true \u65F6\u751F\u6548\u3002","editor.configuration.hover.above":"\u4F18\u5148\u663E\u793A\u4EE3\u7801\u63D0\u793A\u5728\u884C\u4E0A\u65B9\uFF0C\u5982\u679C\u884C\u6709\u7A7A\u95F4\u3002","editor.configuration.autoSave":"\u63A7\u5236\u5982\u4F55\u81EA\u52A8\u4FDD\u5B58\u6587\u4EF6\u3002","editor.configuration.formatOnSave":"\u5728\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u6587\u4EF6","editor.configuration.formatOnType":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5728\u952E\u5165\u540E\u81EA\u52A8\u683C\u5F0F\u5316\u8BE5\u884C\u3002","editor.configuration.formatOnPaste":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u81EA\u52A8\u683C\u5F0F\u5316\u7C98\u8D34\u7684\u5185\u5BB9\u3002\u9700\u8981\u5F53\u524D\u6587\u4EF6\u6709\u4E00\u4E2A\u683C\u5F0F\u5316\u5DE5\u5177\u5E76\u4E14\u8BE5\u683C\u5F0F\u5316\u683C\u5C40\u5FC5\u987B\u80FD\u591F\u5728\u6587\u6863\u4E2D\u683C\u5F0F\u5316\u4E00\u4E2A\u8303\u56F4\u3002","editor.configuration.autoIndent":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728\u7528\u6237\u952E\u5165\u3001\u7C98\u8D34\u6216\u79FB\u52A8\u884C\u65F6\u81EA\u52A8\u8C03\u6574\u7F29\u8FDB\u3002\u5FC5\u987B\u63D0\u4F9B\u5E26\u6709\u8BE5\u8BED\u8A00\u7F29\u8FDB\u89C4\u5219\u7684\u6269\u5C55\u3002","editor.configuration.autoSaveDelay":"\u63A7\u5236\u81EA\u52A8\u4FDD\u5B58\u7684\u5EF6\u8FDF\u65F6\u957F\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.autoSave#` \u8BBE\u7F6E\u4E3A\u201C\u7F16\u8F91\u540E\u81EA\u52A8\u4FDD\u5B58\u201D\u65F6\u751F\u6548\u3002","editor.configuration.askIfDiff":"\u4FDD\u5B58\u6587\u4EF6\u65F6\u5982\u679C\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u8F83\u65B0\uFF0C\u8FDB\u884C\u63D0\u793A\u624B\u52A8\u89E3\u51B3\u4FDD\u5B58\u51B2\u7A81\u3002","editor.configuration.forceReadOnly":"\u662F\u5426\u542F\u7528 \u53EA\u8BFB\u6A21\u5F0F","editor.configuration.bracketPairColorization.enabled":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u7740\u8272\u3002\u4F7F\u7528 \u201Cworkbench.colorCustomizations\u201D \u66FF\u4EE3\u62EC\u53F7\u7A81\u51FA\u663E\u793A\u989C\u8272\u3002","editor.configuration.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.mouseBackForwardToNavigate":"\u5141\u8BB8\u4F7F\u7528\u9F20\u6807\u6309\u94AE 4 \u548C 5 \u6765\u6267\u884C\u547D\u4EE4\u201CGo Back\u201D\u548C\u201CGo Forward\u201D\u3002","editor.configuration.previewMode":"\u4F7F\u7528\u9884\u89C8\u6A21\u5F0F\u6253\u5F00","editor.configuration.tokenColorCustomizations":"\u8986\u76D6\u5F53\u524D\u6240\u9009\u989C\u8272\u4E3B\u9898\u4E2D\u7684\u7F16\u8F91\u5668\u989C\u8272\u548C\u5B57\u4F53\u6837\u5F0F","editor.configuration.workbench.editorAssociations":'\u5C06 glob \u6A21\u5F0F\u914D\u7F6E\u5230\u7F16\u8F91\u5668(\u4F8B\u5982 `"*\u5341\u516D\u8FDB\u5236": "hexEditor.hexEdit"`)\u3002\u8FD9\u4E9B\u4F18\u5148\u987A\u5E8F\u9AD8\u4E8E\u9ED8\u8BA4\u884C\u4E3A\u3002',"editor.configuration.guides.indentation":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u663E\u793A\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.guides.highlightActiveIndentation":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u7F16\u8F91\u5668\u4E2D\u6D3B\u52A8\u7684\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.trimAutoWhitespace":"\u5220\u9664\u81EA\u52A8\u63D2\u5165\u7684\u5C3E\u968F\u7A7A\u767D\u7B26\u53F7\u3002","editor.configuration.unicodeHighlight.ambiguousCharacters":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u53EF\u80FD\u4E0E\u57FA\u672C ASCII \u5B57\u7B26\u6DF7\u6DC6\u7684\u5B57\u7B26\uFF0C\u4F46\u5F53\u524D\u7528\u6237\u533A\u57DF\u8BBE\u7F6E\u4E2D\u5E38\u89C1\u7684\u5B57\u7B26\u9664\u5916\u3002","editor.configuration.lightbulb.enabled":"\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.off":"\u7981\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.onCode":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.on":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u6216\u5728\u7A7A\u7684\u884C\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","diffEditor.configuration.renderSideBySide":"\u63A7\u5236\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u663E\u793A\u65B9\u5F0F\u3002","diffEditor.configuration.ignoreTrimWhitespace":"\u542F\u7528\u540E\uFF0C\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u524D\u5BFC\u548C\u5C3E\u968F\u7A7A\u767D\u5B57\u7B26\u5C06\u4F1A\u5FFD\u7565","diffEditor.action.toggleCollapseUnchangedRegions":"\u6298\u53E0\u672A\u66F4\u6539\u7684\u4EE3\u7801\u533A\u57DF","inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","view.component.renderedError":"\u89C6\u56FE\u7EC4\u4EF6\u6E32\u67D3\u5F02\u5E38","view.component.tryAgain":"\u91CD\u65B0\u52A0\u8F7D","test.title":"\u6D4B\u8BD5\u7BA1\u7406\u5668","test.result.runFinished":"\u6D4B\u8BD5\u8FD0\u884C\u5B8C\u6210\u4E8E {0}","test.task.unnamed":"\u672A\u547D\u540D\u4EFB\u52A1","test.results":"\u6D4B\u8BD5\u7ED3\u679C","menu.missing.command":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4\u4E0D\u5B58\u5728\uFF1A{1}","menu.missing.altCommand":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4(altCommand)\u4E0D\u5B58\u5728\uFF1A{1}","menu.dupe.command":"\u83DC\u5355{0} command({1}) \u548C alt({2}) \u6CE8\u518C\u91CD\u590D","command.category.developerTools":"\u5F00\u53D1\u4EBA\u5458\u5DE5\u5177","connection.start.rtt":"\u67E5\u770B\u901A\u4FE1\u5EF6\u8FDF","connection.stop.rtt":"\u5173\u95ED\u901A\u4FE1\u5EF6\u8FDF\u68C0\u67E5","debug.terminal.label":"\u521B\u5EFA Javascript Debug Terminal","debug.terminal.title":"\u8C03\u8BD5\u8FDB\u7A0B","workbench.action.tasks.runTask":"\u8FD0\u884C\u4EFB\u52A1","workbench.action.tasks.reRunTask":"\u6267\u884C\u4E0A\u6B21\u8FD0\u884C\u7684\u4EFB\u52A1","workbench.action.tasks.restartTask":"\u91CD\u65B0\u5F00\u59CB\u8FD0\u884C\u4E2D\u7684\u4EFB\u52A1","workbench.action.tasks.terminate":"\u7EC8\u6B62\u4EFB\u52A1","workbench.action.tasks.showTasks":"\u5C55\u793A\u4EFB\u52A1","workbench.action.tasks.showLog":"\u5C55\u793A\u4EFB\u52A1\u65E5\u5FD7","task.contribute":"\u8D21\u732E","task.cannotFindTask":"\u672A\u627E\u5230 {0} \u7684\u4EFB\u52A1\uFF0C\u6309\u56DE\u8F66\u952E\u8FD4\u56DE","comment.reply.count":"{0} \u4E2A\u8BC4\u8BBA","comment.reply.lastReply":"\u6700\u540E\u7531 {0} \u8BC4\u8BBA","walkthroughs.welcome":"\u6B22\u8FCE\u4F7F\u7528","walkthroughs.get.started":"\u6253\u5F00 `\u5165\u95E8` \u6F14\u793A","mergeEditor.reset":"\u91CD\u7F6E","mergeEditor.workbench.tab.name":"\u6B63\u5728\u5408\u5E76: {0}","mergeEditor.conflict.action.apply.confirm.title":"\u5F53\u524D\u6587\u4EF6\u8FD8\u6709\u672A\u5904\u7406\u7684\u51B2\u7A81\u6216\u53D8\u66F4\uFF0C\u662F\u5426\u5E94\u7528\u5E76\u4FDD\u5B58\u66F4\u6539\uFF1F","mergeEditor.conflict.action.apply.confirm.continue":"\u7EE7\u7EED\u5408\u5E76","mergeEditor.conflict.action.apply.confirm.complete":"\u786E\u8BA4\u4FDD\u5B58\u5E76\u66F4\u6539","mergeEditor.action.button.apply":"\u5E94\u7528\u66F4\u6539","mergeEditor.action.button.apply-and-stash":"\u5E94\u7528\u5E76\u6682\u5B58","mergeEditor.action.button.accept.left":"\u63A5\u53D7\u5DE6\u8FB9","mergeEditor.action.button.accept.right":"\u63A5\u53D7\u53F3\u8FB9","mergeEditor.open.3way":"3-way \u7F16\u8F91\u5668","mergeEditor.conflict.prev":"\u4E0A\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.next":"\u4E0B\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.ai.resolve.all":"AI \u89E3\u51B3","mergeEditor.conflict.ai.resolve.all.stop":"\u5168\u90E8\u505C\u6B62","mergeEditor.open.tradition":"\u6587\u672C\u7F16\u8F91\u5668","workbench.quickOpen.preserveInput":"\u662F\u5426\u5728 QuickOpen \u7684\u8F93\u5165\u6846\uFF08\u5305\u62EC\u547D\u4EE4\u9762\u677F\uFF09\u4E2D\u4FDD\u7559\u4E0A\u6B21\u8F93\u5165\u7684\u5185\u5BB9","aiNative.chat.ai.assistant.name":"AI \u7814\u53D1\u52A9\u624B","aiNative.chat.input.placeholder.default":"\u53EF\u4EE5\u95EE\u6211\u4EFB\u4F55\u95EE\u9898\uFF0C\u8F93\u5165 @ \u53EF\u5F15\u7528\u5185\u5BB9","aiNative.chat.stop.immediately":"\u6211\u5148\u4E0D\u60F3\u4E86\uFF0C\u6709\u9700\u8981\u53EF\u4EE5\u968F\u65F6\u95EE\u6211","aiNative.chat.error.response":"\u5F53\u524D\u4E0E\u6211\u4E92\u52A8\u7684\u4EBA\u592A\u591A\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF0C\u611F\u8C22\u60A8\u7684\u7406\u89E3\u4E0E\u652F\u6301","aiNative.chat.code.insert":"\u63D2\u5165\u4EE3\u7801","aiNative.chat.code.copy":"\u590D\u5236\u4EE3\u7801","aiNative.chat.code.copy.success":"\u590D\u5236\u6210\u529F","aiNative.chat.expand.unfullscreen":"\u6536\u8D77","aiNative.chat.expand.fullescreen":"\u5C55\u5F00\u5168\u5C4F","aiNative.chat.enter.send":"Enter \u53D1\u9001","aiNative.chat.defaultContextFile":"\u5F53\u524D\u6587\u4EF6","aiNative.chat.defaultContextFolder":"\u5F53\u524D\u6587\u4EF6\u5939","aiNative.chat.thinking":"\u6DF1\u5EA6\u601D\u8003","aiNative.chat.imageUpload":"\u4E0A\u4F20\u56FE\u7247","aiNative.chat.clearContext":"\u6E05\u7A7A\u4E0A\u4E0B\u6587","aiNative.chat.context.description":"\u5171 {0} \u4E2A\u5F15\u7528","aiNative.chat.context.clear":"\u70B9\u51FB\u6E05\u7A7A\u5F15\u7528","aiNative.chat.modelSelector.disableTip":"\u5982\u9700\u5207\u6362\u6A21\u578B\uFF0C\u8BF7\u65B0\u5EFA\u6216\u6E05\u7A7A\u4F1A\u8BDD","aiNative.inline.chat.operate.chat.title":"Chat({0})","aiNative.inline.chat.operate.check.title":"\u91C7\u7EB3","aiNative.inline.chat.operate.thumbsup.title":"\u8D5E","aiNative.inline.chat.operate.thumbsdown.title":"\u8E29","aiNative.inline.chat.operate.loading.cancel":"\u6309 ESC \u53D6\u6D88","aiNative.inline.chat.input.placeholder.default":"\u8BF7\u8F93\u5165\u4F60\u7684\u610F\u56FE...(\u2191\u2193 \u5207\u6362\u5386\u53F2)","aiNative.inline.chat.generating.canceled":"Inline Chat \u5DF2\u505C\u6B62\u751F\u6210","aiNative.inline.hint.widget.placeholder":"\u6309 {0} \u5524\u8D77 Inline Chat","aiNative.inline.problem.fix.title":"AI \u4FEE\u590D","aiNative.inline.diff.accept":"\u91C7\u7EB3","aiNative.inline.diff.reject":"\u62D2\u7EDD","aiNative.resolve.conflict.dialog.afresh":"\u4F60\u786E\u5B9A\u8981\u91CD\u65B0\u751F\u6210\u5417\uFF1F","aiNative.resolve.conflict.dialog.detection":`\u68C0\u6D4B\u5230\u60A8\u5DF2\u505A\u4E86\u4FEE\u6539\uFF0C\u91CD\u65B0\u751F\u6210\u4F1A\u8986\u76D6\u6389
31928
31928
  \u60A8\u4FEE\u6539\u7684\u90E8\u5206\uFF0C\u662F\u5426\u786E\u8BA4\u8FDB\u884C\u91CD\u65B0\u751F\u6210\u3002`,"aiNative.resolve.conflict.message.not.processed.yet":"AI \u5DF2\u5904\u7406 {0} \u5904\u51B2\u7A81\uFF0C{1} \u5904\u51B2\u7A81\u6682\u672A\u5904\u7406\uFF08\u4ECD\u6807\u8BB0\u4E3A\u9EC4\u8272\u90E8\u5206\uFF09\uFF0C\u9700\u4EBA\u5DE5\u5904\u7406","aiNative.operate.discard.title":"\u4E22\u5F03","aiNative.operate.afresh.title":"\u91CD\u65B0\u751F\u6210","aiNative.operate.stop.title":"\u505C\u6B62","aiNative.operate.close.title":"\u5173\u95ED","aiNative.operate.clear.title":"\u6E05\u7A7A","aiNative.operate.tools.title":"MCP \u5DE5\u5177","aiNative.operate.newChat.title":"\u65B0\u5EFA\u804A\u5929","aiNative.operate.chatHistory.title":"\u804A\u5929\u5386\u53F2","aiNative.operate.chatHistory.searchPlaceholder":"\u8BF7\u641C\u7D22...","aiNative.operate.chatHistory.edit":"\u7F16\u8F91","aiNative.operate.chatHistory.delete":"\u5220\u9664","aiNative.chat.welcome.loading.text":"\u521D\u59CB\u5316\u4E2D...","aiNative.chat.ai.assistant.limit.message":"{0} \u6761\u6700\u65E9\u7684\u6D88\u606F\u56E0\u8F93\u5165 Tokens \u9650\u5236\u800C\u88AB\u4E22\u5F03","aiNative.inlineDiff.acceptAll":"\u63A5\u53D7\u5168\u90E8","aiNative.inlineDiff.rejectAll":"\u62D2\u7EDD\u5168\u90E8","aiNative.inlineDiff.reveal":"\u5728\u804A\u5929\u4E2D\u5C55\u793A","aiNative.inlineDiff.up":"\u4E0A\u4E00\u5904\u53D8\u66F4","aiNative.inlineDiff.down":"\u4E0B\u4E00\u5904\u53D8\u66F4","aiNative.inlineDiff.right":"\u4E0B\u4E00\u5904\u6587\u4EF6","aiNative.inlineDiff.left":"\u4E0A\u4E00\u5904\u6587\u4EF6","aiNative.inlineDiff.noMoreChangesUp":"\u9876\u90E8\u6CA1\u6709\u66F4\u591A\u53D8\u66F4\u4E86","aiNative.inlineDiff.noMoreChangesDown":"\u5E95\u90E8\u6CA1\u6709\u66F4\u591A\u53D8\u66F4\u4E86","aiNative.chat.session.max":"\u6700\u591A\u53EA\u80FD\u521B\u5EFA {0} \u4E2A\u804A\u5929","preference.ai.native.inlineChat.title":"Inline Chat","preference.ai.native.chat.title":"Chat","preference.ai.native.interface.quick.title":"\u63A5\u53E3\u5FEB\u901F\u8DF3\u8F6C","preference.ai.native.interface.quick.navigation":"\u70B9\u51FB\u7F16\u8F91\u5668\u5DE6\u4FA7\u56FE\u6807\u5FEB\u901F\u8DF3\u8F6C\u5230\u63A5\u53E3\u5B9E\u73B0","preference.ai.native.interface.quick.navigation.hover":"\u8DF3\u8F6C\u5230\u5B9E\u73B0","preference.ai.native.inlineChat.auto.visible":"\u662F\u5426\u5728\u9009\u4E2D\u4EE3\u7801\u7247\u6BB5\u65F6\u81EA\u52A8\u663E\u793A Inline Chat?","preference.ai.native.inlineChat.codeAction.enabled":"\u662F\u5426\u542F\u7528\u5728\u9009\u4E2D\u4EE3\u7801\u7247\u6BB5\u65F6\u663E\u793A Inline Chat \u76F8\u5173\u7684 Code Actions?","preference.ai.native.chat.visible.type":"\u63A7\u5236 Chat \u9762\u677F\u9ED8\u8BA4\u7684\u5C55\u793A\u65B9\u5F0F","preference.ai.native.inlineDiff.preview.mode":"Inline Diff \u7684\u9884\u89C8\u6A21\u5F0F","preference.ai.native.inlineDiff.preview.mode.sideBySide":"\u5728\u7F16\u8F91\u5668\u5F53\u4E2D\u4EE5\u5DE6\u53F3 diff \u9762\u677F\u7684\u65B9\u5F0F\u5C55\u793A","preference.ai.native.inlineDiff.preview.mode.inlineLive":"\u5728\u7F16\u8F91\u5668\u5F53\u4E2D\u4EE5\u6D41\u5F0F\u6E32\u67D3\u7684\u65B9\u5F0F\u5C55\u793A","preference.ai.native.intelligentCompletions.title":"\u667A\u80FD\u8865\u5168","preference.ai.native.intelligentCompletions.promptEngineering.enabled":"\u662F\u5426\u542F\u7528\u63D0\u793A\u8BCD\u5DE5\u7A0B\uFF0C\u4E00\u4E9B LLM \u6A21\u578B\u5728\u63D0\u793A\u8BCD\u5DE5\u7A0B\u4E0A\u53EF\u80FD\u8868\u73B0\u4E0D\u4F73\u3002","preference.ai.native.intelligentCompletions.debounceTime":"\u667A\u80FD\u8865\u5168\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09","preference.ai.native.intelligentCompletions.cache.enabled":"\u662F\u5426\u542F\u7528\u667A\u80FD\u8865\u5168\u7684\u7F13\u5B58","preference.ai.native.intelligentCompletions.alwaysVisible":"\u662F\u5426\u603B\u662F\u5C55\u793A\u667A\u80FD\u8865\u5168","preference.ai.native.codeEdits.title":"\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.lintErrors":"\u662F\u5426\u5728\u53D1\u751F Lint Error \u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.lineChange":"\u662F\u5426\u5728\u5149\u6807\u884C\u53F7\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.typing":"\u662F\u5426\u5728\u5185\u5BB9\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.renderType":"\u667A\u80FD\u6539\u5199\u6E32\u67D3\u65B9\u5F0F","preference.ai.native.chat.system.prompt":"\u9ED8\u8BA4\u804A\u5929\u7CFB\u7EDF\u63D0\u793A\u8BCD","webview.webviewTagUnavailable":"\u975E Electron \u73AF\u5883\u4E0D\u652F\u6301 webview \u6807\u7B7E\uFF0C\u8BF7\u4F7F\u7528 iframe \u6807\u7B7E","notebook.kernel.panel.empty":"\u6682\u65E0\u5185\u5BB9","notebook.kernel.panel.title":"\u8FD0\u884C\u7684\u7EC8\u7AEF\u548C\u5185\u6838","notebook.kernel.panel.opened.pages":"\u5DF2\u5F00\u542F\u7684\u6807\u7B7E\u9875","notebook.kernel.panel.running.kernels":"\u8FD0\u884C\u7684\u5185\u6838","notebook.kernel.close.all.confirmation":"\u4F60\u786E\u5B9A\u8981\u5173\u95ED\u5168\u90E8\u5417\uFF1F","notebook.variable.panel.title":"\u53D8\u91CF\u68C0\u67E5\u5668","notebook.variable.panel.unsupported":"\u8BE5\u6587\u4EF6\u683C\u5F0F\u6682\u4E0D\u652F\u6301\u53D8\u91CF\u68C0\u67E5","notebook.variable.panel.refresh.success":"\u53D8\u91CF\u5237\u65B0\u6210\u529F","notebook.variable.panel.refresh.error":"\u53D8\u91CF\u5237\u65B0\u5931\u8D25","notebook.variable.panel.search.placeholder":"\u8BF7\u8F93\u5165\u53D8\u91CF\u540D\u79F0\u641C\u7D22","notebook.variable.panel.show.detail":"\u67E5\u770B\u8BE6\u60C5",...r.browserViews,...o.editorLocalizations,...c.zhCN,"preference.ai.native.llm.apiSettings.title":"\u5927\u6A21\u578B API \u8BBE\u7F6E","preference.ai.native.llm.model.id":"\u6A21\u578B ID","preference.ai.native.deepseek.apiKey":"Deepseek API \u5BC6\u94A5","preference.ai.native.deepseek.apiKey.description":"Deepseek \u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.anthropic.apiKey":"Anthropic API \u5BC6\u94A5","preference.ai.native.anthropic.apiKey.description":"Anthropic \u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.openai.apiKey":"OpenAI API \u5BC6\u94A5","preference.ai.native.openai.apiKey.description":"OpenAI \u517C\u5BB9\u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.openai.baseURL":"OpenAI Base URL","preference.ai.native.openai.baseURL.description":"OpenAI \u517C\u5BB9\u8BED\u8A00\u6A21\u578B\u7684 Base URL","preference.ai.native.contextWindow":"\u4E0A\u4E0B\u6587\u7A97\u53E3","preference.ai.native.contextWindow.description":"\u4E0A\u4E0B\u6587\u7A97\u53E3\u7684\u6700\u5927Token\u6570","preference.ai.native.maxTokens":"\u6700\u5927\u8F93\u51FA","preference.ai.native.maxTokens.description":"\u6700\u5927\u8F93\u51FAToken\u6570","preference.ai.native.mcp.settings.title":"MCP \u670D\u52A1\u5668\u8BBE\u7F6E","preference.ai.native.mcp.servers":"MCP \u670D\u52A1\u5668","preference.ai.native.mcp.servers.description":"\u914D\u7F6E MCP (Model Context Protocol) \u670D\u52A1\u5668","preference.ai.native.mcp.servers.name.description":"MCP \u670D\u52A1\u5668\u540D\u79F0","preference.ai.native.mcp.servers.command.description":"\u542F\u52A8 MCP \u670D\u52A1\u5668\u7684\u547D\u4EE4","preference.ai.native.mcp.servers.args.description":"MCP \u670D\u52A1\u5668\u7684\u547D\u4EE4\u884C\u53C2\u6570","preference.ai.native.mcp.servers.env.description":"MCP \u670D\u52A1\u5668\u7684\u73AF\u5883\u53D8\u91CF","preference.ai.native.mcp.servers.type.description":"MCP \u670D\u52A1\u5668\u8FDE\u63A5\u7C7B\u578B","preference.ai.native.mcp.servers.type.stdio":"Stdio \u8FDE\u63A5","preference.ai.native.mcp.servers.type.sse":"SSE \u8FDE\u63A5","ai.native.mcp.terminal.command":"\u547D\u4EE4","ai.native.mcp.terminal.output":"\u8F93\u51FA","ai.native.mcp.terminal.allow-question":"\u662F\u5426\u5141\u8BB8\u8FD0\u884C\u547D\u4EE4?","ai.native.mcp.terminal.allow":"\u5141\u8BB8","ai.native.mcp.terminal.deny":"\u62D2\u7EDD","ai.native.mcp.name":"\u540D\u79F0:","ai.native.mcp.command":"\u547D\u4EE4:","ai.native.mcp.args":"\u53C2\u6570:","ai.native.mcp.env":"\u73AF\u5883\u53D8\u91CF:","ai.native.mcp.type":"\u7C7B\u578B:","ai.native.mcp.stdio":"Command","ai.native.mcp.sse":"SSE","ai.native.mcp.buttonSave":"\u6DFB\u52A0","ai.native.mcp.buttonUpdate":"\u66F4\u65B0","ai.native.mcp.buttonCancel":"\u53D6\u6D88","ai.native.mcp.addMCPServer.title":"\u6DFB\u52A0 MCP \u670D\u52A1\u5668","ai.native.mcp.editMCPServer.title":"\u7F16\u8F91 MCP \u670D\u52A1\u5668","ai.native.mcp.url.placeHolder":"\u8F93\u5165 SSE URL","ai.native.mcp.command.placeHolder":"\u8F93\u5165\u547D\u4EE4","ai.native.mcp.args.placeHolder":"\u8FD0\u884C\u53C2\u6570","ai.native.mcp.env.placeHolder":"KEY=value\uFF08\u6BCF\u884C\u4E00\u4E2A\uFF09","ai.native.mcp.name.placeHolder":"\u670D\u52A1\u5668\u540D\u79F0","ai.native.mcp.type.builtin":"\u5185\u7F6E","ai.native.mcp.type.sse":"SSE","ai.native.mcp.type.stdio":"\u547D\u4EE4","ai.native.mcp.serverNameExists":'\u670D\u52A1\u540D\u79F0 "{0}" \u5DF2\u5B58\u5728',"ai.native.mcp.name.isRequired":"\u670D\u52A1\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.command.isRequired":"\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.url.isRequired":"SSE URL \u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.manage.connections":"\u7BA1\u7406\u4F60\u7684 MCP \u670D\u52A1\u5668\u8FDE\u63A5","ai.native.mcp.enabled":"\u5DF2\u542F\u7528","ai.native.mcp.disabled":"\u5DF2\u7981\u7528","ai.native.mcp.enable.title":"\u542F\u52A8\u8BE5\u670D\u52A1","ai.native.mcp.disable.title":"\u505C\u6B62\u8BE5\u670D\u52A1","ai.native.mcp.config.title":"MCP \u914D\u7F6E","ai.native.mcp.tool.arguments":"\u53C2\u6570","ai.native.mcp.tool.results":"\u8FD4\u56DE","ai.native.mcp.tool.action.edit":"\u4FEE\u6539","ai.native.mcp.tool.action.delete":"\u5220\u9664","ai.native.mcp.tool.action.sync":"\u540C\u6B65"}}},10199:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(32581),t)},21774:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(25067),_=e(48644),v=e(85448);let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:c.IKeymapService,useClass:v.KeymapService},_.KeymapsContribution]}};t.KeymapsModule=m,t.KeymapsModule=m=n.__decorate([(0,r.Injectable)()],m)},2312:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsParser=t.keymapsSchema=void 0;const n=e(85608),r=n.__importDefault(e(82174)),o=n.__importStar(e(23304)),c=e(76003);t.keymapsSchema={type:"array",items:{type:"object",properties:{key:{type:"string"},keybinding:{type:"string",deprecated:!0},command:{type:"string"},context:{type:"string"},when:{type:"string"},args:{}},required:["command"],optional:["key","keybinding","when","args"],additionalProperties:!1}};let _=class{constructor(){this.validate=new r.default({jsonPointers:!0}).compile(t.keymapsSchema)}parse(m,p){const s=o.stripComments(m),g=p?[]:void 0,a=o.parse(s,g);if(g&&p)for(const h of g)p.push(`${this.printParseErrorCode(h.error)} at ${h.offset} offset of ${h.length} length`);if(this.validate(a))return a;if(p&&this.validate.errors)for(const h of this.validate.errors)p.push(`${h.message} at ${h.dataPath}`);return[]}printParseErrorCode(m){return o.printParseErrorCode(m)}};t.KeymapsParser=_,t.KeymapsParser=_=n.__decorate([(0,c.Injectable)(),n.__metadata("design:paramtypes",[])],_)},48644:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsContribution=t.KEYMAP_COMMANDS=t.KeymapsContextMenu=t.KeymapsResourceProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),_=e(57517),v=e(42933),m=e(97821),p=e(25067),s=e(34879),g="keymaps-preview";let a=class extends o.WithEventBus{constructor(){super(),this.scheme=p.KEYMAPS_SCHEME}provideResource(f){return{supportsRevive:!0,name:(0,o.localize)("keymaps.tab.name"),icon:(0,o.getIcon)("setting"),uri:f}}provideResourceSubname(f,l){return null}async shouldCloseResource(f,l){return!0}};t.KeymapsResourceProvider=a,t.KeymapsResourceProvider=a=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],a);var h;(function(E){E.KEYMAPS="2_keymaps"})(h||(t.KeymapsContextMenu=h={}));var u;(function(E){const f="keymaps";E.OPEN_SOURCE_FILE={id:"keymaps.open.source",label:"%keymaps.editorTitle.openSource%",category:f}})(u||(t.KEYMAP_COMMANDS=u={}));let d=class{registerCommands(f){f.registerCommand(o.COMMON_COMMANDS.OPEN_KEYMAPS,{isEnabled:()=>!0,execute:async()=>{await this.keymapService.open()}}),f.registerCommand(u.OPEN_SOURCE_FILE,{execute:async()=>{this.keymapService.openResource()}}),f.registerCommand(o.KEYBOARD_COMMANDS.CHOOSE_KEYBOARD_LAYOUT,{execute:()=>{this.chooseLayout()}})}registerMenus(f){f.registerMenuItem(c.MenuId.SettingsIconMenu,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,group:h.KEYMAPS}),f.registerMenuItem(c.MenuId.EditorTitle,{command:u.OPEN_SOURCE_FILE.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:`resourceScheme == ${p.KEYMAPS_SCHEME}`}),f.registerMenuItem(c.MenuId.EditorTitle,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:"resourceFilename =~ /keymaps.json/"})}registerKeybindings(f){f.registerKeybinding({command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,keybinding:"ctrlcmd+K ctrlcmd+S"})}onStart(){this.keymapService.init()}registerResource(f){f.registerResourceProvider(this.keymapsResourceProvider)}registerEditorComponent(f){f.registerEditorComponent({component:s.KeymapsView,uid:g,scheme:p.KEYMAPS_SCHEME}),f.registerEditorComponentResolver(p.KEYMAPS_SCHEME,(l,y,b)=>{b([{type:_.EditorOpenType.component,componentId:g}])})}async chooseLayout(){const f=this.layoutProvider.currentLayoutData,l={label:(0,o.localize)("keyboard.autoDetect.label"),description:f&&this.layoutProvider.currentLayoutSource!=="user-choice"?(0,o.formatLocalize)("keyboard.autoDetect.description",(0,o.getKeyboardLayoutId)(f.layout)):void 0,detail:(0,o.localize)("keyboard.autoDetect.detail"),value:"autodetect"},y=this.layoutProvider.allLayoutData.map(S=>this.toQuickPickValue(S,f===S));let b;b=[l,...y];const A=await this.quickPickService.show(b,{placeholder:"Choose a keyboard layout"});if(A)return this.layoutProvider.setLayoutData(A)}toQuickPickValue(f,l){return{label:(0,o.getKeyboardLayoutId)(f.layout),value:f}}};t.KeymapsContribution=d,n.__decorate([(0,r.Autowired)(m.QuickPickService),n.__metadata("design:type",Object)],d.prototype,"quickPickService",void 0),n.__decorate([(0,r.Autowired)(o.KeyboardNativeLayoutService),n.__metadata("design:type",Object)],d.prototype,"layoutProvider",void 0),n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],d.prototype,"filesystem",void 0),n.__decorate([(0,r.Autowired)(a),n.__metadata("design:type",a)],d.prototype,"keymapsResourceProvider",void 0),n.__decorate([(0,r.Autowired)(p.IKeymapService),n.__metadata("design:type",Object)],d.prototype,"keymapService",void 0),t.KeymapsContribution=d=n.__decorate([(0,o.Domain)(o.CommandContribution,o.KeybindingContribution,o.ClientAppContribution,_.BrowserEditorContribution,c.MenuContribution)],d)},85448:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapService=void 0;const r=e(85608),o=r.__importStar(e(39050)),c=e(76003),_=e(41869),v=e(68969),m=e(14951),p=e(25067),s=e(2312);let g=n=class{constructor(){this.keymapChangeEmitter=new _.Emitter,this.convertKeySequence=[],this.toUnregisterUserKeybindingMap=new Map,this.toRestoreDefaultKeybindingMap=new Map,this.searchDelayer=new _.ThrottledDelayer(n.DEFAULT_SEARCH_DELAY),this.disposableCollection=new _.DisposableCollection,this._whenReadyDeferred=new _.Deferred,this.fuzzyOptions={pre:"<match>",post:"</match>"},this.reconcileQueue=new _.Throttler,this.keybindings=[],this.updateKeybindings=()=>{this.currentSearchValue?this.doSearchKeybindings(this.currentSearchValue):(0,_.runWhenIdle)(()=>{this.keybindings=this.getKeybindingItems(),this.keymapChangeEmitter.fire(this.keybindings)})},this.setKeybinding=(h,u)=>this.progressService.withProgress({location:_.ProgressLocation.Notification},d=>new Promise((E,f)=>{d.report({message:(0,_.localize)("keymaps.keybinding.loading"),increment:0,total:100});const l=this.storeKeybindings||[];let y=!1;for(const b of l){const A={when:b.when,command:b.command,keybinding:b.key};if(b.command===u.command){y=!0,this.unregisterUserKeybinding(A);const S=this.toUniqueKey(h),w=this.toRestoreDefaultKeybindingMap.get(S);if(w){const T=this.toUniqueKey(u);this.toRestoreDefaultKeybindingMap.delete(S),this.toRestoreDefaultKeybindingMap.set(T,w)}b.key=u.keybinding,this.registerUserKeybinding({...A,priority:_.KeybindingWeight.WorkbenchContrib*100})}}if(!y){const b=this.keybindings.find(S=>S.id===u.command&&this.getRaw(S.when)===u.when);if(b&&b.keybinding){this.unregisterDefaultKeybinding({when:this.getRaw(b.when),command:b.id,keybinding:this.getRaw(b.keybinding)});const S=this.toUniqueKey(h),w=this.toRestoreDefaultKeybindingMap.get(S);if(w){const T=this.toUniqueKey(u);this.toRestoreDefaultKeybindingMap.delete(S),this.toRestoreDefaultKeybindingMap.set(T,w)}}const A={when:this.getWhen(u),command:u.command,key:u.keybinding};l.push(A),this.registerUserKeybinding(u)}return this.saveKeybinding(l).then(()=>{E(void 0),d.report({message:(0,_.localize)("keymaps.keybinding.success"),increment:99})}).catch(b=>{f(b),d.report({message:(0,_.localize)("keymaps.keybinding.fail"),increment:99})}).finally(()=>{setTimeout(()=>{d.report({increment:100})},3e3)})}),()=>{}),this.covert=h=>this.keybindingService.convert(h," "),this.clearCovert=()=>this.keybindingService.clearConvert(),this.resetKeybinding=async h=>{if(!this.resource)return;const d=this.storeKeybindings.filter(E=>E.command!==h.command);return this.unregisterUserKeybinding(h),this.restoreDefaultKeybinding(h),this.saveKeybinding(d)},this.fixed=async()=>{this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!1})},this.searchKeybindings=h=>{this.currentSearchValue=h,this.searchDelayer.isTriggered()||this.searchDelayer.cancel(),this.searchDelayer.trigger(async()=>{this.doSearchKeybindings(this.currentSearchValue)})},this.isSearching=!1,this.doSearchKeybindings=h=>{h?this.isSearching=!0:this.isSearching=!1;const u=this.getKeybindingItems(),d=[];u.forEach(E=>{const f=["id","command","keybinding","when","context","source"];let l=!1;for(const y of f){const b=E[y];if(b){const A=o.match(h,b,this.fuzzyOptions);if(A)E[y]=A.rendered,l=!0;else if(y==="keybinding"){const S=h.split("+"),w=b.split(" "),T=[0];let D=[];w.length>1?w.forEach(M=>{const R=M.split("+");T.push(R.length+T[-1]),D.push(...R)}):D=b.split("+"),T.shift();const I=[...D];let O=0;if(S.forEach(M=>{let R={rendered:"",score:0},P=-1;if(b){D.forEach(F=>{const L=o.match(M,F,this.fuzzyOptions);L&&L.score>R.score&&(R=L,P=I.indexOf(F))});const k=R.rendered;k&&(P>-1&&(I[P]=k),D.splice(P,1,""),O+=1)}}),O===S.length){if(T.length>0){const M="";I.forEach((R,P)=>{P===0?M.concat(R):T.indexOf(P)!==-1?M.concat(" "+R):M.concat("+"+R)}),E[y]=M}E[y]=I.join("+"),l=!0}}}}l&&d.push(E)}),this.keybindings=d,this.keymapChangeEmitter.fire(this.keybindings)},this.validateKeybinding=(h,u)=>{if(!u)return(0,_.localize)("keymaps.keybinding.require");try{const d={command:this.isSearching?this.getRaw(h.command):h.command,when:this.isSearching?this.getRaw(h.when):h.when,keybinding:this.isSearching?this.getRaw(u):u};return h.keybinding===u?" ":this.keybindingRegistry.validateKeybindingInScope(d)}catch(d){return d}},this.detectKeybindings=(h,u)=>{if(!u)return[];try{if(h.keybinding===u)return[];const d=this.keybindings.filter(E=>this.getRaw(E.keybinding)===u);if(d.length>0)return d.map(E=>{const f=this.commandRegistry.getCommand(this.getRaw(E.command)),l=this.storeKeybindings.find(y=>f&&y.command===f.id);return E.when=this.getRaw(E.when),E.keybinding=this.getRaw(E.keybinding),{id:f?f.id:this.getRaw(E.command),command:(f?f.label||f.id:E.command)||"",when:this.keybindingService.convertMonacoWhen(E.when),keybinding:this.getRaw(E.keybinding),source:l?this.getScope(_.KeybindingScope.USER):this.getScope(_.KeybindingScope.DEFAULT)}})}catch(d){this.logger.error(d)}return[]}}get onDidKeymapChanges(){return this.keymapChangeEmitter.event}get storeKeybindings(){return this._storeKeybindings&&this._storeKeybindings.map(h=>({...h,command:this.getValidateCommand(h.command),key:h.key||h.keybinding}))}set storeKeybindings(h){this._storeKeybindings=h}get whenReady(){return this._whenReadyDeferred.promise}async init(){await this.reconcile();const h=await this.filesystem.watchFileChanges(n.KEYMAP_FILE_URI);this.disposableCollection.push(h),h.onFilesChanged(()=>{this.reconcileQueue.queue(this.reconcile.bind(this))}),this._whenReadyDeferred.resolve()}async openResource(){if(!this.resource||!this.resource.uri)return;const h=await this.resource.uri;if(!h)return;if(!await this.filesystem.access(h)){const d=await this.filesystem.createFile(h),E=await this.filesystem.setContent(d,`{
31929
31929
  }`);this.resource=E||void 0}h&&this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI(h),{preview:!1})}disposeRegistedKeybinding(){for(const[,h]of this.toUnregisterUserKeybindingMap)h.dispose();for(const[,h]of this.toRestoreDefaultKeybindingMap)h.dispose()}dispose(){this.disposeRegistedKeybinding(),this.disposableCollection.dispose()}getValidateCommand(h){return h.replace(/^monaco.editor/,"editor")}async reconcile(h){const u=n.KEYMAP_FILE_URI.toString();this.resource=await this.filesystem.getFileStat(u),this.resource||(this.resource=await this.filesystem.createFile(u,{content:JSON.stringify([])}));const E=(h?h.slice(0):await this.parseKeybindings()).map(y=>({when:y.when,command:this.getValidateCommand(y.command),keybinding:y.key||y.keybinding})),f=[],l=[];this.disposeRegistedKeybinding(),E.forEach(y=>{y.command.startsWith("-")?l.push(y):f.push(y)}),f.map(y=>{this.unregisterDefaultKeybinding(y,!0),this.registerUserKeybinding(y)}),l.map(y=>{y.command=y.command.slice(1),this.unregisterDefaultKeybinding(y,!0)})}unregisterUserKeybinding(h){const u=this.toUniqueKey(h);if(this.toUnregisterUserKeybindingMap.has(u)){const d=this.toUnregisterUserKeybindingMap.get(u);d?.dispose(),this.toUnregisterUserKeybindingMap.delete(u)}}registerUserKeybinding(h){const u=this.toUniqueKey(h);this.toUnregisterUserKeybindingMap.set(u,this.keybindingRegistry.registerKeybinding(h,_.KeybindingScope.USER))}unregisterDefaultKeybinding(h,u=!1){if(u)this.keybindingRegistry.getKeybindingsForCommand(h.command).map(E=>{const f={...h,keybinding:E.keybinding};this.keybindingRegistry.unregisterKeybinding(f);const l=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(l,_.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(f)}))});else{this.keybindingRegistry.unregisterKeybinding(h);const d=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(d,_.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(h)}))}}restoreDefaultKeybinding(h){const u=this.toUniqueKey(h),d=this.toRestoreDefaultKeybindingMap.get(u);d&&(d?.dispose(),this.toRestoreDefaultKeybindingMap.delete(u))}toUniqueKey(h){return`${h.command}${h.when?`-${h.when}`:"-"}${h.keybinding?`-${h.keybinding}`:"-"}`}async parseKeybindings(){try{const h=await this.resource;if(!h)return[];const{content:u}=await this.filesystem.readFile(h.uri);this.storeKeybindings=this.parser.parse(u.toString())}catch(h){this.logger.warn(`ParseKeybindings fail: ${h.stack}`),this.storeKeybindings=[]}return this.storeKeybindings}async saveKeybinding(h){this.storeKeybindings=h,this.updateKeybindings(),this.resource||(this.resource=await this.filesystem.createFile(n.KEYMAP_FILE_URI.toString()));const u=await this.filesystem.setContent(this.resource,JSON.stringify(h,void 0,2));this.resource=u||void 0}async getKeybindings(){return this.storeKeybindings.map(h=>({command:h.command,keybinding:h.key,when:h.when,args:h.args}))}async open(){this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!0})}getWhen(h){return h?this.keybindingService.convertMonacoWhen(h.when):""}getScope(h){return h===_.KeybindingScope.DEFAULT?(0,_.localize)("keymaps.source.default"):h===_.KeybindingScope.USER?(0,_.localize)("keymaps.source.user"):h===_.KeybindingScope.WORKSPACE?(0,_.localize)("keymaps.source.workspace"):""}getKeybindingItems(){const h=this.commandRegistry.getCommands(),u=[];for(const b of h){const A=this.keybindingRegistry.getKeybindingsForCommand(b.id);!A||!A.length?b.label&&u.push({id:b.id,command:b.label,hasCommandLabel:!0}):A.forEach(S=>{let w;if(this.storeKeybindings){const T=this.storeKeybindings.find(D=>b&&D.command===b.id);w={id:b.id,command:b.label||b.id,keybinding:T?T.key:S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:T?this.getWhen(T):this.getWhen(A&&S),source:T?this.getScope(_.KeybindingScope.USER):this.getScope(_.KeybindingScope.DEFAULT),hasCommandLabel:!!b.label}}else w={id:b.id,command:b.label||b.id,keybinding:A&&S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:this.getWhen(A&&S),source:A&&S&&typeof S.scope<"u"?this.getScope(S.scope):"",hasCommandLabel:!!b.label};u.push(w)})}const d=u.sort((b,A)=>this.compareItem(b,A)),E=d.filter(b=>!!b.keybinding),f=d.filter(b=>!b.keybinding&&b.hasCommandLabel),l=E.filter(b=>b.hasCommandLabel),y=E.filter(b=>!b.hasCommandLabel);return[...l,...y,...f]}compareItem(h,u){return h&&u?h.source===u.source?h.command.toLowerCase().localeCompare(u.command.toLowerCase()):h.source===this.getScope(_.KeybindingScope.USER)?-1:1:0}getRaw(h){return h?h.replace(new RegExp(/<(\/)?match>/gi),""):""}};t.KeymapService=g,g.DEFAULT_SEARCH_DELAY=100,g.KEYMAP_FILE_URI=new _.URI().withScheme(_.Schemes.userStorage).withPath(p.KEYMAPS_FILE_NAME),r.__decorate([(0,c.Autowired)(_.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keyBindingRegistry",void 0),r.__decorate([(0,c.Autowired)(s.KeymapsParser),r.__metadata("design:type",s.KeymapsParser)],g.prototype,"parser",void 0),r.__decorate([(0,c.Autowired)(_.CommandService),r.__metadata("design:type",Object)],g.prototype,"commandService",void 0),r.__decorate([(0,c.Autowired)(_.CommandRegistry),r.__metadata("design:type",Object)],g.prototype,"commandRegistry",void 0),r.__decorate([(0,c.Autowired)(_.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keybindingRegistry",void 0),r.__decorate([(0,c.Autowired)(_.KeybindingService),r.__metadata("design:type",Object)],g.prototype,"keybindingService",void 0),r.__decorate([(0,c.Autowired)(m.IFileServiceClient),r.__metadata("design:type",Object)],g.prototype,"filesystem",void 0),r.__decorate([(0,c.Autowired)(_.ILogger),r.__metadata("design:type",Object)],g.prototype,"logger",void 0),r.__decorate([(0,c.Autowired)(v.IProgressService),r.__metadata("design:type",Object)],g.prototype,"progressService",void 0),t.KeymapService=g=n=r.__decorate([(0,c.Injectable)()],g)},34879:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(97267),_=e(41869),v=e(25067),m=n.__importDefault(e(78541)),p=()=>{const{keybindings:s,searchKeybindings:g,validateKeybinding:a,detectKeybindings:h,setKeybinding:u,resetKeybinding:d,getRaw:E,getScope:f,covert:l,clearCovert:y,fixed:b,onDidKeymapChanges:A,updateKeybindings:S}=(0,_.useInjectable)(v.IKeymapService),[w,T]=o.default.useState(!1),[D,I]=o.default.useState(""),[O,M]=o.default.useState(s),R=({data:Q,index:V})=>{const{id:G,command:Y,when:H,source:$,keybinding:K}=Q,[X,Z]=o.default.useState(!1),[oe,ie]=o.default.useState(K||""),[ge,pe]=o.default.useState(!1),[q,Se]=o.default.useState(),[_e,ne]=o.default.useState([]),ue=()=>{ge||(b(),pe(!0)),y(),ie(E(K)),Z(!0)},Ie=Ne=>{const me=a(Q,Ne);me?me!==" "?Se({message:me,type:c.VALIDATE_TYPE.ERROR}):Z(!1):(u({command:E(G),when:E(H)||"",keybinding:E(K)},{command:E(G),when:E(H)||"",keybinding:Ne}),Z(!1),y())},xe=()=>{Z(!1)},be=Ne=>{Ne.stopPropagation(),Ne.preventDefault();const{key:me}=_.KeyCode.createKeyCode(Ne.nativeEvent),re=Ne.nativeEvent.shiftKey||Ne.nativeEvent.metaKey||Ne.nativeEvent.altKey||Ne.nativeEvent.ctrlKey;me&&_.Key.ENTER.keyCode===me.keyCode&&!re?oe&&Ie(oe):ie(l(Ne.nativeEvent))},ye=()=>{const Ne=()=>{Se(void 0),oe&&ie(""),y()},me=re=>{re.stopPropagation(),re.preventDefault()};return o.default.createElement("div",{className:m.default.keybinding_optional_actions,onMouseDown:me},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:Ne,title:(0,_.localize)("keymaps.action.clear")}))},Ce=()=>o.default.createElement("div",{className:m.default.keybinding_key_input_placeholder},"\u23CE"),fe=Ne=>{const me=re=>{re.preventDefault(),ge||(b(),pe(!0)),d({command:E(G),when:E(H)||"",keybinding:oe})};if(Ne&&E(Ne)===f(_.KeybindingScope.USER))return o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("rollback"),m.default.keybinding_inline_action),onClick:me,title:(0,_.localize)("keymaps.action.reset")})},Pe=()=>{if(!q&&_e.length>0)return o.default.createElement("div",{className:m.default.keybinding_detective_messages},o.default.createElement("div",{className:m.default.keybinding_detective_messages_label},(0,_.formatLocalize)("keymaps.keybinding.duplicate",_e.length)),o.default.createElement("ul",{className:m.default.keybinding_detective_messages_container},_e.map((Ne,me)=>o.default.createElement("li",{className:m.default.keybinding_detective_messages_item,key:`${Ne.id}_${me}`,title:`${Ne.command}-${Ne.when}`},o.default.createElement("div",{className:m.default.title},(0,_.localize)("keymaps.header.command.title"),": ",E(Ne.command)||"-"),o.default.createElement("div",{className:m.default.description},o.default.createElement("div",{style:{marginRight:4}},(0,_.localize)("keymaps.header.source.title"),": ",E(Ne.source)||"-"),o.default.createElement("div",null,(0,_.localize)("keymaps.header.when.title"),": ",E(Ne.when)||"\u2014"))))))},Te=()=>{if(X)return o.default.createElement("div",{className:m.default.keybinding_key_input_container},ye(),o.default.createElement(c.ValidateInput,{placeholder:(0,_.localize)("keymaps.edit.placeholder"),validateMessage:q,className:m.default.keybinding_key_input,size:"small",autoFocus:!0,name:_.NO_KEYBINDING_NAME,value:oe,onKeyDown:be,onBlur:xe}),Ce(),Pe());{const Ne=K?.split(" ");return o.default.createElement("div",{className:m.default.keybinding_key,title:E(K),onDoubleClick:ue},o.default.createElement("div",{className:m.default.keybinding_action,onClick:ue},o.default.createElement("span",{className:(0,r.default)(K?(0,_.getIcon)("edit"):(0,_.getIcon)("plus"),m.default.keybinding_inline_action),title:K?(0,_.localize)("keymaps.action.edit"):(0,_.localize)("keymaps.action.add")}),fe($)),Ne&&Ne[0]?Ne.map((me,re)=>{const he=me.split("+");return o.default.createElement("div",{className:m.default.keybinding_key_block,key:`${me}_${re}`},he.map((Oe,De)=>o.default.createElement("div",{className:m.default.keybinding_key_item,key:`${Oe}_${De}`,dangerouslySetInnerHTML:{__html:Oe||""}})))}):"\u2014")}};return(0,o.useEffect)(()=>{q&&Se(void 0),ne(oe&&X?h(Q,oe):[])},[oe]),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item,V%2===1&&m.default.odd)},o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box,m.default.keybinding_command)},o.default.createElement("div",{className:m.default.command_name,title:E(Y),dangerouslySetInnerHTML:{__html:Y}}),o.default.createElement("div",{className:(0,r.default)(m.default.limit_warp,m.default.command_id),title:E(G),dangerouslySetInnerHTML:{__html:(0,_.formatLocalize)("keymaps.commandId.title",G)}})),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box)},Te()),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{className:m.default.limit_warp,title:E(H||"\u2014"),dangerouslySetInnerHTML:{__html:H||"\u2014"}})),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{title:E($),dangerouslySetInnerHTML:{__html:$||""}})))},P=()=>{const Q=()=>{T(!w)};return o.default.createElement("div",{className:m.default.search_inline_action},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("keyboard"),m.default.search_inline_action_icon,w&&m.default.active),onClick:Q}))},k=(0,o.useCallback)(Q=>{I(Q),g(Q)},[D]),F=Q=>{if(!w){const V=Q.target&&Q.target.value?Q.target.value.toLocaleLowerCase():"";k(V)}},L=Q=>{if(w){Q.stopPropagation(),Q.preventDefault();const{key:V}=_.KeyCode.createKeyCode(Q.nativeEvent);if(V&&_.Key.ENTER.keyCode===V.keyCode)return;k(l(Q.nativeEvent))}},B=()=>{D&&(I(""),g("")),y()},j=()=>o.default.createElement("div",{className:m.default.keybinding_optional_actions},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:B,title:(0,_.localize)("keymaps.action.reset")})),W=()=>o.default.createElement("div",{className:m.default.search_container},o.default.createElement(c.Input,{className:m.default.search_input,placeholder:(0,_.localize)(w?"keymaps.search.keyboard.placeholder":"keymaps.search.placeholder"),type:"text",value:D,name:_.NO_KEYBINDING_NAME,onChange:F,onKeyDown:L,addonBefore:P()}),j()),U=(0,o.useMemo)(()=>{const Q=[{title:(0,_.localize)("keymaps.header.command.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.keybinding.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.when.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.source.title"),classname:m.default.keybinding_header_item}];return o.default.createElement("div",{className:m.default.keybinding_header},Q.map((V,G)=>o.default.createElement("div",{className:V.classname,key:`${V.title}_${G}`},V.title)))},[]);return(0,o.useEffect)(()=>{const Q=A(V=>{M(V)});return S(),()=>{Q.dispose()}},[]),o.default.createElement("div",{className:m.default.keybinding_container},o.default.createElement("div",{className:m.default.keybinding_searchbar},W()),o.default.createElement("div",{className:m.default.keybinding_body},U,o.default.createElement("div",{className:m.default.keybinding_list},o.default.createElement(c.RecycleList,{itemHeight:40,data:O,template:R,className:m.default.keybinding_list_container}))))};t.KeymapsView=p},79312:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEYMAPS_FILE_NAME=t.KEYMAPS_SCHEME=void 0,t.KEYMAPS_SCHEME="keymaps",t.KEYMAPS_FILE_NAME="keymaps.json"},25067:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(79312),t),n.__exportStar(e(88811),t)},88811:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IKeymapService=void 0,t.IKeymapService=Symbol("IKeymapService")},83507:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogModule=t.LogServiceClient=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(47548),_=e(49187);n.__exportStar(e(47548),t);var v=e(1700);Object.defineProperty(t,"LogServiceClient",{enumerable:!0,get:function(){return v.LogServiceClient}});let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:c.ILoggerManagerClient,useClass:_.LoggerManagerClient}],this.backServices=[{servicePath:c.LogServiceForClientPath,clientToken:c.ILoggerManagerClient}]}};t.LogModule=m,t.LogModule=m=n.__decorate([(0,r.Injectable)()],m)},49187:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerManagerClient=void 0;const n=e(85608),r=e(76003),o=e(43718),c=e(47548),_=e(1700);let v=class{constructor(){this.logLevelChangeEmitter=new o.Emitter}getLogger(p,s){const g=new _.LogServiceClient(p);return g.setup(this.logServiceForClient,s),g}getBrowserLogger(p){return new _.LogServiceClient(p)}async getLogFolder(){return await this.logServiceForClient.getLogFolder()}async setGlobalLogLevel(p){return await this.logServiceForClient.setGlobalLogLevel(p)}async getGlobalLogLevel(){return await this.logServiceForClient.getGlobalLogLevel()}async dispose(){return this.logLevelChangeEmitter.dispose(),await this.logServiceForClient.disposeAll()}get onDidChangeLogLevel(){return this.logLevelChangeEmitter.event}onDidLogLevelChanged(p){this.logLevelChangeEmitter.fire(p)}};t.LoggerManagerClient=v,n.__decorate([(0,r.Autowired)(c.LogServiceForClientPath),n.__metadata("design:type",Object)],v.prototype,"logServiceForClient",void 0),t.LoggerManagerClient=v=n.__decorate([(0,r.Injectable)()],v)},1700:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogServiceClient=void 0;const n=e(43718),r=e(47548);class o{constructor(_){this.level=r.LogLevel.Verbose,this.ready=new n.Deferred,this.namespace=_,this.debugLog=new r.DebugLog(_)}async setup(_,v){this.logServiceForClient=_,this.pid=v;const m=await this.logServiceForClient.getGlobalLogLevel();this.level=m,this.ready.resolve()}async getLevel(){return this.logServiceForClient?await this.logServiceForClient.getLevel(this.namespace):this.level}async setLevel(_){this.level=_,this.logServiceForClient&&await this.logServiceForClient.setLevel(this.namespace,_)}async verbose(..._){this.debugLog.verbose(..._),this.logServiceForClient&&await this.logServiceForClient.verbose(this.namespace,(0,r.format)(_),this.pid)}async debug(..._){this.debugLog.debug(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Debug)&&await this.logServiceForClient.debug(this.namespace,(0,r.format)(_),this.pid))}async log(..._){this.debugLog.log(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Info)&&await this.logServiceForClient.log(this.namespace,(0,r.format)(_),this.pid))}async warn(..._){this.debugLog.warn(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Warning)&&await this.logServiceForClient.warn(this.namespace,(0,r.format)(_),this.pid))}async error(..._){this.debugLog.error(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Error)&&await this.logServiceForClient.error(this.namespace,(0,r.format)(_),this.pid))}async critical(..._){this.debugLog.error(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Critical)&&await this.logServiceForClient.critical(this.namespace,(0,r.format)(_),this.pid))}async dispose(){this.debugLog.destroy(),this.logServiceForClient&&await this.logServiceForClient.disposeLogger(this.namespace)}}t.LogServiceClient=o},47548:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(4892),t),n.__exportStar(e(46196),t)},46196:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogServiceForClient=void 0,t.format=e,t.ILogServiceForClient=Symbol("LogServiceForClient");function e(n){let r="";for(let o=0;o<n.length;o++){let c=n[o];if(c instanceof Error){const _=Array.prototype.slice.call(arguments);_[0]=c.stack,c=e(_)}else if(typeof c=="object")try{c=JSON.stringify(c)}catch{}else if(typeof c=="symbol")try{c=c.toString()}catch{}r+=(o>0?" ":"")+c}return r}},73344:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(47548),t)},9522:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionServiceFactory=t.AccordionService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=n.__importDefault(e(46343)),c=e(76003),_=e(41869),v=e(81878),m=e(71707),p=e(95416),s=e(93899),g=e(68969),a=e(28423),h=e(17793);let u=class extends _.WithEventBus{get views(){return this.viewsObservable.get()}get state(){return this.stateObservable.get()}constructor(E,f){super(),this.containerId=E,this.noRestore=f,this.forceRevealContextKeys=new Map,this.viewWhenContextkeys=new Set,this.appendedViewSet=new Set,this.viewsWithContextKey=new Set,this.viewsObservable=(0,a.observableValue)(this,[]),this.stateObservable=(0,a.observableValue)(this,{}),this.visibleViews=(0,a.derived)(this,l=>{const y=this.viewsObservable.read(l);return this.stateObservable.read(l),y.filter(b=>!this.getViewState(b.id).hidden)}),this.rendered=!1,this.menuId=`${s.MenuId.AccordionContext}/${this.containerId}`,this.toDispose=new Map,this.didChangeViewTitleEmitter=this.registerDispose(new _.Emitter),this.onDidChangeViewTitle=this.didChangeViewTitleEmitter.event,this.beforeAppendViewEmitter=this.registerDispose(new _.Emitter),this.onBeforeAppendViewEvent=this.beforeAppendViewEmitter.event,this.afterAppendViewEmitter=this.registerDispose(new _.Emitter),this.onAfterAppendViewEvent=this.afterAppendViewEmitter.event,this.afterDisposeViewEmitter=this.registerDispose(new _.Emitter),this.onAfterDisposeViewEvent=this.afterDisposeViewEmitter.event,this.doUpdateResize=(0,r.default)(()=>{var l,y;let b;if(Object.keys(this.state).forEach(A=>{this.state[A].hidden||this.state[A].collapsed||(b?(this.state[A].size||0)>(this.state[b].size||0)&&(b=A):b=A)}),b&&this.splitPanelService.isVisible&&this.expandedViews.length>1&&!((l=this.splitPanelService.rootNode)===null||l===void 0)&&l.clientHeight){const A=((y=this.splitPanelService.rootNode)===null||y===void 0?void 0:y.clientHeight)-this.getPanelFullHeight();if(A){const S=this.state;S[b].size+=A,(0,a.transaction)(w=>{this.stateObservable.set({...S},w)}),this.toggleOpen(b,!1)}}},16),this.storeState=()=>{this.noRestore||!this.rendered||this.layoutState.setState(p.LAYOUT_STATE.getContainerSpace(this.containerId),this.state)},this.handleSectionClick=(l,y,b)=>{this.doToggleOpen(l,y,b)},this.handleContextMenu=(l,y)=>{l.preventDefault();const b=this.ctxMenuService.createMenu({id:this.menuId,config:{args:[{viewId:y}]},contextKeyService:y?this.viewContextKeyRegistry.getContextKeyService(y):void 0}),A=b.getGroupedMenuNodes();b.dispose(),this.contextMenuRenderer.show({menuNodes:A[1],anchor:{x:l.clientX,y:l.clientY}})},this.addDispose((0,a.recomputeInitiallyAndOnChange)(this.visibleViews)),this.splitPanelService=this.splitPanelManager.getService(E),this.addDispose(this.splitPanelService),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithSection",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,_.localize)("layout.view.hide","Hide")},group:"0_global",when:"triggerWithSection == true"}),this.viewContextKeyRegistry.afterContextKeyServiceRegistered(this.containerId,l=>{this.topViewKey=l.createKey("view",E),setTimeout(()=>{this.popViewKeyIfOnlyOneViewVisible()})}),this.addDispose(_.Event.debounce(this.contextKeyService.onDidChangeContext,(l,y)=>l||y.payload.affectsSome(this.viewWhenContextkeys),50)(l=>l&&this.handleContextKeyChange(),this)),this.splitPanelService.whenReady.then(()=>{this.listenWindowResize()})}updateViewTitle(E,f){const l=this.views.find(y=>y.id===E);l?(l.name=f,this.didChangeViewTitleEmitter.fire({id:E,title:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion title`)}updateViewDesciption(E,f){const l=this.views.find(y=>y.id===E);l?(l.description=f,this.didChangeViewTitleEmitter.fire({id:E,description:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion description`)}updateViewMessage(E,f){const l=this.views.find(y=>y.id===E);l?(l.message=f,this.didChangeViewTitleEmitter.fire({id:E,message:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}updateViewBadge(E,f){const l=this.views.find(y=>y.id===E);l?(l.badge=f,this.didChangeViewTitleEmitter.fire({id:E,badge:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}tryUpdateResize(){this.doUpdateResize()}restoreState(){if(this.noRestore)return;const E={};this.visibleViews.get().forEach(l=>E[l.id]={collapsed:!1,hidden:!1});const f=this.layoutState.getState(p.LAYOUT_STATE.getContainerSpace(this.containerId),E);(0,o.default)(f,E)||(0,a.transaction)(l=>{this.stateObservable.set({...f},l)}),this.popViewKeyIfOnlyOneViewVisible(),this.splitPanelService.whenReady.then(()=>{this.restoreSize(),this.rendered=!0})}restoreSize(){var E;let f=((E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight)||0,l;if(this.visibleViews.get().forEach((y,b)=>{const A=this.state[y.id];A.collapsed?(this.setSize(b,0,!1,!0),f-=this.headerSize):!A.collapsed&&A.size&&(this.setSize(b,A.size,!1,!0),f-=A.size,l=b)}),l){const y=this.visibleViews.get()[l];this.setSize(l,this.state[y.id].size+f)}}initConfig(E){const{headerSize:f,minSize:l}=E;this.headerSize=f,this.minSize=l}registerContextService(E){let f=this.viewContextKeyRegistry.getContextKeyService(E);return f||(f=this.contextKeyService.createScoped(),f.createKey("view",E),this.viewContextKeyRegistry.registerContextKeyService(E,f)),f}getSectionToolbarMenu(E){const f=this.registerContextService(E),l=this.menuService.createMenu(s.MenuId.ViewTitle,f),y=this.views.find(b=>b.id===E);return y&&(y.titleMenu=l),l}updateView(E){(0,a.transaction)(f=>{const l=this.views;if(E.priority){const y=l.findIndex(b=>(b.priority||0)<(E.priority||0));l.splice(y===-1?l.length:y,0,E),this.viewsObservable.set([...l],f)}else this.viewsObservable.set([...l,E],f)})}appendView(E,f){if(this.appendedViewSet.has(E.id)&&!f)return;const l=new _.DisposableCollection;l.push(this.progressService.registerProgressIndicator(E.id));const y=this.views.findIndex(b=>b.id===E.id);if(y!==-1){(0,a.transaction)(b=>{const A=this.views;A[y]=Object.assign({},A[y],E),this.viewsObservable.set([...A],b)});return}if(E.when){this.viewsWithContextKey.add(E);const b=this.createRevealContextKey(E.id);if(this.fillKeysInWhenExpr(this.viewWhenContextkeys,E.when),!this.contextKeyService.match(E.when)&&!this.contextKeyService.match(b))return;this.appendedViewSet.add(E.id)}this.beforeAppendViewEmitter.fire(E.id),this.updateView(E),this.registerContextService(E.id),l.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(E.id,l),label:(E.name||E.id).toUpperCase()},group:"1_widgets"})),this.toDispose.set(E.id,l),this.popViewKeyIfOnlyOneViewVisible(),this.afterAppendViewEmitter.fire(E.id)}disposeView(E){const f=this.views.findIndex(y=>y.id===E);f>-1&&(0,a.transaction)(y=>{const b=this.views;b.splice(f,1),this.viewsObservable.set([...b],y)});const l=this.toDispose.get(E);l&&l.dispose(),this.appendedViewSet.delete(E),this.popViewKeyIfOnlyOneViewVisible(),this.afterDisposeViewEmitter.fire(E)}revealView(E){const f=this.forceRevealContextKeys.get(E);f&&f.key.set(!0)}disposeAll(){(0,a.transaction)(E=>{this.viewsObservable.set([],E)}),this.toDispose.forEach(E=>{E.dispose()})}onResize(E){if(E.payload.slotLocation&&this.state[E.payload.slotLocation]){const f=E.payload.slotLocation;_.fastdom.measureAtNextFrame(()=>{const l=document.getElementById(f);if(l){const y=this.state;y[f].size=l.clientHeight,(0,a.transaction)(b=>{this.stateObservable.set({...y},b)}),this.storeState()}})}}getPanelFullHeight(E){return Object.keys(this.state).filter(f=>this.views.find(l=>l.id===f)&&f!==E).reduce((f,l)=>f+(this.state[l].collapsed?this.headerSize:this.state[l].hidden?0:this.state[l].size),0)}listenWindowResize(){window.addEventListener("resize",this.doUpdateResize),this.addDispose({dispose:()=>window.removeEventListener("resize",this.doUpdateResize)})}createRevealContextKey(E){const f=`forceShow.${E}`;return this.forceRevealContextKeys.set(E,{when:`${f} == true`,key:this.contextKeyService.createKey(f,!1)}),this.viewWhenContextkeys.add(f),`${f} == true`}registerGlobalToggleCommand(){const E=`view-container.hide.${this.containerId}`;return this.commandRegistry.registerCommand({id:E},{execute:({viewId:f})=>{this.doToggleView(f)},isEnabled:()=>this.visibleViews.get().length>1}),E}registerVisibleToggleCommand(E,f){const l=`view-container.hide.${E}`;return f.push(this.commandRegistry.registerCommand({id:l},{execute:({forceShow:y}={})=>{this.doToggleView(E,y)},isToggled:()=>!this.getViewState(E).hidden,isEnabled:()=>this.getViewState(E).hidden||this.visibleViews.get().length>1})),l}doToggleView(E,f){const l=this.getViewState(E);let y;f===void 0?y=!l.hidden:y=!f,l.hidden=y,this.updateViewState(E,l),this.popViewKeyIfOnlyOneViewVisible(),this.storeState()}popViewKeyIfOnlyOneViewVisible(){if(!this.topViewKey)return;const E=this.visibleViews.get();E.length===1?this.topViewKey.set(E[0].id):this.topViewKey.reset()}toggleViewVisibility(E,f){this.doToggleView(E,f)}get expandedViews(){return this.views.filter(E=>{const f=this.state[E.id];return!f||f&&!f.hidden&&!f.collapsed})}toggleOpen(E,f){const l=this.visibleViews.get().findIndex(y=>y.id===E);l>-1&&this.doToggleOpen(E,f,l,!0)}getViewState(E){let f=this.state[E];const l=this.views.find(y=>y.id===E);return f||(this.updateViewState(E,{collapsed:l?.collapsed||!1,hidden:l?.hidden||!1}),f=this.state[E]),f}updateViewState(E,f){const l=this.state;l[E]=f,(0,a.transaction)(y=>{this.stateObservable.set({...l},y)})}doToggleOpen(E,f,l,y){var b;const A=this.getViewState(E);this.updateViewState(E,{...A,collapsed:f});const S=this.mainLayoutService.getContainer(this.containerId);if(((b=S?.options)===null||b===void 0?void 0:b.alignment)!=="horizontal"){let w;f?w=this.setSize(l,0,!1,y):w=this.setSize(l,this.expandedViews.length===1?this.getAvailableSize():A.size||this.minSize,!1,y);for(let T=this.visibleViews.get().length-1;T>l;T--)this.getViewState(this.visibleViews.get()[T].id).collapsed!==!0?w=this.setSize(T,w,!0,y):this.setSize(T,0,!1,y);for(let T=l-1;T>=0;T--)(this.state[this.visibleViews.get()[T].id]||{}).collapsed!==!0?w=this.setSize(T,w,!0,y):this.setSize(T,0,!1,y)}this.eventBus.fire(new h.ViewCollapseChangedEvent({viewId:E,collapsed:f}))}setSize(E,f,l,y){var b;const A=this.visibleViews.get()[E],S=(b=this.splitPanelService.rootNode)===null||b===void 0?void 0:b.clientHeight,w=this.splitPanelService.panels[E];if(!w)return 0;y||w.classList.add("resize-ease"),!f&&!l?(f=this.headerSize,w.classList.add(v.RESIZE_LOCK)):w.classList.remove(v.RESIZE_LOCK);const T=w.clientHeight,D=this.getViewState(A.id);let I=f;if(l&&(I=Math.max(T-f,this.minSize)),E===this.expandedViews.length-1&&(0,_.isDefined)(S))if(I+E*this.minSize>S)I-=I+E*this.minSize-S;else{const O=this.getPanelFullHeight(A.id);I+O<S&&(I+=S-(I+O))}if(this.rendered){let O;f===this.headerSize?O=T:O=I,O!==this.headerSize&&(D.size=O)}return this.storeState(),D.nextSize=I,y||setTimeout(()=>{w.classList.remove("resize-ease")},200),l?I-(T-f):f-T}getAvailableSize(){var E;const f=(E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight;return f?f-(this.visibleViews.get().length-1)*this.headerSize:0}handleContextKeyChange(){Array.from(this.viewsWithContextKey.values()).forEach(E=>{this.contextKeyService.match(E.when)||this.contextKeyService.match(this.forceRevealContextKeys.get(E.id).when)?this.appendView(E):this.disposeView(E.id)})}fillKeysInWhenExpr(E,f){this.contextKeyService.getKeysInWhen(f).forEach(y=>{E.add(y)})}};t.AccordionService=u,n.__decorate([(0,c.Autowired)(),n.__metadata("design:type",m.SplitPanelManager)],u.prototype,"splitPanelManager",void 0),n.__decorate([(0,c.Autowired)(s.AbstractMenuService),n.__metadata("design:type",s.AbstractMenuService)],u.prototype,"menuService",void 0),n.__decorate([(0,c.Autowired)(s.AbstractContextMenuService),n.__metadata("design:type",s.AbstractContextMenuService)],u.prototype,"ctxMenuService",void 0),n.__decorate([(0,c.Autowired)(s.IMenuRegistry),n.__metadata("design:type",s.IMenuRegistry)],u.prototype,"menuRegistry",void 0),n.__decorate([(0,c.Autowired)(_.CommandRegistry),n.__metadata("design:type",Object)],u.prototype,"commandRegistry",void 0),n.__decorate([(0,c.Autowired)(s.ICtxMenuRenderer),n.__metadata("design:type",s.ICtxMenuRenderer)],u.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,c.Autowired)(),n.__metadata("design:type",_.ViewContextKeyRegistry)],u.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,c.Autowired)(h.IMainLayoutService),n.__metadata("design:type",Object)],u.prototype,"mainLayoutService",void 0),n.__decorate([(0,c.Autowired)(_.IContextKeyService),n.__metadata("design:type",Object)],u.prototype,"contextKeyService",void 0),n.__decorate([(0,c.Autowired)(p.LayoutState),n.__metadata("design:type",p.LayoutState)],u.prototype,"layoutState",void 0),n.__decorate([(0,c.Autowired)(g.IProgressService),n.__metadata("design:type",Object)],u.prototype,"progressService",void 0),n.__decorate([(0,c.Autowired)(_.ILogger),n.__metadata("design:type",Object)],u.prototype,"logger",void 0),n.__decorate([(0,_.OnEvent)(_.ResizeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[_.ResizeEvent]),n.__metadata("design:returntype",void 0)],u.prototype,"onResize",null),t.AccordionService=u=n.__decorate([(0,c.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Boolean])],u),t.AccordionServiceFactory=Symbol("AccordionServiceFactory")},70936:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Panel=t.AccordionContainer=void 0;const r=e(85608).__importStar(e(14041)),o=e(41869),c=e(81878),_=e(1149),v=e(43718),m=e(9522),p=e(95867),s=({alignment:a="vertical",views:h,containerId:u,headerSize:d=24,minSize:E=120,className:f,noRestore:l,style:y})=>{const b=(0,o.useInjectable)(_.LayoutViewSizeConfig),A=(0,o.useInjectable)(m.AccordionServiceFactory)(u,l),S=(0,o.useAutorun)(A.visibleViews);(0,o.useAutorun)(A.stateObservable);const w=(0,r.useMemo)(()=>d||b.accordionHeaderSizeHeight,[d]);return r.default.useEffect(()=>{if(h.length)for(const T of h)A.appendView(T)},[h]),r.default.useEffect(()=>{A.initConfig({headerSize:w,minSize:E})},[]),r.default.createElement(c.SplitPanel,{className:f,style:y,headerSize:d,dynamicTarget:!0,id:u,resizeKeep:!1,direction:a==="horizontal"?"left-to-right":"top-to-bottom"},S.map((T,D)=>{const I=A.getViewState(T.id),O=T.titleMenu||A.getSectionToolbarMenu(T.id),{collapsed:M,nextSize:R}=I;return r.default.createElement(p.AccordionSection,{noHeader:S.length===1,onItemClick:()=>{A.handleSectionClick(T.id,!M,D)},onContextMenuHandler:A.handleContextMenu,alignment:a,header:T.name&&(0,v.replaceLocalizePlaceholder)(T.name)||T.id,viewId:T.id,key:T.id,message:T.message,description:T.description,badge:T.badge,title:T.name,expanded:!M,accordionService:A,index:D,headerSize:d,minSize:d,initialProps:T.initialProps,titleMenu:O,titleMenuContext:T.titleMenuContext,savedSize:M?d:R,flex:T.weight||1},T.component)}))};t.AccordionContainer=s,t.AccordionContainer.displayName="AccordionContainer";const g=({children:a})=>r.default.createElement("div",null,a);t.Panel=g,t.Panel.displayName="Panel"},95867:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionSection=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(41869),_=e(25918),v=e(93899),m=e(68969),p=e(68974),s=e(69589),g=e(52416),a=n.__importDefault(e(81388)),h={tabIndex:0},u=({header:d,description:E,message:f,headerClass:l,onItemClick:y,noHeader:b,children:A,badge:S,headerSize:w,viewId:T,initialProps:D,titleMenu:I,titleMenuContext:O,expanded:M,accordionService:R,onContextMenuHandler:P,alignment:k})=>{const F=(0,c.useInjectable)(g.IIconService),L=(0,c.useDesignStyles)(a.default.actions_wrap,"actions_wrap"),B=(0,c.useDesignStyles)(a.default.kt_split_panel,"kt_split_panel"),j=(0,c.useDesignStyles)(a.default.kt_split_panel_header,"kt_split_panel_header"),W=(0,c.useDesignStyles)(a.default.kt_split_panel_body,"kt_split_panel_body"),U=(0,c.useDesignStyles)(a.default.section_badge,"section_badge"),Q=o.default.useRef(null),[V,G]=o.default.useState({header:d,description:E,message:f,badge:S});o.default.useEffect(()=>{const ie=R.onDidChangeViewTitle(({id:ge,title:pe,description:q,message:Se,badge:_e})=>{let ne=!1;const ue={...V};T===ge&&pe&&pe!==V.header&&(ue.header=pe,ne=!0),T===ge&&_e!==V.badge&&(ue.badge=_e,ne=!0),T===ge&&q&&q!==V.description&&(ue.description=q,ne=!0),T===ge&&Se&&Se!==V.message&&(ue.message=Se,ne=!0),ne&&G(ue)});return()=>{ie.dispose()}},[]);const Y=o.default.useCallback(()=>{y()},[y]),H=o.default.useMemo(()=>({overflow:M?"auto":"hidden"}),[M]),$=(0,c.useViewState)(T,Q,!0),X=(0,c.useInjectable)(m.IProgressService).getIndicator(T),Z=A,oe=o.default.useMemo(()=>M?`${w}px`:k==="horizontal"?"100%":`${w}px`,[M,w,k]);return o.default.createElement("div",{className:B,"data-view-id":T,draggable:!1},!b&&o.default.createElement("div",{...h,className:(0,r.default)(j,l),onClick:Y,onContextMenu:ie=>P(ie,T),style:{height:oe,lineHeight:oe}},o.default.createElement("div",{className:a.default.label_wrap},o.default.createElement("i",{className:(0,r.default)((0,c.getIcon)("arrow-down"),a.default.arrow_icon,M?"":a.default.kt_mod_collapsed)}),o.default.createElement("div",{className:a.default.section_label,style:{lineHeight:w+"px"}},V.header),V.description&&o.default.createElement("div",{className:a.default.section_description,style:{lineHeight:w+"px"}},typeof V.description=="string"?(0,s.transformLabelWithCodicon)(V.description,{},F.fromString.bind(F)):V.description),V.badge&&o.default.createElement("div",{className:U},typeof V.badge=="string"?V.badge:V.badge.value)),M&&I&&o.default.createElement("div",{className:L},(0,v.isIMenu)(I)?o.default.createElement(_.InlineActionBar,{menus:I,context:O}):o.default.createElement(_.InlineMenuBar,{menus:I,context:O}))),o.default.createElement("div",{className:(0,r.default)([W,{[a.default.hide]:!M}]),style:H,ref:Q},o.default.createElement(p.ProgressBar,{className:a.default.progressBar,progressModel:X.progressModel}),o.default.createElement(c.ErrorBoundary,null,V.message&&o.default.createElement("div",{className:a.default.kt_split_panel_message},V.message),o.default.createElement(Z,{...D,viewState:{height:$.height-(V.message?22:0),width:$.width}}))))};t.AccordionSection=u},91527:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleBar=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),c=e(752),_=n.__importDefault(e(81388));t.TitleBar=r.default.memo(v=>{const m=(0,o.useDesignStyles)(_.default.titlebar,"titlebar"),p=(0,o.useInjectable)(c.TabbarServiceFactory)(v.side),s=r.default.useCallback(a=>{v.containerId&&v.side&&p.handleDragStart(a,v.containerId)},[v.containerId,v.side,p]),g=r.default.useCallback(a=>{p.handleDragEnd(a)},[p]);return r.default.createElement("div",{className:m,style:{height:v.height}},!v.draggable&&r.default.createElement("h1",null,v.title),!!v.draggable&&r.default.createElement("h1",{draggable:!0,style:{cursor:"pointer"},onDragStart:s,onDragEnd:g},v.title),v.menubar||null)}),t.TitleBar.displayName="TitleBar"},25072:(x,t,e)=>{"use strict";var n;n={value:!0},t.s=void 0;const r=e(41869),o=e(17793);t.s={[r.SlotLocation.top]:{modules:["@opensumi/ide-menu-bar"]},[r.SlotLocation.action]:{modules:["@opensumi/ide-toolbar-action"]},[r.SlotLocation.left]:{modules:["@opensumi/ide-explorer","@opensumi/ide-search","@opensumi/ide-scm","@opensumi/ide-extension-manager","@opensumi/ide-debug","@opensumi/ide-notebook"]},[r.SlotLocation.right]:{modules:[o.DROP_RIGHT_CONTAINER]},[r.SlotLocation.main]:{modules:["@opensumi/ide-editor"]},[r.SlotLocation.bottom]:{modules:[o.DROP_BOTTOM_CONTAINER,"@opensumi/ide-terminal-next","@opensumi/ide-output","debug-console","@opensumi/ide-markers"]},[r.SlotLocation.statusBar]:{modules:["@opensumi/ide-status-bar"]},[r.SlotLocation.extra]:{modules:["breadcrumb-menu"]}}},45395:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomDropArea=t.RightDropArea=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),c=e(17793),_=n.__importDefault(e(36623)),v=s=>{const{location:g}=s,a=(0,o.useInjectable)(c.IMainLayoutService),h=r.default.useCallback(u=>{var d;const E=(d=u.dataTransfer)===null||d===void 0?void 0:d.getData("containerId");a.moveContainerTo(E,g)},[a,g]);return r.default.createElement("div",{className:_.default.drop_area,onDrop:h,onDragOver:u=>{u.preventDefault()}},(0,o.localize)("main-layout.drop-area.tip"))},m=()=>r.default.createElement(v,{location:"right"});t.RightDropArea=m;const p=()=>r.default.createElement(v,{location:"bottom"});t.BottomDropArea=p},7480:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(17793),_=e(9522),v=e(22537),m=e(53576),p=e(752),s=e(58296);let g=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[m.MainLayoutModuleContribution,{token:c.IMainLayoutService,useClass:v.LayoutService},{token:c.IViewsRegistry,useClass:s.ViewsRegistry},{token:p.TabbarServiceFactory,useFactory:p.TabbarServiceFactoryFn},{token:_.AccordionServiceFactory,useFactory:h=>(u,d)=>h.get(c.IMainLayoutService).getAccordionService(u,d)}],this.contributionProvider=c.MainLayoutContribution}};t.MainLayoutModule=g,t.MainLayoutModule=g=n.__decorate([(0,r.Injectable)()],g)},5567:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoFocusedInput=void 0;const r=e(85608).__importStar(e(14041)),o=e(97267),c=e(48560),_=e(17793),v=({containerId:m,...p})=>{const s=(0,c.useInjectable)(_.IMainLayoutService),g=(0,r.useRef)(null),a=r.default.useCallback(()=>{g&&g.current&&queueMicrotask(()=>{var h;return(h=g.current)===null||h===void 0?void 0:h.focus()})},[g.current]);return(0,r.useEffect)(()=>{a();const h=s.getTabbarHandler(m),u=h?.onActivate(a);return()=>{u?.dispose()}},[s]),r.default.createElement(o.Input,{ref:g,...p})};t.AutoFocusedInput=v},22537:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),c=e(41869),_=e(81878),v=e(95416),m=e(93899),p=e(43718),s=e(52416),g=e(17793),a=e(9522),h=e(752),u=e(58999),d={[c.SlotLocation.left]:{currentId:void 0,size:void 0},[c.SlotLocation.right]:{currentId:"",size:void 0},[c.SlotLocation.bottom]:{currentId:void 0,size:void 0}};let E=class extends c.WithEventBus{constructor(){super(...arguments),this.handleMap=new Map,this.tabbarServices=new Map,this.accordionServices=new Map,this.pendingViewsMap=new Map,this.viewToContainerMap=new Map,this.disposableMap=new Map,this.state={},this.customViews=new Map,this.debug=(0,p.getDebugLogger)(),this.viewReady=new p.Deferred,this.restoreTabbarService=async l=>{var y;this.state=(0,_.fixLayout)(this.layoutState.getState(v.LAYOUT_STATE.MAIN,d));const{currentId:b,size:A}=this.state[l.location]||{};l.prevSize=A;let S=l.visibleContainers[0]&&l.visibleContainers[0].options.containerId;const w=this.appConfig.defaultPanels,T=w&&w[l.location];if(w&&T!==void 0)if(T)if(l.containersMap.has(T))S=T;else{const D=this.componentRegistry.getComponentRegistryInfo(T);D&&(!((y=this.appConfig.layoutConfig[l.location])===null||y===void 0)&&y.modules)&&~this.appConfig.layoutConfig[l.location].modules.indexOf(T)?S=D.options.containerId:this.logger.warn(`[defaultPanels] No \`${T}\` view found!`)}else S="";(0,p.isUndefined)(b)?(0,p.isUndefined)(S)?l.updateNextContainerId():l.updateCurrentContainerId(S):b&&!this.isDropContainer(b)?l.containersMap.has(b)?l.updateCurrentContainerId(b):this.findTabbarServiceByContainerId(b)?(this.moveContainerTo(b,l.location),l.updateCurrentContainerId(b)):(l.updateCurrentContainerId(S),l.updateNextContainerId(b)):(b===""||this.isDropContainer(b))&&l.updateCurrentContainerId("")},this.holdTabbarComponent=new Map,this.tabbarUpdateSet=new Set}didMount(){for(const[y,b]of this.pendingViewsMap.entries())b.forEach(({view:A,props:S})=>{this.collectViewComponent(A,y,S)});for(const y of this.contributions.getContributions())y.onDidRender&&y.onDidRender();const l=[];this.tabbarServices.forEach(y=>{c.slotRendererRegistry.isTabbar(y.location)&&y.containersMap.size>0&&l.push(y.viewReady.promise)}),Promise.all(l).then(()=>{this.viewReady.resolve()})}storeState(l,y){this.state[l.location]={currentId:y,size:l.prevSize},this.layoutState.setState(v.LAYOUT_STATE.MAIN,this.state)}onThemeChange(l){var y,b,A,S,w;const T=l.payload.theme;localStorage.setItem("theme",JSON.stringify({menuBarBackground:(y=T.getColor("kt.menubar.background"))===null||y===void 0?void 0:y.toString(),sideBarBackground:(b=T.getColor("sideBar.background"))===null||b===void 0?void 0:b.toString(),editorBackground:(A=T.getColor("editor.background"))===null||A===void 0?void 0:A.toString(),panelBackground:(S=T.getColor("panel.background"))===null||S===void 0?void 0:S.toString(),statusBarBackground:(w=T.getColor("statusBar.background"))===null||w===void 0?void 0:w.toString()}))}findTabbarServiceByContainerId(l){let y;for(const b of this.tabbarServices.values())if(b.containersMap.has(l)){y=b;break}return y}moveContainerTo(l,y){var b;const A=this.findTabbarServiceByContainerId(l);if(!A){this.logger.error(`cannot find container: ${l}`);return}const S=A.getContainer(l);if(!S){this.logger.error(`cannot find container: ${l}`);return}if(!(!((b=S.options)===null||b===void 0)&&b.draggable)){this.logger.warn(`container: ${l} is not draggable`);return}const w=this.getTabbarService(y);A.removeContainer(l),(!A.visibleContainers.length||A.currentContainerId.get()===l)&&this.toggleSlot(A.location,!1),w.dynamicAddContainer(l,S);const T=this.injector.get(u.TabBarHandler,[l,this.getTabbarService(w.location)]);this.handleMap.set(l,T)}showDropAreaForContainer(l){const y=this.findTabbarServiceByContainerId(l),b=this.tabbarServices.get("bottom"),A=this.tabbarServices.get("right");if(!y){this.logger.error(`cannot find container: ${l}`);return}y?.location==="right"&&b?.updateCurrentContainerId(g.DROP_BOTTOM_CONTAINER),y?.location==="bottom"&&A?.updateCurrentContainerId(g.DROP_RIGHT_CONTAINER)}hideDropArea(){const l=this.tabbarServices.get("bottom"),y=this.tabbarServices.get("right");l?.currentContainerId.get()===g.DROP_BOTTOM_CONTAINER&&l.updateCurrentContainerId(l.previousContainerId||""),y?.currentContainerId.get()===g.DROP_RIGHT_CONTAINER&&y.updateCurrentContainerId(y.previousContainerId||"")}isVisible(l){return!!this.getTabbarService(l).currentContainerId.get()}isViewVisible(l){const y=this.getTabbarHandler(l);if(!y||!y.isActivated())return!1;const b=y.accordionService.getViewState(l);return!b.collapsed&&!b.hidden}toggleSlot(l,y,b){var A;const S=this.getTabbarService(l);if(!S){this.debug.error(`Unable to switch panels because no TabbarService corresponding to \`${l}\` was found.`);return}y===!0?S.updateCurrentContainerId(this.findNonDropContainerId(S)):y===!1?S.updateCurrentContainerId(""):S.updateCurrentContainerId(S.currentContainerId.get()?"":this.findNonDropContainerId(S)),S.currentContainerId.get()&&b&&((A=S.resizeHandle)===null||A===void 0||A.setSize(b))}isDropContainer(l){return[g.DROP_BOTTOM_CONTAINER,g.DROP_RIGHT_CONTAINER].includes(l)}findNonDropContainerId(l){const y=l.currentContainerId.get();if(y&&!this.isDropContainer(y))return y;if(l.previousContainerId&&!this.isDropContainer(l.previousContainerId))return l.previousContainerId;for(const b of l.containersMap.keys())if(!this.isDropContainer(b))return b;return""}getTabbarService(l){const y=this.tabbarServices.get(l)||this.injector.get(h.TabbarService,[l]);if(!this.tabbarServices.get(l)){y.addDispose(y.onCurrentChange(({currentId:A})=>{if(this.storeState(y,A),this.eventBus.fire(new c.ExtensionActivateEvent({topic:"onView",data:A})),A&&g.SUPPORT_ACCORDION_LOCATION.has(y.location)){const S=this.getAccordionService(A);S?.tryUpdateResize(),S?.expandedViews.forEach(w=>{this.eventBus.fire(new c.ExtensionActivateEvent({topic:"onView",data:w.id}))})}})),y.viewReady.promise.then(()=>y.restoreState()).then(()=>this.restoreTabbarService(y)).catch(A=>{this.logger.error(`[TabbarService:${l}] restore state error`,A)});const b=(0,r.default)(()=>this.storeState(y,y.currentContainerId.get()),100);if(y.addDispose(y.onSizeChange(b)),l===c.SlotLocation.bottom){const A=(0,r.default)(()=>void this.bottomExpanded,100);y.addDispose(y.onSizeChange(()=>A))}this.tabbarServices.set(l,y)}return y}getAllAccordionService(){return this.accordionServices}getAccordionService(l,y){let b=this.accordionServices.get(l);return b||(b=this.injector.get(a.AccordionService,[l,y]),this.accordionServices.set(l,b)),b}getTabbarHandler(l){let y=this.doGetTabbarHandler(l);if(!y){const b=this.viewToContainerMap.get(l);b?y=this.doGetTabbarHandler(b||""):this.debug.warn(`${l} view tabbar not found.`)}return y}getContainer(l){for(const y of this.tabbarServices.values()){const b=y.getContainer(l);if(b)return b}}getExtraTopMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarTopExtra})}getExtraMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarExtra})}doGetTabbarHandler(l){let y=this.handleMap.get(l);if(!y){let b;for(const A of this.tabbarServices.values())if(A.getContainer(l)){b=A.location;break}b&&(y=this.injector.get(u.TabBarHandler,[l,this.getTabbarService(b)]),this.handleMap.set(l,y))}return y}collectTabbarComponent(l,y,b,A){if(A&&this.debug.warn("collectTabbarComponent api warning: Please move react component into options.component!"),y.hideIfEmpty&&!l.length&&!y.component){this.holdTabbarComponent.set(y.containerId,{views:l,options:y,side:b}),this.tabbarUpdateSet.has(y.containerId)&&this.tryUpdateTabbar(y.containerId);const w=this.getAccordionService(y.containerId);return w.addDispose(w.onBeforeAppendViewEvent(()=>{this.tryUpdateTabbar(y.containerId)})),w.addDispose(w.onAfterDisposeViewEvent(()=>{w.views.length===0&&(this.disposeContainer(y.containerId),this.holdTabbarComponent.set(y.containerId,{views:l,options:y,side:b}))})),y.containerId}return this.getTabbarService(b).registerContainer(y.containerId,{views:l,options:y}),l.forEach(w=>{this.viewToContainerMap.set(w.id,y.containerId)}),y.containerId}getViewAccordionService(l){const y=this.viewToContainerMap.get(l);if(y)return this.getAccordionService(y)}collectViewComponent(l,y,b={},A){this.customViews.set(l.id,l),this.viewToContainerMap.set(l.id,y);const S=this.getAccordionService(y);return b&&(l.initialProps=b),S.appendView(l,A?.isReplace),S.views.length===1&&(this.tabbarUpdateSet.add(y),this.tryUpdateTabbar(y)),A?.fromExtension&&this.disposableMap.set(l.id,this.commandRegistry.registerCommand({id:`${l.id}.focus`},{execute:async()=>(await this.ensureViewReady(l.id),this.commandService.executeCommand(`workbench.view.extension.${y}`,{forceShow:!0}))})),y}ensureViewReady(l){const y=this.viewToContainerMap.get(l),b=new p.Deferred,A=this.getAccordionService(y);return A.visibleViews.get().find(S=>S.id===l)?b.resolve():A.addDispose(A.onAfterAppendViewEvent(S=>{S===l&&b.resolve()})),b.promise}tryUpdateTabbar(l){const y=this.holdTabbarComponent.get(l);y&&(this.getTabbarService(y.side).registerContainer(l,{views:y.views,options:y.options}),this.tabbarUpdateSet.delete(l),this.holdTabbarComponent.delete(l))}replaceViewComponent(l,y){const b=this.viewToContainerMap.get(l.id);if(!b){this.debug.warn(`The container corresponding to \`${l.id}\` was not found, please check the incoming parameters!`);return}const A=this.customViews.get(l.id);A&&(l=Object.assign(A,l)),this.collectViewComponent(l,b,y,{isReplace:!0})}disposeViewComponent(l){const y=this.disposableMap.get(l);y&&y.dispose();const b=this.viewToContainerMap.get(l);if(!b){this.debug.warn(`The container corresponding to \`${l}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(b).disposeView(l)}revealView(l){const y=this.viewToContainerMap.get(l);if(!y){this.debug.warn(`The container corresponding to \`${l}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(y).revealView(l)}disposeContainer(l){let y;for(const b of this.tabbarServices.values())if(b.getContainer(l)){y=b.location;break}y?this.getTabbarService(y).disposeContainer(l):this.debug.warn(`The Tabbar to the \`${l}\` was not found.`)}expandBottom(l){const y=this.getTabbarService(c.SlotLocation.bottom);y.currentContainerId.get()||y.updateCurrentContainerId(y.currentContainerId.get()||y.previousContainerId||y.containersMap.keys().next().value),y.doExpand(l),this.contextKeyService.createKey("bottomFullExpanded",y.isExpanded)}get bottomExpanded(){const l=this.getTabbarService(c.SlotLocation.bottom);return this.contextKeyService.createKey("bottomFullExpanded",l.isExpanded),l.isExpanded}};t.LayoutService=E,n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],E.prototype,"injector",void 0),n.__decorate([(0,o.Autowired)(g.MainLayoutContribution),n.__metadata("design:type",Object)],E.prototype,"contributions",void 0),n.__decorate([(0,o.Autowired)(m.IMenuRegistry),n.__metadata("design:type",m.IMenuRegistry)],E.prototype,"menus",void 0),n.__decorate([(0,o.Autowired)(c.CommandRegistry),n.__metadata("design:type",Object)],E.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(c.CommandService),n.__metadata("design:type",Object)],E.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",v.LayoutState)],E.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(c.AppConfig),n.__metadata("design:type",Object)],E.prototype,"appConfig",void 0),n.__decorate([(0,o.Autowired)(c.IContextKeyService),n.__metadata("design:type",Object)],E.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(c.ComponentRegistry),n.__metadata("design:type",Object)],E.prototype,"componentRegistry",void 0),n.__decorate([(0,o.Autowired)(c.ILogger),n.__metadata("design:type",Object)],E.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(m.AbstractMenuService),n.__metadata("design:type",m.AbstractMenuService)],E.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(m.AbstractContextMenuService),n.__metadata("design:type",m.AbstractContextMenuService)],E.prototype,"contextmenuService",void 0),n.__decorate([(0,c.OnEvent)(s.ThemeChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.ThemeChangedEvent]),n.__metadata("design:returntype",void 0)],E.prototype,"onThemeChange",null),t.LayoutService=E=n.__decorate([(0,o.Injectable)()],E)},53576:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModuleContribution=t.RETRACT_BOTTOM_PANEL=t.EXPAND_BOTTOM_PANEL=t.IS_VISIBLE_RIGHT_PANEL_COMMAND=t.IS_VISIBLE_LEFT_PANEL_COMMAND=t.IS_VISIBLE_BOTTOM_PANEL_COMMAND=t.TOGGLE_BOTTOM_PANEL_COMMAND=t.SHOW_BOTTOM_PANEL_COMMAND=t.WORKBENCH_ACTION_CLOSEPANEL=t.HIDE_BOTTOM_PANEL_COMMAND=t.TOGGLE_RIGHT_PANEL_COMMAND=t.SHOW_RIGHT_PANEL_COMMAND=t.HIDE_RIGHT_PANEL_COMMAND=t.TOGGLE_LEFT_PANEL_COMMAND=t.SHOW_LEFT_PANEL_COMMAND=t.WORKBENCH_ACTION_CLOSESIDECAR=t.HIDE_LEFT_PANEL_COMMAND=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(30144),_=e(68456),v=e(95416),m=e(93899),p=e(43718),s=e(92323),g=e(17793),a=e(45395),h=e(68988),u=e(19951);t.HIDE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.hide",label:"%main-layout.left-panel.hide%"},t.WORKBENCH_ACTION_CLOSESIDECAR={id:"workbench.action.closeSidebar",label:"%main-layout.sidebar.hide%"},t.SHOW_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.show",label:"%main-layout.left-panel.show%"},t.TOGGLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.toggle",label:"%main-layout.left-panel.toggle%"},t.HIDE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.hide",label:"%main-layout.right-panel.hide%"},t.SHOW_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.show",label:"%main-layout.right-panel.show%"},t.TOGGLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.toggle",label:"%main-layout.right-panel.toggle%"},t.HIDE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.hide",label:"%main-layout.bottom-panel.hide%"},t.WORKBENCH_ACTION_CLOSEPANEL={id:"workbench.action.closePanel",delegate:t.HIDE_BOTTOM_PANEL_COMMAND.id},t.SHOW_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.show",label:"%main-layout.bottom-panel.show%"},t.TOGGLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.toggle",iconClass:(0,o.getIcon)("minus"),label:"%layout.tabbar.toggle%"},t.IS_VISIBLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.is-visible"},t.IS_VISIBLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.is-visible"},t.IS_VISIBLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.is-visible"},t.EXPAND_BOTTOM_PANEL={id:"main-layout.bottom-panel.expand",label:"%layout.tabbar.expand%",iconClass:(0,o.getIcon)("expand")},t.RETRACT_BOTTOM_PANEL={id:"main-layout.bottom-panel.retract",label:"%layout.tabbar.retract%",iconClass:(0,o.getIcon)("shrink")};let d=class extends p.WithEventBus{async initialize(){await this.layoutState.initStorage();const f=this.contributionProvider.getContributions();for(const b of f)b.registerComponent&&b.registerComponent(this.componentRegistry);const l=this.rendererContributionProvider.getContributions();for(const b of l)b.registerRenderer&&b.registerRenderer(o.slotRendererRegistry);const y=this.toolBarContributionProvider.getContributions();for(const b of y)b.registerToolbarItems&&b.registerToolbarItems(this.toolBarRegistry)}registerComponent(f){f.register(g.DROP_RIGHT_CONTAINER,[],{component:a.RightDropArea,hideTab:!0,containerId:g.DROP_RIGHT_CONTAINER}),f.register(g.DROP_BOTTOM_CONTAINER,[],{component:a.BottomDropArea,hideTab:!0,containerId:g.DROP_BOTTOM_CONTAINER})}async onStart(){this.registerSideToggleKey()}async onDidStart(){this.mainLayoutService.didMount()}registerRenderer(f){f.registerSlotRenderer(o.SlotLocation.right,u.RightTabRenderer),f.registerSlotRenderer(o.SlotLocation.left,u.LeftTabRenderer),f.registerSlotRenderer(o.SlotLocation.bottom,u.BottomTabRenderer)}registerCommands(f){f.registerCommand(t.HIDE_LEFT_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,!1)}}),f.registerCommand(t.SHOW_LEFT_PANEL_COMMAND,{execute:l=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,!0,l)}}),f.registerCommand(t.TOGGLE_LEFT_PANEL_COMMAND,{execute:(l,y)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,l,y)}}),f.registerCommand(t.HIDE_RIGHT_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,!1)}}),f.registerCommand(t.SHOW_RIGHT_PANEL_COMMAND,{execute:l=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,!0,l)}}),f.registerCommand(t.TOGGLE_RIGHT_PANEL_COMMAND,{execute:(l,y)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,l,y)}}),f.registerCommand(t.WORKBENCH_ACTION_CLOSESIDECAR,{execute:()=>Promise.all([this.mainLayoutService.toggleSlot(o.SlotLocation.left,!1),this.mainLayoutService.toggleSlot(o.SlotLocation.right,!1)])}),f.registerCommand(t.SHOW_BOTTOM_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.bottom,!0)}}),f.registerCommand(t.HIDE_BOTTOM_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.bottom,!1)}}),f.registerCommand(t.WORKBENCH_ACTION_CLOSEPANEL),f.registerCommand(t.IS_VISIBLE_BOTTOM_PANEL_COMMAND,{execute:()=>this.mainLayoutService.getTabbarService("bottom").currentContainerId.get()!==""}),f.registerCommand(t.IS_VISIBLE_LEFT_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.left)}),f.registerCommand(t.IS_VISIBLE_RIGHT_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.left)}),f.registerCommand({id:"view.outward.right-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!1)}}),f.registerCommand({id:"view.outward.right-panel.show"},{execute:l=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!0,l)}}),f.registerCommand({id:"view.outward.left-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!1)}}),f.registerCommand({id:"view.outward.left-panel.show"},{execute:l=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!0,l)}}),f.registerCommand({id:o.LAYOUT_COMMANDS.MAXIMIZE_EDITOR.id},{execute:()=>{this.commandService.executeCommand(t.TOGGLE_RIGHT_PANEL_COMMAND.id,!1),this.commandService.executeCommand(t.TOGGLE_LEFT_PANEL_COMMAND.id,!1)}}),f.registerCommand(o.LAYOUT_COMMANDS.OPEN_VIEW,{execute:()=>{this.commandService.executeCommand(o.QUICK_OPEN_COMMANDS.OPEN_VIEW.id)}})}registerMenus(f){f.registerMenuItem(m.MenuId.ActivityBarExtra,{submenu:m.MenuId.SettingsIconMenu,iconClass:(0,o.getIcon)("setting"),label:(0,p.localize)("layout.tabbar.setting"),order:1,group:"navigation"}),Object.entries({[o.SlotLocation.left]:[c.EXPLORER_CONTAINER_ID,c.SEARCH_CONTAINER_ID,c.SCM_CONTAINER_ID,c.DEBUG_CONTAINER_ID,c.EXTENSION_CONTAINER_ID],[o.SlotLocation.bottom]:[c.MARKER_CONTAINER_ID,c.OUTPUT_CONTAINER_ID,c.DEBUG_CONSOLE_CONTAINER_ID,c.TERMINAL_CONTAINER_ID]}).forEach(([l,y],b)=>{const A=this.mainLayoutService.getTabbarService(l);A.viewReady.promise.then(()=>{y.forEach(S=>{var w,T;const D=A.getContainer(S);D&&f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:{id:`container.toggle.${S}`,label:(T=(w=D.options)===null||w===void 0?void 0:w.title)!==null&&T!==void 0?T:S},group:`${3+b}_${l}`})})})}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:t.TOGGLE_LEFT_PANEL_COMMAND,group:"5_panel"}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:t.TOGGLE_RIGHT_PANEL_COMMAND,group:"5_panel"}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:t.TOGGLE_BOTTOM_PANEL_COMMAND,group:"5_panel"}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:t.EXPAND_BOTTOM_PANEL,group:"5_panel",when:"!bottomFullExpanded"}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:t.RETRACT_BOTTOM_PANEL,group:"5_panel",when:"bottomFullExpanded"}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:{id:o.EDITOR_COMMANDS.TOGGLE_WORD_WRAP.id,label:"%preference.editor.wordWrap%"},group:"6_capability",toggledWhen:"config.editor.wordWrap == on"})}registerSideToggleKey(){this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+b",command:t.TOGGLE_LEFT_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+j",command:t.TOGGLE_BOTTOM_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:t.EXPAND_BOTTOM_PANEL.id,when:"!bottomFullExpanded"}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:t.RETRACT_BOTTOM_PANEL.id,when:"bottomFullExpanded"})}registerQuickOpenHandlers(f){f.registerHandler(this.quickOpenViewHandler,{title:(0,p.localize)("layout.action.openView"),commandId:o.LAYOUT_COMMANDS.QUICK_OPEN_VIEW.id,order:5,hideTab:!0})}};t.MainLayoutModuleContribution=d,n.__decorate([(0,r.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],d.prototype,"mainLayoutService",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],d.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(p.IEventBus),n.__metadata("design:type",Object)],d.prototype,"eventBus",void 0),n.__decorate([(0,r.Autowired)(_.ComponentContribution),n.__metadata("design:type",Object)],d.prototype,"contributionProvider",void 0),n.__decorate([(0,r.Autowired)(o.SlotRendererContribution),n.__metadata("design:type",Object)],d.prototype,"rendererContributionProvider",void 0),n.__decorate([(0,r.Autowired)(_.ComponentRegistry),n.__metadata("design:type",Object)],d.prototype,"componentRegistry",void 0),n.__decorate([(0,r.Autowired)(s.CommandService),n.__metadata("design:type",Object)],d.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",v.LayoutState)],d.prototype,"layoutState",void 0),n.__decorate([(0,r.Autowired)(_.TabBarToolbarContribution),n.__metadata("design:type",Object)],d.prototype,"toolBarContributionProvider",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",_.ToolbarRegistry)],d.prototype,"toolBarRegistry",void 0),n.__decorate([(0,r.Autowired)(o.KeybindingRegistry),n.__metadata("design:type",Object)],d.prototype,"keybindingRegistry",void 0),n.__decorate([(0,r.Autowired)(h.ViewQuickOpenHandler),n.__metadata("design:type",h.ViewQuickOpenHandler)],d.prototype,"quickOpenViewHandler",void 0),t.MainLayoutModuleContribution=d=n.__decorate([(0,p.Domain)(s.CommandContribution,o.ClientAppContribution,o.SlotRendererContribution,m.MenuContribution,o.QuickOpenContribution,_.ComponentContribution)],d)},68988:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewQuickOpenItem=t.ContainerQuickOpenItem=t.ViewQuickOpenHandler=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(74404),_=e(17793);let v=class{constructor(){this.prefix="view ",this.description=(0,o.localize)("layout.action.openView")}getModel(){return{onType:(g,a)=>a(this.getViewQuickOpenItems())}}getViewQuickOpenItems(){var g;const a=this.layoutService.getAllAccordionService(),h=Array.from(a.keys());let u=[];u=u.concat(h.map((d,E)=>this.injector.get(m,[d,{groupLabel:E===0?(0,o.localize)("layout.openView.containerTitle"):"",showBorder:!1}])));for(const d of h){const E=(g=a.get(d))===null||g===void 0?void 0:g.views;if(E)for(let f=0,l=E.length;f<l;f++)u.push(this.injector.get(p,[d,E[f],{groupLabel:f===0?(0,o.formatLocalize)("layout.openView.viewTitle",String(d).toUpperCase()):"",showBorder:!1}]))}return u}getOptions(){return{}}onClose(){}};t.ViewQuickOpenHandler=v,n.__decorate([(0,r.Autowired)(c.PrefixQuickOpenService),n.__metadata("design:type",Object)],v.prototype,"quickOpenService",void 0),n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],v.prototype,"injector",void 0),t.ViewQuickOpenHandler=v=n.__decorate([(0,r.Injectable)()],v);let m=class extends c.QuickOpenItem{constructor(g,a){super(a),this.containerId=g,this.options=a}getLabel(){return String(this.containerId).toLocaleUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==c.Mode.OPEN)return!1;const a=this.layoutService.getTabbarHandler(this.containerId);return a?.activate(),!0}};t.ContainerQuickOpenItem=m,n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],m.prototype,"layoutService",void 0),t.ContainerQuickOpenItem=m=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Object])],m);let p=class extends c.QuickOpenItem{constructor(g,a,h){super(h),this.containerId=g,this.view=a,this.options=h}getLabel(){var g;return(g=this.view.name)===null||g===void 0?void 0:g.toUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==c.Mode.OPEN)return!1;const a=this.layoutService.getTabbarHandler(this.containerId);return a&&(a.activate(),a.isCollapsed(this.view.id)&&a?.setCollapsed(this.view.id,!1)),!0}};t.ViewQuickOpenItem=p,n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],p.prototype,"layoutService",void 0),t.ViewQuickOpenItem=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Object,Object])],p)},58999:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabBarHandler=void 0;const n=e(85608),r=e(76003),o=e(43718),c=e(17793),_=e(752);let v=class{constructor(p,s){this.containerId=p,this.tabbarService=s,this.onActivateEmitter=new o.Emitter,this.onActivate=this.onActivateEmitter.event,this.onInActivateEmitter=new o.Emitter,this.onInActivate=this.onInActivateEmitter.event,this.onCollapseEmitter=new o.Emitter,this.onCollapse=this.onCollapseEmitter.event,this.isVisible=!1,this.accordionService=this.layoutService.getAccordionService(this.containerId),s.currentContainerId.get()===this.containerId&&(this.onActivateEmitter.fire(),this.isVisible=!0),this.tabbarService.onCurrentChange(g=>{g.currentId===this.containerId?(this.onActivateEmitter.fire(),this.isVisible=!0):g.previousId===this.containerId&&(this.onInActivateEmitter.fire(),this.isVisible=!1)})}dispose(){this.tabbarService.containersMap.delete(this.containerId),this.tabbarService.disposeContainer(this.containerId)}disposeView(p){this.layoutService.disposeViewComponent(p)}activate(){this.tabbarService.updateCurrentContainerId(this.containerId)}deactivate(){this.tabbarService.updateCurrentContainerId("")}isActivated(){return this.tabbarService.currentContainerId.get()===this.containerId}show(){this.tabbarService.showContainer(this.containerId)}hide(){this.tabbarService.hideContainer(this.containerId)}setTitleComponent(p,s){const g=this.tabbarService.getContainer(this.containerId);g&&g.options&&(g.options.titleProps=s,g.options.titleComponent=p,g.fireChange(g))}setSize(p){this.layoutService.toggleSlot(this.tabbarService.location,!0,p+this.tabbarService.getBarSize())}setBadge(p){this.tabbarService.updateBadge(this.containerId,p)}getBadge(){return this.tabbarService.getContainer(this.containerId).options.badge}setIconClass(p){this.tabbarService.getContainer(this.containerId).options.iconClass=p}isCollapsed(p){return this.accordionService.getViewState(p).collapsed}setCollapsed(p,s){this.accordionService.toggleOpen(p,s)}toggleViews(p,s){for(const g of p){const a=this.accordionService.getViewState(g);this.accordionService.updateViewState(g,{...a,hidden:!s})}}updateViewTitle(p,s){this.accordionService.updateViewTitle(p,s)}updateViewDescription(p,s){this.accordionService.updateViewDesciption(p,s)}updateViewMessage(p,s){this.accordionService.updateViewMessage(p,s)}updateTitle(p){this.tabbarService.updateTitle(this.containerId,p)}setResizeLock(p){this.tabbarService.resizeHandle.lockSize(p)}};t.TabBarHandler=v,n.__decorate([(0,r.Autowired)(c.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),t.TabBarHandler=v=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,_.TabbarService])],v)},46245:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatTabbarRenderer2=t.BottomTabbarRenderer=t.LeftTabbarRenderer=t.RightTabbarRenderer=t.TextElipses=t.IconElipses=t.TextTabView=t.IconTabView=t.TabbarViewBase=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(97267),_=e(41869),v=e(25918),m=e(25719),p=e(63373),s=e(68969),g=e(17793),a=e(19951),h=n.__importDefault(e(5330)),u=e(752);function d(I,O){return O>=I.length?[I,[]]:O<=1?[[],I]:[I.slice(0,O-1),I.slice(O-1)]}function E(I){return typeof I=="string"?parseInt(I,10)>99?"99+":I:typeof I=="object"&&I.value?I.value>99?"99+":I.value:""}const f=I=>{var O;const{TabView:M,MoreTabView:R,forbidCollapse:P,barSize:k=48,panelBorderSize:F=0,tabClassName:L,className:B,margin:j,tabSize:W,canHideTabbar:U,renderOtherVisibleContainers:Q=()=>null,disableAutoAdjust:V}=I,{side:G,direction:Y,fullSize:H}=(0,o.useContext)(a.TabbarConfig),$=(0,_.useInjectable)(u.TabbarServiceFactory)(G),K=(0,_.useDesignStyles)(h.default.tab_bar,"tab_bar"),X=(0,_.useDesignStyles)(h.default.bar_content,"bar_content"),Z=(0,o.useMemo)(()=>V?Number.MAX_SAFE_INTEGER:Math.floor(H-(j||0)/W),[V,H,j,W]),[oe,ie]=(0,o.useState)(d($.visibleContainers.filter(ue=>{var Ie;return!(!((Ie=ue.options)===null||Ie===void 0)&&Ie.hideTab)}),Z));(0,o.useEffect)(()=>{$.updateBarSize(k+F)},[]),(0,o.useEffect)(()=>{ie(d($.visibleContainers.filter(Ie=>{var xe;return!(!((xe=Ie.options)===null||xe===void 0)&&xe.hideTab)}),Z));const ue=$.onStateChange(()=>{ie(d($.visibleContainers.filter(Ie=>{var xe;return!(!((xe=Ie.options)===null||xe===void 0)&&xe.hideTab)}),Z))});return()=>{ue.dispose()}},[Z]);const ge=(0,_.useAutorun)($.currentContainerId),pe=(0,_.usePreference)("workbench.hideSlotTabBarWhenHidePanel",!1),q=U&&pe;q&&!ge&&((O=$.resizeHandle)===null||O===void 0||O.setSize(0));const[Se,_e]=oe;_e.forEach(ue=>{$.updateTabInMoreKey(ue.options.containerId,!0)});const ne=(0,o.useCallback)((ue,Ie,xe,be)=>{var ye,Ce,fe;const Pe=(ye=ue.options)===null||ye===void 0?void 0:ye.containerId;if(!Pe||be&&(!((fe=(Ce=ue.options)===null||Ce===void 0?void 0:Ce.hideLocationTab)===null||fe===void 0)&&fe.includes(be)))return null;Ie.updateTabInMoreKey(Pe,!1);let Te;return o.default.createElement("li",{draggable:!0,onDragStart:Ne=>{if(Te){const me=Te.cloneNode(!0);me.classList.add(h.default.dragging),L&&(0,_.addClassName)(me,L),document.body.appendChild(me),Ne.persist(),requestAnimationFrame(()=>{Ne.dataTransfer.setDragImage(me,0,0),document.body.removeChild(me)})}Ie.handleDragStart(Ne,Pe)},onDragOver:Ne=>{Ne.preventDefault(),Te&&Te.classList.add("on-drag-over")},onDragLeave:()=>{Te&&Te.classList.remove("on-drag-over")},onDrop:Ne=>{Te&&Te.classList.remove("on-drag-over"),Ie.handleDrop(Ne,Pe)},onDragEnd:Ne=>{Ie.handleDragEnd(Ne)},key:Pe,id:Pe,onContextMenu:Ne=>Ie.handleContextMenu(Ne,Pe),onClick:Ne=>Ie.handleTabClick(Ne,q||P),ref:Ne=>Te=Ne,className:(0,r.default)({active:xe===Pe},L)},o.default.createElement(M,{component:ue}))},[]);return o.default.createElement("div",{className:(0,r.default)([K,B])},o.default.createElement("div",{className:X,style:{flexDirection:m.Layout.getTabbarDirection(Y)}},Se.map(ue=>ne(ue,$,ge,G)),Q({props:I,renderContainers:ne}),_e.length?o.default.createElement("li",{key:"tab-more",onClick:ue=>{var Ie;return $.showMoreMenu(ue,Se[Se.length-1]&&((Ie=Se[Se.length-1].options)===null||Ie===void 0?void 0:Ie.containerId))},className:L},o.default.createElement(R,null)):null))};t.TabbarViewBase=f;const l=({component:I})=>{var O,M,R;const P=(0,_.useInjectable)(s.IProgressService),k=(0,_.useInjectable)(_.KeybindingRegistry),F=(0,_.useDesignStyles)(h.default.icon_tab,"icon_tab"),[L,B]=(0,o.useState)(I),j=P.getIndicator(((O=L.options)===null||O===void 0?void 0:O.containerId)||""),W=(0,_.useAutorun)(j.progressModel.show),U=(0,o.useMemo)(()=>{const Q=L.options;return Q?.activateKeyBinding?`${Q?.title} (${k.acceleratorForKeyString(Q.activateKeyBinding,"+")})`:Q?.title},[L]);return(0,o.useEffect)(()=>{const Q=L.onChange(V=>{B({...V})});return()=>{Q.dispose()}},[L]),o.default.createElement("div",{className:F},o.default.createElement("div",{className:(0,r.default)((M=L.options)===null||M===void 0?void 0:M.iconClass,"activity-icon"),title:U}),W?o.default.createElement(c.Badge,{className:h.default.tab_badge},o.default.createElement("span",{className:h.default.icon_wrapper},o.default.createElement(c.Icon,{icon:"time-circle"}))):((R=L.options)===null||R===void 0?void 0:R.badge)&&o.default.createElement(c.Badge,{className:h.default.tab_badge},E(L.options.badge)))};t.IconTabView=l;const y=({component:I})=>{var O,M,R;const[P,k]=(0,o.useState)(I);return(0,o.useEffect)(()=>{const F=P.onChange(L=>{k({...L})});return()=>{F.dispose()}},[P]),o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},(M=(O=P.options)===null||O===void 0?void 0:O.title)===null||M===void 0?void 0:M.toUpperCase()),((R=P.options)===null||R===void 0?void 0:R.badge)&&o.default.createElement(c.Badge,{className:h.default.tab_badge},E(P.options.badge)))};t.TextTabView=y;const b=()=>{const I=(0,_.useDesignStyles)(h.default.icon_tab,"icon_tab");return o.default.createElement("div",{className:I},o.default.createElement("div",{className:(0,r.default)((0,_.getIcon)("ellipsis"),"activity-icon"),title:"extra tabs"}))};t.IconElipses=b;const A=()=>o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},o.default.createElement("i",{className:(0,_.getIcon)("doubleright")})));t.TextElipses=A;const S=I=>{const{barSize:O=48,style:M}=I,{side:R}=(0,o.useContext)(a.TabbarConfig),P=(0,_.useInjectable)(u.TabbarServiceFactory)(R),k=(0,_.useDesignStyles)(h.default.right_tab_bar,"right_tab_bar"),F=(0,_.useDesignStyles)(h.default.right_tab,"right_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.RIGHT_TABBAR,className:k,style:M,onContextMenu:P.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:O,panelBorderSize:1}))};t.RightTabbarRenderer=S;const w=({renderOtherVisibleContainers:I,isRenderExtraTopMenus:O=!0,renderExtraMenus:M,tabbarViewProps:R})=>{const{side:P}=(0,o.useContext)(a.TabbarConfig),k=(0,_.useInjectable)(g.IMainLayoutService),F=(0,_.useInjectable)(u.TabbarServiceFactory)(P),L=(0,o.useMemo)(()=>k.getExtraTopMenu(),[k]),B=(0,o.useMemo)(()=>k.getExtraMenu(),[k]),j=(0,_.useDesignStyles)(h.default.left_tab_bar,"left_tab_bar"),W=(0,_.useDesignStyles)(h.default.left_tab,"left_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.LEFT_TABBAR,className:j,onContextMenu:F.handleContextMenu},O&&o.default.createElement(v.InlineMenuBar,{className:(0,r.default)(h.default.vertical_icons,h.default.extra_top_menus),menus:L}),o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,className:h.default.left_tab_content,tabClassName:W,TabView:t.IconTabView,barSize:48,margin:90,panelBorderSize:1,renderOtherVisibleContainers:I,...R}),M||o.default.createElement(v.InlineMenuBar,{className:h.default.vertical_icons,menus:B}))};t.LeftTabbarRenderer=w;const T=()=>{const{side:I}=(0,o.useContext)(a.TabbarConfig),O=(0,_.useInjectable)(u.TabbarServiceFactory)(I),M=(0,_.useDesignStyles)(h.default.bottom_bar_container,"bottom_bar_container"),R=(0,_.useDesignStyles)(h.default.bottom_tab,"bottom_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.BOTTOM_TABBAR,onContextMenu:O.handleContextMenu,className:(0,r.default)(M,"next_bottom_bar")},o.default.createElement(t.TabbarViewBase,{tabSize:80,MoreTabView:t.TextElipses,tabClassName:R,TabView:t.TextTabView,barSize:24,panelBorderSize:1,canHideTabbar:!0}))};t.BottomTabbarRenderer=T;const D=I=>{const{barSize:O=32,style:M}=I,{side:R}=(0,o.useContext)(a.TabbarConfig),P=(0,_.useInjectable)(u.TabbarServiceFactory)(R);(0,o.useEffect)(()=>{P.setIsLatter(!0)},[P]);const k=(0,_.useDesignStyles)(h.default.ai_right_tab_bar,"ai_right_tab_bar"),F=(0,_.useDesignStyles)(h.default.ai_right_tab,"ai_right_tab");return o.default.createElement("div",{id:R,className:k,style:M,onContextMenu:P.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:32,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:O,panelBorderSize:1}))};t.ChatTabbarRenderer2=D},66368:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabPanelRenderer=t.LeftTabPanelRenderer=t.RightTabPanelRenderer=t.ContainerView=t.BaseTabPanelView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(76003),_=e(41869),v=e(25918),m=e(1149),p=e(68969),s=e(68974),g=e(9522),a=e(70936),h=e(91527),u=e(19951),d=n.__importDefault(e(5330)),E=e(752),f=o.default.memo(({children:I})=>I,(I,O)=>!(I.visible||O.visible)),l={display:"block"},y={display:"none"},b=I=>{const{PanelView:O,panelSize:M,id:R,PanelViewProps:P}=I,{side:k}=o.default.useContext(u.TabbarConfig),F=(0,_.useInjectable)(_.AppConfig),L=F.panelSizes&&F.panelSizes[k],B=(0,_.useInjectable)(E.TabbarServiceFactory)(k),j=(0,_.useAutorun)(B.currentContainerId),W=(0,_.useDesignStyles)(d.default.tab_panel,"tab_panel"),U=(0,_.useDesignStyles)(d.default.tab_panel_hidden,"tab_panel_hidden");return o.default.useEffect(()=>{B.updatePanelSize(L||M||335)},[]),o.default.createElement("div",{id:R,className:(0,r.default)("kt-tab-panel",W,{[U]:!j})},B.visibleContainers.map(Q=>{var V;const G=(V=Q.options)===null||V===void 0?void 0:V.containerId;if(!G)return null;const Y=B.getTitleToolbarMenu(G);return o.default.createElement("div",{key:G,className:(0,r.default)(d.default.panel_wrap,G),"data-viewlet-id":G,style:j===G?l:y,id:R},o.default.createElement(_.ErrorBoundary,null,o.default.createElement(f,{visible:j===G},o.default.createElement(O,{titleMenu:Y,side:k,component:Q,...P}))))}))};t.BaseTabPanelView=b;const A=({component:I,titleMenu:O,side:M,renderContainerWrap:R,className:P,customTitleBar:k})=>{var F,L;const B=o.default.useRef(),j=o.default.useRef(null),W=(0,_.useInjectable)(_.AppConfig),{title:U,titleComponent:Q,component:V,containerId:G,draggable:Y}=I.options||{},H=(0,_.useInjectable)(c.INJECTOR_TOKEN),$=(0,_.useInjectable)(m.LayoutViewSizeConfig),K=(0,o.useCallback)(ge=>{H.get(g.AccordionServiceFactory)(G).handleContextMenu(ge)},[G]);if(!G)return null;const Z=(0,_.useInjectable)(p.IProgressService).getIndicator(G);if(!Z)return null;const oe=(0,_.useViewState)(M,j),ie=o.default.useCallback(ge=>R?R({children:ge}):ge,[R]);return o.default.createElement("div",{ref:j,className:(0,r.default)(d.default.view_container,P)},!!k&&k,!V&&o.default.createElement("div",{onContextMenu:K,className:d.default.panel_titlebar},U?o.default.createElement(h.TitleBar,{containerId:G,side:M,title:U,draggable:Y,height:$.panelTitleBarHeight,menubar:o.default.createElement(v.InlineActionBar,{menus:O})}):null,Q&&o.default.createElement("div",{className:d.default.panel_component},o.default.createElement(_.ConfigProvider,{value:W},o.default.createElement(_.ComponentRenderer,{Component:Q,initialProps:(F=I.options)===null||F===void 0?void 0:F.titleProps})))),o.default.createElement("div",{className:d.default.container_wrap,ref:ge=>B.current=ge},o.default.createElement(s.ProgressBar,{progressModel:Z.progressModel}),ie(V?o.default.createElement(_.ConfigProvider,{value:W},o.default.createElement(_.ComponentRenderer,{initialProps:{viewState:oe,...(L=I.options)===null||L===void 0?void 0:L.initialProps},Component:V})):o.default.createElement(a.AccordionContainer,{views:I.views,minSize:I.options.miniSize,containerId:I.options.containerId}))))};t.ContainerView=A;const S=({component:I,titleMenu:O,side:M})=>{var R,P,k,F;const L=o.default.useRef(),B=o.default.useRef(null),j=(0,_.useInjectable)(_.AppConfig),W=(0,_.useInjectable)(E.TabbarServiceFactory)(M),U=(0,_.useDesignStyles)(d.default.panel_title_bar,"panel_title_bar"),Q=(0,_.useDesignStyles)(d.default.panel_toolbar_container,"panel_toolbar_container"),V=(0,_.useViewState)(M,B),G=(0,_.useInjectable)(m.LayoutViewSizeConfig),Y=(0,_.useInjectable)(p.IProgressService),{component:H,containerId:$}=I.options||{},K=I.options&&I.options.titleComponent;if(!$)return null;const X=Y.getIndicator($);return X?o.default.createElement("div",{ref:B,className:d.default.panel_container},o.default.createElement("div",{className:U,style:{height:G.panelTitleBarHeight}},o.default.createElement("h1",null,(P=(R=I.options)===null||R===void 0?void 0:R.title)===null||P===void 0?void 0:P.toUpperCase()),o.default.createElement("div",{className:d.default.title_component_container},K&&o.default.createElement(_.ComponentRenderer,{Component:K,initialProps:(k=I.options)===null||k===void 0?void 0:k.titleProps})),o.default.createElement("div",{className:Q},O&&o.default.createElement(v.InlineActionBar,{menus:O}),o.default.createElement(v.InlineMenuBar,{menus:W.commonTitleMenu,moreAtFirst:!0}))),o.default.createElement("div",{className:d.default.container_wrap,ref:Z=>L.current=Z},o.default.createElement(s.ProgressBar,{progressModel:X.progressModel}),H?o.default.createElement(_.ConfigProvider,{value:j},o.default.createElement(_.ComponentRenderer,{initialProps:{viewState:V,...(F=I.options)===null||F===void 0?void 0:F.initialProps},Component:H})):o.default.createElement(a.AccordionContainer,{views:I.views,alignment:"horizontal",minSize:I.options.miniSize,containerId:I.options.containerId}))):null},w=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.RightTabPanelRenderer=w;const T=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.LeftTabPanelRenderer=T;const D=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:S,panelSize:280});t.BottomTabPanelRenderer=D},19951:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabRenderer=t.LeftTabRenderer=t.RightTabRenderer=t.TabRendererBase=t.TabbarConfig=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(41869),_=e(81878),v=e(25719),m=e(63373),p=e(46245),s=e(66368),g=n.__importDefault(e(5330)),a=e(752);t.TabbarConfig=(0,o.createContext)({side:c.SlotLocation.left,direction:"left-to-right",fullSize:0}),t.TabRendererBase=(0,o.memo)(({id:E,className:f,components:l,direction:y="left-to-right",TabbarView:b,side:A,TabpanelView:S})=>{const w=(0,c.useInjectable)(a.TabbarServiceFactory)(A),T=(0,c.useInjectable)(c.IEventBus),D=(0,o.useContext)(_.PanelContext),I=(0,o.useRef)(null),[O,M]=(0,o.useState)(0);(0,o.useLayoutEffect)(()=>{w.registerResizeHandle(D),l.forEach(P=>{w.registerContainer(P.options.containerId,P)}),w.updatePanelVisibility(),w.ensureViewReady()},[l]);const R=(0,o.useCallback)(()=>{I.current&&M(I.current[v.Layout.getDomSizeProperty(y)])},[]);return(0,o.useEffect)(()=>{c.fastdom.measure(()=>{R()});let P;T.onDirective(c.ResizeEvent.createDirective(A),()=>{P&&P.dispose(),P=c.fastdom.measureAtNextFrame(()=>{R()})})},[]),o.default.createElement("div",{ref:I,id:E,className:(0,r.default)(g.default.tab_container,f),style:{flexDirection:v.Layout.getFlexDirection(y)}},o.default.createElement(t.TabbarConfig.Provider,{value:{side:A,direction:y,fullSize:O}},o.default.createElement(b,null),o.default.createElement(S,null)))});const h=({className:E,components:f,tabbarView:l,tabpanelView:y})=>o.default.createElement(t.TabRendererBase,{side:c.SlotLocation.right,direction:"right-to-left",id:m.VIEW_CONTAINERS.RIGHT_TABBAR_PANEL,className:(0,r.default)(E,"right-slot"),components:f,TabbarView:l??p.RightTabbarRenderer,TabpanelView:y??s.RightTabPanelRenderer});t.RightTabRenderer=h;const u=({className:E,components:f,tabbarView:l})=>o.default.createElement(t.TabRendererBase,{side:c.SlotLocation.left,direction:"left-to-right",id:m.VIEW_CONTAINERS.LEFT_TABBAR_PANEL,className:(0,r.default)(E,"left-slot"),components:f,TabbarView:l??p.LeftTabbarRenderer,TabpanelView:s.LeftTabPanelRenderer});t.LeftTabRenderer=u;const d=({className:E,components:f,tabbarView:l})=>o.default.createElement(t.TabRendererBase,{side:c.SlotLocation.bottom,id:m.VIEW_CONTAINERS.BOTTOM_TABBAR_PANEL,direction:"bottom-to-top",className:(0,r.default)(E,"bottom-slot"),components:f,TabbarView:l??p.BottomTabbarRenderer,TabpanelView:s.BottomTabPanelRenderer});t.BottomTabRenderer=d},752:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabbarService=t.TabbarServiceFactoryFn=t.TabbarServiceFactory=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),c=e(41869),_=e(30144),v=e(95416),m=e(93899),p=e(68969),s=e(28423),g=e(17793),a=e(53576);t.TabbarServiceFactory=Symbol("TabbarServiceFactory");const h=f=>l=>f.get(g.IMainLayoutService).getTabbarService(l);t.TabbarServiceFactoryFn=h;const u={left:"view",right:"extendView",bottom:"panel"},d=void 0;let E=class extends c.WithEventBus{constructor(l){super(),this.location=l,this.doChangeViewEmitter=new c.Emitter,this.onStateChangeEmitter=new c.Emitter,this.onStateChange=this.onStateChangeEmitter.event,this.shouldChangeView=(0,s.observableFromEventOpts)({owner:this,equalsFn:()=>!1},this.doChangeViewEmitter.event,()=>{}),this.containerIdObs=(0,s.observableValue)(this,d),this.currentContainerId=(0,s.derivedOpts)({owner:this,equalsFn:()=>!1},y=>(this.shouldChangeView.read(y),this.containerIdObs.read(y))),this.nextContainerId="",this.useFirstContainerId=!1,this.previousContainerId=void 0,this.containersMap=new Map,this.viewReady=new c.Deferred,this.state=new Map,this.storedState={},this.accordionRestored=new Set,this.onCurrentChangeEmitter=new c.Emitter,this.onCurrentChange=this.onCurrentChangeEmitter.event,this.onSizeChangeEmitter=new c.Emitter,this.onSizeChange=this.onSizeChangeEmitter.event,this.menuId=`tabbar/${this.location}`,this.moreMenuId=`tabbar/${this.location}/more`,this.sortedContainers=[],this.disposableMap=new Map,this.tabInMoreKeyMap=new Map,this.shouldWaitForViewRender=!1,this.onDidRegisterContainerEmitter=new c.Emitter,this.isEmptyTabbar=!0,this.updatePanel=(0,r.default)(y=>{this.resizeHandle&&this.resizeHandle.hidePanel(y)},60),this._menuMap=new Map,this.handleContextMenu=(y,b)=>{y.preventDefault(),y.stopPropagation();const A=this.menuService.createMenu(this.menuId,b?this.scopedCtxKeyService:this.contextKeyService),S=(0,m.generateCtxMenu)({menus:A,args:[{containerId:b}]});this.contextMenuRenderer.show({menuNodes:S[1],anchor:{x:y.clientX,y:y.clientY}})},this.setIsLatter(l===c.SlotLocation.right||l===c.SlotLocation.bottom),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithTab",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,c.localize)("layout.tabbar.toggle")},group:"0_global",when:"triggerWithTab == true"}),this.activatedKey=this.contextKeyService.createKey((0,c.getTabbarCtxKey)(this.location),""),this.location==="bottom"&&(this.registerPanelCommands(),this.registerPanelMenus()),this.eventBus.onDirective(c.ResizeEvent.createDirective(this.location),()=>{this.onResize()})}get onDidRegisterContainer(){return this.onDidRegisterContainerEmitter.event}setIsLatter(l){this.isLatter=l}updateNextContainerId(l){(0,c.isUndefined)(l)?this.useFirstContainerId=!0:this.nextContainerId=l}updateCurrentContainerId(l){(0,s.transaction)(y=>{this.containerIdObs.set(l,y)})}updateBadge(l,y){const b=this.getContainer(l);b&&b.options&&(b.options.badge=y),b?.fireChange(b)}registerPanelCommands(){this.commandRegistry.registerCommand(a.EXPAND_BOTTOM_PANEL,{execute:()=>{this.layoutService.expandBottom(!0)}}),this.commandRegistry.registerCommand(a.RETRACT_BOTTOM_PANEL,{execute:()=>{this.layoutService.expandBottom(!1)}}),this.commandRegistry.registerCommand(a.TOGGLE_BOTTOM_PANEL_COMMAND,{execute:(l,y)=>{this.layoutService.toggleSlot(c.SlotLocation.bottom,l,y)}})}getContainerState(l){return this.state.get(l)}hideContainer(l){const y=this.state.get(l);y&&(y.hidden=!0,this.onStateChangeEmitter.fire())}showContainer(l){const y=this.state.get(l);y&&(y.hidden=!1,this.onStateChangeEmitter.fire())}updatePanelVisibility(l){l===void 0&&(l=this.containersMap.size>0),this.updatePanel(l)}ensureViewReady(){(0,c.isDefined)(this.barSize)&&(0,c.isDefined)(this.panelSize)?this.resolveViewReady():this.shouldWaitForViewRender=!0}updatePanelSize(l){this.panelSize=l,(0,c.isDefined)(this.barSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}updateBarSize(l){this.barSize=l,(0,c.isDefined)(this.panelSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}resolveViewReady(){this.isEmptyTabbar?c.Event.once(this.onDidRegisterContainer)(()=>{this.viewReady.resolve()}):this.viewReady.resolve()}getBarSize(){return this.barSize}updateTabInMoreKey(l,y){const b=this.tabInMoreKeyMap.get(l);b&&b.set(y)}get visibleContainers(){const l=[];return this.containersMap.forEach(y=>{const b=y.options&&this.state.get(y.options.containerId);(!b||!b.hidden)&&l.push(y)}),l.sort((y,b)=>this.getContainerState(y.options.containerId).priority-this.getContainerState(b.options.containerId).priority)}registerResizeHandle(l){const{setSize:y,setRelativeSize:b,getSize:A,getRelativeSize:S,lockSize:w,setMaxSize:T,hidePanel:D}=l;return this.resizeHandle={setSize:I=>y(I,this.isLatter),setRelativeSize:(I,O)=>b(I,O,this.isLatter),getSize:()=>A(this.isLatter),getRelativeSize:()=>S(this.isLatter),setMaxSize:I=>T(I,this.isLatter),lockSize:I=>w(I,this.isLatter),hidePanel:I=>D(I)},this.listenCurrentChange()}registerContainer(l,y){var b;if(this.containersMap.has(l))return;this.useFirstContainerId&&(this.useFirstContainerId=!1,this.updateCurrentContainerId(l)),this.nextContainerId===l&&this.updateCurrentContainerId(l);const A=new c.DisposableCollection,S=y.options||{containerId:l};y.options=S;const w=new c.Emitter;this.containersMap.set(l,{fireChange:D=>w.fire(D),onChange:w.event,views:y.views,options:S}),A.push({dispose:()=>{this.containersMap.delete(l),this.state.delete(l)}}),this.updatePanelVisibility(this.containersMap.size>0);let T=this.sortedContainers.findIndex(D=>{var I,O;return(((I=D.options)===null||I===void 0?void 0:I.priority)||1)<=(((O=y.options)===null||O===void 0?void 0:O.priority)||1)});T===-1&&(T=this.sortedContainers.length),this.sortedContainers.splice(T,0,y);for(let D=T;D<this.sortedContainers.length;D++){const O=(b=this.sortedContainers[D].options)===null||b===void 0?void 0:b.containerId;if(O){const M=this.storedState[O]||this.getContainerState(O)||{};this.state.set(O,{hidden:M.hidden,priority:D})}}A.push(this.registerSideEffects(y)),this.eventBus.fire(new g.TabBarRegistrationEvent({tabBarId:l})),l===this.currentContainerId.get()&&this.handleChange(l,""),this.viewContextKeyRegistry.registerContextKeyService(l,this.contextKeyService.createScoped()).createKey("view",l),this.isEmptyTabbar&&(this.isEmptyTabbar=!1),this.disposableMap.set(l,A),this.onDidRegisterContainerEmitter.fire(l)}registerSideEffects(l){var y;const b=new c.DisposableCollection;!((y=l.options)===null||y===void 0)&&y.hideTab||(b.push(this.registerHideMenu(l)),b.push(this.registerMoreMenu(l))),b.push(this.registerActivateKeyBinding(l,l.options.fromExtension));const A=this.contextKeyService.createKey(`workbench.${u[this.location]||"view"}.${l.options.containerId}`,!0);return b.push({dispose:()=>{A.set(!1)}}),b.push(this.progressService.registerProgressIndicator(l.options.containerId)),b.push(this.registerContainerPanelRelatedCommand(l)),b}registerContainerPanelRelatedCommand(l){var y,b,A,S,w;const T=new c.DisposableCollection,D=(y=l.options)===null||y===void 0?void 0:y.containerId;return T.push(this.commandRegistry.registerCommand({id:"container.show."+D,label:(0,c.formatLocalize)("view.command.show",(A=(b=l.options)===null||b===void 0?void 0:b.title)!==null&&A!==void 0?A:D),labelLocalized:(0,c.createFormatLocalizedStr)("view.command.show",(w=(S=l.options)===null||S===void 0?void 0:S.title)!==null&&w!==void 0?w:D),category:"View"},{execute:()=>{this.updateCurrentContainerId(D)}})),T.push(this.commandRegistry.registerCommand({id:"container.hide."+D},{execute:()=>{this.updateCurrentContainerId("")}})),T.push(this.commandRegistry.registerCommand({id:"container.toggle."+D},{execute:()=>{this.currentContainerId.get()===D?this.updateCurrentContainerId(""):this.updateCurrentContainerId(D)}})),T}registerHideMenu(l){const y=new c.DisposableCollection,b=l.options.containerId;return y.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(b,y),label:l.options.title||b},group:"1_widgets"})),y}registerMoreMenu(l){const y=new c.DisposableCollection,b=l.options.containerId,A=this.scopedCtxKeyService.createKey(this.getTabInMoreCtxKey(b),!1);return this.tabInMoreKeyMap.set(b,A),y.push({dispose:()=>this.tabInMoreKeyMap.delete(b)}),y.push(this.menuRegistry.registerMenuItem(this.moreMenuId,{command:{id:this.registerMoreToggleCommand(l,y),label:l.options.title||b},group:"inline",when:`${this.getTabInMoreCtxKey(b)} == true`,toggledWhen:`${(0,c.getTabbarCtxKey)(this.location)} == ${b}`,iconClass:l.options.iconClass})),y}disposeContainer(l){var y;const b=this.disposableMap.get(l);b&&b.dispose(),this.currentContainerId.get()===l&&this.updateCurrentContainerId(((y=this.visibleContainers[0].options)===null||y===void 0?void 0:y.containerId)||"")}updateTitle(l,y){const b=this.getContainer(l);b&&(b.options.title=y)}getContainer(l){return l?this.containersMap.get(l):void 0}getTitleToolbarMenu(l){const y=this._menuMap.get(l);if(y)return y;const b=this.menuService.createMenu(m.MenuId.ViewTitle,this.viewContextKeyRegistry.getContextKeyService(l));this._menuMap.set(l,b);const A=this.disposableMap.get(l),S=[b,(0,c.toDisposable)(()=>{this._menuMap.delete(l)})];return A?A.pushAll(S):this.addDispose(S),b}doExpand(l){if(this.resizeHandle){const{setRelativeSize:y}=this.resizeHandle;l?this.isLatter?y(0,1):y(1,0):y(2,1)}}get isExpanded(){if(this.resizeHandle){const{getRelativeSize:l}=this.resizeHandle,y=l().join(",");return this.isLatter?y==="0,1":y==="1,0"}return!1}handleTabClick(l,y){const b=l.currentTarget.id;b===this.currentContainerId.get()&&!y?this.updateCurrentContainerId(""):this.updateCurrentContainerId(b)}showMoreMenu(l,y){const b=this.menuService.createMenu(this.moreMenuId,this.scopedCtxKeyService),A=(0,m.generateCtxMenu)({menus:b,args:[{lastContainerId:y}]});this.contextMenuRenderer.show({menuNodes:A[1],anchor:{x:l.clientX,y:l.clientY}})}handleDragStart(l,y){l.dataTransfer.setData("containerId",y),this.layoutService.showDropAreaForContainer(y)}handleDrop(l,y){if(l.dataTransfer.getData("containerId")){const b=l.dataTransfer.getData("containerId"),A=this.visibleContainers,S=A.findIndex(T=>b===T.options.containerId),w=A.findIndex(T=>y===T.options.containerId);this.doInsertTab(A,S,w),this.storeState()}}handleDragEnd(l){this.layoutService.hideDropArea()}restoreState(){this.storedState=this.layoutState.getState(v.LAYOUT_STATE.getTabbarSpace(this.location),{});for(const l of this.state.keys())this.storedState[l]&&this.state.set(l,this.storedState[l]);this.visibleContainers.forEach(l=>{g.SUPPORT_ACCORDION_LOCATION.has(this.location)&&this.tryRestoreAccordionSize(l.options.containerId)})}removeContainer(l){const y=this.disposableMap.get(l);y?.dispose(),this.updateCurrentContainerId(""),this.doChangeViewEmitter.fire()}dynamicAddContainer(l,y){this.registerContainer(l,y),this.updateCurrentContainerId(l),this.doChangeViewEmitter.fire()}doInsertTab(l,y,b){const A=this.getContainerState(l[b].options.containerId).priority,S=(T,D)=>{const I=this.getContainerState(l[T].options.containerId),O=this.getContainerState(l[D].options.containerId);I.priority=O.priority};let w;if(y>b)for(w=b;w<y;w++)S(w,w+1);else for(w=b;w>y;w--)S(w,w-1);this.getContainerState(l[w].options.containerId).priority=A,this.doChangeViewEmitter.fire()}storeState(){const l={};this.state.forEach((y,b)=>{l[b]=y}),this.layoutState.setState(v.LAYOUT_STATE.getTabbarSpace(this.location),l),this.onStateChangeEmitter.fire()}registerActivateKeyBinding(l,y){const b=l.options,A=b.containerId,S=y?`workbench.view.extension.${A}`:`workbench.view.${A}`,w=new c.DisposableCollection;return w.push(this.commandRegistry.registerCommand({id:S},{execute:({forceShow:T}={})=>{this.location==="bottom"&&!T?this.updateCurrentContainerId(this.currentContainerId.get()===A?"":A):this.updateCurrentContainerId(A)}})),b.activateKeyBinding&&w.push(this.keybindingRegistry.registerKeybinding({command:S,keybinding:b.activateKeyBinding})),w}registerGlobalToggleCommand(){const l=`activity.bar.toggle.${this.location}`;return this.commandRegistry.registerCommand({id:l},{execute:({containerId:y})=>{this.doToggleTab(y)},isEnabled:()=>this.visibleContainers.length>1}),l}registerVisibleToggleCommand(l,y){const b=`activity.bar.toggle.${l}`;return y.push(this.commandRegistry.registerCommand({id:b},{execute:({forceShow:A}={})=>{this.doToggleTab(l,A)},isToggled:()=>!this.getContainerState(l).hidden,isEnabled:()=>this.getContainerState(l).hidden||this.visibleContainers.length!==1})),b}registerMoreToggleCommand(l,y){const{options:b}=l,{containerId:A}=b,S=`activity.bar.activate.more.${A}`;return y.push(this.commandRegistry.registerCommand({id:S},{execute:({lastContainerId:w})=>{if(this.updateCurrentContainerId(A),w){const T=this.getContainerState(A),D=this.getContainerState(w),I=T.priority;T.priority=D.priority,D.priority=I,this.storeState()}}})),S}getTabInMoreCtxKey(l){return`${l}.isInMore`}registerPanelMenus(){this.menuRegistry.registerMenuItems((0,m.getTabbarCommonMenuId)("bottom"),[{command:a.EXPAND_BOTTOM_PANEL.id,group:"navigation",when:"!bottomFullExpanded",order:1},{command:a.RETRACT_BOTTOM_PANEL.id,group:"navigation",when:"bottomFullExpanded",order:1},{command:a.TOGGLE_BOTTOM_PANEL_COMMAND.id,group:"navigation",order:2}]),this.commonTitleMenu=this.ctxMenuService.createMenu({id:"tabbar/bottom/common"})}doToggleTab(l,y){const b=this.getContainerState(l);y===void 0?b.hidden=!b.hidden:b.hidden=!y,b.hidden&&this.currentContainerId.get()===l&&this.updateCurrentContainerId(this.visibleContainers[0].options.containerId),this.storeState()}shouldExpand(l){const y=this.getContainer(l);return y&&y.options&&y.options.expanded}onResize(){c.fastdom.measureAtNextFrame(()=>{if(!this.currentContainerId||!this.resizeHandle)return;const l=this.resizeHandle.getSize();l!==this.barSize&&!this.shouldExpand(this.currentContainerId.get())&&(this.prevSize=l,this.onSizeChangeEmitter.fire({size:l}))})}listenCurrentChange(){return(0,s.autorunDelta)(this.currentContainerId,({lastValue:l,newValue:y})=>{this.previousContainerId=l===d?"":l,this.handleChange(y,l)})}handleChange(l,y){var b;if(!this.resizeHandle)return;const{getSize:A,setSize:S,lockSize:w}=this.resizeHandle;this.onCurrentChangeEmitter.fire({previousId:y,currentId:l});const T=this.shouldExpand(l);if(this.shouldExpand(this.previousContainerId)||T)this.handleFullExpanded(l,T);else if(l){y&&l!==y&&(this.prevSize=A());const D=this.getContainer(l);S(this.prevSize||this.panelSize+this.barSize),w(!!(!((b=D?.options)===null||b===void 0)&&b.noResize)),this.activatedKey.set(l)}else S(this.barSize),w(!0)}tryRestoreAccordionSize(l){var y,b;if(this.accordionRestored.has(l))return;const A=this.containersMap.get(l);if((!A||!((y=A.options)===null||y===void 0)&&y.component)&&((b=A?.options)===null||b===void 0?void 0:b.containerId)!==_.SCM_CONTAINER_ID)return;this.layoutService.getAccordionService(l).restoreState(),this.accordionRestored.add(l)}handleFullExpanded(l,y){if(!this.resizeHandle)return;const{setRelativeSize:b,setSize:A}=this.resizeHandle;l?y?this.isLatter?b(0,1):b(1,0):A(this.prevSize||this.panelSize+this.barSize):A(this.barSize)}};t.TabbarService=E,n.__decorate([(0,o.Autowired)(m.AbstractMenuService),n.__metadata("design:type",m.AbstractMenuService)],E.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(m.AbstractContextMenuService),n.__metadata("design:type",m.AbstractContextMenuService)],E.prototype,"ctxMenuService",void 0),n.__decorate([(0,o.Autowired)(m.IMenuRegistry),n.__metadata("design:type",m.IMenuRegistry)],E.prototype,"menuRegistry",void 0),n.__decorate([(0,o.Autowired)(c.CommandRegistry),n.__metadata("design:type",Object)],E.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(m.ICtxMenuRenderer),n.__metadata("design:type",m.ICtxMenuRenderer)],E.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,o.Autowired)(c.KeybindingRegistry),n.__metadata("design:type",Object)],E.prototype,"keybindingRegistry",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",c.ViewContextKeyRegistry)],E.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,o.Autowired)(c.IContextKeyService),n.__metadata("design:type",Object)],E.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],E.prototype,"layoutService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",v.LayoutState)],E.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(p.IProgressService),n.__metadata("design:type",Object)],E.prototype,"progressService",void 0),t.TabbarService=E=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],E)},58296:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewsRegistry=t.ViewsController=t.ViewContentGroups=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),_=e(17793);var v;(function(g){g.Open="2_open",g.Debug="4_debug",g.SCM="5_scm",g.More="9_more"})(v||(t.ViewContentGroups=v={}));function m(g,a){var h,u,d,E;const f=(h=g.group)!==null&&h!==void 0?h:v.More,l=(u=a.group)!==null&&u!==void 0?u:v.More;return f!==l?f.localeCompare(l):((d=g.order)!==null&&d!==void 0?d:5)-((E=a.order)!==null&&E!==void 0?E:5)}let p=class{get contents(){const a=this.items.filter(h=>h.visible);return a.length===0&&this.defaultItem?[this.defaultItem.descriptor]:a.map(h=>h.descriptor)}constructor(a){this.id=a,this._onDidChange=new o.Emitter,this.onDidChange=this._onDidChange.event,this.items=[],this.disposables=[],this.contextKeyService.onDidChangeContext(this.onDidChangeContext,this,this.disposables),o.Event.filter(this.viewsRegistry.onDidChangeViewWelcomeContent,h=>h===this.id)(this.onDidChangeViewWelcomeContent,this,this.disposables),this.onDidChangeViewWelcomeContent()}onDidChangeViewWelcomeContent(){const a=this.viewsRegistry.getViewWelcomeContent(this.id);this.items=[];for(const h of a)if(h.when==="default")this.defaultItem={descriptor:h,visible:!0};else{const u=h.when?this.contextKeyService.match(h.when):!0;this.items.push({descriptor:h,visible:u})}this._onDidChange.fire()}onDidChangeContext(){let a=!1;for(const h of this.items){if(!h.descriptor.when||h.descriptor.when==="default")continue;const u=this.contextKeyService.match(h.descriptor.when);h.visible!==u&&(h.visible=u,a=!0)}a&&this._onDidChange.fire()}dispose(){this.disposables.forEach(a=>a.dispose()),this.disposables=[]}};t.ViewsController=p,n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(_.IViewsRegistry),n.__metadata("design:type",Object)],p.prototype,"viewsRegistry",void 0),t.ViewsController=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],p);let s=class{constructor(){this.viewWelcomeContent=new c.SetMap,this._onDidChangeViewWelcomeContent=new o.Emitter,this.onDidChangeViewWelcomeContent=this._onDidChangeViewWelcomeContent.event}registerViewWelcomeContent(a,h){return this.viewWelcomeContent.add(a,h),this._onDidChangeViewWelcomeContent.fire(a),{dispose:()=>{this.viewWelcomeContent.delete(a,h),this._onDidChangeViewWelcomeContent.fire(a)}}}registerViewWelcomeContent2(a,h){const u=new Map;for(const[d,E]of h)this.viewWelcomeContent.add(a,E),u.set(d,(0,o.toDisposable)(()=>{this.viewWelcomeContent.delete(a,E),this._onDidChangeViewWelcomeContent.fire(a)}));return this._onDidChangeViewWelcomeContent.fire(a),u}getViewWelcomeContent(a){const h=[];return this.viewWelcomeContent.forEach(a,u=>h.push(u)),h.sort(m),h}};t.ViewsRegistry=s,t.ViewsRegistry=s=n.__decorate([(0,r.Injectable)()],s)},24429:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WelcomeView=t.CSSIcon=void 0,t.renderLabelWithIcons=a;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(48412),_=e(41869),v=e(43718),m=n.__importDefault(e(81388)),p=e(58296);var s;(function(d){d.iconNameSegment="[A-Za-z0-9]+",d.iconNameExpression="[A-Za-z0-9\\-]+",d.iconModifierExpression="~[A-Za-z]+"})(s||(t.CSSIcon=s={}));const g=new RegExp(`(\\\\)?\\$\\((${s.iconNameExpression}(?:${s.iconModifierExpression})?)\\)`,"g");function a(d){const E=new Array;let f,l=0,y=0;for(;(f=g.exec(d))!==null;){y=f.index||0,E.push(d.substring(l,y)),l=(f.index||0)+f[0].length;const[,b,A]=f;E.push(b?`$(${A})`:o.default.createElement("span",{className:(0,_.getExternalIcon)(A)}))}return l<d.length&&E.push(d.substring(l)),E}const h=d=>{const{contents:E}=d,[f,l]=o.default.useState(E.map(A=>A.precondition?!1:null)),y=(0,_.useInjectable)(_.IContextKeyService),b=(0,_.useInjectable)(_.IOpenerService);return o.default.useEffect(()=>{const A=E.map(w=>{if(w.precondition){const T=new Set;return w.precondition.keys().forEach(D=>T.add(D)),T}return null}),S=y.onDidChangeContext(w=>{A.forEach((T,D)=>{T&&w.payload.affectsSome(T)&&l(f.map((I,O)=>O===D?y.match(E[D].precondition):I))})});return()=>S.dispose()},[E]),E.length===0?null:o.default.createElement(o.default.Fragment,null,E.map(({content:A,precondition:S},w)=>{const T=A.split(`
31930
31930
  `),D=[];for(let I of T){if(I=I.trim(),!I)continue;const O=(0,v.parseLinkedText)(I);if(O.nodes.length===1&&typeof O.nodes[0]!="string"){const M=O.nodes[0];D.push(o.default.createElement("div",{key:D.length,title:M.title,className:"button-container"},o.default.createElement(c.Button,{disabled:f[w]===!1,onClick:()=>b.open(M.href)},a(M.label))))}else{const M=O.nodes.map((R,P)=>typeof R=="string"?R:o.default.createElement("a",{key:P,className:(0,r.default)({disabled:R.href.startsWith("command:")&&f[w]===!1}),title:R.title,onClick:()=>b.open(R.href)},R.label));D.push(o.default.createElement("p",{key:D.length},M))}}return o.default.createElement(o.default.Fragment,{key:w},D)}))};function u(d,E){return d.viewId===E.viewId}t.WelcomeView=o.default.memo(d=>{const E=(0,_.useInjectable)(p.ViewsController,[d.viewId]),[f,l]=o.default.useState(E.contents);return o.default.useEffect(()=>{E.onDidChange(()=>{const y=E.contents;l(y)})},[]),f.length?o.default.createElement("div",{className:m.default.welcome},o.default.createElement(h,{contents:f})):null},u)},17793:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(72260),t)},72260:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DROP_RIGHT_CONTAINER=t.DROP_BOTTOM_CONTAINER=t.SUPPORT_ACCORDION_LOCATION=t.ViewCollapseChangedEvent=t.IViewsRegistry=t.TabBarRegistrationEvent=t.MainLayoutContribution=t.IMainLayoutService=void 0;const n=e(41869);t.IMainLayoutService=Symbol("IMainLayoutService"),t.MainLayoutContribution=Symbol("MainLayoutContribution");class r extends n.BasicEvent{}t.TabBarRegistrationEvent=r,t.IViewsRegistry=Symbol("IViewsRegistry");class o extends n.BasicEvent{}t.ViewCollapseChangedEvent=o,t.SUPPORT_ACCORDION_LOCATION=new Set([n.SlotLocation.left,n.SlotLocation.right]),t.DROP_BOTTOM_CONTAINER="drop-bottom",t.DROP_RIGHT_CONTAINER="drop-right"},63067:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(17793),t)},93835:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmbeddedMarkdownEditorContribution=t.MARKDOWN_EDITOR_COMPONENT_ID=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),_=e(57517),v=e(21066),m=e(81001);t.MARKDOWN_EDITOR_COMPONENT_ID="MARKDOWN_EDITOR_COMPONENT_ID";let p=class{registerEditorComponent(g){g.registerEditorComponent({uid:t.MARKDOWN_EDITOR_COMPONENT_ID,component:m.MarkdownEditorComponent,scheme:c.Schemes.file}),g.registerEditorComponentResolver(c.Schemes.file,(a,h)=>{a.uri.path.ext===".md"&&h.push({type:_.EditorOpenType.component,componentId:t.MARKDOWN_EDITOR_COMPONENT_ID,title:(0,c.localize)("editorOpenType.preview"),weight:this.preferenceService.get("application.preferMarkdownPreview")?10:-1})})}};t.EmbeddedMarkdownEditorContribution=p,n.__decorate([(0,r.Autowired)(v.IMarkdownService),n.__metadata("design:type",Object)],p.prototype,"markdownService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],p.prototype,"preferenceService",void 0),t.EmbeddedMarkdownEditorContribution=p=n.__decorate([(0,c.Domain)(_.BrowserEditorContribution)],p)},81001:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownEditorComponent=void 0;const r=e(85608).__importDefault(e(14041)),o=e(41869),c=e(57517),_=e(21066),v=({resource:m})=>{let p=null;const s=(0,o.useInjectable)(_.IMarkdownService),g=(0,o.useInjectable)(c.IEditorDocumentModelService);return r.default.useEffect(()=>{if(p){const a=new o.Disposable,h=new o.CancellationTokenSource;return a.addDispose({dispose:()=>{h.cancel()}}),g.createModelReference(m.uri,"markdown-preview").then(u=>{if(h.token.isCancellationRequested){u&&u.dispose();return}const d=new o.Emitter;a.addDispose(d),a.addDispose(u.instance.getMonacoModel().onDidChangeContent(E=>{d.fire(u.instance.getText())})),p&&s.previewMarkdownInContainer(u.instance.getText(),p,h.token,void 0,d.event).then(E=>{a.addDispose(E)}),a.addDispose(u)}),()=>{a.dispose()}}}),r.default.createElement("div",{ref:a=>{p=a},style:{height:"100%"}})};t.MarkdownEditorComponent=v},31101:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownModule=t.Markdown=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(21066),_=e(89637);var v=e(6001);Object.defineProperty(t,"Markdown",{enumerable:!0,get:function(){return v.Markdown}});let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:c.IMarkdownService,useClass:_.MarkdownServiceImpl}]}};t.MarkdownModule=m,t.MarkdownModule=m=n.__decorate([(0,r.Injectable)()],m)},86422:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markdownCss=void 0,t.markdownCss=`