Skip to content

Commit 40ea618

Browse files
committed
add jsdoc for microsoft#90208
1 parent e326eec commit 40ea618

1 file changed

Lines changed: 34 additions & 38 deletions

File tree

src/vs/vscode.proposed.d.ts

Lines changed: 34 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,41 +2155,6 @@ declare module 'vscode' {
21552155

21562156
//#endregion
21572157

2158-
2159-
//#region https://github.com/microsoft/vscode/issues/90208
2160-
2161-
export interface ExtensionContext {
2162-
/**
2163-
* Get the uri of a resource contained in the extension.
2164-
*
2165-
* @param relativePath A relative path to a resource contained in the extension.
2166-
* @return The uri of the resource.
2167-
*/
2168-
asExtensionUri(relativePath: string): Uri;
2169-
2170-
/**
2171-
*
2172-
*/
2173-
readonly extensionUri: Uri;
2174-
}
2175-
2176-
export interface Extension<T> {
2177-
/**
2178-
* Get the uri of a resource contained in the extension.
2179-
*
2180-
* @param relativePath A relative path to a resource contained in the extension.
2181-
* @return The uri of the resource.
2182-
*/
2183-
asExtensionUri(relativePath: string): Uri;
2184-
2185-
/**
2186-
*
2187-
*/
2188-
readonly extensionUri: Uri;
2189-
}
2190-
2191-
//#endregion
2192-
21932158
//#region https://github.com/microsoft/vscode/issues/86788
21942159

21952160
export interface CodeActionProviderMetadata {
@@ -2247,13 +2212,44 @@ declare module 'vscode' {
22472212

22482213
//#region https://github.com/microsoft/vscode/issues/90208
22492214

2215+
export interface ExtensionContext {
2216+
/**
2217+
* @deprecated THIS API PROPOSAL WILL BE DROPPED
2218+
*/
2219+
asExtensionUri(relativePath: string): Uri;
2220+
2221+
/**
2222+
* The uri of the directory containing the extension.
2223+
*/
2224+
readonly extensionUri: Uri;
2225+
}
2226+
2227+
export interface Extension<T> {
2228+
/**
2229+
* @deprecated THIS API PROPOSAL WILL BE DROPPED
2230+
*/
2231+
asExtensionUri(relativePath: string): Uri;
2232+
2233+
/**
2234+
* The uri of the directory containing the extension.
2235+
*/
2236+
readonly extensionUri: Uri;
2237+
}
2238+
22502239
export namespace Uri {
22512240

22522241
/**
2242+
* Create a new uri which path is the result of joining
2243+
* the path of the base uri with the provided path fragments.
2244+
*
2245+
* * Note that `joinPath` only affects the path component
2246+
* and all other components (scheme, authority, query, and fragment) are
2247+
* left as they are.
2248+
* * Note that the base uri must have a path; an error is thrown otherwise.
22532249
*
2254-
* @param base
2255-
* @param pathFragments
2256-
* @returns A new uri
2250+
* @param base An uri. Must have a path.
2251+
* @param pathFragments One more more path fragments
2252+
* @returns A new uri which path is joined with the given fragments
22572253
*/
22582254
export function joinPath(base: Uri, ...pathFragments: string[]): Uri;
22592255
}

0 commit comments

Comments
 (0)