Skip to content

Commit b7d5b73

Browse files
committed
newline
1 parent 8466c95 commit b7d5b73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/shared/utilities/resourceCache.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function now() {
3838
* CacheResource utilizes VSCode global states API to cache resources which are expensive to get so that the result can be shared across multiple VSCode instances.
3939
* The first VSCode instance invoking #getResource will hold a lock and make the actual network call/FS read to pull the real response.
4040
* When the pull is done, the lock will be released and it then caches the result in the global states. Then the rest of instances can now acquire the lock 1 by 1 and read the resource from the cache.
41+
*
4142
* constructor:
4243
* @param key: global state key, which is used for globals.globalState#update, #tryGet etc.
4344
* @param expirationInMilli: cache expiration time in milli seconds

0 commit comments

Comments
 (0)