提交 51fbb9c2 编写于 作者: A Andre Weinand

rename urlFormat to uriFormat; fixes #69344

上级 9daddf91
......@@ -16,7 +16,7 @@ const WEB_ROOT = '${workspaceFolder}';
interface ServerReadyAction {
pattern: string;
action?: 'openExternally' | 'debugWithChrome';
urlFormat?: string;
uriFormat?: string;
webRoot?: string;
}
......@@ -68,7 +68,7 @@ function openExternalWithString(session: vscode.DebugSession, portOrUriString: s
if (portOrUriString) {
if (/^[0-9]+$/.test(portOrUriString)) {
const args: ServerReadyAction = session.configuration.serverReadyAction;
portOrUriString = util.format(args.urlFormat || URI_FORMAT, portOrUriString);
portOrUriString = util.format(args.uriFormat || URI_FORMAT, portOrUriString);
}
openExternalWithUri(session, portOrUriString);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册