Skip to content

Commit 6b5f78e

Browse files
committed
make compact mode default, make inlay hints font size default to editor font size, microsoft#145191
1 parent 47432a1 commit 6b5f78e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vs/editor/common/config/editorOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2531,7 +2531,7 @@ export type EditorInlayHintsOptions = Readonly<Required<IEditorInlayHintsOptions
25312531
class EditorInlayHints extends BaseEditorOption<EditorOption.inlayHints, IEditorInlayHintsOptions, EditorInlayHintsOptions> {
25322532

25332533
constructor() {
2534-
const defaults: EditorInlayHintsOptions = { enabled: true, fontSize: 0, fontFamily: '', displayStyle: 'standard' };
2534+
const defaults: EditorInlayHintsOptions = { enabled: true, fontSize: 0, fontFamily: '', displayStyle: 'compact' };
25352535
super(
25362536
EditorOption.inlayHints, 'inlayHints', defaults,
25372537
{
@@ -2543,7 +2543,7 @@ class EditorInlayHints extends BaseEditorOption<EditorOption.inlayHints, IEditor
25432543
'editor.inlayHints.fontSize': {
25442544
type: 'number',
25452545
default: defaults.fontSize,
2546-
markdownDescription: nls.localize('inlayHints.fontSize', "Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")
2546+
markdownDescription: nls.localize('inlayHints.fontSize', "Controls font size of inlay hints in the editor. As default the `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")
25472547
},
25482548
'editor.inlayHints.fontFamily': {
25492549
type: 'string',

src/vs/editor/contrib/inlayHints/browser/inlayHintsController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export class InlayHintsController implements IEditorContribution {
529529
const editorFontSize = this._editor.getOption(EditorOption.fontSize);
530530
let fontSize = options.fontSize;
531531
if (!fontSize || fontSize < 5 || fontSize > editorFontSize) {
532-
fontSize = (editorFontSize * .9) | 0;
532+
fontSize = editorFontSize;
533533
}
534534
const fontFamily = options.fontFamily || this._editor.getOption(EditorOption.fontFamily);
535535
return { fontSize, fontFamily, displayStyle: options.displayStyle };

0 commit comments

Comments
 (0)