Skip to content

Commit be0d177

Browse files
authored
fix desc for session (microsoft#226900)
1 parent d03aeaf commit be0d177

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vscode-dts/vscode.proposed.fileSearchProviderNew.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ declare module 'vscode' {
5454

5555
/**
5656
* An object with a lifespan that matches the session's lifespan. If the provider chooses to, this object can be used as the key for a cache,
57-
* and searches with the same session object can search the same cache. When the token is cancelled, the session is complete and the cache can be cleared.
57+
* and searches with the same session object can search the same cache. When the object is garbage-collected, the session is complete and the cache can be cleared.
58+
* Please do not store any references to the session object, except via a weak reference (e.g. `WeakRef` or `WeakMap`).
5859
*/
5960
session: unknown;
6061

0 commit comments

Comments
 (0)