Skip to content

Commit

Permalink
letter,title can be skipped, #54938
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Aug 15, 2018
1 parent 3d6349a commit 7cdc647
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/vs/vscode.proposed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ declare module 'vscode' {

//todo@joh -> make class
export interface DecorationData {
letter: string;
title: string;
letter?: string;
title?: string;
color?: ThemeColor;
priority?: number;
bubble?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/api/node/extHostDecorations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export class ExtHostDecorations implements ExtHostDecorationsShape {
}
const { provider, extensionId } = this._provider.get(handle);
return asWinJsPromise(token => provider.provideDecoration(URI.revive(uri), token)).then(data => {
if (!data.letter || data.letter.length !== 1) {
console.warn(`INVALID decoration from extension '${extensionId}'. The 'letter' must be set and be one character`);
if (data.letter && data.letter.length !== 1) {
console.warn(`INVALID decoration from extension '${extensionId}'. The 'letter' must be set and be one character, not '${data.letter}'.`);
}
result[id] = data && <DecorationData>[data.priority, data.bubble, data.title, data.letter, data.color, data.source];
}, err => {
Expand Down

0 comments on commit 7cdc647

Please sign in to comment.