提交 69788e96 编写于 作者: R Ramya Achutha Rao

Check storageservice availablility the right way

上级 97331424
......@@ -392,8 +392,8 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
this.isAuto = false;
this.focusedItem = null;
this.storageService = storageService;
const storageResult = this.storageService.store('expandSuggestionDocs', expandSuggestionDocsByDefault, StorageScope.GLOBAL);
if (storageResult === undefined) {
this.storageService.store('expandSuggestionDocs', expandSuggestionDocsByDefault, StorageScope.GLOBAL);
if (this.storageService.get('expandSuggestionDocs', StorageScope.GLOBAL) === undefined) {
this.storageServiceAvailable = false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册