mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-2551 HTML5 completion does not work when PhpStorm / WebStorm installation path contains spaces
This commit is contained in:
@@ -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():"";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user