You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read properties of undefined (reading 'package.json')
at m (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1578)
at Object.h [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1167)
at Object.y [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:76:36331)
at getPackageJsonInfo (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40230:33)
at loadNodeModuleFromDirectory (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40062:47)
at nodeLoadModuleByRelativeName (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39937:14)
at loader (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39841:78)
at /private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40954:16
at forEach (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:55:24)
at tryLoadModuleUsingPaths (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40941:24)
[Info - 18:11:54] Connection to server got closed. Server will restart.
true
/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77 ,useCaseSensitiveFileNames:i?.useCaseSensitiveFileNames??!1,realpath:i?.realpath,write:i?.write??(()=>{}),writeFile:i?.writeFile??(()=>{}),createDirectory:i?.createDirectory??(()=>{}),exit:i?.exit??(()=>{}),getExecutingFilePath:i?.getExecutingFilePath??(()=>r+"/__fake__.js"),getCurrentDirectory:()=>r,getModifiedTime:p,readFile:c,readDirectory:w,getDirectories:v,resolvePath:l,fileExists:h,directoryExists:u,async sync(){for(;o.size;)await Promise.all(o);return n}};function l(A){if(i){if(iL!==r&&(iL=r,i.directoryExists(r)))try{process.chdir(r)}catch{}return i.resolvePath(A).replace(/\\/g,"/")}return go.posix.resolve(A).replace(/\\/g,"/")}function c(A,k){A=l(A);let C=go.posix.dirname(A),S=g(C),E=go.posix.basename(A);return x(A,k,S),S.files[E]?.text}function u(A){A=l(A);let k=g(A);if(k.exists===void 0){k.exists=!1;let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),k.exists=E?.type===2,k.exists&&n++})}else k.exists=C?.type===2}return k.exists}function p(A){A=l(A);let k=m(A);return k.requestedStat||(k.requestedStat=!0,d(A,k)),k.stat?new Date(k.stat.mtime):new Date(0)}function h(A){A=l(A);let k=m(A),C=()=>k.text!==void 0||k.stat?.type===1;return C()?!0:(k.requestedStat||(k.requestedStat=!0,d(A,k)),C())}function d(A,k){let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),(k.stat?.type!==E?.type||k.stat?.mtime!==E?.mtime)&&n++,k.stat=E})}else k.stat=C}function m(A){A=l(A);let k=go.posix.dirname(A),C=go.posix.basename(A),S=g(k);return S.files[C]??={}}function v(A){A=l(A),y(A);let k=g(A);return[...Object.entries(k.dirs)].filter(([C,S])=>S.exists).map(([C])=>C)}function w(A,k,C,S,E){A=l(A);let D=(0,Goe.matchFiles)(A,k,C,S,i?.useCaseSensitiveFileNames??!1,r,E,F=>{F=l(F),y(F);let P=g(F);return{files:[...Object.entries(P.files)].filter(([O,N])=>N.stat?.type===1).map(([O])=>O),directories:[...Object.entries(P.dirs)].filter(([O,N])=>N.exists).map(([O])=>O)}},i?.realpath?F=>i.realpath(F):F=>F);return[...new Set(D)]}function x(A,k,C){let S=go.posix.basename(A);C.files[S]??={};let E=C.files[S];if(E.requestedText)return;E.requestedText=!0;let D=t.fileNameToUri(A),F=t.fs?.readFile(D,k);if(typeof F=="object"&&"then"in F){let P=F;o.add(P),F.then(O=>{o.delete(P),O!==void 0&&(E.text=O,E.stat&&E.stat.mtime++,n++)})}else F!==void 0&&(E.text=F)}function y(A){let k=g(A);if(k.requestedRead)return;k.requestedRead=!0;let C=t.fs?.readDirectory(t.fileNameToUri(A||"."));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),f(A,k,E)&&n++})}else f(A,k,C??[])}function f(A,k,C){C=C.filter(([E])=>E!=="."&&E!=="..");let S=!1;for(let[E,D]of C){let F=D;if(F===64){let P=t.fs?.stat(t.fileNameToUri(A+"/"+E));if(typeof P=="object"&&"then"in P){let O=P;o.add(O),P.then(N=>{if(o.delete(O),N?.type===1){k.files[E]??={};let L=k.files[E];(N.type!==L.stat?.type||N.mtime!==L.stat.mtime)&&n++,L.stat=N,L.requestedStat=!0}else if(N?.type===2){let L=_(k,E);L.exists||(L.exists=!0,n++)}})}else P&&(F=P.type)}if(F===1)k.files[E]??={},k.files[E].stat||(k.files[E].stat={type:1,mtime:0,ctime:0,size:0},S=!0);else if(F===2){let P=_(k,E);P.exists||(P.exists=!0,S=!0)}}return S}function g(A){let k=[],C=A,S=go.posix.basename(C),E;for(;E!==C;)E=C,k.push(S),C=go.posix.dirname(C),S=go.posix.basename(C);let D=s;for(let F=k.length-1;F>=0;F--){let P=k[F];D=_(D,P)}return D}function _(A,k){let C=A.dirs[k];return C||(C={dirs:{},files:{}},A.dirs[k]=C),C}}rw.createSys=Koe});var oL=R(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.getProgram=void 0;function Joe(e,t,n,r){let i={getRootFileNames:o,emit:h,getSyntacticDiagnostics:l,getSemanticDiagnostics:c,getGlobalDiagnostics:p,getBindAndCheckDiagnostics:a};return new Proxy({},{get:(m,v)=>{if(v in i)return i[v];let w=s();return v in w?w[v]:m[v]},set:(m,v,w)=>{let x=s();return m[v]=x[v]=w,!0}});function s(){return n.getProgram()}function o(){return s().getRootFileNames().filter(m=>r.fileExists?.(m))}function a(m,v){return u(m,v,"getBindAndCheckDiagnostics")}function l(m,v){return u(m,v,"getSyntacticDiagnostics")}function c(m,v){return u(m,v,"getSemanticDiagnostics")}function u(m,v,w){if(m){let[x,y]=t.virtualFiles.getVirtualFile(m.fileName);if(x&&y)return x.capabilities.diagnostic?d(n.getProgram()?.[w](m,v)??[]):[]}return d(s()[w](m,v)??[])}function p(m){return d(s().getGlobalDiagnostics(m)??[])}function h(m,v,w,x,y){let f=s().emit(m,r.writeFile??e.sys.writeFile,w,x,y);return{emitSkipped:f.emitSkipped,emittedFiles:f.emittedFiles,diagnostics:d(f.diagnostics)}}function d(m){let v=[];for(let x of m)if(x.file!==void 0&&x.start!==void 0&&x.length!==void 0){let[y,f]=t.virtualFiles.getVirtualFile(x.file.fileName);if(y&&f){if(r.fileExists?.(f.fileName)===!1)continue;for(let[g,[_,A]]of t.virtualFiles.getMaps(y))if(_===f.snapshot){for(let k of A.toSourceOffsets(x.start))if(!!(typeof k[1].data.diagnostic=="object"?k[1].data.diagnostic.shouldReport():!!k[1].data.diagnostic)){for(let S of A.toSourceOffsets(x.start+x.length,!0))if(!!(typeof S[1].data.diagnostic=="object"?S[1].data.diagnostic.shouldReport():!!S[1].data.diagnostic)){w(x,f.fileName,k[0],S[0],f.snapshot.getText(0,f.snapshot.getLength()));break}break}}}else{if(r.fileExists?.(x.file.fileName)===!1)continue;w(x,x.file.fileName,x.start,x.start+x.length,x.file.text)}}else x.file===void 0&&v.push(x);return v;function w(x,y,f,g,_){let A=y===x.file?.fileName?x.file:void 0;if(!A)if(_===void 0){let S=t.host.getScriptSnapshot(y);S&&(_=S.getText(0,S.getLength()))}else A=e.createSourceFile(y,_,e.ScriptTarget.Latest,void 0,e.ScriptKind.Deferred),A.originalFileName=y,A.path=y.toLowerCase(),A.resolvedPath=y.toLowerCase();let k={...x,file:A,start:f,length:g-f},C=x.relatedInformation;C&&(k.relatedInformation=d(C)),v.push(k)}}}iw.getProgram=Joe});var lL=R(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.getExternalFiles=Ch.decorateLanguageServiceHost=void 0;var aL=dr();function Xoe(e,t,n,r){let i=0,s=new Map,o=t.readDirectory?.bind(t),a=t.resolveModuleNameLiterals?.bind(t),l=t.resolveModuleNames?.bind(t),c=t.getProjectVersion?.bind(t),u=t.getScriptSnapshot.bind(t),p=t.getScriptKind?.bind(t);o&&(t.readDirectory=(v,w,x,y,f)=>{if(w)for(let g of r)w.includes(g)||(w=[...w,...g]);return o(v,w,x,y,f)}),a?t.resolveModuleNameLiterals=(v,w,x,y,...f)=>{let g=a(v,w,x,y,...f);return v.map((_,A)=>{if(r.some(k=>_.text.endsWith(k))){let k=h(_.text,w,y,x);if(k.resolvedModule)return k}return g[A]})}:l&&(t.resolveModuleNames=(v,w,x,y,f,g)=>{let _=l(v,w,x,y,f,g);return v.map((A,k)=>{if(r.some(C=>A.endsWith(C))){let C=h(A,w,f,y);if(C.resolvedModule)return C.resolvedModule}return _[k]})}),c&&(t.getProjectVersion=()=>c()+":"+i),t.getScriptSnapshot=v=>r.some(w=>v.endsWith(w))?(m(v),s.get(v)?.snapshot):u(v),p&&(t.getScriptKind=v=>{if(r.some(w=>v.endsWith(w))){m(v);let w=s.get(v);if(w){if(w.extension.endsWith(".js"))return n.ScriptKind.JS;if(w.extension.endsWith(".jsx"))return n.ScriptKind.JSX;if(w.extension.endsWith(".ts"))return n.ScriptKind.TS;if(w.extension.endsWith(".tsx"))return n.ScriptKind.TSX}return n.ScriptKind.Deferred}return p(v)});function h(v,w,x,y){let f=n.resolveModuleName(v,w,x,{readFile(g){return t.readFile(g)},fileExists(g){return r.some(_=>g.endsWith(_+".d.ts"))?d(g.slice(0,-5)):t.fileExists(g)}},void 0,y);if(f.resolvedModule){f.resolvedModule.resolvedFileName=f.resolvedModule.resolvedFileName.slice(0,-5);let g=m(f.resolvedModule.resolvedFileName);g&&(f.resolvedModule.extension=g.extension)}return f}function d(v){return t.fileExists(v)?(n.sys.getFileSize?.(v)??t.readFile(v)?.length??0)<4*1024*1024:!1}function m(v){let w=t.getScriptVersion(v);if(w!==s.get(v)?.version){let x=t.readFile(v),y,f=".ts";if(x!==void 0){i++;let g=e.updateSource(v,n.ScriptSnapshot.fromString(x),void 0);if(g){let _=x.split(
TypeError: Cannot read properties of undefined (reading 'package.json')
at m (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1578)
at Object.h [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1167)
at Object.y [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:76:36331)
at getPackageJsonInfo (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40230:33)
at loadNodeModuleFromDirectory (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40062:47)
at nodeLoadModuleByRelativeName (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39937:14)
at loader (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39841:78)
at /private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40954:16
at forEach (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:55:24)
at tryLoadModuleUsingPaths (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40941:24)
[Info - 18:12:28] Connection to server got closed. Server will restart.
true
/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77 ,useCaseSensitiveFileNames:i?.useCaseSensitiveFileNames??!1,realpath:i?.realpath,write:i?.write??(()=>{}),writeFile:i?.writeFile??(()=>{}),createDirectory:i?.createDirectory??(()=>{}),exit:i?.exit??(()=>{}),getExecutingFilePath:i?.getExecutingFilePath??(()=>r+"/__fake__.js"),getCurrentDirectory:()=>r,getModifiedTime:p,readFile:c,readDirectory:w,getDirectories:v,resolvePath:l,fileExists:h,directoryExists:u,async sync(){for(;o.size;)await Promise.all(o);return n}};function l(A){if(i){if(iL!==r&&(iL=r,i.directoryExists(r)))try{process.chdir(r)}catch{}return i.resolvePath(A).replace(/\\/g,"/")}return go.posix.resolve(A).replace(/\\/g,"/")}function c(A,k){A=l(A);let C=go.posix.dirname(A),S=g(C),E=go.posix.basename(A);return x(A,k,S),S.files[E]?.text}function u(A){A=l(A);let k=g(A);if(k.exists===void 0){k.exists=!1;let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),k.exists=E?.type===2,k.exists&&n++})}else k.exists=C?.type===2}return k.exists}function p(A){A=l(A);let k=m(A);return k.requestedStat||(k.requestedStat=!0,d(A,k)),k.stat?new Date(k.stat.mtime):new Date(0)}function h(A){A=l(A);let k=m(A),C=()=>k.text!==void 0||k.stat?.type===1;return C()?!0:(k.requestedStat||(k.requestedStat=!0,d(A,k)),C())}function d(A,k){let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),(k.stat?.type!==E?.type||k.stat?.mtime!==E?.mtime)&&n++,k.stat=E})}else k.stat=C}function m(A){A=l(A);let k=go.posix.dirname(A),C=go.posix.basename(A),S=g(k);return S.files[C]??={}}function v(A){A=l(A),y(A);let k=g(A);return[...Object.entries(k.dirs)].filter(([C,S])=>S.exists).map(([C])=>C)}function w(A,k,C,S,E){A=l(A);let D=(0,Goe.matchFiles)(A,k,C,S,i?.useCaseSensitiveFileNames??!1,r,E,F=>{F=l(F),y(F);let P=g(F);return{files:[...Object.entries(P.files)].filter(([O,N])=>N.stat?.type===1).map(([O])=>O),directories:[...Object.entries(P.dirs)].filter(([O,N])=>N.exists).map(([O])=>O)}},i?.realpath?F=>i.realpath(F):F=>F);return[...new Set(D)]}function x(A,k,C){let S=go.posix.basename(A);C.files[S]??={};let E=C.files[S];if(E.requestedText)return;E.requestedText=!0;let D=t.fileNameToUri(A),F=t.fs?.readFile(D,k);if(typeof F=="object"&&"then"in F){let P=F;o.add(P),F.then(O=>{o.delete(P),O!==void 0&&(E.text=O,E.stat&&E.stat.mtime++,n++)})}else F!==void 0&&(E.text=F)}function y(A){let k=g(A);if(k.requestedRead)return;k.requestedRead=!0;let C=t.fs?.readDirectory(t.fileNameToUri(A||"."));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),f(A,k,E)&&n++})}else f(A,k,C??[])}function f(A,k,C){C=C.filter(([E])=>E!=="."&&E!=="..");let S=!1;for(let[E,D]of C){let F=D;if(F===64){let P=t.fs?.stat(t.fileNameToUri(A+"/"+E));if(typeof P=="object"&&"then"in P){let O=P;o.add(O),P.then(N=>{if(o.delete(O),N?.type===1){k.files[E]??={};let L=k.files[E];(N.type!==L.stat?.type||N.mtime!==L.stat.mtime)&&n++,L.stat=N,L.requestedStat=!0}else if(N?.type===2){let L=_(k,E);L.exists||(L.exists=!0,n++)}})}else P&&(F=P.type)}if(F===1)k.files[E]??={},k.files[E].stat||(k.files[E].stat={type:1,mtime:0,ctime:0,size:0},S=!0);else if(F===2){let P=_(k,E);P.exists||(P.exists=!0,S=!0)}}return S}function g(A){let k=[],C=A,S=go.posix.basename(C),E;for(;E!==C;)E=C,k.push(S),C=go.posix.dirname(C),S=go.posix.basename(C);let D=s;for(let F=k.length-1;F>=0;F--){let P=k[F];D=_(D,P)}return D}function _(A,k){let C=A.dirs[k];return C||(C={dirs:{},files:{}},A.dirs[k]=C),C}}rw.createSys=Koe});var oL=R(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.getProgram=void 0;function Joe(e,t,n,r){let i={getRootFileNames:o,emit:h,getSyntacticDiagnostics:l,getSemanticDiagnostics:c,getGlobalDiagnostics:p,getBindAndCheckDiagnostics:a};return new Proxy({},{get:(m,v)=>{if(v in i)return i[v];let w=s();return v in w?w[v]:m[v]},set:(m,v,w)=>{let x=s();return m[v]=x[v]=w,!0}});function s(){return n.getProgram()}function o(){return s().getRootFileNames().filter(m=>r.fileExists?.(m))}function a(m,v){return u(m,v,"getBindAndCheckDiagnostics")}function l(m,v){return u(m,v,"getSyntacticDiagnostics")}function c(m,v){return u(m,v,"getSemanticDiagnostics")}function u(m,v,w){if(m){let[x,y]=t.virtualFiles.getVirtualFile(m.fileName);if(x&&y)return x.capabilities.diagnostic?d(n.getProgram()?.[w](m,v)??[]):[]}return d(s()[w](m,v)??[])}function p(m){return d(s().getGlobalDiagnostics(m)??[])}function h(m,v,w,x,y){let f=s().emit(m,r.writeFile??e.sys.writeFile,w,x,y);return{emitSkipped:f.emitSkipped,emittedFiles:f.emittedFiles,diagnostics:d(f.diagnostics)}}function d(m){let v=[];for(let x of m)if(x.file!==void 0&&x.start!==void 0&&x.length!==void 0){let[y,f]=t.virtualFiles.getVirtualFile(x.file.fileName);if(y&&f){if(r.fileExists?.(f.fileName)===!1)continue;for(let[g,[_,A]]of t.virtualFiles.getMaps(y))if(_===f.snapshot){for(let k of A.toSourceOffsets(x.start))if(!!(typeof k[1].data.diagnostic=="object"?k[1].data.diagnostic.shouldReport():!!k[1].data.diagnostic)){for(let S of A.toSourceOffsets(x.start+x.length,!0))if(!!(typeof S[1].data.diagnostic=="object"?S[1].data.diagnostic.shouldReport():!!S[1].data.diagnostic)){w(x,f.fileName,k[0],S[0],f.snapshot.getText(0,f.snapshot.getLength()));break}break}}}else{if(r.fileExists?.(x.file.fileName)===!1)continue;w(x,x.file.fileName,x.start,x.start+x.length,x.file.text)}}else x.file===void 0&&v.push(x);return v;function w(x,y,f,g,_){let A=y===x.file?.fileName?x.file:void 0;if(!A)if(_===void 0){let S=t.host.getScriptSnapshot(y);S&&(_=S.getText(0,S.getLength()))}else A=e.createSourceFile(y,_,e.ScriptTarget.Latest,void 0,e.ScriptKind.Deferred),A.originalFileName=y,A.path=y.toLowerCase(),A.resolvedPath=y.toLowerCase();let k={...x,file:A,start:f,length:g-f},C=x.relatedInformation;C&&(k.relatedInformation=d(C)),v.push(k)}}}iw.getProgram=Joe});var lL=R(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.getExternalFiles=Ch.decorateLanguageServiceHost=void 0;var aL=dr();function Xoe(e,t,n,r){let i=0,s=new Map,o=t.readDirectory?.bind(t),a=t.resolveModuleNameLiterals?.bind(t),l=t.resolveModuleNames?.bind(t),c=t.getProjectVersion?.bind(t),u=t.getScriptSnapshot.bind(t),p=t.getScriptKind?.bind(t);o&&(t.readDirectory=(v,w,x,y,f)=>{if(w)for(let g of r)w.includes(g)||(w=[...w,...g]);return o(v,w,x,y,f)}),a?t.resolveModuleNameLiterals=(v,w,x,y,...f)=>{let g=a(v,w,x,y,...f);return v.map((_,A)=>{if(r.some(k=>_.text.endsWith(k))){let k=h(_.text,w,y,x);if(k.resolvedModule)return k}return g[A]})}:l&&(t.resolveModuleNames=(v,w,x,y,f,g)=>{let _=l(v,w,x,y,f,g);return v.map((A,k)=>{if(r.some(C=>A.endsWith(C))){let C=h(A,w,f,y);if(C.resolvedModule)return C.resolvedModule}return _[k]})}),c&&(t.getProjectVersion=()=>c()+":"+i),t.getScriptSnapshot=v=>r.some(w=>v.endsWith(w))?(m(v),s.get(v)?.snapshot):u(v),p&&(t.getScriptKind=v=>{if(r.some(w=>v.endsWith(w))){m(v);let w=s.get(v);if(w){if(w.extension.endsWith(".js"))return n.ScriptKind.JS;if(w.extension.endsWith(".jsx"))return n.ScriptKind.JSX;if(w.extension.endsWith(".ts"))return n.ScriptKind.TS;if(w.extension.endsWith(".tsx"))return n.ScriptKind.TSX}return n.ScriptKind.Deferred}return p(v)});function h(v,w,x,y){let f=n.resolveModuleName(v,w,x,{readFile(g){return t.readFile(g)},fileExists(g){return r.some(_=>g.endsWith(_+".d.ts"))?d(g.slice(0,-5)):t.fileExists(g)}},void 0,y);if(f.resolvedModule){f.resolvedModule.resolvedFileName=f.resolvedModule.resolvedFileName.slice(0,-5);let g=m(f.resolvedModule.resolvedFileName);g&&(f.resolvedModule.extension=g.extension)}return f}function d(v){return t.fileExists(v)?(n.sys.getFileSize?.(v)??t.readFile(v)?.length??0)<4*1024*1024:!1}function m(v){let w=t.getScriptVersion(v);if(w!==s.get(v)?.version){let x=t.readFile(v),y,f=".ts";if(x!==void 0){i++;let g=e.updateSource(v,n.ScriptSnapshot.fromString(x),void 0);if(g){let _=x.split(
TypeError: Cannot read properties of undefined (reading 'package.json')
at m (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1578)
at Object.h [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1167)
at Object.y [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:76:36331)
at getPackageJsonInfo (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40230:33)
at loadNodeModuleFromDirectory (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40062:47)
at nodeLoadModuleByRelativeName (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39937:14)
at loader (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39841:78)
at /private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40954:16
at forEach (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:55:24)
at tryLoadModuleUsingPaths (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40941:24)
[Info - 18:13:02] Connection to server got closed. Server will restart.
true
/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77 ,useCaseSensitiveFileNames:i?.useCaseSensitiveFileNames??!1,realpath:i?.realpath,write:i?.write??(()=>{}),writeFile:i?.writeFile??(()=>{}),createDirectory:i?.createDirectory??(()=>{}),exit:i?.exit??(()=>{}),getExecutingFilePath:i?.getExecutingFilePath??(()=>r+"/__fake__.js"),getCurrentDirectory:()=>r,getModifiedTime:p,readFile:c,readDirectory:w,getDirectories:v,resolvePath:l,fileExists:h,directoryExists:u,async sync(){for(;o.size;)await Promise.all(o);return n}};function l(A){if(i){if(iL!==r&&(iL=r,i.directoryExists(r)))try{process.chdir(r)}catch{}return i.resolvePath(A).replace(/\\/g,"/")}return go.posix.resolve(A).replace(/\\/g,"/")}function c(A,k){A=l(A);let C=go.posix.dirname(A),S=g(C),E=go.posix.basename(A);return x(A,k,S),S.files[E]?.text}function u(A){A=l(A);let k=g(A);if(k.exists===void 0){k.exists=!1;let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),k.exists=E?.type===2,k.exists&&n++})}else k.exists=C?.type===2}return k.exists}function p(A){A=l(A);let k=m(A);return k.requestedStat||(k.requestedStat=!0,d(A,k)),k.stat?new Date(k.stat.mtime):new Date(0)}function h(A){A=l(A);let k=m(A),C=()=>k.text!==void 0||k.stat?.type===1;return C()?!0:(k.requestedStat||(k.requestedStat=!0,d(A,k)),C())}function d(A,k){let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),(k.stat?.type!==E?.type||k.stat?.mtime!==E?.mtime)&&n++,k.stat=E})}else k.stat=C}function m(A){A=l(A);let k=go.posix.dirname(A),C=go.posix.basename(A),S=g(k);return S.files[C]??={}}function v(A){A=l(A),y(A);let k=g(A);return[...Object.entries(k.dirs)].filter(([C,S])=>S.exists).map(([C])=>C)}function w(A,k,C,S,E){A=l(A);let D=(0,Goe.matchFiles)(A,k,C,S,i?.useCaseSensitiveFileNames??!1,r,E,F=>{F=l(F),y(F);let P=g(F);return{files:[...Object.entries(P.files)].filter(([O,N])=>N.stat?.type===1).map(([O])=>O),directories:[...Object.entries(P.dirs)].filter(([O,N])=>N.exists).map(([O])=>O)}},i?.realpath?F=>i.realpath(F):F=>F);return[...new Set(D)]}function x(A,k,C){let S=go.posix.basename(A);C.files[S]??={};let E=C.files[S];if(E.requestedText)return;E.requestedText=!0;let D=t.fileNameToUri(A),F=t.fs?.readFile(D,k);if(typeof F=="object"&&"then"in F){let P=F;o.add(P),F.then(O=>{o.delete(P),O!==void 0&&(E.text=O,E.stat&&E.stat.mtime++,n++)})}else F!==void 0&&(E.text=F)}function y(A){let k=g(A);if(k.requestedRead)return;k.requestedRead=!0;let C=t.fs?.readDirectory(t.fileNameToUri(A||"."));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),f(A,k,E)&&n++})}else f(A,k,C??[])}function f(A,k,C){C=C.filter(([E])=>E!=="."&&E!=="..");let S=!1;for(let[E,D]of C){let F=D;if(F===64){let P=t.fs?.stat(t.fileNameToUri(A+"/"+E));if(typeof P=="object"&&"then"in P){let O=P;o.add(O),P.then(N=>{if(o.delete(O),N?.type===1){k.files[E]??={};let L=k.files[E];(N.type!==L.stat?.type||N.mtime!==L.stat.mtime)&&n++,L.stat=N,L.requestedStat=!0}else if(N?.type===2){let L=_(k,E);L.exists||(L.exists=!0,n++)}})}else P&&(F=P.type)}if(F===1)k.files[E]??={},k.files[E].stat||(k.files[E].stat={type:1,mtime:0,ctime:0,size:0},S=!0);else if(F===2){let P=_(k,E);P.exists||(P.exists=!0,S=!0)}}return S}function g(A){let k=[],C=A,S=go.posix.basename(C),E;for(;E!==C;)E=C,k.push(S),C=go.posix.dirname(C),S=go.posix.basename(C);let D=s;for(let F=k.length-1;F>=0;F--){let P=k[F];D=_(D,P)}return D}function _(A,k){let C=A.dirs[k];return C||(C={dirs:{},files:{}},A.dirs[k]=C),C}}rw.createSys=Koe});var oL=R(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.getProgram=void 0;function Joe(e,t,n,r){let i={getRootFileNames:o,emit:h,getSyntacticDiagnostics:l,getSemanticDiagnostics:c,getGlobalDiagnostics:p,getBindAndCheckDiagnostics:a};return new Proxy({},{get:(m,v)=>{if(v in i)return i[v];let w=s();return v in w?w[v]:m[v]},set:(m,v,w)=>{let x=s();return m[v]=x[v]=w,!0}});function s(){return n.getProgram()}function o(){return s().getRootFileNames().filter(m=>r.fileExists?.(m))}function a(m,v){return u(m,v,"getBindAndCheckDiagnostics")}function l(m,v){return u(m,v,"getSyntacticDiagnostics")}function c(m,v){return u(m,v,"getSemanticDiagnostics")}function u(m,v,w){if(m){let[x,y]=t.virtualFiles.getVirtualFile(m.fileName);if(x&&y)return x.capabilities.diagnostic?d(n.getProgram()?.[w](m,v)??[]):[]}return d(s()[w](m,v)??[])}function p(m){return d(s().getGlobalDiagnostics(m)??[])}function h(m,v,w,x,y){let f=s().emit(m,r.writeFile??e.sys.writeFile,w,x,y);return{emitSkipped:f.emitSkipped,emittedFiles:f.emittedFiles,diagnostics:d(f.diagnostics)}}function d(m){let v=[];for(let x of m)if(x.file!==void 0&&x.start!==void 0&&x.length!==void 0){let[y,f]=t.virtualFiles.getVirtualFile(x.file.fileName);if(y&&f){if(r.fileExists?.(f.fileName)===!1)continue;for(let[g,[_,A]]of t.virtualFiles.getMaps(y))if(_===f.snapshot){for(let k of A.toSourceOffsets(x.start))if(!!(typeof k[1].data.diagnostic=="object"?k[1].data.diagnostic.shouldReport():!!k[1].data.diagnostic)){for(let S of A.toSourceOffsets(x.start+x.length,!0))if(!!(typeof S[1].data.diagnostic=="object"?S[1].data.diagnostic.shouldReport():!!S[1].data.diagnostic)){w(x,f.fileName,k[0],S[0],f.snapshot.getText(0,f.snapshot.getLength()));break}break}}}else{if(r.fileExists?.(x.file.fileName)===!1)continue;w(x,x.file.fileName,x.start,x.start+x.length,x.file.text)}}else x.file===void 0&&v.push(x);return v;function w(x,y,f,g,_){let A=y===x.file?.fileName?x.file:void 0;if(!A)if(_===void 0){let S=t.host.getScriptSnapshot(y);S&&(_=S.getText(0,S.getLength()))}else A=e.createSourceFile(y,_,e.ScriptTarget.Latest,void 0,e.ScriptKind.Deferred),A.originalFileName=y,A.path=y.toLowerCase(),A.resolvedPath=y.toLowerCase();let k={...x,file:A,start:f,length:g-f},C=x.relatedInformation;C&&(k.relatedInformation=d(C)),v.push(k)}}}iw.getProgram=Joe});var lL=R(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.getExternalFiles=Ch.decorateLanguageServiceHost=void 0;var aL=dr();function Xoe(e,t,n,r){let i=0,s=new Map,o=t.readDirectory?.bind(t),a=t.resolveModuleNameLiterals?.bind(t),l=t.resolveModuleNames?.bind(t),c=t.getProjectVersion?.bind(t),u=t.getScriptSnapshot.bind(t),p=t.getScriptKind?.bind(t);o&&(t.readDirectory=(v,w,x,y,f)=>{if(w)for(let g of r)w.includes(g)||(w=[...w,...g]);return o(v,w,x,y,f)}),a?t.resolveModuleNameLiterals=(v,w,x,y,...f)=>{let g=a(v,w,x,y,...f);return v.map((_,A)=>{if(r.some(k=>_.text.endsWith(k))){let k=h(_.text,w,y,x);if(k.resolvedModule)return k}return g[A]})}:l&&(t.resolveModuleNames=(v,w,x,y,f,g)=>{let _=l(v,w,x,y,f,g);return v.map((A,k)=>{if(r.some(C=>A.endsWith(C))){let C=h(A,w,f,y);if(C.resolvedModule)return C.resolvedModule}return _[k]})}),c&&(t.getProjectVersion=()=>c()+":"+i),t.getScriptSnapshot=v=>r.some(w=>v.endsWith(w))?(m(v),s.get(v)?.snapshot):u(v),p&&(t.getScriptKind=v=>{if(r.some(w=>v.endsWith(w))){m(v);let w=s.get(v);if(w){if(w.extension.endsWith(".js"))return n.ScriptKind.JS;if(w.extension.endsWith(".jsx"))return n.ScriptKind.JSX;if(w.extension.endsWith(".ts"))return n.ScriptKind.TS;if(w.extension.endsWith(".tsx"))return n.ScriptKind.TSX}return n.ScriptKind.Deferred}return p(v)});function h(v,w,x,y){let f=n.resolveModuleName(v,w,x,{readFile(g){return t.readFile(g)},fileExists(g){return r.some(_=>g.endsWith(_+".d.ts"))?d(g.slice(0,-5)):t.fileExists(g)}},void 0,y);if(f.resolvedModule){f.resolvedModule.resolvedFileName=f.resolvedModule.resolvedFileName.slice(0,-5);let g=m(f.resolvedModule.resolvedFileName);g&&(f.resolvedModule.extension=g.extension)}return f}function d(v){return t.fileExists(v)?(n.sys.getFileSize?.(v)??t.readFile(v)?.length??0)<4*1024*1024:!1}function m(v){let w=t.getScriptVersion(v);if(w!==s.get(v)?.version){let x=t.readFile(v),y,f=".ts";if(x!==void 0){i++;let g=e.updateSource(v,n.ScriptSnapshot.fromString(x),void 0);if(g){let _=x.split(
TypeError: Cannot read properties of undefined (reading 'package.json')
at m (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1578)
at Object.h [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1167)
at Object.y [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:76:36331)
at getPackageJsonInfo (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40230:33)
at loadNodeModuleFromDirectory (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40062:47)
at nodeLoadModuleByRelativeName (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39937:14)
at loader (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39841:78)
at /private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40954:16
at forEach (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:55:24)
at tryLoadModuleUsingPaths (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40941:24)
[Info - 18:13:34] Connection to server got closed. Server will restart.
true
/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77 ,useCaseSensitiveFileNames:i?.useCaseSensitiveFileNames??!1,realpath:i?.realpath,write:i?.write??(()=>{}),writeFile:i?.writeFile??(()=>{}),createDirectory:i?.createDirectory??(()=>{}),exit:i?.exit??(()=>{}),getExecutingFilePath:i?.getExecutingFilePath??(()=>r+"/__fake__.js"),getCurrentDirectory:()=>r,getModifiedTime:p,readFile:c,readDirectory:w,getDirectories:v,resolvePath:l,fileExists:h,directoryExists:u,async sync(){for(;o.size;)await Promise.all(o);return n}};function l(A){if(i){if(iL!==r&&(iL=r,i.directoryExists(r)))try{process.chdir(r)}catch{}return i.resolvePath(A).replace(/\\/g,"/")}return go.posix.resolve(A).replace(/\\/g,"/")}function c(A,k){A=l(A);let C=go.posix.dirname(A),S=g(C),E=go.posix.basename(A);return x(A,k,S),S.files[E]?.text}function u(A){A=l(A);let k=g(A);if(k.exists===void 0){k.exists=!1;let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),k.exists=E?.type===2,k.exists&&n++})}else k.exists=C?.type===2}return k.exists}function p(A){A=l(A);let k=m(A);return k.requestedStat||(k.requestedStat=!0,d(A,k)),k.stat?new Date(k.stat.mtime):new Date(0)}function h(A){A=l(A);let k=m(A),C=()=>k.text!==void 0||k.stat?.type===1;return C()?!0:(k.requestedStat||(k.requestedStat=!0,d(A,k)),C())}function d(A,k){let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),(k.stat?.type!==E?.type||k.stat?.mtime!==E?.mtime)&&n++,k.stat=E})}else k.stat=C}function m(A){A=l(A);let k=go.posix.dirname(A),C=go.posix.basename(A),S=g(k);return S.files[C]??={}}function v(A){A=l(A),y(A);let k=g(A);return[...Object.entries(k.dirs)].filter(([C,S])=>S.exists).map(([C])=>C)}function w(A,k,C,S,E){A=l(A);let D=(0,Goe.matchFiles)(A,k,C,S,i?.useCaseSensitiveFileNames??!1,r,E,F=>{F=l(F),y(F);let P=g(F);return{files:[...Object.entries(P.files)].filter(([O,N])=>N.stat?.type===1).map(([O])=>O),directories:[...Object.entries(P.dirs)].filter(([O,N])=>N.exists).map(([O])=>O)}},i?.realpath?F=>i.realpath(F):F=>F);return[...new Set(D)]}function x(A,k,C){let S=go.posix.basename(A);C.files[S]??={};let E=C.files[S];if(E.requestedText)return;E.requestedText=!0;let D=t.fileNameToUri(A),F=t.fs?.readFile(D,k);if(typeof F=="object"&&"then"in F){let P=F;o.add(P),F.then(O=>{o.delete(P),O!==void 0&&(E.text=O,E.stat&&E.stat.mtime++,n++)})}else F!==void 0&&(E.text=F)}function y(A){let k=g(A);if(k.requestedRead)return;k.requestedRead=!0;let C=t.fs?.readDirectory(t.fileNameToUri(A||"."));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),f(A,k,E)&&n++})}else f(A,k,C??[])}function f(A,k,C){C=C.filter(([E])=>E!=="."&&E!=="..");let S=!1;for(let[E,D]of C){let F=D;if(F===64){let P=t.fs?.stat(t.fileNameToUri(A+"/"+E));if(typeof P=="object"&&"then"in P){let O=P;o.add(O),P.then(N=>{if(o.delete(O),N?.type===1){k.files[E]??={};let L=k.files[E];(N.type!==L.stat?.type||N.mtime!==L.stat.mtime)&&n++,L.stat=N,L.requestedStat=!0}else if(N?.type===2){let L=_(k,E);L.exists||(L.exists=!0,n++)}})}else P&&(F=P.type)}if(F===1)k.files[E]??={},k.files[E].stat||(k.files[E].stat={type:1,mtime:0,ctime:0,size:0},S=!0);else if(F===2){let P=_(k,E);P.exists||(P.exists=!0,S=!0)}}return S}function g(A){let k=[],C=A,S=go.posix.basename(C),E;for(;E!==C;)E=C,k.push(S),C=go.posix.dirname(C),S=go.posix.basename(C);let D=s;for(let F=k.length-1;F>=0;F--){let P=k[F];D=_(D,P)}return D}function _(A,k){let C=A.dirs[k];return C||(C={dirs:{},files:{}},A.dirs[k]=C),C}}rw.createSys=Koe});var oL=R(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.getProgram=void 0;function Joe(e,t,n,r){let i={getRootFileNames:o,emit:h,getSyntacticDiagnostics:l,getSemanticDiagnostics:c,getGlobalDiagnostics:p,getBindAndCheckDiagnostics:a};return new Proxy({},{get:(m,v)=>{if(v in i)return i[v];let w=s();return v in w?w[v]:m[v]},set:(m,v,w)=>{let x=s();return m[v]=x[v]=w,!0}});function s(){return n.getProgram()}function o(){return s().getRootFileNames().filter(m=>r.fileExists?.(m))}function a(m,v){return u(m,v,"getBindAndCheckDiagnostics")}function l(m,v){return u(m,v,"getSyntacticDiagnostics")}function c(m,v){return u(m,v,"getSemanticDiagnostics")}function u(m,v,w){if(m){let[x,y]=t.virtualFiles.getVirtualFile(m.fileName);if(x&&y)return x.capabilities.diagnostic?d(n.getProgram()?.[w](m,v)??[]):[]}return d(s()[w](m,v)??[])}function p(m){return d(s().getGlobalDiagnostics(m)??[])}function h(m,v,w,x,y){let f=s().emit(m,r.writeFile??e.sys.writeFile,w,x,y);return{emitSkipped:f.emitSkipped,emittedFiles:f.emittedFiles,diagnostics:d(f.diagnostics)}}function d(m){let v=[];for(let x of m)if(x.file!==void 0&&x.start!==void 0&&x.length!==void 0){let[y,f]=t.virtualFiles.getVirtualFile(x.file.fileName);if(y&&f){if(r.fileExists?.(f.fileName)===!1)continue;for(let[g,[_,A]]of t.virtualFiles.getMaps(y))if(_===f.snapshot){for(let k of A.toSourceOffsets(x.start))if(!!(typeof k[1].data.diagnostic=="object"?k[1].data.diagnostic.shouldReport():!!k[1].data.diagnostic)){for(let S of A.toSourceOffsets(x.start+x.length,!0))if(!!(typeof S[1].data.diagnostic=="object"?S[1].data.diagnostic.shouldReport():!!S[1].data.diagnostic)){w(x,f.fileName,k[0],S[0],f.snapshot.getText(0,f.snapshot.getLength()));break}break}}}else{if(r.fileExists?.(x.file.fileName)===!1)continue;w(x,x.file.fileName,x.start,x.start+x.length,x.file.text)}}else x.file===void 0&&v.push(x);return v;function w(x,y,f,g,_){let A=y===x.file?.fileName?x.file:void 0;if(!A)if(_===void 0){let S=t.host.getScriptSnapshot(y);S&&(_=S.getText(0,S.getLength()))}else A=e.createSourceFile(y,_,e.ScriptTarget.Latest,void 0,e.ScriptKind.Deferred),A.originalFileName=y,A.path=y.toLowerCase(),A.resolvedPath=y.toLowerCase();let k={...x,file:A,start:f,length:g-f},C=x.relatedInformation;C&&(k.relatedInformation=d(C)),v.push(k)}}}iw.getProgram=Joe});var lL=R(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.getExternalFiles=Ch.decorateLanguageServiceHost=void 0;var aL=dr();function Xoe(e,t,n,r){let i=0,s=new Map,o=t.readDirectory?.bind(t),a=t.resolveModuleNameLiterals?.bind(t),l=t.resolveModuleNames?.bind(t),c=t.getProjectVersion?.bind(t),u=t.getScriptSnapshot.bind(t),p=t.getScriptKind?.bind(t);o&&(t.readDirectory=(v,w,x,y,f)=>{if(w)for(let g of r)w.includes(g)||(w=[...w,...g]);return o(v,w,x,y,f)}),a?t.resolveModuleNameLiterals=(v,w,x,y,...f)=>{let g=a(v,w,x,y,...f);return v.map((_,A)=>{if(r.some(k=>_.text.endsWith(k))){let k=h(_.text,w,y,x);if(k.resolvedModule)return k}return g[A]})}:l&&(t.resolveModuleNames=(v,w,x,y,f,g)=>{let _=l(v,w,x,y,f,g);return v.map((A,k)=>{if(r.some(C=>A.endsWith(C))){let C=h(A,w,f,y);if(C.resolvedModule)return C.resolvedModule}return _[k]})}),c&&(t.getProjectVersion=()=>c()+":"+i),t.getScriptSnapshot=v=>r.some(w=>v.endsWith(w))?(m(v),s.get(v)?.snapshot):u(v),p&&(t.getScriptKind=v=>{if(r.some(w=>v.endsWith(w))){m(v);let w=s.get(v);if(w){if(w.extension.endsWith(".js"))return n.ScriptKind.JS;if(w.extension.endsWith(".jsx"))return n.ScriptKind.JSX;if(w.extension.endsWith(".ts"))return n.ScriptKind.TS;if(w.extension.endsWith(".tsx"))return n.ScriptKind.TSX}return n.ScriptKind.Deferred}return p(v)});function h(v,w,x,y){let f=n.resolveModuleName(v,w,x,{readFile(g){return t.readFile(g)},fileExists(g){return r.some(_=>g.endsWith(_+".d.ts"))?d(g.slice(0,-5)):t.fileExists(g)}},void 0,y);if(f.resolvedModule){f.resolvedModule.resolvedFileName=f.resolvedModule.resolvedFileName.slice(0,-5);let g=m(f.resolvedModule.resolvedFileName);g&&(f.resolvedModule.extension=g.extension)}return f}function d(v){return t.fileExists(v)?(n.sys.getFileSize?.(v)??t.readFile(v)?.length??0)<4*1024*1024:!1}function m(v){let w=t.getScriptVersion(v);if(w!==s.get(v)?.version){let x=t.readFile(v),y,f=".ts";if(x!==void 0){i++;let g=e.updateSource(v,n.ScriptSnapshot.fromString(x),void 0);if(g){let _=x.split(
TypeError: Cannot read properties of undefined (reading 'package.json')
at m (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1578)
at Object.h [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1167)
at Object.y [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:76:36331)
at getPackageJsonInfo (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40230:33)
at loadNodeModuleFromDirectory (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40062:47)
at nodeLoadModuleByRelativeName (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39937:14)
at loader (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39841:78)
at /private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40954:16
at forEach (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:55:24)
at tryLoadModuleUsingPaths (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40941:24)
[Error - 18:14:06] The Vue Semantic Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
The text was updated successfully, but these errors were encountered:
It happened again? TypeError: Cannot read properties of undefined (reading 'label') at Dte (/home/xxx/.vscode/extensions/vue.volar-2.0.24/dist/server.js:13571:2319) at Object.provideCompletionItems (/home/xxx/.vscode/extensions/vue.volar-2.0.24/dist/server.js:13571:1995) at async m (/home/xxx/.vscode/extensions/vue.volar-2.0.24/dist/server.js:2:48796) at async Object.getCompletionItems (/home/xxx/.vscode/extensions/vue.volar-2.0.24/dist/server.js:2:49560) at async /home/xxx/.vscode/extensions/vue.volar-2.0.24/dist/server.js:66:20287 at async Timeout.<anonymous> (/home/xxx/.vscode/extensions/vue.volar-2.0.24/dist/server.js:66:26830)
You seem to be using Vue extension 1.8.15, v1 is no longer updated, please create a bug report based on 2.0. I found out that this is a 2023 issue and I believe the problem has been solved in 2.0.
/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77
,useCaseSensitiveFileNames:i?.useCaseSensitiveFileNames??!1,realpath:i?.realpath,write:i?.write??(()=>{}),writeFile:i?.writeFile??(()=>{}),createDirectory:i?.createDirectory??(()=>{}),exit:i?.exit??(()=>{}),getExecutingFilePath:i?.getExecutingFilePath??(()=>r+"/__fake__.js"),getCurrentDirectory:()=>r,getModifiedTime:p,readFile:c,readDirectory:w,getDirectories:v,resolvePath:l,fileExists:h,directoryExists:u,async sync(){for(;o.size;)await Promise.all(o);return n}};function l(A){if(i){if(iL!==r&&(iL=r,i.directoryExists(r)))try{process.chdir(r)}catch{}return i.resolvePath(A).replace(/\\/g,"/")}return go.posix.resolve(A).replace(/\\/g,"/")}function c(A,k){A=l(A);let C=go.posix.dirname(A),S=g(C),E=go.posix.basename(A);return x(A,k,S),S.files[E]?.text}function u(A){A=l(A);let k=g(A);if(k.exists===void 0){k.exists=!1;let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),k.exists=E?.type===2,k.exists&&n++})}else k.exists=C?.type===2}return k.exists}function p(A){A=l(A);let k=m(A);return k.requestedStat||(k.requestedStat=!0,d(A,k)),k.stat?new Date(k.stat.mtime):new Date(0)}function h(A){A=l(A);let k=m(A),C=()=>k.text!==void 0||k.stat?.type===1;return C()?!0:(k.requestedStat||(k.requestedStat=!0,d(A,k)),C())}function d(A,k){let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),(k.stat?.type!==E?.type||k.stat?.mtime!==E?.mtime)&&n++,k.stat=E})}else k.stat=C}function m(A){A=l(A);let k=go.posix.dirname(A),C=go.posix.basename(A),S=g(k);return S.files[C]??={}}function v(A){A=l(A),y(A);let k=g(A);return[...Object.entries(k.dirs)].filter(([C,S])=>S.exists).map(([C])=>C)}function w(A,k,C,S,E){A=l(A);let D=(0,Goe.matchFiles)(A,k,C,S,i?.useCaseSensitiveFileNames??!1,r,E,F=>{F=l(F),y(F);let P=g(F);return{files:[...Object.entries(P.files)].filter(([O,N])=>N.stat?.type===1).map(([O])=>O),directories:[...Object.entries(P.dirs)].filter(([O,N])=>N.exists).map(([O])=>O)}},i?.realpath?F=>i.realpath(F):F=>F);return[...new Set(D)]}function x(A,k,C){let S=go.posix.basename(A);C.files[S]??={};let E=C.files[S];if(E.requestedText)return;E.requestedText=!0;let D=t.fileNameToUri(A),F=t.fs?.readFile(D,k);if(typeof F=="object"&&"then"in F){let P=F;o.add(P),F.then(O=>{o.delete(P),O!==void 0&&(E.text=O,E.stat&&E.stat.mtime++,n++)})}else F!==void 0&&(E.text=F)}function y(A){let k=g(A);if(k.requestedRead)return;k.requestedRead=!0;let C=t.fs?.readDirectory(t.fileNameToUri(A||"."));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),f(A,k,E)&&n++})}else f(A,k,C??[])}function f(A,k,C){C=C.filter(([E])=>E!=="."&&E!=="..");let S=!1;for(let[E,D]of C){let F=D;if(F===64){let P=t.fs?.stat(t.fileNameToUri(A+"/"+E));if(typeof P=="object"&&"then"in P){let O=P;o.add(O),P.then(N=>{if(o.delete(O),N?.type===1){k.files[E]??={};let L=k.files[E];(N.type!==L.stat?.type||N.mtime!==L.stat.mtime)&&n++,L.stat=N,L.requestedStat=!0}else if(N?.type===2){let L=_(k,E);L.exists||(L.exists=!0,n++)}})}else P&&(F=P.type)}if(F===1)k.files[E]??={},k.files[E].stat||(k.files[E].stat={type:1,mtime:0,ctime:0,size:0},S=!0);else if(F===2){let P=_(k,E);P.exists||(P.exists=!0,S=!0)}}return S}function g(A){let k=[],C=A,S=go.posix.basename(C),E;for(;E!==C;)E=C,k.push(S),C=go.posix.dirname(C),S=go.posix.basename(C);let D=s;for(let F=k.length-1;F>=0;F--){let P=k[F];D=_(D,P)}return D}function _(A,k){let C=A.dirs[k];return C||(C={dirs:{},files:{}},A.dirs[k]=C),C}}rw.createSys=Koe});var oL=R(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.getProgram=void 0;function Joe(e,t,n,r){let i={getRootFileNames:o,emit:h,getSyntacticDiagnostics:l,getSemanticDiagnostics:c,getGlobalDiagnostics:p,getBindAndCheckDiagnostics:a};return new Proxy({},{get:(m,v)=>{if(v in i)return i[v];let w=s();return v in w?w[v]:m[v]},set:(m,v,w)=>{let x=s();return m[v]=x[v]=w,!0}});function s(){return n.getProgram()}function o(){return s().getRootFileNames().filter(m=>r.fileExists?.(m))}function a(m,v){return u(m,v,"getBindAndCheckDiagnostics")}function l(m,v){return u(m,v,"getSyntacticDiagnostics")}function c(m,v){return u(m,v,"getSemanticDiagnostics")}function u(m,v,w){if(m){let[x,y]=t.virtualFiles.getVirtualFile(m.fileName);if(x&&y)return x.capabilities.diagnostic?d(n.getProgram()?.[w](m,v)??[]):[]}return d(s()[w](m,v)??[])}function p(m){return d(s().getGlobalDiagnostics(m)??[])}function h(m,v,w,x,y){let f=s().emit(m,r.writeFile??e.sys.writeFile,w,x,y);return{emitSkipped:f.emitSkipped,emittedFiles:f.emittedFiles,diagnostics:d(f.diagnostics)}}function d(m){let v=[];for(let x of m)if(x.file!==void 0&&x.start!==void 0&&x.length!==void 0){let[y,f]=t.virtualFiles.getVirtualFile(x.file.fileName);if(y&&f){if(r.fileExists?.(f.fileName)===!1)continue;for(let[g,[_,A]]of t.virtualFiles.getMaps(y))if(_===f.snapshot){for(let k of A.toSourceOffsets(x.start))if(!!(typeof k[1].data.diagnostic=="object"?k[1].data.diagnostic.shouldReport():!!k[1].data.diagnostic)){for(let S of A.toSourceOffsets(x.start+x.length,!0))if(!!(typeof S[1].data.diagnostic=="object"?S[1].data.diagnostic.shouldReport():!!S[1].data.diagnostic)){w(x,f.fileName,k[0],S[0],f.snapshot.getText(0,f.snapshot.getLength()));break}break}}}else{if(r.fileExists?.(x.file.fileName)===!1)continue;w(x,x.file.fileName,x.start,x.start+x.length,x.file.text)}}else x.file===void 0&&v.push(x);return v;function w(x,y,f,g,_){let A=y===x.file?.fileName?x.file:void 0;if(!A)if(_===void 0){let S=t.host.getScriptSnapshot(y);S&&(_=S.getText(0,S.getLength()))}else A=e.createSourceFile(y,_,e.ScriptTarget.Latest,void 0,e.ScriptKind.Deferred),A.originalFileName=y,A.path=y.toLowerCase(),A.resolvedPath=y.toLowerCase();let k={...x,file:A,start:f,length:g-f},C=x.relatedInformation;C&&(k.relatedInformation=d(C)),v.push(k)}}}iw.getProgram=Joe});var lL=R(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.getExternalFiles=Ch.decorateLanguageServiceHost=void 0;var aL=dr();function Xoe(e,t,n,r){let i=0,s=new Map,o=t.readDirectory?.bind(t),a=t.resolveModuleNameLiterals?.bind(t),l=t.resolveModuleNames?.bind(t),c=t.getProjectVersion?.bind(t),u=t.getScriptSnapshot.bind(t),p=t.getScriptKind?.bind(t);o&&(t.readDirectory=(v,w,x,y,f)=>{if(w)for(let g of r)w.includes(g)||(w=[...w,...g]);return o(v,w,x,y,f)}),a?t.resolveModuleNameLiterals=(v,w,x,y,...f)=>{let g=a(v,w,x,y,...f);return v.map((_,A)=>{if(r.some(k=>_.text.endsWith(k))){let k=h(_.text,w,y,x);if(k.resolvedModule)return k}return g[A]})}:l&&(t.resolveModuleNames=(v,w,x,y,f,g)=>{let _=l(v,w,x,y,f,g);return v.map((A,k)=>{if(r.some(C=>A.endsWith(C))){let C=h(A,w,f,y);if(C.resolvedModule)return C.resolvedModule}return _[k]})}),c&&(t.getProjectVersion=()=>c()+":"+i),t.getScriptSnapshot=v=>r.some(w=>v.endsWith(w))?(m(v),s.get(v)?.snapshot):u(v),p&&(t.getScriptKind=v=>{if(r.some(w=>v.endsWith(w))){m(v);let w=s.get(v);if(w){if(w.extension.endsWith(".js"))return n.ScriptKind.JS;if(w.extension.endsWith(".jsx"))return n.ScriptKind.JSX;if(w.extension.endsWith(".ts"))return n.ScriptKind.TS;if(w.extension.endsWith(".tsx"))return n.ScriptKind.TSX}return n.ScriptKind.Deferred}return p(v)});function h(v,w,x,y){let f=n.resolveModuleName(v,w,x,{readFile(g){return t.readFile(g)},fileExists(g){return r.some(_=>g.endsWith(_+".d.ts"))?d(g.slice(0,-5)):t.fileExists(g)}},void 0,y);if(f.resolvedModule){f.resolvedModule.resolvedFileName=f.resolvedModule.resolvedFileName.slice(0,-5);let g=m(f.resolvedModule.resolvedFileName);g&&(f.resolvedModule.extension=g.extension)}return f}function d(v){return t.fileExists(v)?(n.sys.getFileSize?.(v)??t.readFile(v)?.length??0)<4*1024*1024:!1}function m(v){let w=t.getScriptVersion(v);if(w!==s.get(v)?.version){let x=t.readFile(v),y,f=".ts";if(x!==void 0){i++;let g=e.updateSource(v,n.ScriptSnapshot.fromString(x),void 0);if(g){let _=x.split(
TypeError: Cannot read properties of undefined (reading 'package.json')
at m (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1578)
at Object.h [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1167)
at Object.y [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:76:36331)
at getPackageJsonInfo (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40230:33)
at loadNodeModuleFromDirectory (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40062:47)
at nodeLoadModuleByRelativeName (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39937:14)
at loader (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39841:78)
at /private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40954:16
at forEach (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:55:24)
at tryLoadModuleUsingPaths (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40941:24)
[Info - 18:11:54] Connection to server got closed. Server will restart.
true
/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77
,useCaseSensitiveFileNames:i?.useCaseSensitiveFileNames??!1,realpath:i?.realpath,write:i?.write??(()=>{}),writeFile:i?.writeFile??(()=>{}),createDirectory:i?.createDirectory??(()=>{}),exit:i?.exit??(()=>{}),getExecutingFilePath:i?.getExecutingFilePath??(()=>r+"/__fake__.js"),getCurrentDirectory:()=>r,getModifiedTime:p,readFile:c,readDirectory:w,getDirectories:v,resolvePath:l,fileExists:h,directoryExists:u,async sync(){for(;o.size;)await Promise.all(o);return n}};function l(A){if(i){if(iL!==r&&(iL=r,i.directoryExists(r)))try{process.chdir(r)}catch{}return i.resolvePath(A).replace(/\\/g,"/")}return go.posix.resolve(A).replace(/\\/g,"/")}function c(A,k){A=l(A);let C=go.posix.dirname(A),S=g(C),E=go.posix.basename(A);return x(A,k,S),S.files[E]?.text}function u(A){A=l(A);let k=g(A);if(k.exists===void 0){k.exists=!1;let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),k.exists=E?.type===2,k.exists&&n++})}else k.exists=C?.type===2}return k.exists}function p(A){A=l(A);let k=m(A);return k.requestedStat||(k.requestedStat=!0,d(A,k)),k.stat?new Date(k.stat.mtime):new Date(0)}function h(A){A=l(A);let k=m(A),C=()=>k.text!==void 0||k.stat?.type===1;return C()?!0:(k.requestedStat||(k.requestedStat=!0,d(A,k)),C())}function d(A,k){let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),(k.stat?.type!==E?.type||k.stat?.mtime!==E?.mtime)&&n++,k.stat=E})}else k.stat=C}function m(A){A=l(A);let k=go.posix.dirname(A),C=go.posix.basename(A),S=g(k);return S.files[C]??={}}function v(A){A=l(A),y(A);let k=g(A);return[...Object.entries(k.dirs)].filter(([C,S])=>S.exists).map(([C])=>C)}function w(A,k,C,S,E){A=l(A);let D=(0,Goe.matchFiles)(A,k,C,S,i?.useCaseSensitiveFileNames??!1,r,E,F=>{F=l(F),y(F);let P=g(F);return{files:[...Object.entries(P.files)].filter(([O,N])=>N.stat?.type===1).map(([O])=>O),directories:[...Object.entries(P.dirs)].filter(([O,N])=>N.exists).map(([O])=>O)}},i?.realpath?F=>i.realpath(F):F=>F);return[...new Set(D)]}function x(A,k,C){let S=go.posix.basename(A);C.files[S]??={};let E=C.files[S];if(E.requestedText)return;E.requestedText=!0;let D=t.fileNameToUri(A),F=t.fs?.readFile(D,k);if(typeof F=="object"&&"then"in F){let P=F;o.add(P),F.then(O=>{o.delete(P),O!==void 0&&(E.text=O,E.stat&&E.stat.mtime++,n++)})}else F!==void 0&&(E.text=F)}function y(A){let k=g(A);if(k.requestedRead)return;k.requestedRead=!0;let C=t.fs?.readDirectory(t.fileNameToUri(A||"."));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),f(A,k,E)&&n++})}else f(A,k,C??[])}function f(A,k,C){C=C.filter(([E])=>E!=="."&&E!=="..");let S=!1;for(let[E,D]of C){let F=D;if(F===64){let P=t.fs?.stat(t.fileNameToUri(A+"/"+E));if(typeof P=="object"&&"then"in P){let O=P;o.add(O),P.then(N=>{if(o.delete(O),N?.type===1){k.files[E]??={};let L=k.files[E];(N.type!==L.stat?.type||N.mtime!==L.stat.mtime)&&n++,L.stat=N,L.requestedStat=!0}else if(N?.type===2){let L=_(k,E);L.exists||(L.exists=!0,n++)}})}else P&&(F=P.type)}if(F===1)k.files[E]??={},k.files[E].stat||(k.files[E].stat={type:1,mtime:0,ctime:0,size:0},S=!0);else if(F===2){let P=_(k,E);P.exists||(P.exists=!0,S=!0)}}return S}function g(A){let k=[],C=A,S=go.posix.basename(C),E;for(;E!==C;)E=C,k.push(S),C=go.posix.dirname(C),S=go.posix.basename(C);let D=s;for(let F=k.length-1;F>=0;F--){let P=k[F];D=_(D,P)}return D}function _(A,k){let C=A.dirs[k];return C||(C={dirs:{},files:{}},A.dirs[k]=C),C}}rw.createSys=Koe});var oL=R(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.getProgram=void 0;function Joe(e,t,n,r){let i={getRootFileNames:o,emit:h,getSyntacticDiagnostics:l,getSemanticDiagnostics:c,getGlobalDiagnostics:p,getBindAndCheckDiagnostics:a};return new Proxy({},{get:(m,v)=>{if(v in i)return i[v];let w=s();return v in w?w[v]:m[v]},set:(m,v,w)=>{let x=s();return m[v]=x[v]=w,!0}});function s(){return n.getProgram()}function o(){return s().getRootFileNames().filter(m=>r.fileExists?.(m))}function a(m,v){return u(m,v,"getBindAndCheckDiagnostics")}function l(m,v){return u(m,v,"getSyntacticDiagnostics")}function c(m,v){return u(m,v,"getSemanticDiagnostics")}function u(m,v,w){if(m){let[x,y]=t.virtualFiles.getVirtualFile(m.fileName);if(x&&y)return x.capabilities.diagnostic?d(n.getProgram()?.[w](m,v)??[]):[]}return d(s()[w](m,v)??[])}function p(m){return d(s().getGlobalDiagnostics(m)??[])}function h(m,v,w,x,y){let f=s().emit(m,r.writeFile??e.sys.writeFile,w,x,y);return{emitSkipped:f.emitSkipped,emittedFiles:f.emittedFiles,diagnostics:d(f.diagnostics)}}function d(m){let v=[];for(let x of m)if(x.file!==void 0&&x.start!==void 0&&x.length!==void 0){let[y,f]=t.virtualFiles.getVirtualFile(x.file.fileName);if(y&&f){if(r.fileExists?.(f.fileName)===!1)continue;for(let[g,[_,A]]of t.virtualFiles.getMaps(y))if(_===f.snapshot){for(let k of A.toSourceOffsets(x.start))if(!!(typeof k[1].data.diagnostic=="object"?k[1].data.diagnostic.shouldReport():!!k[1].data.diagnostic)){for(let S of A.toSourceOffsets(x.start+x.length,!0))if(!!(typeof S[1].data.diagnostic=="object"?S[1].data.diagnostic.shouldReport():!!S[1].data.diagnostic)){w(x,f.fileName,k[0],S[0],f.snapshot.getText(0,f.snapshot.getLength()));break}break}}}else{if(r.fileExists?.(x.file.fileName)===!1)continue;w(x,x.file.fileName,x.start,x.start+x.length,x.file.text)}}else x.file===void 0&&v.push(x);return v;function w(x,y,f,g,_){let A=y===x.file?.fileName?x.file:void 0;if(!A)if(_===void 0){let S=t.host.getScriptSnapshot(y);S&&(_=S.getText(0,S.getLength()))}else A=e.createSourceFile(y,_,e.ScriptTarget.Latest,void 0,e.ScriptKind.Deferred),A.originalFileName=y,A.path=y.toLowerCase(),A.resolvedPath=y.toLowerCase();let k={...x,file:A,start:f,length:g-f},C=x.relatedInformation;C&&(k.relatedInformation=d(C)),v.push(k)}}}iw.getProgram=Joe});var lL=R(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.getExternalFiles=Ch.decorateLanguageServiceHost=void 0;var aL=dr();function Xoe(e,t,n,r){let i=0,s=new Map,o=t.readDirectory?.bind(t),a=t.resolveModuleNameLiterals?.bind(t),l=t.resolveModuleNames?.bind(t),c=t.getProjectVersion?.bind(t),u=t.getScriptSnapshot.bind(t),p=t.getScriptKind?.bind(t);o&&(t.readDirectory=(v,w,x,y,f)=>{if(w)for(let g of r)w.includes(g)||(w=[...w,...g]);return o(v,w,x,y,f)}),a?t.resolveModuleNameLiterals=(v,w,x,y,...f)=>{let g=a(v,w,x,y,...f);return v.map((_,A)=>{if(r.some(k=>_.text.endsWith(k))){let k=h(_.text,w,y,x);if(k.resolvedModule)return k}return g[A]})}:l&&(t.resolveModuleNames=(v,w,x,y,f,g)=>{let _=l(v,w,x,y,f,g);return v.map((A,k)=>{if(r.some(C=>A.endsWith(C))){let C=h(A,w,f,y);if(C.resolvedModule)return C.resolvedModule}return _[k]})}),c&&(t.getProjectVersion=()=>c()+":"+i),t.getScriptSnapshot=v=>r.some(w=>v.endsWith(w))?(m(v),s.get(v)?.snapshot):u(v),p&&(t.getScriptKind=v=>{if(r.some(w=>v.endsWith(w))){m(v);let w=s.get(v);if(w){if(w.extension.endsWith(".js"))return n.ScriptKind.JS;if(w.extension.endsWith(".jsx"))return n.ScriptKind.JSX;if(w.extension.endsWith(".ts"))return n.ScriptKind.TS;if(w.extension.endsWith(".tsx"))return n.ScriptKind.TSX}return n.ScriptKind.Deferred}return p(v)});function h(v,w,x,y){let f=n.resolveModuleName(v,w,x,{readFile(g){return t.readFile(g)},fileExists(g){return r.some(_=>g.endsWith(_+".d.ts"))?d(g.slice(0,-5)):t.fileExists(g)}},void 0,y);if(f.resolvedModule){f.resolvedModule.resolvedFileName=f.resolvedModule.resolvedFileName.slice(0,-5);let g=m(f.resolvedModule.resolvedFileName);g&&(f.resolvedModule.extension=g.extension)}return f}function d(v){return t.fileExists(v)?(n.sys.getFileSize?.(v)??t.readFile(v)?.length??0)<4*1024*1024:!1}function m(v){let w=t.getScriptVersion(v);if(w!==s.get(v)?.version){let x=t.readFile(v),y,f=".ts";if(x!==void 0){i++;let g=e.updateSource(v,n.ScriptSnapshot.fromString(x),void 0);if(g){let _=x.split(
TypeError: Cannot read properties of undefined (reading 'package.json')
at m (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1578)
at Object.h [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1167)
at Object.y [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:76:36331)
at getPackageJsonInfo (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40230:33)
at loadNodeModuleFromDirectory (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40062:47)
at nodeLoadModuleByRelativeName (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39937:14)
at loader (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39841:78)
at /private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40954:16
at forEach (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:55:24)
at tryLoadModuleUsingPaths (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40941:24)
[Info - 18:12:28] Connection to server got closed. Server will restart.
true
/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77
,useCaseSensitiveFileNames:i?.useCaseSensitiveFileNames??!1,realpath:i?.realpath,write:i?.write??(()=>{}),writeFile:i?.writeFile??(()=>{}),createDirectory:i?.createDirectory??(()=>{}),exit:i?.exit??(()=>{}),getExecutingFilePath:i?.getExecutingFilePath??(()=>r+"/__fake__.js"),getCurrentDirectory:()=>r,getModifiedTime:p,readFile:c,readDirectory:w,getDirectories:v,resolvePath:l,fileExists:h,directoryExists:u,async sync(){for(;o.size;)await Promise.all(o);return n}};function l(A){if(i){if(iL!==r&&(iL=r,i.directoryExists(r)))try{process.chdir(r)}catch{}return i.resolvePath(A).replace(/\\/g,"/")}return go.posix.resolve(A).replace(/\\/g,"/")}function c(A,k){A=l(A);let C=go.posix.dirname(A),S=g(C),E=go.posix.basename(A);return x(A,k,S),S.files[E]?.text}function u(A){A=l(A);let k=g(A);if(k.exists===void 0){k.exists=!1;let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),k.exists=E?.type===2,k.exists&&n++})}else k.exists=C?.type===2}return k.exists}function p(A){A=l(A);let k=m(A);return k.requestedStat||(k.requestedStat=!0,d(A,k)),k.stat?new Date(k.stat.mtime):new Date(0)}function h(A){A=l(A);let k=m(A),C=()=>k.text!==void 0||k.stat?.type===1;return C()?!0:(k.requestedStat||(k.requestedStat=!0,d(A,k)),C())}function d(A,k){let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),(k.stat?.type!==E?.type||k.stat?.mtime!==E?.mtime)&&n++,k.stat=E})}else k.stat=C}function m(A){A=l(A);let k=go.posix.dirname(A),C=go.posix.basename(A),S=g(k);return S.files[C]??={}}function v(A){A=l(A),y(A);let k=g(A);return[...Object.entries(k.dirs)].filter(([C,S])=>S.exists).map(([C])=>C)}function w(A,k,C,S,E){A=l(A);let D=(0,Goe.matchFiles)(A,k,C,S,i?.useCaseSensitiveFileNames??!1,r,E,F=>{F=l(F),y(F);let P=g(F);return{files:[...Object.entries(P.files)].filter(([O,N])=>N.stat?.type===1).map(([O])=>O),directories:[...Object.entries(P.dirs)].filter(([O,N])=>N.exists).map(([O])=>O)}},i?.realpath?F=>i.realpath(F):F=>F);return[...new Set(D)]}function x(A,k,C){let S=go.posix.basename(A);C.files[S]??={};let E=C.files[S];if(E.requestedText)return;E.requestedText=!0;let D=t.fileNameToUri(A),F=t.fs?.readFile(D,k);if(typeof F=="object"&&"then"in F){let P=F;o.add(P),F.then(O=>{o.delete(P),O!==void 0&&(E.text=O,E.stat&&E.stat.mtime++,n++)})}else F!==void 0&&(E.text=F)}function y(A){let k=g(A);if(k.requestedRead)return;k.requestedRead=!0;let C=t.fs?.readDirectory(t.fileNameToUri(A||"."));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),f(A,k,E)&&n++})}else f(A,k,C??[])}function f(A,k,C){C=C.filter(([E])=>E!=="."&&E!=="..");let S=!1;for(let[E,D]of C){let F=D;if(F===64){let P=t.fs?.stat(t.fileNameToUri(A+"/"+E));if(typeof P=="object"&&"then"in P){let O=P;o.add(O),P.then(N=>{if(o.delete(O),N?.type===1){k.files[E]??={};let L=k.files[E];(N.type!==L.stat?.type||N.mtime!==L.stat.mtime)&&n++,L.stat=N,L.requestedStat=!0}else if(N?.type===2){let L=_(k,E);L.exists||(L.exists=!0,n++)}})}else P&&(F=P.type)}if(F===1)k.files[E]??={},k.files[E].stat||(k.files[E].stat={type:1,mtime:0,ctime:0,size:0},S=!0);else if(F===2){let P=_(k,E);P.exists||(P.exists=!0,S=!0)}}return S}function g(A){let k=[],C=A,S=go.posix.basename(C),E;for(;E!==C;)E=C,k.push(S),C=go.posix.dirname(C),S=go.posix.basename(C);let D=s;for(let F=k.length-1;F>=0;F--){let P=k[F];D=_(D,P)}return D}function _(A,k){let C=A.dirs[k];return C||(C={dirs:{},files:{}},A.dirs[k]=C),C}}rw.createSys=Koe});var oL=R(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.getProgram=void 0;function Joe(e,t,n,r){let i={getRootFileNames:o,emit:h,getSyntacticDiagnostics:l,getSemanticDiagnostics:c,getGlobalDiagnostics:p,getBindAndCheckDiagnostics:a};return new Proxy({},{get:(m,v)=>{if(v in i)return i[v];let w=s();return v in w?w[v]:m[v]},set:(m,v,w)=>{let x=s();return m[v]=x[v]=w,!0}});function s(){return n.getProgram()}function o(){return s().getRootFileNames().filter(m=>r.fileExists?.(m))}function a(m,v){return u(m,v,"getBindAndCheckDiagnostics")}function l(m,v){return u(m,v,"getSyntacticDiagnostics")}function c(m,v){return u(m,v,"getSemanticDiagnostics")}function u(m,v,w){if(m){let[x,y]=t.virtualFiles.getVirtualFile(m.fileName);if(x&&y)return x.capabilities.diagnostic?d(n.getProgram()?.[w](m,v)??[]):[]}return d(s()[w](m,v)??[])}function p(m){return d(s().getGlobalDiagnostics(m)??[])}function h(m,v,w,x,y){let f=s().emit(m,r.writeFile??e.sys.writeFile,w,x,y);return{emitSkipped:f.emitSkipped,emittedFiles:f.emittedFiles,diagnostics:d(f.diagnostics)}}function d(m){let v=[];for(let x of m)if(x.file!==void 0&&x.start!==void 0&&x.length!==void 0){let[y,f]=t.virtualFiles.getVirtualFile(x.file.fileName);if(y&&f){if(r.fileExists?.(f.fileName)===!1)continue;for(let[g,[_,A]]of t.virtualFiles.getMaps(y))if(_===f.snapshot){for(let k of A.toSourceOffsets(x.start))if(!!(typeof k[1].data.diagnostic=="object"?k[1].data.diagnostic.shouldReport():!!k[1].data.diagnostic)){for(let S of A.toSourceOffsets(x.start+x.length,!0))if(!!(typeof S[1].data.diagnostic=="object"?S[1].data.diagnostic.shouldReport():!!S[1].data.diagnostic)){w(x,f.fileName,k[0],S[0],f.snapshot.getText(0,f.snapshot.getLength()));break}break}}}else{if(r.fileExists?.(x.file.fileName)===!1)continue;w(x,x.file.fileName,x.start,x.start+x.length,x.file.text)}}else x.file===void 0&&v.push(x);return v;function w(x,y,f,g,_){let A=y===x.file?.fileName?x.file:void 0;if(!A)if(_===void 0){let S=t.host.getScriptSnapshot(y);S&&(_=S.getText(0,S.getLength()))}else A=e.createSourceFile(y,_,e.ScriptTarget.Latest,void 0,e.ScriptKind.Deferred),A.originalFileName=y,A.path=y.toLowerCase(),A.resolvedPath=y.toLowerCase();let k={...x,file:A,start:f,length:g-f},C=x.relatedInformation;C&&(k.relatedInformation=d(C)),v.push(k)}}}iw.getProgram=Joe});var lL=R(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.getExternalFiles=Ch.decorateLanguageServiceHost=void 0;var aL=dr();function Xoe(e,t,n,r){let i=0,s=new Map,o=t.readDirectory?.bind(t),a=t.resolveModuleNameLiterals?.bind(t),l=t.resolveModuleNames?.bind(t),c=t.getProjectVersion?.bind(t),u=t.getScriptSnapshot.bind(t),p=t.getScriptKind?.bind(t);o&&(t.readDirectory=(v,w,x,y,f)=>{if(w)for(let g of r)w.includes(g)||(w=[...w,...g]);return o(v,w,x,y,f)}),a?t.resolveModuleNameLiterals=(v,w,x,y,...f)=>{let g=a(v,w,x,y,...f);return v.map((_,A)=>{if(r.some(k=>_.text.endsWith(k))){let k=h(_.text,w,y,x);if(k.resolvedModule)return k}return g[A]})}:l&&(t.resolveModuleNames=(v,w,x,y,f,g)=>{let _=l(v,w,x,y,f,g);return v.map((A,k)=>{if(r.some(C=>A.endsWith(C))){let C=h(A,w,f,y);if(C.resolvedModule)return C.resolvedModule}return _[k]})}),c&&(t.getProjectVersion=()=>c()+":"+i),t.getScriptSnapshot=v=>r.some(w=>v.endsWith(w))?(m(v),s.get(v)?.snapshot):u(v),p&&(t.getScriptKind=v=>{if(r.some(w=>v.endsWith(w))){m(v);let w=s.get(v);if(w){if(w.extension.endsWith(".js"))return n.ScriptKind.JS;if(w.extension.endsWith(".jsx"))return n.ScriptKind.JSX;if(w.extension.endsWith(".ts"))return n.ScriptKind.TS;if(w.extension.endsWith(".tsx"))return n.ScriptKind.TSX}return n.ScriptKind.Deferred}return p(v)});function h(v,w,x,y){let f=n.resolveModuleName(v,w,x,{readFile(g){return t.readFile(g)},fileExists(g){return r.some(_=>g.endsWith(_+".d.ts"))?d(g.slice(0,-5)):t.fileExists(g)}},void 0,y);if(f.resolvedModule){f.resolvedModule.resolvedFileName=f.resolvedModule.resolvedFileName.slice(0,-5);let g=m(f.resolvedModule.resolvedFileName);g&&(f.resolvedModule.extension=g.extension)}return f}function d(v){return t.fileExists(v)?(n.sys.getFileSize?.(v)??t.readFile(v)?.length??0)<4*1024*1024:!1}function m(v){let w=t.getScriptVersion(v);if(w!==s.get(v)?.version){let x=t.readFile(v),y,f=".ts";if(x!==void 0){i++;let g=e.updateSource(v,n.ScriptSnapshot.fromString(x),void 0);if(g){let _=x.split(
TypeError: Cannot read properties of undefined (reading 'package.json')
at m (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1578)
at Object.h [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1167)
at Object.y [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:76:36331)
at getPackageJsonInfo (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40230:33)
at loadNodeModuleFromDirectory (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40062:47)
at nodeLoadModuleByRelativeName (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39937:14)
at loader (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39841:78)
at /private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40954:16
at forEach (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:55:24)
at tryLoadModuleUsingPaths (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40941:24)
[Info - 18:13:02] Connection to server got closed. Server will restart.
true
/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77
,useCaseSensitiveFileNames:i?.useCaseSensitiveFileNames??!1,realpath:i?.realpath,write:i?.write??(()=>{}),writeFile:i?.writeFile??(()=>{}),createDirectory:i?.createDirectory??(()=>{}),exit:i?.exit??(()=>{}),getExecutingFilePath:i?.getExecutingFilePath??(()=>r+"/__fake__.js"),getCurrentDirectory:()=>r,getModifiedTime:p,readFile:c,readDirectory:w,getDirectories:v,resolvePath:l,fileExists:h,directoryExists:u,async sync(){for(;o.size;)await Promise.all(o);return n}};function l(A){if(i){if(iL!==r&&(iL=r,i.directoryExists(r)))try{process.chdir(r)}catch{}return i.resolvePath(A).replace(/\\/g,"/")}return go.posix.resolve(A).replace(/\\/g,"/")}function c(A,k){A=l(A);let C=go.posix.dirname(A),S=g(C),E=go.posix.basename(A);return x(A,k,S),S.files[E]?.text}function u(A){A=l(A);let k=g(A);if(k.exists===void 0){k.exists=!1;let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),k.exists=E?.type===2,k.exists&&n++})}else k.exists=C?.type===2}return k.exists}function p(A){A=l(A);let k=m(A);return k.requestedStat||(k.requestedStat=!0,d(A,k)),k.stat?new Date(k.stat.mtime):new Date(0)}function h(A){A=l(A);let k=m(A),C=()=>k.text!==void 0||k.stat?.type===1;return C()?!0:(k.requestedStat||(k.requestedStat=!0,d(A,k)),C())}function d(A,k){let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),(k.stat?.type!==E?.type||k.stat?.mtime!==E?.mtime)&&n++,k.stat=E})}else k.stat=C}function m(A){A=l(A);let k=go.posix.dirname(A),C=go.posix.basename(A),S=g(k);return S.files[C]??={}}function v(A){A=l(A),y(A);let k=g(A);return[...Object.entries(k.dirs)].filter(([C,S])=>S.exists).map(([C])=>C)}function w(A,k,C,S,E){A=l(A);let D=(0,Goe.matchFiles)(A,k,C,S,i?.useCaseSensitiveFileNames??!1,r,E,F=>{F=l(F),y(F);let P=g(F);return{files:[...Object.entries(P.files)].filter(([O,N])=>N.stat?.type===1).map(([O])=>O),directories:[...Object.entries(P.dirs)].filter(([O,N])=>N.exists).map(([O])=>O)}},i?.realpath?F=>i.realpath(F):F=>F);return[...new Set(D)]}function x(A,k,C){let S=go.posix.basename(A);C.files[S]??={};let E=C.files[S];if(E.requestedText)return;E.requestedText=!0;let D=t.fileNameToUri(A),F=t.fs?.readFile(D,k);if(typeof F=="object"&&"then"in F){let P=F;o.add(P),F.then(O=>{o.delete(P),O!==void 0&&(E.text=O,E.stat&&E.stat.mtime++,n++)})}else F!==void 0&&(E.text=F)}function y(A){let k=g(A);if(k.requestedRead)return;k.requestedRead=!0;let C=t.fs?.readDirectory(t.fileNameToUri(A||"."));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),f(A,k,E)&&n++})}else f(A,k,C??[])}function f(A,k,C){C=C.filter(([E])=>E!=="."&&E!=="..");let S=!1;for(let[E,D]of C){let F=D;if(F===64){let P=t.fs?.stat(t.fileNameToUri(A+"/"+E));if(typeof P=="object"&&"then"in P){let O=P;o.add(O),P.then(N=>{if(o.delete(O),N?.type===1){k.files[E]??={};let L=k.files[E];(N.type!==L.stat?.type||N.mtime!==L.stat.mtime)&&n++,L.stat=N,L.requestedStat=!0}else if(N?.type===2){let L=_(k,E);L.exists||(L.exists=!0,n++)}})}else P&&(F=P.type)}if(F===1)k.files[E]??={},k.files[E].stat||(k.files[E].stat={type:1,mtime:0,ctime:0,size:0},S=!0);else if(F===2){let P=_(k,E);P.exists||(P.exists=!0,S=!0)}}return S}function g(A){let k=[],C=A,S=go.posix.basename(C),E;for(;E!==C;)E=C,k.push(S),C=go.posix.dirname(C),S=go.posix.basename(C);let D=s;for(let F=k.length-1;F>=0;F--){let P=k[F];D=_(D,P)}return D}function _(A,k){let C=A.dirs[k];return C||(C={dirs:{},files:{}},A.dirs[k]=C),C}}rw.createSys=Koe});var oL=R(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.getProgram=void 0;function Joe(e,t,n,r){let i={getRootFileNames:o,emit:h,getSyntacticDiagnostics:l,getSemanticDiagnostics:c,getGlobalDiagnostics:p,getBindAndCheckDiagnostics:a};return new Proxy({},{get:(m,v)=>{if(v in i)return i[v];let w=s();return v in w?w[v]:m[v]},set:(m,v,w)=>{let x=s();return m[v]=x[v]=w,!0}});function s(){return n.getProgram()}function o(){return s().getRootFileNames().filter(m=>r.fileExists?.(m))}function a(m,v){return u(m,v,"getBindAndCheckDiagnostics")}function l(m,v){return u(m,v,"getSyntacticDiagnostics")}function c(m,v){return u(m,v,"getSemanticDiagnostics")}function u(m,v,w){if(m){let[x,y]=t.virtualFiles.getVirtualFile(m.fileName);if(x&&y)return x.capabilities.diagnostic?d(n.getProgram()?.[w](m,v)??[]):[]}return d(s()[w](m,v)??[])}function p(m){return d(s().getGlobalDiagnostics(m)??[])}function h(m,v,w,x,y){let f=s().emit(m,r.writeFile??e.sys.writeFile,w,x,y);return{emitSkipped:f.emitSkipped,emittedFiles:f.emittedFiles,diagnostics:d(f.diagnostics)}}function d(m){let v=[];for(let x of m)if(x.file!==void 0&&x.start!==void 0&&x.length!==void 0){let[y,f]=t.virtualFiles.getVirtualFile(x.file.fileName);if(y&&f){if(r.fileExists?.(f.fileName)===!1)continue;for(let[g,[_,A]]of t.virtualFiles.getMaps(y))if(_===f.snapshot){for(let k of A.toSourceOffsets(x.start))if(!!(typeof k[1].data.diagnostic=="object"?k[1].data.diagnostic.shouldReport():!!k[1].data.diagnostic)){for(let S of A.toSourceOffsets(x.start+x.length,!0))if(!!(typeof S[1].data.diagnostic=="object"?S[1].data.diagnostic.shouldReport():!!S[1].data.diagnostic)){w(x,f.fileName,k[0],S[0],f.snapshot.getText(0,f.snapshot.getLength()));break}break}}}else{if(r.fileExists?.(x.file.fileName)===!1)continue;w(x,x.file.fileName,x.start,x.start+x.length,x.file.text)}}else x.file===void 0&&v.push(x);return v;function w(x,y,f,g,_){let A=y===x.file?.fileName?x.file:void 0;if(!A)if(_===void 0){let S=t.host.getScriptSnapshot(y);S&&(_=S.getText(0,S.getLength()))}else A=e.createSourceFile(y,_,e.ScriptTarget.Latest,void 0,e.ScriptKind.Deferred),A.originalFileName=y,A.path=y.toLowerCase(),A.resolvedPath=y.toLowerCase();let k={...x,file:A,start:f,length:g-f},C=x.relatedInformation;C&&(k.relatedInformation=d(C)),v.push(k)}}}iw.getProgram=Joe});var lL=R(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.getExternalFiles=Ch.decorateLanguageServiceHost=void 0;var aL=dr();function Xoe(e,t,n,r){let i=0,s=new Map,o=t.readDirectory?.bind(t),a=t.resolveModuleNameLiterals?.bind(t),l=t.resolveModuleNames?.bind(t),c=t.getProjectVersion?.bind(t),u=t.getScriptSnapshot.bind(t),p=t.getScriptKind?.bind(t);o&&(t.readDirectory=(v,w,x,y,f)=>{if(w)for(let g of r)w.includes(g)||(w=[...w,...g]);return o(v,w,x,y,f)}),a?t.resolveModuleNameLiterals=(v,w,x,y,...f)=>{let g=a(v,w,x,y,...f);return v.map((_,A)=>{if(r.some(k=>_.text.endsWith(k))){let k=h(_.text,w,y,x);if(k.resolvedModule)return k}return g[A]})}:l&&(t.resolveModuleNames=(v,w,x,y,f,g)=>{let _=l(v,w,x,y,f,g);return v.map((A,k)=>{if(r.some(C=>A.endsWith(C))){let C=h(A,w,f,y);if(C.resolvedModule)return C.resolvedModule}return _[k]})}),c&&(t.getProjectVersion=()=>c()+":"+i),t.getScriptSnapshot=v=>r.some(w=>v.endsWith(w))?(m(v),s.get(v)?.snapshot):u(v),p&&(t.getScriptKind=v=>{if(r.some(w=>v.endsWith(w))){m(v);let w=s.get(v);if(w){if(w.extension.endsWith(".js"))return n.ScriptKind.JS;if(w.extension.endsWith(".jsx"))return n.ScriptKind.JSX;if(w.extension.endsWith(".ts"))return n.ScriptKind.TS;if(w.extension.endsWith(".tsx"))return n.ScriptKind.TSX}return n.ScriptKind.Deferred}return p(v)});function h(v,w,x,y){let f=n.resolveModuleName(v,w,x,{readFile(g){return t.readFile(g)},fileExists(g){return r.some(_=>g.endsWith(_+".d.ts"))?d(g.slice(0,-5)):t.fileExists(g)}},void 0,y);if(f.resolvedModule){f.resolvedModule.resolvedFileName=f.resolvedModule.resolvedFileName.slice(0,-5);let g=m(f.resolvedModule.resolvedFileName);g&&(f.resolvedModule.extension=g.extension)}return f}function d(v){return t.fileExists(v)?(n.sys.getFileSize?.(v)??t.readFile(v)?.length??0)<4*1024*1024:!1}function m(v){let w=t.getScriptVersion(v);if(w!==s.get(v)?.version){let x=t.readFile(v),y,f=".ts";if(x!==void 0){i++;let g=e.updateSource(v,n.ScriptSnapshot.fromString(x),void 0);if(g){let _=x.split(
TypeError: Cannot read properties of undefined (reading 'package.json')
at m (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1578)
at Object.h [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1167)
at Object.y [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:76:36331)
at getPackageJsonInfo (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40230:33)
at loadNodeModuleFromDirectory (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40062:47)
at nodeLoadModuleByRelativeName (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39937:14)
at loader (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39841:78)
at /private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40954:16
at forEach (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:55:24)
at tryLoadModuleUsingPaths (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40941:24)
[Info - 18:13:34] Connection to server got closed. Server will restart.
true
/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77
,useCaseSensitiveFileNames:i?.useCaseSensitiveFileNames??!1,realpath:i?.realpath,write:i?.write??(()=>{}),writeFile:i?.writeFile??(()=>{}),createDirectory:i?.createDirectory??(()=>{}),exit:i?.exit??(()=>{}),getExecutingFilePath:i?.getExecutingFilePath??(()=>r+"/__fake__.js"),getCurrentDirectory:()=>r,getModifiedTime:p,readFile:c,readDirectory:w,getDirectories:v,resolvePath:l,fileExists:h,directoryExists:u,async sync(){for(;o.size;)await Promise.all(o);return n}};function l(A){if(i){if(iL!==r&&(iL=r,i.directoryExists(r)))try{process.chdir(r)}catch{}return i.resolvePath(A).replace(/\\/g,"/")}return go.posix.resolve(A).replace(/\\/g,"/")}function c(A,k){A=l(A);let C=go.posix.dirname(A),S=g(C),E=go.posix.basename(A);return x(A,k,S),S.files[E]?.text}function u(A){A=l(A);let k=g(A);if(k.exists===void 0){k.exists=!1;let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),k.exists=E?.type===2,k.exists&&n++})}else k.exists=C?.type===2}return k.exists}function p(A){A=l(A);let k=m(A);return k.requestedStat||(k.requestedStat=!0,d(A,k)),k.stat?new Date(k.stat.mtime):new Date(0)}function h(A){A=l(A);let k=m(A),C=()=>k.text!==void 0||k.stat?.type===1;return C()?!0:(k.requestedStat||(k.requestedStat=!0,d(A,k)),C())}function d(A,k){let C=t.fs?.stat(t.fileNameToUri(A));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),(k.stat?.type!==E?.type||k.stat?.mtime!==E?.mtime)&&n++,k.stat=E})}else k.stat=C}function m(A){A=l(A);let k=go.posix.dirname(A),C=go.posix.basename(A),S=g(k);return S.files[C]??={}}function v(A){A=l(A),y(A);let k=g(A);return[...Object.entries(k.dirs)].filter(([C,S])=>S.exists).map(([C])=>C)}function w(A,k,C,S,E){A=l(A);let D=(0,Goe.matchFiles)(A,k,C,S,i?.useCaseSensitiveFileNames??!1,r,E,F=>{F=l(F),y(F);let P=g(F);return{files:[...Object.entries(P.files)].filter(([O,N])=>N.stat?.type===1).map(([O])=>O),directories:[...Object.entries(P.dirs)].filter(([O,N])=>N.exists).map(([O])=>O)}},i?.realpath?F=>i.realpath(F):F=>F);return[...new Set(D)]}function x(A,k,C){let S=go.posix.basename(A);C.files[S]??={};let E=C.files[S];if(E.requestedText)return;E.requestedText=!0;let D=t.fileNameToUri(A),F=t.fs?.readFile(D,k);if(typeof F=="object"&&"then"in F){let P=F;o.add(P),F.then(O=>{o.delete(P),O!==void 0&&(E.text=O,E.stat&&E.stat.mtime++,n++)})}else F!==void 0&&(E.text=F)}function y(A){let k=g(A);if(k.requestedRead)return;k.requestedRead=!0;let C=t.fs?.readDirectory(t.fileNameToUri(A||"."));if(typeof C=="object"&&"then"in C){let S=C;o.add(S),C.then(E=>{o.delete(S),f(A,k,E)&&n++})}else f(A,k,C??[])}function f(A,k,C){C=C.filter(([E])=>E!=="."&&E!=="..");let S=!1;for(let[E,D]of C){let F=D;if(F===64){let P=t.fs?.stat(t.fileNameToUri(A+"/"+E));if(typeof P=="object"&&"then"in P){let O=P;o.add(O),P.then(N=>{if(o.delete(O),N?.type===1){k.files[E]??={};let L=k.files[E];(N.type!==L.stat?.type||N.mtime!==L.stat.mtime)&&n++,L.stat=N,L.requestedStat=!0}else if(N?.type===2){let L=_(k,E);L.exists||(L.exists=!0,n++)}})}else P&&(F=P.type)}if(F===1)k.files[E]??={},k.files[E].stat||(k.files[E].stat={type:1,mtime:0,ctime:0,size:0},S=!0);else if(F===2){let P=_(k,E);P.exists||(P.exists=!0,S=!0)}}return S}function g(A){let k=[],C=A,S=go.posix.basename(C),E;for(;E!==C;)E=C,k.push(S),C=go.posix.dirname(C),S=go.posix.basename(C);let D=s;for(let F=k.length-1;F>=0;F--){let P=k[F];D=_(D,P)}return D}function _(A,k){let C=A.dirs[k];return C||(C={dirs:{},files:{}},A.dirs[k]=C),C}}rw.createSys=Koe});var oL=R(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.getProgram=void 0;function Joe(e,t,n,r){let i={getRootFileNames:o,emit:h,getSyntacticDiagnostics:l,getSemanticDiagnostics:c,getGlobalDiagnostics:p,getBindAndCheckDiagnostics:a};return new Proxy({},{get:(m,v)=>{if(v in i)return i[v];let w=s();return v in w?w[v]:m[v]},set:(m,v,w)=>{let x=s();return m[v]=x[v]=w,!0}});function s(){return n.getProgram()}function o(){return s().getRootFileNames().filter(m=>r.fileExists?.(m))}function a(m,v){return u(m,v,"getBindAndCheckDiagnostics")}function l(m,v){return u(m,v,"getSyntacticDiagnostics")}function c(m,v){return u(m,v,"getSemanticDiagnostics")}function u(m,v,w){if(m){let[x,y]=t.virtualFiles.getVirtualFile(m.fileName);if(x&&y)return x.capabilities.diagnostic?d(n.getProgram()?.[w](m,v)??[]):[]}return d(s()[w](m,v)??[])}function p(m){return d(s().getGlobalDiagnostics(m)??[])}function h(m,v,w,x,y){let f=s().emit(m,r.writeFile??e.sys.writeFile,w,x,y);return{emitSkipped:f.emitSkipped,emittedFiles:f.emittedFiles,diagnostics:d(f.diagnostics)}}function d(m){let v=[];for(let x of m)if(x.file!==void 0&&x.start!==void 0&&x.length!==void 0){let[y,f]=t.virtualFiles.getVirtualFile(x.file.fileName);if(y&&f){if(r.fileExists?.(f.fileName)===!1)continue;for(let[g,[_,A]]of t.virtualFiles.getMaps(y))if(_===f.snapshot){for(let k of A.toSourceOffsets(x.start))if(!!(typeof k[1].data.diagnostic=="object"?k[1].data.diagnostic.shouldReport():!!k[1].data.diagnostic)){for(let S of A.toSourceOffsets(x.start+x.length,!0))if(!!(typeof S[1].data.diagnostic=="object"?S[1].data.diagnostic.shouldReport():!!S[1].data.diagnostic)){w(x,f.fileName,k[0],S[0],f.snapshot.getText(0,f.snapshot.getLength()));break}break}}}else{if(r.fileExists?.(x.file.fileName)===!1)continue;w(x,x.file.fileName,x.start,x.start+x.length,x.file.text)}}else x.file===void 0&&v.push(x);return v;function w(x,y,f,g,_){let A=y===x.file?.fileName?x.file:void 0;if(!A)if(_===void 0){let S=t.host.getScriptSnapshot(y);S&&(_=S.getText(0,S.getLength()))}else A=e.createSourceFile(y,_,e.ScriptTarget.Latest,void 0,e.ScriptKind.Deferred),A.originalFileName=y,A.path=y.toLowerCase(),A.resolvedPath=y.toLowerCase();let k={...x,file:A,start:f,length:g-f},C=x.relatedInformation;C&&(k.relatedInformation=d(C)),v.push(k)}}}iw.getProgram=Joe});var lL=R(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.getExternalFiles=Ch.decorateLanguageServiceHost=void 0;var aL=dr();function Xoe(e,t,n,r){let i=0,s=new Map,o=t.readDirectory?.bind(t),a=t.resolveModuleNameLiterals?.bind(t),l=t.resolveModuleNames?.bind(t),c=t.getProjectVersion?.bind(t),u=t.getScriptSnapshot.bind(t),p=t.getScriptKind?.bind(t);o&&(t.readDirectory=(v,w,x,y,f)=>{if(w)for(let g of r)w.includes(g)||(w=[...w,...g]);return o(v,w,x,y,f)}),a?t.resolveModuleNameLiterals=(v,w,x,y,...f)=>{let g=a(v,w,x,y,...f);return v.map((_,A)=>{if(r.some(k=>_.text.endsWith(k))){let k=h(_.text,w,y,x);if(k.resolvedModule)return k}return g[A]})}:l&&(t.resolveModuleNames=(v,w,x,y,f,g)=>{let _=l(v,w,x,y,f,g);return v.map((A,k)=>{if(r.some(C=>A.endsWith(C))){let C=h(A,w,f,y);if(C.resolvedModule)return C.resolvedModule}return _[k]})}),c&&(t.getProjectVersion=()=>c()+":"+i),t.getScriptSnapshot=v=>r.some(w=>v.endsWith(w))?(m(v),s.get(v)?.snapshot):u(v),p&&(t.getScriptKind=v=>{if(r.some(w=>v.endsWith(w))){m(v);let w=s.get(v);if(w){if(w.extension.endsWith(".js"))return n.ScriptKind.JS;if(w.extension.endsWith(".jsx"))return n.ScriptKind.JSX;if(w.extension.endsWith(".ts"))return n.ScriptKind.TS;if(w.extension.endsWith(".tsx"))return n.ScriptKind.TSX}return n.ScriptKind.Deferred}return p(v)});function h(v,w,x,y){let f=n.resolveModuleName(v,w,x,{readFile(g){return t.readFile(g)},fileExists(g){return r.some(_=>g.endsWith(_+".d.ts"))?d(g.slice(0,-5)):t.fileExists(g)}},void 0,y);if(f.resolvedModule){f.resolvedModule.resolvedFileName=f.resolvedModule.resolvedFileName.slice(0,-5);let g=m(f.resolvedModule.resolvedFileName);g&&(f.resolvedModule.extension=g.extension)}return f}function d(v){return t.fileExists(v)?(n.sys.getFileSize?.(v)??t.readFile(v)?.length??0)<4*1024*1024:!1}function m(v){let w=t.getScriptVersion(v);if(w!==s.get(v)?.version){let x=t.readFile(v),y,f=".ts";if(x!==void 0){i++;let g=e.updateSource(v,n.ScriptSnapshot.fromString(x),void 0);if(g){let _=x.split(
TypeError: Cannot read properties of undefined (reading 'package.json')
at m (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1578)
at Object.h [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:77:1167)
at Object.y [as fileExists] (/Users/spectrumism/.vscode/extensions/vue.volar-1.8.15/dist/server.js:76:36331)
at getPackageJsonInfo (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40230:33)
at loadNodeModuleFromDirectory (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40062:47)
at nodeLoadModuleByRelativeName (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39937:14)
at loader (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:39841:78)
at /private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40954:16
at forEach (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:55:24)
at tryLoadModuleUsingPaths (/private/var/folders/rh/8p2cp9_x3zj9fg5y0rc7sgvc0000gn/T/AppTranslocation/82E92C6E-8E01-4AA8-B058-C76A08CCA6E0/d/Visual Studio Code 2.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:40941:24)
[Error - 18:14:06] The Vue Semantic Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
The text was updated successfully, but these errors were encountered: