提交 c67207b5 编写于 作者: M Martin Aeschlimann

[theme] fix warning on theme path

上级 3d0b9755
......@@ -546,7 +546,7 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
}
let normalizedAbsolutePath = Paths.normalize(Paths.join(extensionFolderPath, theme.path));
if (normalizedAbsolutePath.indexOf(extensionFolderPath) !== 0) {
if (normalizedAbsolutePath.indexOf(Paths.normalize(extensionFolderPath)) !== 0) {
collector.warn(nls.localize('invalid.path.1', "Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.", themesExtPoint.name, normalizedAbsolutePath, extensionFolderPath));
}
let themeData = fromExtensionTheme(theme, normalizedAbsolutePath, extensionData);
......@@ -589,7 +589,7 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
}
let normalizedAbsolutePath = Paths.normalize(Paths.join(extensionFolderPath, iconTheme.path));
if (normalizedAbsolutePath.indexOf(extensionFolderPath) !== 0) {
if (normalizedAbsolutePath.indexOf(Paths.normalize(extensionFolderPath)) !== 0) {
collector.warn(nls.localize('invalid.path.1', "Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.", themesExtPoint.name, normalizedAbsolutePath, extensionFolderPath));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册