WI-2551 HTML5 completion does not work when PhpStorm / WebStorm installation path contains spaces

This commit is contained in:
Maxim.Mossienko
2010-07-14 15:53:29 +04:00
parent cc6dbc23f1
commit 167619671e
@@ -953,9 +953,8 @@ public class XmlUtil {
private static final String HTML5_SCHEMA_LOCATION;
static {
URL schemaLocation = XmlUtil.class.getResource(ExternalResourceManagerImpl.STANDARD_SCHEMAS + "html5/xhtml5.xsd");
VirtualFile relativeFile = schemaLocation != null ?
VfsUtil.findRelativeFile(VfsUtil.fixURLforIDEA(schemaLocation.toExternalForm()), null):null;
URL schemaLocationURL = XmlUtil.class.getResource(ExternalResourceManagerImpl.STANDARD_SCHEMAS + "html5/xhtml5.xsd");
VirtualFile relativeFile = schemaLocationURL != null ? VfsUtil.findFileByURL(schemaLocationURL):null;
HTML5_SCHEMA_LOCATION = relativeFile != null ? relativeFile.getPath():"";
}