MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / isAnalyzableAndInWorkspace

Function isAnalyzableAndInWorkspace

src/extension/utils.ts:88–90  ·  view source on GitHub ↗
(file: { uri: Uri, isUntitled?: boolean, languageId?: string })

Source from the content-addressed store, hash-verified

86}
87
88export function isAnalyzableAndInWorkspace(file: { uri: Uri, isUntitled?: boolean, languageId?: string }): boolean {
89 return isAnalyzable(file) && isWithinWorkspace(fsPath(file.uri));
90}
91
92export function isTestFileOrFolder(path: string | undefined): boolean {
93 return !!path && (isTestFile(path) || isTestFolder(path));

Callers 1

provideCodeActionsMethod · 0.90

Calls 3

isWithinWorkspaceFunction · 0.90
fsPathFunction · 0.90
isAnalyzableFunction · 0.85

Tested by

no test coverage detected