MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / getExtensionsDir

Function getExtensionsDir

src/test/standardTest.node.ts:162–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160}
161
162async function getExtensionsDir(): Promise<string> {
163 const name = 'vscode_jupyter_exts';
164 const extDirPath = path.join(tmp.tmpdir, name);
165 if (fs.existsSync(extDirPath)) {
166 return extDirPath;
167 }
168
169 return new Promise<string>((resolve, reject) => {
170 tmp.dir({ name, keep: true }, (err, dir) => {
171 if (err) {
172 return reject(err);
173 }
174 resolve(dir);
175 });
176 });
177}
178
179async function start() {
180 const platform = computePlatform();

Callers 1

startFunction · 0.85

Calls 2

joinMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected