提交 43bc8349 编写于 作者: S Sandeep Somavarapu 提交者: GitHub

remove semver dependency

上级 757a550c
......@@ -206,8 +206,7 @@
"vs/nls",
"**/vs/base/common/**",
"**/vs/base/parts/*/common/**",
"**/vs/platform/*/common/**",
"semver-umd"
"**/vs/platform/*/common/**"
]
},
{
......
......@@ -3,7 +3,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as semver from 'semver-umd';
import { ISyncExtension, ISyncExtensionWithVersion } from 'vs/platform/userDataSync/common/userDataSync';
import { IExtensionIdentifier } from 'vs/platform/extensions/common/extensions';
import { deepClone, equals } from 'vs/base/common/objects';
......@@ -217,6 +216,8 @@ function mergeExtensionState(localExtension: ISyncExtensionWithVersion, remoteEx
if (!remoteExtension.version) {
return localState;
}
/*
* Enable this after making semver a common module
// If local state exists and local extension is latest then use local state
if (localState && semver.gt(localExtension.version, remoteExtension.version)) {
return localState;
......@@ -225,6 +226,7 @@ function mergeExtensionState(localExtension: ISyncExtensionWithVersion, remoteEx
if (remoteState && semver.gt(remoteExtension.version, localExtension.version)) {
return remoteState;
}
*/
/* Remote and local are on same version */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册