Skip to content

Commit

Permalink
Added app://cache/extension-types for extension type sharing and app:…
Browse files Browse the repository at this point in the history
…//installed-extensions for an easy place to put extensions
  • Loading branch information
tjcouch-sil committed Dec 1, 2023
1 parent f84e389 commit 70b08ab
Show file tree
Hide file tree
Showing 3 changed files with 319 additions and 68 deletions.
19 changes: 17 additions & 2 deletions lib/papi-dts/papi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4290,7 +4290,7 @@ declare module 'node/utils/util' {
}
declare module 'node/services/node-file-system.service' {
/** File system calls from Node */
import { BigIntStats } from 'fs';
import fs, { BigIntStats } from 'fs';
import { Uri } from 'shared/data/file-system.model';
/**
* Read a text file
Expand All @@ -4314,6 +4314,21 @@ declare module 'node/services/node-file-system.service' {
* @returns Promise that resolves after writing the file
*/
export function writeFile(uri: Uri, fileContents: string | Buffer): Promise<void>;
/**
* Copies a file from one location to another. Creates the path to the destination if it does not
* exist
*
* @param sourceUri The location of the file to copy
* @param destinationUri The uri to the file to create as a copy of the source file
* @param mode Bitwise modifiers that affect how the copy works. See
* [`fsPromises.copyFile`](https://nodejs.org/api/fs.html#fspromisescopyfilesrc-dest-mode) for
* more information
*/
export function copyFile(
sourceUri: Uri,
destinationUri: Uri,
mode?: Parameters<typeof fs.promises.copyFile>[2],
): Promise<void>;
/**
* Delete a file if it exists
*
Expand Down Expand Up @@ -4359,7 +4374,7 @@ declare module 'node/services/node-file-system.service' {
entryFilter?: (entryName: string) => boolean,
): Promise<DirectoryEntries>;
/**
* Create a directory in the file system
* Create a directory in the file system if it does not exist. Does not throw if it already exists.
*
* @param uri URI of directory
* @returns Promise that resolves once the directory has been created
Expand Down
Loading

0 comments on commit 70b08ab

Please sign in to comment.