有没有办法完全隐藏摩纳哥编辑器的排水沟

Is there a way to completely hide the gutter of monaco editor

是否可以完全隐藏摩纳哥编辑器的装订线。 我尝试了以下选项:

  lineNumbers: 'off',
  glyphMargin: false,
  folding: false

这减小了装订线的大小,但它仍然有大约 10 像素宽,并且在悬停时会重新变长。 有没有办法完全抑制它?

有两个隐藏选项可以完全隐藏它

https://github.com/Microsoft/vscode/issues/30795#issuecomment-410998882

{
  lineNumbers: 'off',
  glyphMargin: false,
  folding: false,
  // Undocumented see https://github.com/Microsoft/vscode/issues/30795#issuecomment-410998882
  lineDecorationsWidth: 0,
  lineNumbersMinChars: 0
}