Skip to content

Commit 10ed637

Browse files
committed
💄
1 parent 9d3ac32 commit 10ed637

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/editor/contrib/hover/browser/modesContentHover.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ export class ModesContentHoverWidget extends ContentHoverWidget {
248248
},
249249
codeBlockRenderer: (modeId, value): string | TPromise<string> => {
250250
const mode = modeId ? this._modeService.getMode(modeId) : this._editor.getModel().getModeId();
251-
const getMode = mode ? TPromise.as(mode) : this._modeService.getOrCreateMode(modeId);
251+
const getMode = mode => mode ? TPromise.as(mode) : this._modeService.getOrCreateMode(modeId);
252252

253-
return getMode
253+
return getMode(mode)
254254
.then(null, err => null)
255255
.then(mode => `<div class="code">${ tokenizeToString(value, mode) }</div>`);
256256
}

0 commit comments

Comments
 (0)