microsoft/vscode · error · Error

File ${promptPathRepresentationService.getFilePath(uri)} is

Error message

File ${promptPathRepresentationService.getFilePath(uri)} is configured to be ignored by Copilot

What it means

Error "File ${promptPathRepresentationService.getFilePath(uri)} is configured to be ignored by Copilot" thrown in microsoft/vscode.

Source

Thrown at extensions/copilot/src/extension/tools/node/toolUtils.ts:280

	}

	const indexVariable = buildPromptContext.chatVariables.find(v => isCustomizationsIndex(v.reference));
	if (indexVariable && isString(indexVariable.value)) {
		const indexFile = customInstructionsService.parseInstructionIndexFile(indexVariable.value);
		cachedInstructionIndexFile = { requestId: buildPromptContext.requestId, file: indexFile };
		return indexFile;
	}
	cachedInstructionIndexFile = undefined;
	return undefined;

}

export async function assertFileNotContentExcluded(accessor: ServicesAccessor, uri: URI): Promise<void> {
	const ignoreService = accessor.get(IIgnoreService);
	const promptPathRepresentationService = accessor.get(IPromptPathRepresentationService);

	if (await ignoreService.isCopilotIgnored(uri)) {
		throw new Error(`File ${promptPathRepresentationService.getFilePath(uri)} is configured to be ignored by Copilot`);
	}
}

export async function isFileExternalAndNeedsConfirmation(accessor: ServicesAccessor, uri: URI, buildPromptContext?: IBuildPromptContext, options?: { readOnly?: boolean; workingDirectory?: URI }): Promise<boolean> {
	const workspaceService = accessor.get(IWorkspaceService);
	const tabsAndEditorsService = accessor.get(ITabsAndEditorsService);
	const customInstructionsService = accessor.get(ICustomInstructionsService);
	const diskSessionResources = accessor.get(IChatDiskSessionResources);
	const configurationService = accessor.get(IConfigurationService);
	const fileSystemService = accessor.get(IFileSystemService);
	const chatDebugFileLogger = accessor.get(IChatDebugFileLoggerService);
	const sessionTranscriptService = accessor.get(ISessionTranscriptService);

	const normalizedUri = normalizePath(uri);

	const workingDir = new WorkingDirectory(options?.workingDirectory, workspaceService);
	if (workingDir.getFolder(normalizedUri)) {
		return false;

View on GitHub (pinned to a94b963a32)

When it happens

Trigger: Thrown at extensions/copilot/src/extension/tools/node/toolUtils.ts:280 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12). Data as JSON: /api/errors/23da487b4bc57bad. Report an issue: GitHub.