File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export class FileSystemCommon {
63
63
}
64
64
65
65
/**
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
67
67
* so we must do it ourselves (this implementation is inefficient).
68
68
*/
69
69
async appendFile ( path : Uri | string , content : Uint8Array | string ) : Promise < void > {
@@ -101,6 +101,10 @@ export class FileSystemCommon {
101
101
return this . exists ( path , vscode . FileType . Directory )
102
102
}
103
103
104
+ /**
105
+ * - Writes a file with `utf-8` encoding and `644` (rw-r--r--) permissions.
106
+ * - Creates missing directories in the given path.
107
+ */
104
108
async writeFile ( path : Uri | string , data : string | Uint8Array ) : Promise < void > {
105
109
path = FileSystemCommon . getUri ( path )
106
110
return fs . writeFile ( path , FileSystemCommon . asArray ( data ) )
You can’t perform that action at this time.
0 commit comments