{"record":{"id":"23da487b4bc57bad","repo":"microsoft/vscode","slug":"file-promptpathrepresentationservice-getfilepath-23da48","errorCode":null,"errorMessage":"File ${promptPathRepresentationService.getFilePath(uri)} is configured to be ignored by Copilot","messagePattern":"File (.+?) is configured to be ignored by Copilot","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/extension/tools/node/toolUtils.ts","lineNumber":280,"sourceCode":"\t}\n\n\tconst indexVariable = buildPromptContext.chatVariables.find(v => isCustomizationsIndex(v.reference));\n\tif (indexVariable && isString(indexVariable.value)) {\n\t\tconst indexFile = customInstructionsService.parseInstructionIndexFile(indexVariable.value);\n\t\tcachedInstructionIndexFile = { requestId: buildPromptContext.requestId, file: indexFile };\n\t\treturn indexFile;\n\t}\n\tcachedInstructionIndexFile = undefined;\n\treturn undefined;\n\n}\n\nexport async function assertFileNotContentExcluded(accessor: ServicesAccessor, uri: URI): Promise<void> {\n\tconst ignoreService = accessor.get(IIgnoreService);\n\tconst promptPathRepresentationService = accessor.get(IPromptPathRepresentationService);\n\n\tif (await ignoreService.isCopilotIgnored(uri)) {\n\t\tthrow new Error(`File ${promptPathRepresentationService.getFilePath(uri)} is configured to be ignored by Copilot`);\n\t}\n}\n\nexport async function isFileExternalAndNeedsConfirmation(accessor: ServicesAccessor, uri: URI, buildPromptContext?: IBuildPromptContext, options?: { readOnly?: boolean; workingDirectory?: URI }): Promise<boolean> {\n\tconst workspaceService = accessor.get(IWorkspaceService);\n\tconst tabsAndEditorsService = accessor.get(ITabsAndEditorsService);\n\tconst customInstructionsService = accessor.get(ICustomInstructionsService);\n\tconst diskSessionResources = accessor.get(IChatDiskSessionResources);\n\tconst configurationService = accessor.get(IConfigurationService);\n\tconst fileSystemService = accessor.get(IFileSystemService);\n\tconst chatDebugFileLogger = accessor.get(IChatDebugFileLoggerService);\n\tconst sessionTranscriptService = accessor.get(ISessionTranscriptService);\n\n\tconst normalizedUri = normalizePath(uri);\n\n\tconst workingDir = new WorkingDirectory(options?.workingDirectory, workspaceService);\n\tif (workingDir.getFolder(normalizedUri)) {\n\t\treturn false;","sourceCodeStart":262,"sourceCodeEnd":298,"githubUrl":"https://github.com/microsoft/vscode/blob/a94b963a32aa9749d69504576791fa29700ae46d/extensions/copilot/src/extension/tools/node/toolUtils.ts#L262-L298","documentation":"Error \"File ${promptPathRepresentationService.getFilePath(uri)} is configured to be ignored by Copilot\" thrown in microsoft/vscode.","triggerScenarios":"Thrown at extensions/copilot/src/extension/tools/node/toolUtils.ts:280 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"a94b963a32aa9749d69504576791fa29700ae46d","analyzedAt":"2026-08-12T01:08:56.794Z","schemaVersion":2},"datasetVersion":"2026-08-12T06:17:24.410Z"}