We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6a30f commit 7d9cb22Copy full SHA for 7d9cb22
packages/cursorless-vscode/src/ide/vscode/VscodeFileSystem.ts
@@ -42,6 +42,13 @@ export class VscodeFileSystem implements FileSystem {
42
return path.substring(0, path.lastIndexOf("/"));
43
}
44
45
+ /**
46
+ * Reads a file under the extensionUri of the extensionContext passed to
47
+ * the constructor.
48
+ *
49
+ * @param path path to read
50
+ * @returns the contents of path, decoded as UTF-8
51
+ */
52
public async readFileUtf8FromRoot(path: string): Promise<string> {
53
return this.decoder.decode(
54
await vscode.workspace.fs.readFile(
0 commit comments