未验证 提交 6953e56a 编写于 作者: G George 提交者: GitHub

#15717 fix foreign file datasource bind (#15727)

上级 571e061e
......@@ -86,7 +86,9 @@ public class SQLEditorHandlerOpenEditor extends AbstractDataSourceHandler {
if (resourceInfo.getResource() != null) {
openResource(resourceInfo.getResource(), context);
} else if (resourceInfo.getLocalFile() != null) {
EditorUtils.setFileDataSource(resourceInfo.getLocalFile(), context);
if (context != null) {
EditorUtils.setFileDataSource(resourceInfo.getLocalFile(), context);
}
EditorUtils.openExternalFileEditor(resourceInfo.getLocalFile(), workbenchWindow);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册