feat(file-explorer): add gitignored visibility toggle (#2022)
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
GitBranchCompare,
|
||||
GitBranchDiff,
|
||||
GitBulkPaths,
|
||||
GitCheckIgnored,
|
||||
GitCommit,
|
||||
GitCommitCompare,
|
||||
GitCommitDiff,
|
||||
@@ -27,6 +28,12 @@ export const GIT_METHODS: RpcMethod[] = [
|
||||
? runtime.getRuntimeGitStatus(params.worktree)
|
||||
: runtime.getRuntimeGitStatus(params.worktree, { includeIgnored: params.includeIgnored })
|
||||
}),
|
||||
defineMethod({
|
||||
name: 'git.checkIgnored',
|
||||
params: GitCheckIgnored,
|
||||
handler: async (params, { runtime }) =>
|
||||
runtime.checkRuntimeGitIgnoredPaths(params.worktree, params.paths)
|
||||
}),
|
||||
defineMethod({
|
||||
name: 'git.history',
|
||||
params: GitHistory,
|
||||
|
||||
Reference in New Issue
Block a user