提交 72779d52 编写于 作者: J Jackson Kearl

Fix "Cannot create regex from empty string" in search editor. Closes #86200.

上级 520c9998
......@@ -239,7 +239,7 @@ export const refreshActiveEditorSearch =
const textModel = model as ITextModel;
const header = textModel.getValueInRange(new Range(1, 1, 5, 1))
const header = textModel.getValueInRange(new Range(1, 1, 5, 1), EndOfLinePreference.LF)
.split(lineDelimiter)
.filter(line => line.indexOf('# ') === 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册