提交 7b6bca0b 编写于 作者: J Johannes Rieken

modes hover must not bread fragments,...

modes hover must not bread fragments, https://github.com/microsoft/vscode/issues/113307,  fyi @sandy081
上级 caaf2a07
......@@ -42,6 +42,7 @@ import { Constants } from 'vs/base/common/uint';
import { textLinkForeground } from 'vs/platform/theme/common/colorRegistry';
import { Progress } from 'vs/platform/progress/common/progress';
import { IContextKey } from 'vs/platform/contextkey/common/contextkey';
import { ITextEditorOptions } from 'vs/platform/editor/common/editor';
const $ = dom.$;
......@@ -566,7 +567,10 @@ export class ModesContentHoverWidget extends ContentHoverWidget {
e.stopPropagation();
e.preventDefault();
if (this._openerService) {
this._openerService.open(resource.with({ fragment: `${startLineNumber},${startColumn}` }), { fromUserGesture: true }).catch(onUnexpectedError);
this._openerService.open(resource, {
fromUserGesture: true,
editorOptions: <ITextEditorOptions>{ selection: { startLineNumber, startColumn } }
}).catch(onUnexpectedError);
}
};
const messageElement = dom.append<HTMLAnchorElement>(relatedInfoContainer, $('span'));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册