Skip to content

Commit

Permalink
fix(workspace): add missing interface to renamed method (#5032)
Browse files Browse the repository at this point in the history
The method asRelativePath was probably renamed in the past, however
there are extensions such as coc-java which are using the method
named asRelativePath expose the method in the typings api
  • Loading branch information
asmodeus812 authored Jun 6, 2024
1 parent ba3c0a9 commit c054573
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,10 @@ export class Workspace {
return this.workspaceFolderControl.getRelativePath(pathOrUri, includeWorkspace)
}

public asRelativePath(pathOrUri: string | URI, includeWorkspace?: boolean): string {
return this.getRelativePath(pathOrUri, includeWorkspace)
}

public async findFiles(include: GlobPattern, exclude?: GlobPattern | null, maxResults?: number, token?: CancellationToken): Promise<URI[]> {
return this.files.findFiles(include, exclude, maxResults, token)
}
Expand Down

0 comments on commit c054573

Please sign in to comment.