Skip to content

Commit

Permalink
more jsdoc for microsoft#54938
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored and chenjigeng committed Nov 22, 2020
1 parent 51347b9 commit 0b940e2
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/vs/vscode.proposed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,9 @@ declare module 'vscode' {
//#region file-decorations: https://github.com/microsoft/vscode/issues/54938


/**
* A file decoration represents metadata that can be rendered with a file.
*/
export class FileDecoration {

/**
Expand Down Expand Up @@ -784,7 +787,10 @@ declare module 'vscode' {
export interface FileDecorationProvider {

/**
* An event to signal decorations for one or many files have changed.
* An optional event to signal that decorations for one or many files have changed.
*
*
* *Note* that this event should be used to propagate information about children.
*
* @see [EventEmitter](#EventEmitter)
*/
Expand All @@ -793,6 +799,10 @@ declare module 'vscode' {
/**
* Provide decorations for a given uri.
*
* *Note* that this function is only called when a file gets rendered in the UI.
* This means a decoration from a descendent that propagates upwards must be signaled
* to the editor via the [onDidChangeFileDecorations](#FileDecorationProvider.onDidChangeFileDecorations)-event.
*
* @param uri The uri of the file to provide a decoration for.
* @param token A cancellation token.
* @returns A decoration or a thenable that resolves to such.
Expand All @@ -801,6 +811,13 @@ declare module 'vscode' {
}

export namespace window {

/**
* Register a file decoration provider.
*
* @param provider A [FileDecorationProvider](#FileDecorationProvider).
* @return A [disposable](#Disposable) that unregisters the provider.
*/
export function registerFileDecorationProvider(provider: FileDecorationProvider): Disposable;
}

Expand Down

0 comments on commit 0b940e2

Please sign in to comment.