提交 2f73a6d3 编写于 作者: R Rob Lourens

Fix #57380

上级 dde08a9a
......@@ -24,4 +24,8 @@
pointer-events: none;
margin-top: 2px;
margin-left: 1px;
}
\ No newline at end of file
}
.suggest-input-container .monaco-editor .suggest-widget.no-icons .monaco-list .icon {
display: none;
}
......@@ -124,8 +124,16 @@ export class SuggestEnabledInput extends Widget implements IThemable {
this.stylingContainer = append(parent, $('.suggest-input-container'));
this.placeholderText = append(this.stylingContainer, $('.suggest-input-placeholder', null, options.placeholderText || ''));
const editorOptions: IEditorOptions = {
...getSimpleEditorOptions(),
...getHTMLInputStyleOptions(ariaLabel),
...{
iconsInSuggestions: false
}
};
this.inputWidget = instantiationService.createInstance(CodeEditorWidget, this.stylingContainer,
mixinHTMLInputStyleOptions(getSimpleEditorOptions(), ariaLabel),
editorOptions,
{
contributions: [SuggestController, SnippetController2, ContextMenuController, MenuPreventer],
isSimpleWidget: true,
......@@ -244,17 +252,20 @@ export class SuggestEnabledInput extends Widget implements IThemable {
}
function mixinHTMLInputStyleOptions(config: IEditorOptions, ariaLabel?: string): IEditorOptions {
config.fontSize = 13;
config.lineHeight = 22;
config.wordWrap = 'off';
config.scrollbar.vertical = 'hidden';
config.roundedSelection = false;
config.ariaLabel = ariaLabel || '';
config.renderIndentGuides = false;
config.cursorWidth = 1;
config.snippetSuggestions = 'none';
config.suggest = { filterGraceful: false };
config.fontFamily = ' -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Ubuntu", "Droid Sans", sans-serif';
return config;
function getHTMLInputStyleOptions(ariaLabel?: string): IEditorOptions {
return <IEditorOptions>{
fontSize: 13,
lineHeight: 22,
wordWrap: 'off',
scrollbar: {
vertical: 'hidden',
},
roundedSelection: false,
ariaLabel: ariaLabel || '',
renderIndentGuides: false,
cursorWidth: 1,
snippetSuggestions: 'none',
suggest: { filterGraceful: false },
fontFamily: ' -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Ubuntu", "Droid Sans", sans-serif',
};
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册