提交 06b9d185 编写于 作者: D Daniel Imms

Don't call ext link provider for empty lines

Fixes #101452
上级 0fe3b64d
......@@ -47,6 +47,10 @@ export class TerminalExternalLinkProviderAdapter extends TerminalBaseLinkProvide
}
const lineContent = getXtermLineContent(this._xterm.buffer.active, startLine, endLine, this._xterm.cols);
if (lineContent.trim().length === 0) {
return [];
}
const externalLinks = await this._externalLinkProvider.provideLinks(this._instance, lineContent);
if (!externalLinks) {
return [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册