Skip to content

Commit

Permalink
update: type
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Dec 27, 2024
1 parent 4d450a4 commit 31bf7c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/vscode/src/chat/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum Schemes {
vscodeUserdata = "vscode-userdata",
}

export function isSupportedSchemeForActiveSelection(scheme: string) {
export function isSupportedSchemeForActiveSelection(scheme: string): boolean {
const supportedSchemes: string[] = [Schemes.file, Schemes.untitled, Schemes.vscodeNotebookCell];
return supportedSchemes.includes(scheme);
}
Expand Down Expand Up @@ -101,7 +101,7 @@ export function chatPanelFilepathToLocalUri(filepath: Filepath, gitProvider: Git
return null;
}

function chatPanelFilepathToVscodeNotebookCellUri(root: Uri, filepath: FilepathInGitRepository) {
function chatPanelFilepathToVscodeNotebookCellUri(root: Uri, filepath: FilepathInGitRepository): Uri | null {
if (filepath.kind !== "git") {
logger.warn(`Invalid filepath params.`, filepath);
return null;
Expand Down

0 comments on commit 31bf7c6

Please sign in to comment.