MCPcopy Create free account
hub / github.com/microsoft/vscode-extension-samples / exists

Function exists

task-provider-sample/src/rakeTaskProvider.ts:43–49  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

41}
42
43function exists(file: string): Promise<boolean> {
44 return new Promise<boolean>((resolve, _reject) => {
45 fs.exists(file, (value) => {
46 resolve(value);
47 });
48 });
49}
50
51function exec(command: string, options: cp.ExecOptions): Promise<{ stdout: string; stderr: string }> {
52 return new Promise<{ stdout: string; stderr: string }>((resolve, reject) => {

Callers 1

getRakeTasksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected