提交 7d967a50 编写于 作者: S Sandeep Somavarapu

Replace schema check with file service handling

上级 c890e6ca
......@@ -43,7 +43,6 @@ import { assign } from 'vs/base/common/objects';
import URI from 'vs/base/common/uri';
import { areSameExtensions, getGalleryExtensionIdFromLocal } from 'vs/platform/extensionManagement/common/extensionManagementUtil';
import { IExperimentService, ExperimentActionType, ExperimentState } from 'vs/workbench/parts/experiments/node/experimentService';
import { Schemas } from 'vs/base/common/network';
const milliSecondsInADay = 1000 * 60 * 60 * 24;
const choiceNever = localize('neverShowAgain', "Don't Show Again");
......@@ -500,7 +499,7 @@ export class ExtensionTipsService extends Disposable implements IExtensionTipsSe
let hasSuggestion = false;
const uri = model.uri;
if (!uri || uri.scheme !== Schemas.file) {
if (!uri || !this.fileService.canHandleResource(uri)) {
return;
}
......@@ -892,7 +891,7 @@ export class ExtensionTipsService extends Disposable implements IExtensionTipsSe
private fetchDynamicWorkspaceRecommendations(): TPromise<void> {
if (this.contextService.getWorkbenchState() !== WorkbenchState.FOLDER
|| this.contextService.getWorkspace().folders[0].uri.scheme !== Schemas.file // #54483: check with @Ramya
|| !this.fileService.canHandleResource(this.contextService.getWorkspace().folders[0].uri)
|| this._dynamicWorkspaceRecommendations.length
|| !this._extensionsRecommendationsUrl) {
return TPromise.as(null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册