debounce and queue decoration request, fixes #40210

This commit is contained in:
Johannes Rieken
2017-12-15 10:33:10 +01:00
parent 6cb8c4c715
commit 4e5de4b71b
3 changed files with 75 additions and 11 deletions

View File

@@ -719,10 +719,17 @@ export interface ExtHostDebugServiceShape {
}
export interface DecorationRequest {
readonly id: number;
readonly handle: number;
readonly uri: UriComponents;
}
export type DecorationData = [number, boolean, string, string, ThemeColor, string];
export type DecorationReply = { [id: number]: DecorationData };
export interface ExtHostDecorationsShape {
$provideDecorations(handle: number, uri: UriComponents): TPromise<DecorationData>;
$provideDecorations(requests: DecorationRequest[]): TPromise<DecorationReply>;
}
export interface ExtHostWindowShape {