Skip to content

Commit 50f9c22

Browse files
committed
chore: verified extensions will show verified url instead of author name
1 parent e8bd13a commit 50f9c22

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.sonarcloud.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Sonar cloud automatically honors .gitignore, this is only to specify src and test dirs.
33
# Path to sources
44
sonar.sources=src/
5-
sonar.exclusions=src/thirdparty/**/*, src/assets/new-project/assets/thirdparty/**/*
5+
sonar.exclusions=src/thirdparty/**/*, src/assets/new-project/assets/thirdparty/**/*, src/assets/sample-projects/**/*
66
#sonar.inclusions=
77

88
# Path to tests

src/extensibility/registry_utils.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ define(function (require, exports, module) {
100100
var result = "",
101101
ownerLink = exports.ownerLink.call(this),
102102
userId = exports.formatUserId.call(this);
103-
if (this.metadata && this.metadata.author) {
103+
if(this.verified && this.verifiedURL) {
104+
// https://emmet.io/x/y => emmet.io
105+
let displayText = this.verifiedURL.replace("https://", "").replace("http://", "").split("/")[0];
106+
result = htmlEscape(displayText);
107+
ownerLink = this.verifiedURL;
108+
} else if (this.metadata && this.metadata.author) {
104109
result = htmlEscape(this.metadata.author.name || this.metadata.author);
105110
} else if (userId) {
106111
result = htmlEscape(userId);

src/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
const shouldRefreshLess = window.localStorage.getItem(LESS_REFRESH_SCHEDULED_KEY) === 'yes';
137137
const CACHE_NAME_EVERYTHING = "everything";
138138
function _resetCacheIfNeeded() {
139-
window.cacheClearError;
140139
const cacheKey = "browserCacheVersionKey";
141140
const newCacheVersion = "V8"; // just increment this number to V2, v3 etc. to force clear the cached content.
142141
const lastClearedVersion = window.localStorage.getItem(cacheKey);

0 commit comments

Comments
 (0)