Skip to content

Commit f5f82d8

Browse files
committed
fix hover mode discovery
1 parent 89a490b commit f5f82d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export class ModesContentHoverWidget extends ContentHoverWidget {
247247
this._openerService.open(URI.parse(content));
248248
},
249249
codeBlockRenderer: (modeId, value): string | TPromise<string> => {
250-
const mode = modeId ? this._modeService.getMode(modeId) : this._editor.getModel().getModeId();
250+
const mode = this._modeService.getMode(modeId || this._editor.getModel().getModeId());
251251
const getMode = mode => mode ? TPromise.as(mode) : this._modeService.getOrCreateMode(modeId);
252252

253253
return getMode(mode)

0 commit comments

Comments
 (0)