Skip to content

Commit 84d87a7

Browse files
modify docstrings
Signed-off-by: nkomonen <[email protected]>
1 parent 2e6d87c commit 84d87a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/srcShared/fs.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class FileSystemCommon {
6363
}
6464

6565
/**
66-
* The vscode fs implementation does not explicitly provide an append method
66+
* The {@link vscode.workspace.fs} implementation does not explicitly provide an append method
6767
* so we must do it ourselves (this implementation is inefficient).
6868
*/
6969
async appendFile(path: Uri | string, content: Uint8Array | string): Promise<void> {
@@ -101,6 +101,10 @@ export class FileSystemCommon {
101101
return this.exists(path, vscode.FileType.Directory)
102102
}
103103

104+
/**
105+
* - Writes a file with `utf-8` encoding and `644` (rw-r--r--) permissions.
106+
* - Creates missing directories in the given path.
107+
*/
104108
async writeFile(path: Uri | string, data: string | Uint8Array): Promise<void> {
105109
path = FileSystemCommon.getUri(path)
106110
return fs.writeFile(path, FileSystemCommon.asArray(data))

0 commit comments

Comments
 (0)