fix hover mode discovery
This commit is contained in:
parent
89a490b1a5
commit
f5f82d809c
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ export class ModesContentHoverWidget extends ContentHoverWidget {
|
|||
this._openerService.open(URI.parse(content));
|
||||
},
|
||||
codeBlockRenderer: (modeId, value): string | TPromise<string> => {
|
||||
const mode = modeId ? this._modeService.getMode(modeId) : this._editor.getModel().getModeId();
|
||||
const mode = this._modeService.getMode(modeId || this._editor.getModel().getModeId());
|
||||
const getMode = mode => mode ? TPromise.as(mode) : this._modeService.getOrCreateMode(modeId);
|
||||
|
||||
return getMode(mode)
|
||||
|
|
Loading…
Reference in a new issue