import{F as c}from"./vendor-ui-CGT0cG1n.js";import{n as p,r}from"./index-D88CvPWT.js";const{i18n:l}=p;function d(){function s(o,e){const n=c.service({lock:!0,text:l.global.t("comp.openingInEditor")});r.v1Comp.compcontrollerOpencomppathinvscode({folderPath:o,relativeFilePath:e}).finally(()=>{n.close()})}function i(o,e=2){const n=window.__GLOBAL_CONFIG__.sep,t=o.split(n);return t.length>e?`...${n}${t.slice(-e).join(n)}`:o}return{handlePath:i,openCompPathInVscode:s}}export{d as u};
