Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added app://cache/extension-types for extension type sharing #659

Merged
merged 3 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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