import{F as c}from"./vendor-ui-DXwyveTF.js";import{n as p,q as l}from"./index-B5qe6yln.js";const{i18n:r}=p;function d(){function s(o,e){const n=c.service({lock:!0,text:r.global.t("comp.openingInEditor")});l.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};
