diff --git a/b9a9ca28a4e05f1e6a074517e785841a391f641bfaa2a4e99d0c2e7b0c0d4aee/crowd-code-7d484c97-88c7-4cbf-92c0-58d360b2bb981750548003842-2025_06_21-16.20.05.453/source.csv b/b9a9ca28a4e05f1e6a074517e785841a391f641bfaa2a4e99d0c2e7b0c0d4aee/crowd-code-7d484c97-88c7-4cbf-92c0-58d360b2bb981750548003842-2025_06_21-16.20.05.453/source.csv new file mode 100644 index 0000000000000000000000000000000000000000..3d424b29b01974400107ff50467c2a08e5e8d082 --- /dev/null +++ b/b9a9ca28a4e05f1e6a074517e785841a391f641bfaa2a4e99d0c2e7b0c0d4aee/crowd-code-7d484c97-88c7-4cbf-92c0-58d360b2bb981750548003842-2025_06_21-16.20.05.453/source.csv @@ -0,0 +1,14 @@ +Sequence,Time,File,RangeOffset,RangeLength,Text,Language,Type +1,1,"src/recording.ts",0,0,"import * as fs from 'node:fs'\nimport * as util from 'node:util'\nimport * as path from 'node:path'\nimport * as vscode from 'vscode'\nimport * as readline from 'node:readline'\nimport axios from 'axios';\nimport {\n getEditorFileName,\n escapeString,\n getEditorLanguage,\n notificationWithProgress,\n generateBaseFilePath,\n formatDisplayTime,\n getExportPath,\n logToOutput,\n formatSrtTime,\n getConfig,\n removeDoubleQuotes,\n unescapeString,\n addToGitignore,\n} from './utilities'\nimport { type File, ChangeType, type CSVRowBuilder, type Change, type Recording, type ConsentStatus } from './types'\nimport { extContext, statusBarItem, actionsProvider } from './extension'\n\nexport const commands = {\n openSettings: 'vs-code-recorder.openSettings',\n startRecording: 'vs-code-recorder.startRecording',\n stopRecording: 'vs-code-recorder.stopRecording',\n}\n\nexport function hasConsent(): boolean {\n\t// A simple check against the global state.\n\treturn extContext.globalState.get('dataCollectionConsent') === 'accepted'\n}\n\nexport async function ensureConsent(): Promise {\n\tlet consentStatus = extContext.globalState.get('dataCollectionConsent', 'pending')\n\n\tif (consentStatus === 'pending') {\n\t\tconst consentMessage = vscode.l10n.t('Do you consent to share your anonymized recording data for crowd-sourcing purposes? This helps improve the tool.')\n\t\tconst grantOption = vscode.l10n.t('Yes, upload data')\n\t\tconst denyOption = vscode.l10n.t('No, store locally')\n\n\t\tconst decision = await vscode.window.showInformationMessage(\n\t\t\tconsentMessage,\n\t\t\t{ modal: true },\n\t\t\tgrantOption,\n\t\t\tdenyOption\n\t\t)\n\n\t\tif (decision === grantOption) {\n\t\t\tawait extContext.globalState.update('dataCollectionConsent', 'accepted')\n\t\t\tconsentStatus = 'accepted'\n\t\t} else {\n\t\t\tawait extContext.globalState.update('dataCollectionConsent', 'declined')\n\t\t\tconsentStatus = 'declined'\n\t\t\tvscode.window.showInformationMessage(\n\t\t\t\tvscode.l10n.t('You have not consented to data collection. Recordings will be stored locally only.')\n\t\t\t)\n\t\t}\n\t}\n\n\treturn consentStatus === 'accepted'\n}\n\nexport const recording: Recording = {\n isRecording: false,\n timer: 0,\n startDateTime: null,\n endDateTime: null,\n sequence: 0,\n customFolderName: '',\n activatedFiles: new Set(),\n}\n\nlet intervalId: NodeJS.Timeout\nconst fileQueue: File[] = []\nlet isAppending = false\n\nlet uploadIntervalId: NodeJS.Timeout;\nconst sessionUuid = vscode.env.sessionId;\n\nconst API_GATEWAY_URL = 'https://knm3fmbwbi.execute-api.us-east-1.amazonaws.com/v1/recordings';\n\n\n/**\n * Builds a CSV row with the given parameters.\n *\n * @param {CSVRowBuilder} sequence - The sequence number of the change.\n * @param {CSVRowBuilder} rangeOffset - The offset of the changed range.\n * @param {CSVRowBuilder} rangeLength - The length of the changed range.\n * @param {CSVRowBuilder} text - The text of the change.\n * @param {string} type - The type of the change (optional, defaults to 'content').\n * @return {string} A CSV row string with the provided information.\n */\nexport function buildCsvRow({\n sequence,\n rangeOffset,\n rangeLength,\n text,\n type = ChangeType.CONTENT,\n}: CSVRowBuilder): string | undefined {\n if (!recording.startDateTime) {\n return\n }\n\n const time = new Date().getTime() - recording.startDateTime.getTime()\n\n if (type === ChangeType.HEADING) {\n return 'Sequence,Time,File,RangeOffset,RangeLength,Text,Language,Type\n'\n }\n\n if (type === ChangeType.TERMINAL_FOCUS || type === ChangeType.TERMINAL_COMMAND || type === ChangeType.TERMINAL_OUTPUT) {\n return `${sequence},${time},""TERMINAL"",${rangeOffset},${rangeLength},""${escapeString(text)}"",,${type}\n`\n }\n\n const editorFileName = getEditorFileName()\n return `${sequence},${time},""${editorFileName}"",${rangeOffset},${rangeLength},""${escapeString(text)}"",${getEditorLanguage()},${type}\n`\n}\n\n/**\n * Checks if the current file being edited is within the configured export path.\n * This is used to determine if the current file should be recorded or not.\n *\n * @returns {boolean} `true` if the current file is within the export path, `false` otherwise.\n */\nexport function isCurrentFileExported(): boolean {\n const editor = vscode.window.activeTextEditor\n const filename = editor?.document.fileName.replaceAll('\\', '/')\n const exportPath = getExportPath()\n if (!editor || !filename || !exportPath) {\n return false\n }\n return filename.startsWith(exportPath)\n}\n\nconst onChangeSubscription = vscode.workspace.onDidChangeTextDocument(event => {\n if (!recording.isRecording) {\n return\n }\n\n if (isCurrentFileExported()) {\n return\n }\n const editor = vscode.window.activeTextEditor\n if (editor && event.document === editor.document) {\n for (const change of event.contentChanges) {\n recording.sequence++\n addToFileQueue(\n buildCsvRow({\n sequence: recording.sequence,\n rangeOffset: change.rangeOffset,\n rangeLength: change.rangeLength,\n text: change.text,\n })\n )\n appendToFile()\n }\n }\n})\n\n/**\n * Creates the recording folder if it doesn't exist.\n * @param folderPath - The path to the recording folder.\n */\nfunction createRecordingFolder(folderPath: string): void {\n if (!fs.existsSync(folderPath)) {\n fs.mkdirSync(folderPath, { recursive: true })\n }\n}\n\n/**\n * Starts the recording process and initializes necessary variables.\n */\nexport async function startRecording(): Promise {\n if (!vscode.window.activeTextEditor) {\n vscode.window.showErrorMessage(vscode.l10n.t('No active text editor'))\n logToOutput(vscode.l10n.t('No active text editor'), 'info')\n return\n }\n \n // Check and ensure consent before starting recording\n const hasUserConsent = await ensureConsent()\n if (!hasUserConsent) {\n logToOutput('Recording not started: User declined data collection consent', 'info')\n return\n }\n \n if (recording.isRecording) {\n notificationWithProgress(vscode.l10n.t('Already recording'))\n logToOutput(vscode.l10n.t('Already recording'), 'info')\n return\n }\n const exportPath = getExportPath()\n if (!exportPath) {\n return\n }\n\n // If the setting is enabled and the path is inside the workspace, add it to .gitignore\n if (\n getConfig().get('export.addToGitignore') &&\n getConfig().get('export.exportPath')?.startsWith('${workspaceFolder}')\n ) {\n await addToGitignore()\n }\n\n recording.startDateTime = new Date()\n recording.activatedFiles = new Set()\n\n // Ask for folder name if enabled in settings\n let customFolderName: string | undefined\n if (getConfig().get('recording.askFolderName')) {\n customFolderName = await vscode.window.showInputBox({\n prompt: vscode.l10n.t('Enter a name for the recording folder'),\n placeHolder: vscode.l10n.t('Enter recording folder name'),\n })\n if (!customFolderName) {\n stopRecording(true)\n return\n }\n recording.customFolderName = customFolderName\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n stopRecording(true)\n return\n }\n\n // Create the recording folder\n const folderPath = path.dirname(path.join(exportPath, baseFilePath))\n createRecordingFolder(folderPath)\n\n recording.isRecording = true\n recording.timer = 0\n recording.endDateTime = null\n recording.sequence = 0\n intervalId = setInterval(() => {\n recording.timer++\n updateStatusBarItem()\n }, 1000)\n notificationWithProgress(vscode.l10n.t('Recording started'))\n logToOutput(vscode.l10n.t('Recording started'), 'info')\n\n const editorText = vscode.window.activeTextEditor?.document.getText()\n const activeEditorUri = vscode.window.activeTextEditor?.document.uri.toString()\n\n if (editorText !== undefined && activeEditorUri) {\n recording.sequence++\n const csvRow = {\n sequence: recording.sequence,\n rangeOffset: 0,\n rangeLength: 0,\n text: editorText,\n type: ChangeType.TAB,\n }\n addToFileQueue(buildCsvRow({ ...csvRow, type: ChangeType.HEADING }))\n addToFileQueue(buildCsvRow(csvRow))\n appendToFile()\n recording.activatedFiles.add(activeEditorUri)\n actionsProvider.setCurrentFile(vscode.window.activeTextEditor.document.fileName)\n }\n\n extContext.subscriptions.push(onChangeSubscription)\n updateStatusBarItem()\n actionsProvider.setRecordingState(true)\n\n // Set up a timer to send data to the Lambda endpoint periodically\n uploadIntervalId = setInterval(async () => {\n if (!exportPath) {\n return;\n }\n\n // Only upload data if user has given consent\n if (!hasConsent()) {\n return;\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`);\n const extensionVersion = extContext.extension.packageJSON.version as string;\n const userId = extContext.globalState.get('userId');\n\n try {\n const fileContent = await fs.promises.readFile(filePath, 'utf-8');\n\n if (fileContent) {\n const payload = {\n fileName: `${baseFilePath}.csv`,\n content: fileContent,\n version: extensionVersion,\n userId: userId\n };\n await axios.post(API_GATEWAY_URL, payload);\n console.log(`Successfully sent ${payload.fileName} to Lambda endpoint.`);\n }\n } catch (error: any) {\n if (error.code === 'ENOENT') {\n console.warn(`File not found at ${filePath}. It might be created on first write.`);\n } else {\n console.error(`Error sending data to Lambda: ${error.message}`);\n if (axios.isAxiosError(error) && error.response) {\n console.error(""Lambda response status:"", error.response.status);\n console.error(""Lambda response data:"", error.response.data);\n }\n }\n }\n }, 5 * 60 * 1000); // 5 minutes\n}\n\n/**\n * Stops the recording process and finalizes the recording data.\n * @param context - The extension context.\n */\nexport function stopRecording(force = false): Promise | void {\n if (!recording.isRecording) {\n notificationWithProgress(vscode.l10n.t('Not recording'))\n return\n }\n\n recording.isRecording = false\n clearInterval(intervalId)\n clearInterval(uploadIntervalId); // Clear the upload timer\n recording.timer = 0\n recording.activatedFiles?.clear()\n const index = extContext.subscriptions.indexOf(onChangeSubscription)\n if (index !== -1) {\n extContext.subscriptions.splice(index, 1)\n }\n updateStatusBarItem()\n actionsProvider.setRecordingState(false)\n if (force) {\n notificationWithProgress(vscode.l10n.t('Recording cancelled'))\n logToOutput(vscode.l10n.t('Recording cancelled'), 'info')\n recording.customFolderName = undefined\n return\n }\n notificationWithProgress(vscode.l10n.t('Recording finished'))\n logToOutput(vscode.l10n.t('Recording finished'), 'info')\n recording.endDateTime = new Date()\n return processCsvFile().then(() => {\n // Reset customFolderName after processing is complete\n recording.customFolderName = undefined\n }).catch(err => {\n logToOutput(vscode.l10n.t('Error processing CSV file during stop: {0}', String(err)), 'error')\n recording.customFolderName = undefined\n });\n}\n\n/**\n * Appends data from the file queue to the appropriate file in the workspace.\n */\nexport async function appendToFile(): Promise {\n if (isAppending) {\n return\n }\n isAppending = true\n\n const exportPath = getExportPath()\n if (!exportPath) {\n logToOutput('Export path not available in appendToFile, stopping recording.', 'error')\n stopRecording(true)\n isAppending = false\n return\n }\n\n while (fileQueue.length > 0) {\n const itemToAppend = fileQueue.shift()\n if (!itemToAppend) {\n continue\n }\n\n const filePath = path.join(exportPath, itemToAppend.name)\n\n try {\n const directory = path.dirname(filePath)\n if (!fs.existsSync(directory)) {\n fs.mkdirSync(directory, { recursive: true })\n }\n await fs.promises.appendFile(filePath, itemToAppend.content)\n } catch (err) {\n logToOutput(\n `Failed to append to file ${filePath}: ${err}. Item dropped. Content: ${itemToAppend.content.substring(0, 100)}...`,\n 'error'\n )\n }\n }\n isAppending = false\n}\n\n/**\n * Appends an SRT line to the file queue for the previous change.\n *\n * This function is responsible for generating the SRT format line for the previous change and adding it to the file queue.\n * It checks if the SRT export format is enabled, and if so, it generates the SRT line for the previous change and adds it to the file queue.\n *\n * @param processedChanges - An array of processed changes.\n * @param i - The index of the current change in the processedChanges array.\n * @param exportInSrt - A boolean indicating whether the SRT export format is enabled.\n */\nfunction addToSRTFile(processedChanges: Change[], i: number, exportInSrt: boolean) {\n if (!exportInSrt) {\n return\n }\n if (i === 0) {\n return\n }\n addToFileQueue(\n addSrtLine(\n processedChanges[i - 1].sequence,\n processedChanges[i - 1].startTime,\n processedChanges[i - 1].endTime,\n JSON.stringify({\n text: processedChanges[i - 1].text,\n file: processedChanges[i - 1].file,\n language: processedChanges[i - 1].language,\n })\n ),\n 'srt',\n true\n )\n}\n\n/**\n * Returns the new text content based on the change type and the previous change.\n * @param type - The type of the change.\n * @param text - The text of the change.\n * @param previousChange - The previous change.\n * @param rangeOffset - The offset of the range.\n * @param rangeLength - The length of the range.\n */\nfunction getNewTextContent(\n type: string,\n text: string,\n previousChange: Change | null,\n rangeOffset: number,\n rangeLength: number\n): string {\n if (type === ChangeType.TAB) {\n return text\n }\n if (!previousChange) {\n return ''\n }\n return getUpdatedText(previousChange.text, rangeOffset, rangeLength, text)\n}\n\n/**\n * Processes a single CSV line and returns the processed change\n */\nasync function processCSVLine(line: string, previousChange: Change | null): Promise {\n const lineArr = line.split(/,(?=(?:[^""]*""[^""]*"")*[^""]*$)/)\n\n if (Number.isNaN(Number.parseInt(lineArr[0]))) {\n return null\n }\n\n const time = Number.parseInt(lineArr[1])\n const file = removeDoubleQuotes(lineArr[2])\n const rangeOffset = Number.parseInt(lineArr[3])\n const rangeLength = Number.parseInt(lineArr[4])\n const text = unescapeString(removeDoubleQuotes(lineArr[5]))\n const language = lineArr[6]\n const type = lineArr[7]\n\n const newText = getNewTextContent(type, text, previousChange, rangeOffset, rangeLength)\n\n /**\n * Skip exporting changes with the same values to the previous change.\n */\n if (\n previousChange &&\n time === previousChange.startTime &&\n file === previousChange.file &&\n newText === previousChange.text &&\n language === previousChange.language\n ) {\n return null\n }\n\n return {\n sequence: previousChange ? previousChange.sequence + 1 : 1,\n file,\n startTime: time,\n endTime: 0,\n language,\n text: newText,\n }\n}\n\n/**\n * Returns the updated text content based on the previous text, range offset, range length, and new text.\n * @param previousText - The previous text.\n * @param rangeOffset - The offset of the range.\n * @param rangeLength - The length of the range.\n * @param newText - The new text.\n */\nfunction getUpdatedText(\n previousText: string,\n rangeOffset: number,\n rangeLength: number,\n newText: string\n): string {\n const textArray = previousText.split('')\n textArray.splice(rangeOffset, rangeLength, newText)\n return textArray.join('')\n}\n\n/**\n * Processes the CSV file and generates the necessary output files.\n */\nasync function processCsvFile(): Promise {\n if (!validateRecordingState()) {\n return\n }\n\n const exportFormats = getConfig().get('export.exportFormats', [])\n if (exportFormats.length === 0) {\n logToOutput(vscode.l10n.t('No export formats specified'), 'info')\n vscode.window.showWarningMessage(vscode.l10n.t('No export formats specified'))\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n return\n }\n\n if (!recording.startDateTime) {\n return\n }\n\n // Use the same custom folder name for reading the source file\n const baseFilePathSource = generateBaseFilePath(\n recording.startDateTime,\n false,\n recording.customFolderName,\n sessionUuid\n )\n if (!baseFilePathSource) {\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePathSource}.csv`)\n\n try {\n if (!fs.existsSync(filePath)) {\n throw new Error(`Source file not found: ${filePath}`)\n }\n\n const processedChanges: Change[] = []\n\n const rl = readline.createInterface({\n input: fs.createReadStream(filePath),\n crlfDelay: Number.POSITIVE_INFINITY,\n })\n\n for await (const line of rl) {\n const previousChange = processedChanges[processedChanges.length - 1]\n const change = await processCSVLine(line, previousChange)\n\n if (change) {\n if (previousChange) {\n previousChange.endTime = change.startTime\n if (exportFormats.includes('SRT')) {\n addToSRTFile(processedChanges, processedChanges.length, true)\n }\n }\n processedChanges.push(change)\n }\n }\n\n rl.close();\n\n return finalizeRecording(processedChanges, exportFormats);\n\n } catch (err) {\n vscode.window.showErrorMessage(`Error processing recording: ${err}`)\n logToOutput(vscode.l10n.t('Error processing CSV file: {0}', String(err)), 'error')\n return Promise.resolve(); // Resolve even on error after showing message\n }\n}\n\nfunction validateRecordingState(): boolean {\n if (!vscode.workspace.workspaceFolders) {\n logToOutput(\n vscode.l10n.t(\n 'No workspace folder found. To process the recording is needed a workspace folder'\n ),\n 'error'\n )\n return false\n }\n if (!recording.endDateTime || !recording.startDateTime) {\n logToOutput(vscode.l10n.t('Recording date time is not properly set'), 'error')\n return false\n }\n return true\n}\n\nfunction finalizeRecording(processedChanges: Change[], exportFormats: string[]): Promise {\n const lastChange = processedChanges[processedChanges.length - 1]\n if (lastChange && recording.endDateTime && recording.startDateTime) {\n lastChange.endTime = recording.endDateTime.getTime() - recording.startDateTime.getTime()\n if (exportFormats.includes('SRT')) {\n addToSRTFile(processedChanges, processedChanges.length, true)\n }\n }\n if (exportFormats.includes('JSON')) {\n addToFileQueue(JSON.stringify(processedChanges), 'json', true)\n }\n return appendToFile().then(() => {\n // Refresh the recordFiles view after export is complete\n vscode.commands.executeCommand('vs-code-recorder.refreshRecordFiles')\n })\n}\n\n/**\n * Adds a line to the SRT file format.\n * @param sequence - The sequence number of the change.\n * @param start - The start time of the change.\n * @param end - The end time of the change.\n * @param text - The text of the change.\n * @returns A string representing a line in the SRT file format.\n */\nfunction addSrtLine(sequence: number, start: number, end: number, text: string): string {\n return `${sequence}\n${formatSrtTime(start)} --> ${formatSrtTime(end)}\n${text}\n\n`\n}\n\n/**\n * Adds content to the file queue.\n * @param content - The content to add.\n * @param fileExtension - The file extension (optional, defaults to 'csv').\n */\nexport function addToFileQueue(\n content: string | undefined,\n fileExtension = 'csv',\n isExport = false\n): void {\n if (!content) {\n return\n }\n if (!recording.startDateTime) {\n return\n }\n // Use the same custom name throughout the recording session\n const baseFilePath = generateBaseFilePath(recording.startDateTime, isExport, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n return\n }\n fileQueue.push({\n name: `${baseFilePath}.${fileExtension}`,\n content: content,\n })\n}\n\n/**\n * Updates the status bar item with the current recording status and time.\n */\nexport function updateStatusBarItem(): void {\n const editor = vscode.window.activeTextEditor\n if (!editor && !recording) {\n statusBarItem.hide()\n return\n }\n if (recording.isRecording) {\n if (getConfig().get('appearance.showTimer') === false) {\n statusBarItem.text = '$(debug-stop)'\n statusBarItem.tooltip = vscode.l10n.t('Current time: {0}', formatDisplayTime(recording.timer))\n }\n if (getConfig().get('appearance.showTimer') === true) {\n statusBarItem.text = `$(debug-stop) ${formatDisplayTime(recording.timer)}`\n statusBarItem.tooltip = vscode.l10n.t('Stop Recording')\n }\n statusBarItem.command = commands.stopRecording\n } else {\n if (getConfig().get('appearance.minimalMode') === true) {\n statusBarItem.text = '$(circle-large-filled)'\n } else {\n statusBarItem.text = `$(circle-large-filled) ${vscode.l10n.t('Start Recording')}`\n }\n statusBarItem.tooltip = vscode.l10n.t('Start Recording')\n statusBarItem.command = commands.startRecording\n }\n statusBarItem.show()\n}",typescript,tab +2,91,"extension-output-pdoom-org.crowd-code-#1-crowd-code",0,0,"4:20:05 PM [info] Activating crowd-code\n4:20:05 PM [info] Current consent status: granted\n4:20:05 PM [info] Recording started\n4:20:05 PM [info] Consent check result: true\n",Log,tab +3,27752,"src/recording.ts",0,0,"",typescript,tab +4,28122,"src/recording.ts",11619,0,"",typescript,selection_keyboard +5,28305,"src/recording.ts",11620,0,"",typescript,selection_command +6,28409,"src/recording.ts",11620,0,"n",typescript,content +7,28409,"src/recording.ts",11621,0,"",typescript,selection_keyboard +8,29149,"src/recording.ts",11620,0,"",typescript,selection_command +9,29316,"src/recording.ts",11620,1,"",typescript,content +10,31043,"src/recording.ts",11620,0,"n",typescript,content +11,31049,"src/recording.ts",11620,0,"",typescript,selection_command +12,31606,"src/recording.ts",11620,1,"",typescript,content +13,32118,"src/recording.ts",11622,0,"",typescript,selection_command diff --git a/b9a9ca28a4e05f1e6a074517e785841a391f641bfaa2a4e99d0c2e7b0c0d4aee/crowd-code-7d484c97-88c7-4cbf-92c0-58d360b2bb981750548003842-2025_06_21-17.50.25.940/source.csv b/b9a9ca28a4e05f1e6a074517e785841a391f641bfaa2a4e99d0c2e7b0c0d4aee/crowd-code-7d484c97-88c7-4cbf-92c0-58d360b2bb981750548003842-2025_06_21-17.50.25.940/source.csv new file mode 100644 index 0000000000000000000000000000000000000000..3dd2316254d5fc2e335b000464005cc244c012af --- /dev/null +++ b/b9a9ca28a4e05f1e6a074517e785841a391f641bfaa2a4e99d0c2e7b0c0d4aee/crowd-code-7d484c97-88c7-4cbf-92c0-58d360b2bb981750548003842-2025_06_21-17.50.25.940/source.csv @@ -0,0 +1,2471 @@ +Sequence,Time,File,RangeOffset,RangeLength,Text,Language,Type +1,1,"test-workspace/.vscode/settings.json",0,0,"{\r\n\t""crowdCode.export.exportPath"": ""${workspaceFolder}/crowd-code/"",\r\n\t""crowdCode.export.createPathOutsideWorkspace"": false,\r\n\t""crowdCode.export.exportFormats"": [""JSON"", ""SRT""],\r\n\t""crowdCode.appearance.minimalMode"": false,\r\n\t""crowdCode.appearance.showTimer"": true\r\n}\r\n",jsonc,tab +2,66,"extension-output-pdoom-org.crowd-code-#4-crowd-code",0,0,"5:50:25 PM [info] Activating crowd-code\n5:50:25 PM [info] Recording started\n",Log,tab +3,20030,"test-workspace/.vscode/settings.json",0,0,"",jsonc,tab +4,35889,".gitignore",0,0,"node_modules\ndist\n*.vsix\n*.ai\nvs-code-recorder\n.vscode-test/\nout\ntest-workspace/vscode-recorder/*",ignore,tab +5,36720,".gitignore",13,0,"",ignore,selection_command +6,36961,".gitignore",18,0,"",ignore,selection_command +7,36990,".gitignore",25,0,"",ignore,selection_command +8,37356,".gitignore",18,0,"",ignore,selection_command +9,37509,".gitignore",13,0,"",ignore,selection_command +10,37748,".gitignore",18,0,"",ignore,selection_command +11,37999,".gitignore",25,0,"",ignore,selection_command +12,38027,".gitignore",30,0,"",ignore,selection_command +13,38057,".gitignore",47,0,"",ignore,selection_command +14,38191,".gitignore",61,0,"",ignore,selection_command +15,38381,".gitignore",47,0,"",ignore,selection_command +16,38561,".gitignore",30,0,"",ignore,selection_command +17,38948,".gitignore",46,0,"\n",ignore,content +18,39087,".gitignore",47,0,"c",ignore,content +19,39088,".gitignore",48,0,"",ignore,selection_keyboard +20,39264,".gitignore",48,0,"r",ignore,content +21,39265,".gitignore",49,0,"",ignore,selection_keyboard +22,39347,".gitignore",49,0,"o",ignore,content +23,39347,".gitignore",50,0,"",ignore,selection_keyboard +24,39420,".gitignore",50,0,"w",ignore,content +25,39420,".gitignore",51,0,"",ignore,selection_keyboard +26,39524,".gitignore",51,0,"d",ignore,content +27,39525,".gitignore",52,0,"",ignore,selection_keyboard +28,39782,".gitignore",52,0,"c",ignore,content +29,39783,".gitignore",53,0,"",ignore,selection_keyboard +30,40051,".gitignore",52,1,"",ignore,content +31,40298,".gitignore",52,0,"-",ignore,content +32,40299,".gitignore",53,0,"",ignore,selection_keyboard +33,40600,".gitignore",53,0,"c",ignore,content +34,40601,".gitignore",54,0,"",ignore,selection_keyboard +35,40691,".gitignore",54,0,"o",ignore,content +36,40692,".gitignore",55,0,"",ignore,selection_keyboard +37,40800,".gitignore",55,0,"d",ignore,content +38,40801,".gitignore",56,0,"",ignore,selection_keyboard +39,40845,".gitignore",56,0,"e",ignore,content +40,40846,".gitignore",57,0,"",ignore,selection_keyboard +41,41105,".gitignore",57,0,"/",ignore,content +42,41106,".gitignore",58,0,"",ignore,selection_keyboard +43,41213,".gitignore",57,0,"",ignore,selection_command +44,45213,"test-workspace/.vscode/settings.json",0,0,"",jsonc,tab +45,45217,"test-workspace/.vscode/settings.json",3,0,"",jsonc,selection_command +46,46154,"src/test/recording.test.ts",0,0,"import * as assert from 'node:assert'\r\nimport * as vscode from 'vscode'\r\nimport * as path from 'node:path'\r\nimport * as fs from 'node:fs'\r\nimport { setDefaultOptions, getConfig } from '../utilities'\r\nimport { statusBarItem } from '../extension'\r\n\r\n/**\r\n * Waits for the specified number of milliseconds and then resolves the returned Promise.\r\n * @param ms - The number of milliseconds to wait. Defaults to 500 ms.\r\n * @returns A Promise that resolves after the specified number of milliseconds.\r\n */\r\nconst waitMs = (ms = 500) => new Promise(resolve => setTimeout(resolve, ms))\r\n\r\nsuite('Recording Tests', () => {\r\n\tconst publisher = 'pdoom-org'\r\n\tconst extensionName = 'crowd-code'\r\n\r\n\tlet workspaceFolder: string\r\n\r\n\tlet statusBarSpy: vscode.StatusBarItem\r\n\r\n\tvscode.window.showInformationMessage('Start all tests.')\r\n\r\n\tsetup(async () => {\r\n\t\t// biome-ignore lint/style/noNonNullAssertion: the workspace folder is created by the test suite\r\n\t\tworkspaceFolder = vscode.workspace.workspaceFolders![0].uri.fsPath\r\n\t\tsetDefaultOptions()\r\n\t\t// set workspace export path\r\n\t\tgetConfig().update(\r\n\t\t\t'export.exportPath',\r\n\t\t\t'${workspaceFolder}',\r\n\t\t\tvscode.ConfigurationTarget.Workspace\r\n\t\t)\r\n\t\tstatusBarSpy = statusBarItem\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t})\r\n\r\n\tteardown(async () => {\r\n\t\t// First ensure recording is stopped\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\r\n\t\t// Add small delay to ensure VS Code releases file handles\r\n\t\tawait vscode.commands.executeCommand('workbench.action.closeAllEditors')\r\n\t\tawait waitMs(100)\r\n\r\n\t\tif (workspaceFolder) {\r\n\t\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\t\tfor (const file of files) {\r\n\t\t\t\tif (file !== '.vscode') {\r\n\t\t\t\t\tfs.unlinkSync(path.join(workspaceFolder, file))\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t})\r\n\r\n\ttest('Should be visible the status bar item', async () => {\r\n\t\t// Wait for status bar item to be created\r\n\t\tawait waitMs()\r\n\r\n\t\tassert.strictEqual(\r\n\t\t\tstatusBarSpy.text.includes('$(circle-large-filled)'),\r\n\t\t\ttrue,\r\n\t\t\t'Should be visible the circle icon'\r\n\t\t)\r\n\t\tassert.strictEqual(\r\n\t\t\tstatusBarSpy.tooltip?.toString().includes('Start Recording'),\r\n\t\t\ttrue,\r\n\t\t\t'The tooltip should be ""Start Recording""'\r\n\t\t)\r\n\t})\r\n\r\n\ttest('Should start recording when start command is executed', async () => {\r\n\t\t// Execute start recording command\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\r\n\t\t// Get status bar state through the extension's status bar item\r\n\t\tassert.strictEqual(\r\n\t\t\tstatusBarSpy.text.includes('$(debug-stop)'),\r\n\t\t\ttrue,\r\n\t\t\t'Should be visible the stop icon'\r\n\t\t)\r\n\t\tassert.strictEqual(\r\n\t\t\tstatusBarSpy.tooltip?.toString().includes('Stop Recording'),\r\n\t\t\ttrue,\r\n\t\t\t""Status bar item tooltip should be 'Stop Recording'""\r\n\t\t)\r\n\t})\r\n\r\n\ttest('Should create CSV file when recording starts', async () => {\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\r\n\t\t// Wait for file creation\r\n\t\tawait waitMs(1000)\r\n\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst csvFile = files.find(file => file.endsWith('.csv'))\r\n\r\n\t\tassert.ok(csvFile, 'CSV file should be created')\r\n\r\n\t\t// Cleanup\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t})\r\n\r\n\ttest('Should stop recording when stop command is executed', async () => {\r\n\t\t// Start recording first\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs(1000)\r\n\r\n\t\t// Stop recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\r\n\t\t// Check status bar\r\n\t\tassert.strictEqual(statusBarSpy.text.includes('$(circle-large-filled)'), true)\r\n\t\tassert.strictEqual(statusBarSpy.tooltip?.toString().includes('Start Recording'), true)\r\n\t})\r\n\r\n\ttest('Should not generate output files when stopping recording', async () => {\r\n\t\t// Configure export formats (none)\r\n\t\tawait getConfig().update('exportFormats', [])\r\n\r\n\t\t// Start and stop recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs(1000)\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t\tawait waitMs()\r\n\r\n\t\t// Check for output files\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst jsonFile = files.find(file => file.endsWith('.json'))\r\n\t\tconst srtFile = files.find(file => file.endsWith('.srt'))\r\n\r\n\t\tassert.ok(!jsonFile, 'JSON file should NOT be created')\r\n\t\tassert.ok(!srtFile, 'SRT file should NOT be created')\r\n\t})\r\n\r\n\ttest('Should generate JSON output file when stopping recording', async () => {\r\n\t\t// Configure export formats\r\n\t\tawait getConfig().update('exportFormats', ['JSON'])\r\n\r\n\t\t// Start and stop recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs(1000)\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t\tawait waitMs()\r\n\r\n\t\t// Check for output files\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst jsonFile = files.find(file => file.endsWith('.json'))\r\n\t\tconst srtFile = files.find(file => file.endsWith('.srt'))\r\n\r\n\t\tassert.ok(jsonFile, 'JSON file should be created')\r\n\t\tassert.ok(!srtFile, 'SRT file should NOT be created')\r\n\t})\r\n\r\n\ttest('Should generate SRT output file when stopping recording', async () => {\r\n\t\t// Configure export formats\r\n\t\tawait getConfig().update('exportFormats', ['SRT'])\r\n\r\n\t\t// Start and stop recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs(1000)\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t\tawait waitMs()\r\n\r\n\t\t// Check for output files\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst jsonFile = files.find(file => file.endsWith('.json'))\r\n\t\tconst srtFile = files.find(file => file.endsWith('.srt'))\r\n\r\n\t\tassert.ok(!jsonFile, 'JSON file should NOT be created')\r\n\t\tassert.ok(srtFile, 'SRT file should be created')\r\n\t})\r\n\r\n\ttest('Should generate output files (JSON, SRT) when stopping recording', async () => {\r\n\t\t// Configure export formats\r\n\t\tawait getConfig().update('exportFormats', ['JSON', 'SRT'])\r\n\r\n\t\t// Start and stop recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs(1000)\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t\tawait waitMs()\r\n\r\n\t\t// Check for output files\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst jsonFile = files.find(file => file.endsWith('.json'))\r\n\t\tconst srtFile = files.find(file => file.endsWith('.srt'))\r\n\r\n\t\tassert.ok(jsonFile, 'JSON file should be created')\r\n\t\tassert.ok(srtFile, 'SRT file should be created')\r\n\t})\r\n\r\n\tconst testCsvFile = (csvPath: string, expectedLines: string[]) => {\r\n\t\tconst csvContent = fs.readFileSync(csvPath, 'utf-8')\r\n\t\tconst lines = csvContent.split('\n').filter(line => line.trim() !== '')\r\n\r\n\t\tassert.strictEqual(\r\n\t\t\tlines.length,\r\n\t\t\texpectedLines.length,\r\n\t\t\t'Number of lines in CSV file should match expected lines'\r\n\t\t)\r\n\r\n\t\tfor (let i = 0; i < lines.length; i++) {\r\n\t\t\tconst line = lines[i]\r\n\t\t\tlet expectedLine = expectedLines[i]\r\n\r\n\t\t\tconst timestampIndex = expectedLine.indexOf('%n')\r\n\t\t\tif (timestampIndex !== -1) {\r\n\t\t\t\tconst commaIndex = expectedLine.indexOf(',', timestampIndex + 1)\r\n\t\t\t\texpectedLine = expectedLine.replace('%n', line.substring(0, commaIndex))\r\n\t\t\t}\r\n\t\t\tassert.strictEqual(\r\n\t\t\t\tlines[i],\r\n\t\t\t\texpectedLines[i],\r\n\t\t\t\t`Line ${i + 1} in CSV file should match expected line`\r\n\t\t\t)\r\n\t\t}\r\n\t}\r\n\r\n\ttest('Should record file changes and verify exports', async () => {\r\n\t\t// Create and write to new file using VS Code API\r\n\t\tconst testFileUri = vscode.Uri.file(path.join(workspaceFolder, 'test.txt'))\r\n\t\tconst initialContent = 'This is an example recording'\r\n\t\tawait vscode.workspace.fs.writeFile(testFileUri, Buffer.from(''))\r\n\r\n\t\t// Open file in VS Code\r\n\t\tconst doc = await vscode.workspace.openTextDocument(testFileUri)\r\n\t\tconst editor = await vscode.window.showTextDocument(doc)\r\n\r\n\t\t// Start recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs()\r\n\r\n\t\t// Get CSV path\r\n\t\tconst csvFilename = fs.readdirSync(workspaceFolder).find(f => f.endsWith('.csv'))\r\n\r\n\t\tassert.strictEqual(csvFilename !== undefined, true, 'CSV file should be created')\r\n\r\n\t\tif (csvFilename === undefined) {\r\n\t\t\treturn\r\n\t\t}\r\n\t\tconst csvPath = path.join(workspaceFolder, csvFilename)\r\n\r\n\t\tconst csvExpectedLines = [\r\n\t\t\t'Sequence,Time,File,RangeOffset,RangeLength,Text,Language,Type',\r\n\t\t\t'1,%n,""test.txt"",0,0,"""",plaintext,tab',\r\n\t\t]\r\n\t\ttestCsvFile(csvPath, csvExpectedLines)\r\n\r\n\t\tawait editor.edit(editBuilder => {\r\n\t\t\teditBuilder.insert(new vscode.Position(0, 0), initialContent)\r\n\t\t})\r\n\t\tawait waitMs(1000)\r\n\r\n\t\tcsvExpectedLines.push('2,%n,""test.txt"",0,0,""This is an example recording"",plaintext,content')\r\n\t\ttestCsvFile(csvPath, csvExpectedLines)\r\n\r\n\t\t// Select text to remove\r\n\t\tconst textToRemove = 'n example'\r\n\t\tconst startPos = initialContent.indexOf(textToRemove)\r\n\t\tawait editor.edit(editBuilder => {\r\n\t\t\teditBuilder.replace(\r\n\t\t\t\tnew vscode.Range(\r\n\t\t\t\t\tnew vscode.Position(0, startPos),\r\n\t\t\t\t\tnew vscode.Position(0, startPos + textToRemove.length)\r\n\t\t\t\t),\r\n\t\t\t\t''\r\n\t\t\t)\r\n\t\t})\r\n\t\tawait waitMs(1000)\r\n\r\n\t\tcsvExpectedLines.push('3,%n,""test.txt"",0,0,""This is a recording"",plaintext,content')\r\n\t\ttestCsvFile(csvPath, csvExpectedLines)\r\n\r\n\t\t// Stop recording and wait for export\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t\tawait waitMs(1000)\r\n\r\n\t\t// Verify exports\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst jsonFile = files.find(f => f.endsWith('.json'))\r\n\t\tconst srtFile = files.find(f => f.endsWith('.srt'))\r\n\r\n\t\tif (jsonFile) {\r\n\t\t\tconst jsonContent = JSON.parse(fs.readFileSync(path.join(workspaceFolder, jsonFile), 'utf-8'))\r\n\t\t\t// biome-ignore lint/suspicious/noExplicitAny: \r\n\t\t\tassert.ok(jsonContent.some((change: any) => change.text.includes(initialContent)))\r\n\t\t\t// biome-ignore lint/suspicious/noExplicitAny: \r\n\t\t\tassert.ok(jsonContent.some((change: any) => change.text.includes('This is a recording')))\r\n\t\t}\r\n\r\n\t\tif (srtFile) {\r\n\t\t\tconst srtContent = fs.readFileSync(path.join(workspaceFolder, srtFile), 'utf-8')\r\n\t\t\tassert.ok(srtContent.includes(initialContent))\r\n\t\t\tassert.ok(srtContent.includes('This is a recording'))\r\n\t\t}\r\n\t})\r\n})\r\n",typescript,tab +47,46165,"src/test/recording.test.ts",616,0,"",typescript,selection_command +48,46882,"src/utilities.ts",0,0,"import * as vscode from 'vscode'\r\nimport * as fs from 'node:fs'\r\nimport * as path from 'node:path'\r\nimport { contributes } from '../package.json'\r\n\r\ninterface DefaultConfiguration {\r\n\t[key: string]: (typeof defaultConfiguration)[keyof typeof defaultConfiguration]\r\n}\r\n\r\nconst defaultConfiguration = contributes.configuration.properties\r\n\r\nexport const outputChannel = vscode.window.createOutputChannel('crowd-code')\r\n\r\n/**\r\n * Retrieves the configuration object for the 'crowdCode' extension.\r\n *\r\n * @returns The configuration object for the 'crowdCode' extension.\r\n */\r\nexport function getConfig() {\r\n\treturn vscode.workspace.getConfiguration('crowdCode')\r\n}\r\n\r\n/**\r\n * Creates a directory at the specified path if it does not already exist.\r\n *\r\n * @param path - The path of the directory to create.\r\n * @returns Void.\r\n */\r\nexport async function createPath(path: string) {\r\n\t// If the setting is enabled and the path is inside the workspace, add it to .gitignore\r\n\tif (\r\n\t\tgetConfig().get('export.addToGitignore') &&\r\n\t\tgetConfig().get('export.exportPath')?.startsWith('${workspaceFolder}')\r\n\t) {\r\n\t\tawait addToGitignore()\r\n\t}\r\n\r\n\tif (!fs.existsSync(path)) {\r\n\t\tfs.mkdirSync(path)\r\n\t}\r\n}\r\n\r\n/**\r\n * Retrieves the export path for the crowd-code extension, handling various scenarios such as:\r\n * - If no export path is specified, it prompts the user to reset to default or open the settings.\r\n * - If the export path starts with '${workspaceFolder}', it replaces it with the actual workspace path.\r\n * - If the export path does not exist and the 'export.createPathOutsideWorkspace' setting is false, it prompts the user to reset to default or open the settings.\r\n * - It trims, normalizes, and updates the export path in the extension settings.\r\n *\r\n * @returns The normalized and updated export path, or `undefined` if an error occurred.\r\n */\r\nexport function getExportPath(): string | undefined {\r\n\tconst exportPath = getConfig().get('export.exportPath')\r\n\tlet outputExportPath = exportPath\r\n\tconst resetToDefaultMessage = vscode.l10n.t('Reset to default')\r\n\tconst openSettingsMessage = vscode.l10n.t('Open Settings')\r\n\tconst cancelMessage = vscode.l10n.t('Cancel')\r\n\r\n\t/**\r\n\t * Handles the user's selection when prompted to reset the export path to the default or open the settings.\r\n\t *\r\n\t * @param selection - The user's selection, which can be 'Reset to default', 'Open Settings', or 'Cancel'.\r\n\t * @returns Void.\r\n\t */\r\n\tfunction handleSelection(selection: string | undefined) {\r\n\t\tif (selection === resetToDefaultMessage) {\r\n\t\t\tgetConfig().update('export.exportPath', undefined, vscode.ConfigurationTarget.Global)\r\n\t\t}\r\n\t\tif (selection === vscode.l10n.t('Open Settings')) {\r\n\t\t\tvscode.commands.executeCommand(\r\n\t\t\t\t'workbench.action.openSettings',\r\n\t\t\t\t'crowdCode.export.exportPath'\r\n\t\t\t)\r\n\t\t}\r\n\t}\r\n\r\n\tif (!outputExportPath) {\r\n\t\tconst exportPathNotFoundMessage = vscode.l10n.t('No export path specified')\r\n\t\tvscode.window\r\n\t\t\t.showErrorMessage(\r\n\t\t\t\texportPathNotFoundMessage,\r\n\t\t\t\tresetToDefaultMessage,\r\n\t\t\t\topenSettingsMessage,\r\n\t\t\t\tcancelMessage\r\n\t\t\t)\r\n\t\t\t.then(selection => handleSelection(selection))\r\n\t\tlogToOutput(exportPathNotFoundMessage, 'error')\r\n\t\treturn\r\n\t}\r\n\r\n\tif (outputExportPath?.startsWith('${workspaceFolder}')) {\r\n\t\tconst workspacePath = vscode.workspace.workspaceFolders?.[0].uri.fsPath\r\n\t\tif (!workspacePath) {\r\n\t\t\tconst errorMessage = vscode.l10n.t('error.workspaceFolderNotFound')\r\n\t\t\tvscode.window.showErrorMessage(errorMessage)\r\n\t\t\tlogToOutput(errorMessage, 'error')\r\n\t\t\treturn\r\n\t\t}\r\n\t\toutputExportPath = outputExportPath.replace('${workspaceFolder}', workspacePath)\r\n\t\tcreatePath(outputExportPath)\r\n\t} else {\r\n\t\tif (\r\n\t\t\t!fs.existsSync(outputExportPath) &&\r\n\t\t\tgetConfig().get('export.createPathOutsideWorkspace', false) === false\r\n\t\t) {\r\n\t\t\tconst exportPathNotFoundMessage = vscode.l10n.t('Export path does not exist')\r\n\t\t\tvscode.window\r\n\t\t\t\t.showErrorMessage(\r\n\t\t\t\t\texportPathNotFoundMessage,\r\n\t\t\t\t\tresetToDefaultMessage,\r\n\t\t\t\t\topenSettingsMessage,\r\n\t\t\t\t\tcancelMessage\r\n\t\t\t\t)\r\n\t\t\t\t// deepcode ignore PromiseNotCaughtGeneral: catch method not available\r\n\t\t\t\t.then(selection => handleSelection(selection))\r\n\t\t\tlogToOutput(exportPathNotFoundMessage, 'error')\r\n\t\t\treturn\r\n\t\t}\r\n\t\tcreatePath(outputExportPath)\r\n\t}\r\n\r\n\toutputExportPath = outputExportPath.trim()\r\n\toutputExportPath = outputExportPath.replaceAll('\\', '/')\r\n\tif (!outputExportPath.endsWith('/')) {\r\n\t\toutputExportPath += '/'\r\n\t}\r\n\r\n\tif (!exportPath?.startsWith('${workspaceFolder}')) {\r\n\t\tgetConfig().update('export.exportPath', outputExportPath, vscode.ConfigurationTarget.Global)\r\n\t}\r\n\tif (path.sep === '/') {\r\n\t\toutputExportPath = outputExportPath.replaceAll('/', path.sep)\r\n\t}\r\n\treturn outputExportPath\r\n}\r\n\r\nexport function setDefaultOptions() {\r\n\tconst config = getConfig()\r\n\tfor (const [key, value] of Object.entries(defaultConfiguration)) {\r\n\t\tconst configKey = key.replace('crowdCode.', '')\r\n\t\tif ('default' in value) {\r\n\t\t\tconfig.update(configKey, value.default, vscode.ConfigurationTarget.Workspace)\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/**\r\n * Logs a message to the output channel with a timestamp and type.\r\n *\r\n * @param {string} message - The message to be logged.\r\n * @param {'info' | 'success' | 'error'} [type='info'] - The type of the log message.\r\n */\r\nexport function logToOutput(message: string, type: 'info' | 'success' | 'error' = 'info') {\r\n\tconst time = new Date().toLocaleTimeString()\r\n\r\n\toutputChannel.appendLine(`${time} [${type}] ${message}`)\r\n\tconsole.log(message)\r\n}\r\n\r\n/**\r\n * Generates a file name based on the current date and time.\r\n * @param date - The date to use for generating the file name.\r\n * @param isExport - Whether the file is being exported.\r\n * @param customName - Optional custom name for the folder.\r\n * @returns The generated file name.\r\n */\r\nexport function generateBaseFilePath(\r\n\tdate: Date | null,\r\n\tisExport = false,\r\n\tcustomName?: string, \r\n\tsessionId?: string\r\n): string | undefined {\r\n\tif (!date) {\r\n\t\treturn\r\n\t}\r\n\tconst year = date.getFullYear()\r\n\tconst month = (date.getMonth() + 1).toString().padStart(2, '0')\r\n\tconst day = date.getDate().toString().padStart(2, '0')\r\n\tconst hours = date.getHours().toString().padStart(2, '0')\r\n\tconst minutes = date.getMinutes().toString().padStart(2, '0')\r\n\tconst seconds = date.getSeconds().toString().padStart(2, '0')\r\n\tconst milliseconds = date.getMilliseconds().toString().padStart(2, '0')\r\n\r\n\tconst timestamp = `${year}_${month}_${day}-${hours}.${minutes}.${seconds}.${milliseconds}`\r\n\tconst default_name = sessionId ? `crowd-code-${sessionId}-${timestamp}` : `crowd-code-${timestamp}`\r\n\tconst folderName = customName ? `${customName}-${timestamp}` : default_name\r\n\tconst fileName = isExport ? 'recording' : 'source'\r\n\r\n\treturn `${folderName}/${fileName}`\r\n}\r\n\r\n/**\r\n * Retrieves the language identifier of the currently active text editor.\r\n *\r\n * @return {string} The language identifier of the active text editor\r\n */\r\nexport function getEditorLanguage(): string {\r\n\tconst editor = vscode.window.activeTextEditor\r\n\tif (editor) {\r\n\t\tconsole.log(editor.document.languageId)\r\n\t\treturn editor.document.languageId\r\n\t}\r\n\treturn ''\r\n}\r\n\r\n/**\r\n * Gets the relative path of the active text editor's file.\r\n * @returns A string representing the relative path of the active text editor's file.\r\n */\r\nexport function getEditorFileName(): string {\r\n\treturn vscode.workspace.asRelativePath(vscode.window.activeTextEditor?.document.fileName ?? '')\r\n}\r\n\r\n/**\r\n * Displays a notification with progress in VS Code.\r\n * @param title - The title of the notification.\r\n */\r\nexport function notificationWithProgress(title: string): void {\r\n\tvscode.window.withProgress(\r\n\t\t{\r\n\t\t\tlocation: vscode.ProgressLocation.Notification,\r\n\t\t\ttitle: title,\r\n\t\t\tcancellable: false,\r\n\t\t},\r\n\t\tprogress => {\r\n\t\t\treturn new Promise(resolve => {\r\n\t\t\t\tconst times = 1.5 * 1000\r\n\t\t\t\tconst timeout = 50\r\n\t\t\t\tconst increment = (100 / times) * timeout\r\n\t\t\t\tfor (let i = 0; i <= times; i++) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tprogress.report({ increment: increment })\r\n\t\t\t\t\t\tif (i === times / timeout) {\r\n\t\t\t\t\t\t\tresolve()\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}, timeout * i)\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\t)\r\n}\r\n\r\n/**\r\n * Formats a time value in seconds to a display string.\r\n * @param seconds - The number of seconds.\r\n * @returns A string representing the formatted time.\r\n */\r\nexport function formatDisplayTime(seconds: number): string {\r\n\tconst hours = Math.floor(seconds / 3600)\r\n\tconst minutes = Math.floor((seconds % 3600) / 60)\r\n\tconst remainingSeconds = seconds % 60\r\n\r\n\tlet timeString = ''\r\n\r\n\tif (hours > 0) {\r\n\t\ttimeString += `${hours.toString().padStart(2, '0')}:`\r\n\t}\r\n\r\n\ttimeString += `${minutes.toString().padStart(2, '0')}:${remainingSeconds\r\n\t\t.toString()\r\n\t\t.padStart(2, '0')}`\r\n\r\n\treturn timeString\r\n}\r\n\r\n/**\r\n * Formats a time value in milliseconds to an SRT time string.\r\n * @param milliseconds - The number of milliseconds.\r\n * @returns A string representing the formatted SRT time.\r\n */\r\nexport function formatSrtTime(milliseconds: number): string {\r\n\tconst seconds = Math.floor(milliseconds / 1000)\r\n\tconst hours = Math.floor(seconds / 3600)\r\n\tconst minutes = Math.floor((seconds % 3600) / 60)\r\n\tconst remainingSeconds = seconds % 60\r\n\tconst remainingMilliseconds = milliseconds % 1000\r\n\r\n\treturn `${hours.toString().padStart(2, '0')}:${minutes\r\n\t\t.toString()\r\n\t\t.padStart(2, '0')}:${remainingSeconds.toString().padStart(2, '0')},${remainingMilliseconds\r\n\t\t.toString()\r\n\t\t.padStart(3, '0')}`\r\n}\r\n\r\n/**\r\n * Escapes special characters in a string for CSV compatibility.\r\n * @param editorText - The text to escape.\r\n * @returns A string with escaped characters.\r\n */\r\nexport function escapeString(editorText: string | undefined): string {\r\n\tif (editorText === undefined) {\r\n\t\treturn ''\r\n\t}\r\n\treturn editorText\r\n\t\t.replace(/""/g, '""""')\r\n\t\t.replace(/\r\n/g, '\\r\\n')\r\n\t\t.replace(/\n/g, '\\n')\r\n\t\t.replace(/\r/g, '\\r')\r\n\t\t.replace(/\t/g, '\\t')\r\n}\r\n\r\n/**\r\n * Removes double quotes at the start and end of a text string.\r\n * @param text - The text to process.\r\n * @returns A string without surrounding double quotes.\r\n */\r\nexport function removeDoubleQuotes(text: string): string {\r\n\treturn text.replace(/^""(.*)""$/, '$1')\r\n}\r\n\r\n/**\r\n * Unescape special characters in a string.\r\n * @param text - The text to unescape.\r\n * @returns A string with unescaped characters.\r\n */\r\nexport function unescapeString(text: string): string {\r\n\treturn text\r\n\t\t.replace(/""""/g, '""')\r\n\t\t.replace(/\\r\\n/g, '\r\n')\r\n\t\t.replace(/\\n/g, '\n')\r\n\t\t.replace(/\\r/g, '\r')\r\n\t\t.replace(/\\t/g, '\t')\r\n}\r\n\r\n/**\r\n * Adds the export path to .gitignore if it doesn't exist.\r\n * @returns true if the path was added, false if it already exists or if there was an error\r\n */\r\nexport async function addToGitignore(): Promise {\r\n\tconst workspaceFolder = vscode.workspace.workspaceFolders?.[0]\r\n\tif (!workspaceFolder) {\r\n\t\tvscode.window.showErrorMessage(vscode.l10n.t('error.noWorkspace'))\r\n\t\treturn false\r\n\t}\r\n\r\n\tconst gitignorePath = path.join(workspaceFolder.uri.fsPath, '.gitignore')\r\n\tconst exportPath = getConfig().get('export.exportPath')\r\n\r\n\tif (!exportPath) {\r\n\t\tvscode.window.showErrorMessage(vscode.l10n.t('error.noExportPath'))\r\n\t\treturn false\r\n\t}\r\n\r\n\t// Get the relative path from workspace folder\r\n\tlet relativePath = exportPath\r\n\tif (exportPath.startsWith('${workspaceFolder}')) {\r\n\t\trelativePath = exportPath.replace('${workspaceFolder}', '').replace(/\\/g, '/')\r\n\t}\r\n\t// Remove leading and trailing slashes\r\n\trelativePath = relativePath.replace(/^\/+|\/+$/g, '')\r\n\r\n\ttry {\r\n\t\tlet content = ''\r\n\t\tif (fs.existsSync(gitignorePath)) {\r\n\t\t\tcontent = fs.readFileSync(gitignorePath, 'utf8')\r\n\t\t\t// Check if the path is already in .gitignore\r\n\t\t\tif (content.split('\n').some(line => line.trim() === relativePath)) {\r\n\t\t\t\tvscode.window.showInformationMessage(vscode.l10n.t('Export path already in .gitignore'))\r\n\t\t\t\treturn false\r\n\t\t\t}\r\n\t\t\t// Add a newline if the file doesn't end with one\r\n\t\t\tif (!content.endsWith('\n')) {\r\n\t\t\t\tcontent += '\n'\r\n\t\t\t}\r\n\t\t}\r\n\t\tcontent = `${content}${relativePath}\n`\r\n\t\tfs.writeFileSync(gitignorePath, content)\r\n\t\tvscode.window.showInformationMessage(vscode.l10n.t('Export path added to .gitignore'))\r\n\t\treturn true\r\n\t} catch (err) {\r\n\t\tconsole.error('Error updating .gitignore:', err)\r\n\t\tvscode.window.showErrorMessage(vscode.l10n.t('Error updating .gitignore'))\r\n\t\treturn false\r\n\t}\r\n}\r\n",typescript,tab +49,46897,"src/utilities.ts",424,0,"",typescript,selection_command +50,47597,"src/test/recording.test.ts",0,0,"",typescript,tab +51,47603,"src/test/recording.test.ts",616,0,"",typescript,selection_command +52,48588,"src/utilities.ts",0,0,"",typescript,tab +53,48596,"src/utilities.ts",424,0,"",typescript,selection_command +54,50412,"src/recording.ts",0,0,"import * as fs from 'node:fs'\nimport * as path from 'node:path'\nimport * as vscode from 'vscode'\nimport * as readline from 'node:readline'\nimport axios from 'axios'\nimport { hasConsent, showConsentChangeDialog } from './consent'\nimport {\n getEditorFileName,\n escapeString,\n getEditorLanguage,\n notificationWithProgress,\n generateBaseFilePath,\n formatDisplayTime,\n getExportPath,\n logToOutput,\n formatSrtTime,\n getConfig,\n removeDoubleQuotes,\n unescapeString,\n addToGitignore,\n} from './utilities'\nimport { type File, ChangeType, type CSVRowBuilder, type Change, type Recording, type ConsentStatus } from './types'\nimport { extContext, statusBarItem, actionsProvider } from './extension'\n\nexport const commands = {\n openSettings: 'crowd-code.openSettings',\n startRecording: 'crowd-code.startRecording',\n stopRecording: 'crowd-code.stopRecording',\n}\n\nexport const recording: Recording = {\n isRecording: false,\n timer: 0,\n startDateTime: null,\n endDateTime: null,\n sequence: 0,\n customFolderName: '',\n activatedFiles: new Set(),\n}\n\nlet intervalId: NodeJS.Timeout\nconst fileQueue: File[] = []\nlet isAppending = false\n\nlet uploadIntervalId: NodeJS.Timeout;\nconst sessionUuid = vscode.env.sessionId;\n\nconst API_GATEWAY_URL = 'https://knm3fmbwbi.execute-api.us-east-1.amazonaws.com/v1/recordings';\n\n\n/**\n * Builds a CSV row with the given parameters.\n *\n * @param {CSVRowBuilder} sequence - The sequence number of the change.\n * @param {CSVRowBuilder} rangeOffset - The offset of the changed range.\n * @param {CSVRowBuilder} rangeLength - The length of the changed range.\n * @param {CSVRowBuilder} text - The text of the change.\n * @param {string} type - The type of the change (optional, defaults to 'content').\n * @return {string} A CSV row string with the provided information.\n */\nexport function buildCsvRow({\n sequence,\n rangeOffset,\n rangeLength,\n text,\n type = ChangeType.CONTENT,\n}: CSVRowBuilder): string | undefined {\n if (!recording.startDateTime) {\n return\n }\n\n const time = new Date().getTime() - recording.startDateTime.getTime()\n\n if (type === ChangeType.HEADING) {\n return 'Sequence,Time,File,RangeOffset,RangeLength,Text,Language,Type\n'\n }\n\n if (type === ChangeType.TERMINAL_FOCUS || type === ChangeType.TERMINAL_COMMAND || type === ChangeType.TERMINAL_OUTPUT) {\n return `${sequence},${time},""TERMINAL"",${rangeOffset},${rangeLength},""${escapeString(text)}"",,${type}\n`\n }\n\n const editorFileName = getEditorFileName()\n return `${sequence},${time},""${editorFileName}"",${rangeOffset},${rangeLength},""${escapeString(text)}"",${getEditorLanguage()},${type}\n`\n}\n\n/**\n * Checks if the current file being edited is within the configured export path.\n * This is used to determine if the current file should be recorded or not.\n *\n * @returns {boolean} `true` if the current file is within the export path, `false` otherwise.\n */\nexport function isCurrentFileExported(): boolean {\n const editor = vscode.window.activeTextEditor\n const filename = editor?.document.fileName.replaceAll('\\', '/')\n const exportPath = getExportPath()\n if (!editor || !filename || !exportPath) {\n return false\n }\n return filename.startsWith(exportPath)\n}\n\nconst onChangeSubscription = vscode.workspace.onDidChangeTextDocument(event => {\n if (!recording.isRecording) {\n return\n }\n\n if (isCurrentFileExported()) {\n return\n }\n const editor = vscode.window.activeTextEditor\n if (editor && event.document === editor.document) {\n for (const change of event.contentChanges) {\n recording.sequence++\n addToFileQueue(\n buildCsvRow({\n sequence: recording.sequence,\n rangeOffset: change.rangeOffset,\n rangeLength: change.rangeLength,\n text: change.text,\n })\n )\n appendToFile()\n }\n }\n})\n\n/**\n * Creates the recording folder if it doesn't exist.\n * @param folderPath - The path to the recording folder.\n */\nfunction createRecordingFolder(folderPath: string): void {\n if (!fs.existsSync(folderPath)) {\n fs.mkdirSync(folderPath, { recursive: true })\n }\n}\n\n/**\n * Starts the recording process and initializes necessary variables.\n */\nexport async function startRecording(): Promise {\n if (!vscode.window.activeTextEditor) {\n vscode.window.showErrorMessage(vscode.l10n.t('No active text editor'))\n logToOutput(vscode.l10n.t('No active text editor'), 'info')\n return\n }\n \n if (recording.isRecording) {\n notificationWithProgress(vscode.l10n.t('Already recording'))\n logToOutput(vscode.l10n.t('Already recording'), 'info')\n return\n }\n const exportPath = getExportPath()\n if (!exportPath) {\n return\n }\n\n // If the setting is enabled and the path is inside the workspace, add it to .gitignore\n if (\n getConfig().get('export.addToGitignore') &&\n getConfig().get('export.exportPath')?.startsWith('${workspaceFolder}')\n ) {\n await addToGitignore()\n }\n\n recording.startDateTime = new Date()\n recording.activatedFiles = new Set()\n\n // Ask for folder name if enabled in settings\n let customFolderName: string | undefined\n if (getConfig().get('recording.askFolderName')) {\n customFolderName = await vscode.window.showInputBox({\n prompt: vscode.l10n.t('Enter a name for the recording folder'),\n placeHolder: vscode.l10n.t('Enter recording folder name'),\n })\n if (!customFolderName) {\n stopRecording(true)\n return\n }\n recording.customFolderName = customFolderName\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n stopRecording(true)\n return\n }\n\n // Create the recording folder\n const folderPath = path.dirname(path.join(exportPath, baseFilePath))\n createRecordingFolder(folderPath)\n\n recording.isRecording = true\n recording.timer = 0\n recording.endDateTime = null\n recording.sequence = 0\n intervalId = setInterval(() => {\n recording.timer++\n updateStatusBarItem()\n }, 1000)\n notificationWithProgress(vscode.l10n.t('Recording started'))\n logToOutput(vscode.l10n.t('Recording started'), 'info')\n\n const editorText = vscode.window.activeTextEditor?.document.getText()\n const activeEditorUri = vscode.window.activeTextEditor?.document.uri.toString()\n\n if (editorText !== undefined && activeEditorUri) {\n recording.sequence++\n const csvRow = {\n sequence: recording.sequence,\n rangeOffset: 0,\n rangeLength: 0,\n text: editorText,\n type: ChangeType.TAB,\n }\n addToFileQueue(buildCsvRow({ ...csvRow, type: ChangeType.HEADING }))\n addToFileQueue(buildCsvRow(csvRow))\n appendToFile()\n recording.activatedFiles.add(activeEditorUri)\n actionsProvider.setCurrentFile(vscode.window.activeTextEditor.document.fileName)\n }\n\n extContext.subscriptions.push(onChangeSubscription)\n updateStatusBarItem()\n actionsProvider.setRecordingState(true)\n\n // Set up a timer to send data to the Lambda endpoint periodically\n uploadIntervalId = setInterval(async () => {\n if (!exportPath) {\n return;\n }\n\n // Only upload data if user has given consent\n if (!hasConsent()) {\n return;\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`);\n const extensionVersion = extContext.extension.packageJSON.version as string;\n const userId = extContext.globalState.get('userId');\n\n try {\n const fileContent = await fs.promises.readFile(filePath, 'utf-8');\n\n if (fileContent) {\n const payload = {\n fileName: `${baseFilePath}.csv`,\n content: fileContent,\n version: extensionVersion,\n userId: userId\n };\n await axios.post(API_GATEWAY_URL, payload);\n console.log(`Successfully sent ${payload.fileName} to Lambda endpoint.`);\n }\n } catch (error: any) {\n if (error.code === 'ENOENT') {\n console.warn(`File not found at ${filePath}. It might be created on first write.`);\n } else {\n console.error(`Error sending data to Lambda: ${error.message}`);\n if (axios.isAxiosError(error) && error.response) {\n console.error(""Lambda response status:"", error.response.status);\n console.error(""Lambda response data:"", error.response.data);\n }\n }\n }\n }, 5 * 60 * 1000); // 5 minutes\n}\n\n/**\n * Stops the recording process and finalizes the recording data.\n * @param context - The extension context.\n */\nexport function stopRecording(force = false): Promise | void {\n if (!recording.isRecording) {\n notificationWithProgress(vscode.l10n.t('Not recording'))\n return\n }\n\n recording.isRecording = false\n clearInterval(intervalId)\n clearInterval(uploadIntervalId); // Clear the upload timer\n recording.timer = 0\n recording.activatedFiles?.clear()\n const index = extContext.subscriptions.indexOf(onChangeSubscription)\n if (index !== -1) {\n extContext.subscriptions.splice(index, 1)\n }\n updateStatusBarItem()\n actionsProvider.setRecordingState(false)\n if (force) {\n notificationWithProgress(vscode.l10n.t('Recording cancelled'))\n logToOutput(vscode.l10n.t('Recording cancelled'), 'info')\n recording.customFolderName = undefined\n return\n }\n notificationWithProgress(vscode.l10n.t('Recording finished'))\n logToOutput(vscode.l10n.t('Recording finished'), 'info')\n recording.endDateTime = new Date()\n return processCsvFile().then(() => {\n // Reset customFolderName after processing is complete\n recording.customFolderName = undefined\n }).catch(err => {\n logToOutput(vscode.l10n.t('Error processing CSV file during stop: {0}', String(err)), 'error')\n recording.customFolderName = undefined\n });\n}\n\n/**\n * Appends data from the file queue to the appropriate file in the workspace.\n */\nexport async function appendToFile(): Promise {\n if (isAppending) {\n return\n }\n isAppending = true\n\n const exportPath = getExportPath()\n if (!exportPath) {\n logToOutput('Export path not available in appendToFile, stopping recording.', 'error')\n stopRecording(true)\n isAppending = false\n return\n }\n\n while (fileQueue.length > 0) {\n const itemToAppend = fileQueue.shift()\n if (!itemToAppend) {\n continue\n }\n\n const filePath = path.join(exportPath, itemToAppend.name)\n\n try {\n const directory = path.dirname(filePath)\n if (!fs.existsSync(directory)) {\n fs.mkdirSync(directory, { recursive: true })\n }\n await fs.promises.appendFile(filePath, itemToAppend.content)\n } catch (err) {\n logToOutput(\n `Failed to append to file ${filePath}: ${err}. Item dropped. Content: ${itemToAppend.content.substring(0, 100)}...`,\n 'error'\n )\n }\n }\n isAppending = false\n}\n\n/**\n * Appends an SRT line to the file queue for the previous change.\n *\n * This function is responsible for generating the SRT format line for the previous change and adding it to the file queue.\n * It checks if the SRT export format is enabled, and if so, it generates the SRT line for the previous change and adds it to the file queue.\n *\n * @param processedChanges - An array of processed changes.\n * @param i - The index of the current change in the processedChanges array.\n * @param exportInSrt - A boolean indicating whether the SRT export format is enabled.\n */\nfunction addToSRTFile(processedChanges: Change[], i: number, exportInSrt: boolean) {\n if (!exportInSrt) {\n return\n }\n if (i === 0) {\n return\n }\n addToFileQueue(\n addSrtLine(\n processedChanges[i - 1].sequence,\n processedChanges[i - 1].startTime,\n processedChanges[i - 1].endTime,\n JSON.stringify({\n text: processedChanges[i - 1].text,\n file: processedChanges[i - 1].file,\n language: processedChanges[i - 1].language,\n })\n ),\n 'srt',\n true\n )\n}\n\n/**\n * Returns the new text content based on the change type and the previous change.\n * @param type - The type of the change.\n * @param text - The text of the change.\n * @param previousChange - The previous change.\n * @param rangeOffset - The offset of the range.\n * @param rangeLength - The length of the range.\n */\nfunction getNewTextContent(\n type: string,\n text: string,\n previousChange: Change | null,\n rangeOffset: number,\n rangeLength: number\n): string {\n if (type === ChangeType.TAB) {\n return text\n }\n if (!previousChange) {\n return ''\n }\n return getUpdatedText(previousChange.text, rangeOffset, rangeLength, text)\n}\n\n/**\n * Processes a single CSV line and returns the processed change\n */\nasync function processCSVLine(line: string, previousChange: Change | null): Promise {\n const lineArr = line.split(/,(?=(?:[^""]*""[^""]*"")*[^""]*$)/)\n\n if (Number.isNaN(Number.parseInt(lineArr[0]))) {\n return null\n }\n\n const time = Number.parseInt(lineArr[1])\n const file = removeDoubleQuotes(lineArr[2])\n const rangeOffset = Number.parseInt(lineArr[3])\n const rangeLength = Number.parseInt(lineArr[4])\n const text = unescapeString(removeDoubleQuotes(lineArr[5]))\n const language = lineArr[6]\n const type = lineArr[7]\n\n const newText = getNewTextContent(type, text, previousChange, rangeOffset, rangeLength)\n\n /**\n * Skip exporting changes with the same values to the previous change.\n */\n if (\n previousChange &&\n time === previousChange.startTime &&\n file === previousChange.file &&\n newText === previousChange.text &&\n language === previousChange.language\n ) {\n return null\n }\n\n return {\n sequence: previousChange ? previousChange.sequence + 1 : 1,\n file,\n startTime: time,\n endTime: 0,\n language,\n text: newText,\n }\n}\n\n/**\n * Returns the updated text content based on the previous text, range offset, range length, and new text.\n * @param previousText - The previous text.\n * @param rangeOffset - The offset of the range.\n * @param rangeLength - The length of the range.\n * @param newText - The new text.\n */\nfunction getUpdatedText(\n previousText: string,\n rangeOffset: number,\n rangeLength: number,\n newText: string\n): string {\n const textArray = previousText.split('')\n textArray.splice(rangeOffset, rangeLength, newText)\n return textArray.join('')\n}\n\n/**\n * Processes the CSV file and generates the necessary output files.\n */\nasync function processCsvFile(): Promise {\n if (!validateRecordingState()) {\n return\n }\n\n const exportFormats = getConfig().get('export.exportFormats', [])\n if (exportFormats.length === 0) {\n logToOutput(vscode.l10n.t('No export formats specified'), 'info')\n vscode.window.showWarningMessage(vscode.l10n.t('No export formats specified'))\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n return\n }\n\n if (!recording.startDateTime) {\n return\n }\n\n // Use the same custom folder name for reading the source file\n const baseFilePathSource = generateBaseFilePath(\n recording.startDateTime,\n false,\n recording.customFolderName,\n sessionUuid\n )\n if (!baseFilePathSource) {\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePathSource}.csv`)\n\n try {\n if (!fs.existsSync(filePath)) {\n throw new Error(`Source file not found: ${filePath}`)\n }\n\n const processedChanges: Change[] = []\n\n const rl = readline.createInterface({\n input: fs.createReadStream(filePath),\n crlfDelay: Number.POSITIVE_INFINITY,\n })\n\n for await (const line of rl) {\n const previousChange = processedChanges[processedChanges.length - 1]\n const change = await processCSVLine(line, previousChange)\n\n if (change) {\n if (previousChange) {\n previousChange.endTime = change.startTime\n if (exportFormats.includes('SRT')) {\n addToSRTFile(processedChanges, processedChanges.length, true)\n }\n }\n processedChanges.push(change)\n }\n }\n\n rl.close();\n\n return finalizeRecording(processedChanges, exportFormats);\n\n } catch (err) {\n vscode.window.showErrorMessage(`Error processing recording: ${err}`)\n logToOutput(vscode.l10n.t('Error processing CSV file: {0}', String(err)), 'error')\n return Promise.resolve(); // Resolve even on error after showing message\n }\n}\n\nfunction validateRecordingState(): boolean {\n if (!vscode.workspace.workspaceFolders) {\n logToOutput(\n vscode.l10n.t(\n 'No workspace folder found. To process the recording is needed a workspace folder'\n ),\n 'error'\n )\n return false\n }\n if (!recording.endDateTime || !recording.startDateTime) {\n logToOutput(vscode.l10n.t('Recording date time is not properly set'), 'error')\n return false\n }\n return true\n}\n\nfunction finalizeRecording(processedChanges: Change[], exportFormats: string[]): Promise {\n const lastChange = processedChanges[processedChanges.length - 1]\n if (lastChange && recording.endDateTime && recording.startDateTime) {\n lastChange.endTime = recording.endDateTime.getTime() - recording.startDateTime.getTime()\n if (exportFormats.includes('SRT')) {\n addToSRTFile(processedChanges, processedChanges.length, true)\n }\n }\n if (exportFormats.includes('JSON')) {\n addToFileQueue(JSON.stringify(processedChanges), 'json', true)\n }\n return appendToFile().then(() => {\n // Refresh the recordFiles view after export is complete\n vscode.commands.executeCommand('crowd-code.refreshRecordFiles')\n })\n}\n\n/**\n * Adds a line to the SRT file format.\n * @param sequence - The sequence number of the change.\n * @param start - The start time of the change.\n * @param end - The end time of the change.\n * @param text - The text of the change.\n * @returns A string representing a line in the SRT file format.\n */\nfunction addSrtLine(sequence: number, start: number, end: number, text: string): string {\n return `${sequence}\n${formatSrtTime(start)} --> ${formatSrtTime(end)}\n${text}\n\n`\n}\n\n/**\n * Adds content to the file queue.\n * @param content - The content to add.\n * @param fileExtension - The file extension (optional, defaults to 'csv').\n */\nexport function addToFileQueue(\n content: string | undefined,\n fileExtension = 'csv',\n isExport = false\n): void {\n if (!content) {\n return\n }\n if (!recording.startDateTime) {\n return\n }\n // Use the same custom name throughout the recording session\n const baseFilePath = generateBaseFilePath(recording.startDateTime, isExport, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n return\n }\n fileQueue.push({\n name: `${baseFilePath}.${fileExtension}`,\n content: content,\n })\n}\n\n/**\n * Updates the status bar item with the current recording status and time.\n */\nexport function updateStatusBarItem(): void {\n const editor = vscode.window.activeTextEditor\n if (!editor && !recording) {\n statusBarItem.hide()\n return\n }\n if (recording.isRecording) {\n if (getConfig().get('appearance.showTimer') === false) {\n statusBarItem.text = '$(debug-stop)'\n statusBarItem.tooltip = vscode.l10n.t('Current time: {0}', formatDisplayTime(recording.timer))\n }\n if (getConfig().get('appearance.showTimer') === true) {\n statusBarItem.text = `$(debug-stop) ${formatDisplayTime(recording.timer)}`\n statusBarItem.tooltip = vscode.l10n.t('Stop Recording')\n }\n statusBarItem.command = commands.stopRecording\n } else {\n if (getConfig().get('appearance.minimalMode') === true) {\n statusBarItem.text = '$(circle-large-filled)'\n } else {\n statusBarItem.text = `$(circle-large-filled) ${vscode.l10n.t('Start Recording')}`\n }\n statusBarItem.tooltip = vscode.l10n.t('Start Recording')\n statusBarItem.command = commands.startRecording\n }\n statusBarItem.show()\n}",typescript,tab +55,50416,"src/recording.ts",753,0,"",typescript,selection_command +56,51235,"src/extension.ts",0,0,"import * as vscode from 'vscode'\nimport * as crypto from 'crypto'\nimport { getExportPath, logToOutput, outputChannel, addToGitignore } from './utilities'\nimport {\n\tupdateStatusBarItem,\n\tstartRecording,\n\tstopRecording,\n\tisCurrentFileExported,\n\tcommands,\n\trecording,\n\taddToFileQueue,\n\tbuildCsvRow,\n\tappendToFile,\n} from './recording'\nimport { ChangeType, CSVRowBuilder } from './types'\nimport { RecordFilesProvider, type RecordFile } from './recordFilesProvider'\nimport { ActionsProvider } from './actionsProvider'\nimport * as fs from 'node:fs'\nimport * as path from 'node:path'\nimport { showConsentChangeDialog, ensureConsent, hasConsent } from './consent'\n\nexport let statusBarItem: vscode.StatusBarItem\nexport let extContext: vscode.ExtensionContext\nexport let actionsProvider: ActionsProvider\n\nfunction onConfigurationChange(event: vscode.ConfigurationChangeEvent) {\n\tif (event.affectsConfiguration('crowdCode')) {\n\t\tupdateStatusBarItem()\n\t\tgetExportPath()\n\t}\n}\n\n/**\n * Gets the full path for a file or folder\n * @param item - The tree item representing the file or folder\n * @param exportPath - The base export path\n * @returns The full path to the file or folder\n */\nfunction getFullPath(item: RecordFile, exportPath: string): string {\n\t// If the item has a parent path (file inside a folder), construct the full path\n\tif (item.parentPath) {\n\t\treturn path.join(exportPath, item.parentPath, item.label)\n\t}\n\t// Otherwise, it's a root item\n\treturn path.join(exportPath, item.label)\n}\n\n/**\n * Deletes a file or folder recursively\n * @param filePath - The path to the file or folder to delete\n */\nasync function deleteFileOrFolder(filePath: string): Promise {\n\ttry {\n\t\tconst stat = fs.statSync(filePath)\n\t\tif (stat.isDirectory()) {\n\t\t\t// Delete directory and its contents recursively\n\t\t\tfs.rmSync(filePath, { recursive: true, force: true })\n\t\t} else {\n\t\t\t// Delete single file\n\t\t\tfs.unlinkSync(filePath)\n\t\t}\n\t} catch (err) {\n\t\tconsole.error('Error deleting file or folder:', err)\n\t\tthrow err\n\t}\n}\n\nexport async function activate(context: vscode.ExtensionContext): Promise {\n\textContext = context\n\toutputChannel.show()\n\tlogToOutput(vscode.l10n.t('Activating crowd-code'), 'info')\n\n\t// Save anonUserId globally for user to copy\n\tconst userName = process.env.USER || process.env.USERNAME || ""coder"";\n\tconst machineId = vscode.env.machineId ?? null;\n\tconst rawId = `${machineId}:${userName}`;\n\tconst anonUserId = crypto.createHash('sha256').update(rawId).digest('hex') as string;\n\n\textContext.globalState.update('userId', anonUserId);\n\n\t// Register userID display\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.showUserId', () => {\n\t\t\tconst userId = extContext.globalState.get('userId');\n\t\t\tif (!userId) {\n\t\t\t\tvscode.window.showWarningMessage(""User ID not registered yet. Please wait a few seconds until the extension is fully activated."");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvscode.window.showInformationMessage(`Your User ID is: ${userId}`);\n\t\t}))\n\n\n\t// Register Record Files Provider\n\tconst recordFilesProvider = new RecordFilesProvider()\n\tcontext.subscriptions.push(\n\t\tvscode.window.registerTreeDataProvider('recordFiles', recordFilesProvider)\n\t)\n\n\t// Register Actions Provider\n\tactionsProvider = new ActionsProvider()\n\tcontext.subscriptions.push(vscode.window.registerTreeDataProvider('actions', actionsProvider))\n\n\t// Register refresh command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.refreshRecordFiles', () => {\n\t\t\trecordFilesProvider.refresh()\n\t\t})\n\t)\n\n\t// Register delete command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand(\n\t\t\t'crowd-code.deleteRecordFile',\n\t\t\tasync (item: RecordFile) => {\n\t\t\t\tconst exportPath = getExportPath()\n\t\t\t\tif (!exportPath) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tconst result = await vscode.window.showWarningMessage(\n\t\t\t\t\tvscode.l10n.t('Are you sure you want to delete {name}?', { name: item.label }),\n\t\t\t\t\tvscode.l10n.t('Yes'),\n\t\t\t\t\tvscode.l10n.t('No')\n\t\t\t\t)\n\n\t\t\t\tif (result === vscode.l10n.t('Yes')) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst itemPath = getFullPath(item, exportPath)\n\t\t\t\t\t\tawait deleteFileOrFolder(itemPath)\n\t\t\t\t\t\trecordFilesProvider.refresh()\n\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\tvscode.window.showErrorMessage(`Error deleting ${item.label}: ${err}`)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t)\n\t)\n\n\t// Register reveal in explorer command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.revealInExplorer', (item: RecordFile) => {\n\t\t\tconst exportPath = getExportPath()\n\t\t\tif (!exportPath) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst itemPath = getFullPath(item, exportPath)\n\t\t\tvscode.commands.executeCommand('revealFileInOS', vscode.Uri.file(itemPath))\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand(commands.startRecording, () => {\n\t\t\tstartRecording()\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand(commands.stopRecording, () => {\n\t\t\tstopRecording()\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand(commands.openSettings, () => {\n\t\t\tvscode.commands.executeCommand(\n\t\t\t\t'workbench.action.openSettings',\n\t\t\t\t'@ext:MattiaConsiglio.crowd-code'\n\t\t\t)\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.addToGitignore', async () => {\n\t\t\tawait addToGitignore()\n\t\t})\n\t)\n\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {\n\t\t\textContext.globalState.update('dataCollectionConsent', undefined)\n\t\t\tlogToOutput('Consent state has been reset.', 'info')\n\t\t\tvscode.window.showInformationMessage(\n\t\t\t\t'Consent state has been reset. Please reload the window for the change to take effect.'\n\t\t\t)\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(vscode.workspace.onDidChangeConfiguration(onConfigurationChange))\n\n\tvscode.window.onDidChangeActiveTextEditor(editor => {\n\t\tupdateStatusBarItem()\n\t\tif (editor && recording.isRecording) {\n\t\t\tif (isCurrentFileExported()) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst currentFileUri = editor.document.uri.toString()\n\t\t\tlet tabEventText = ''\n\n\t\t\tif (recording.activatedFiles) {\n\t\t\t\tif (!recording.activatedFiles.has(currentFileUri)) {\n\t\t\t\t\ttabEventText = editor.document.getText()\n\t\t\t\t\trecording.activatedFiles.add(currentFileUri)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new Error(""Warning: recording.activatedFiles was not available during TAB event logging."")\n\t\t\t}\n\n\t\t\trecording.sequence++\n\t\t\taddToFileQueue(\n\t\t\t\tbuildCsvRow({\n\t\t\t\t\tsequence: recording.sequence,\n\t\t\t\t\trangeOffset: 0,\n\t\t\t\t\trangeLength: 0,\n\t\t\t\t\ttext: tabEventText,\n\t\t\t\t\ttype: ChangeType.TAB,\n\t\t\t\t})\n\t\t\t)\n\t\t\tappendToFile()\n\t\t\tactionsProvider.setCurrentFile(editor.document.fileName)\n\t\t}\n\t})\n\n\tcontext.subscriptions.push(\n\t\tvscode.window.onDidChangeTextEditorSelection(event => {\n\t\t\tif (recording.isRecording && event.textEditor === vscode.window.activeTextEditor) {\n\t\t\t\tif (isCurrentFileExported()) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tconst editor = event.textEditor\n\t\t\t\t// For simplicity, we'll log the primary selection.\n\t\t\t\tconst selection = event.selections[0]\n\t\t\t\tif (!selection) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tconst selectedText = editor.document.getText(selection)\n\t\t\t\tlet changeType: string\n\n\t\t\t\tswitch (event.kind) {\n\t\t\t\t\tcase vscode.TextEditorSelectionChangeKind.Keyboard:\n\t\t\t\t\t\tchangeType = ChangeType.SELECTION_KEYBOARD\n\t\t\t\t\t\tbreak\n\t\t\t\t\tcase vscode.TextEditorSelectionChangeKind.Mouse:\n\t\t\t\t\t\tchangeType = ChangeType.SELECTION_MOUSE\n\t\t\t\t\t\tbreak\n\t\t\t\t\tcase vscode.TextEditorSelectionChangeKind.Command:\n\t\t\t\t\t\tchangeType = ChangeType.SELECTION_COMMAND\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new TypeError(""Unknown selection change kind."")\n\t\t\t\t}\n\n\t\t\t\trecording.sequence++\n\t\t\t\tconst csvRowParams: CSVRowBuilder = {\n\t\t\t\t\tsequence: recording.sequence,\n\t\t\t\t\trangeOffset: editor.document.offsetAt(selection.start),\n\t\t\t\t\trangeLength: editor.document.offsetAt(selection.end) - editor.document.offsetAt(selection.start),\n\t\t\t\t\ttext: selectedText,\n\t\t\t\t\ttype: changeType,\n\t\t\t\t}\n\t\t\t\taddToFileQueue(buildCsvRow(csvRowParams))\n\t\t\t\tappendToFile()\n\t\t\t\tactionsProvider.setCurrentFile(editor.document.fileName)\n\t\t\t}\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.window.onDidChangeActiveTerminal((terminal: vscode.Terminal | undefined) => {\n\t\t\tif (terminal && recording.isRecording) {\n\t\t\t\tif (isCurrentFileExported()) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\trecording.sequence++\n\t\t\t\taddToFileQueue(\n\t\t\t\t\tbuildCsvRow({\n\t\t\t\t\t\tsequence: recording.sequence,\n\t\t\t\t\t\trangeOffset: 0,\n\t\t\t\t\t\trangeLength: 0,\n\t\t\t\t\t\ttext: terminal.name,\n\t\t\t\t\t\ttype: ChangeType.TERMINAL_FOCUS,\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t\tappendToFile()\n\t\t\t\tactionsProvider.setCurrentFile(`Terminal: ${terminal.name}`)\n\t\t\t}\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.window.onDidStartTerminalShellExecution(async (event: vscode.TerminalShellExecutionStartEvent) => {\n\t\t\tif (recording.isRecording) {\n\t\t\t\tif (isCurrentFileExported()) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tconst commandLine = event.execution.commandLine.value\n\t\t\t\trecording.sequence++\n\t\t\t\taddToFileQueue(\n\t\t\t\t\tbuildCsvRow({\n\t\t\t\t\t\tsequence: recording.sequence,\n\t\t\t\t\t\trangeOffset: 0,\n\t\t\t\t\t\trangeLength: 0,\n\t\t\t\t\t\ttext: commandLine,\n\t\t\t\t\t\ttype: ChangeType.TERMINAL_COMMAND,\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t\tappendToFile()\n\n\t\t\t\tconst stream = event.execution.read()\n\t\t\t\tfor await (const data of stream) {\n\t\t\t\t\trecording.sequence++\n\t\t\t\t\taddToFileQueue(\n\t\t\t\t\t\tbuildCsvRow({ sequence: recording.sequence, rangeOffset: 0, rangeLength: 0, text: data, type: ChangeType.TERMINAL_OUTPUT })\n\t\t\t\t\t)\n\t\t\t\t\tappendToFile()\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t)\n\n\tstatusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 9000)\n\tupdateStatusBarItem()\n\tcontext.subscriptions.push(statusBarItem)\n\n\t// Ensure consent is obtained when the extension is first activated\n\tawait ensureConsent()\n\n\t// Autostart recording regardless of consent. The consent only gates data upload.\n\tstartRecording().catch(err => logToOutput(`Autostart recording failed unexpectedly: ${err}`, 'error'))\n}\n\nexport function deactivate(): void {\n\tlogToOutput(vscode.l10n.t('Deactivating crowd-code'), 'info')\n\tif (recording.isRecording) {\n\t\tstopRecording()\n\t}\n\tstatusBarItem.dispose()\n}\n",typescript,tab +57,51241,"src/extension.ts",869,0,"",typescript,selection_command +58,52492,"src/actionsProvider.ts",0,0,"import * as vscode from 'vscode'\r\nimport * as fs from 'node:fs'\r\nimport * as path from 'node:path'\r\nimport { commands } from './recording'\r\nimport { getConfig } from './utilities'\r\nimport { getConsentStatusMessage } from './consent'\r\n\r\nexport class ActionItem extends vscode.TreeItem {\r\n\tconstructor(\r\n\t\tpublic readonly label: string,\r\n\t\tpublic readonly collapsibleState: vscode.TreeItemCollapsibleState,\r\n\t\tpublic readonly command?: vscode.Command,\r\n\t\tpublic readonly iconId?: string\r\n\t) {\r\n\t\tsuper(label, collapsibleState)\r\n\t\tif (iconId) {\r\n\t\t\tthis.iconPath = new vscode.ThemeIcon(iconId)\r\n\t\t}\r\n\t}\r\n}\r\n\r\nexport class ActionsProvider implements vscode.TreeDataProvider {\r\n\tprivate _onDidChangeTreeData: vscode.EventEmitter =\r\n\t\tnew vscode.EventEmitter()\r\n\treadonly onDidChangeTreeData: vscode.Event =\r\n\t\tthis._onDidChangeTreeData.event\r\n\r\n\tprivate _timer = 0\r\n\tprivate _isRecording = false\r\n\tprivate _currentFile = ''\r\n\tprivate _gitignoreWatcher: vscode.FileSystemWatcher | undefined\r\n\r\n\tconstructor() {\r\n\t\t// Update timer every second when recording\r\n\t\tsetInterval(() => {\r\n\t\t\tif (this._isRecording) {\r\n\t\t\t\tthis._timer++\r\n\t\t\t\tthis.refresh()\r\n\t\t\t}\r\n\t\t}, 1000)\r\n\r\n\t\t// Watch for .gitignore changes\r\n\t\tthis.setupGitignoreWatcher()\r\n\t}\r\n\r\n\tprivate setupGitignoreWatcher() {\r\n\t\tconst workspaceFolder = vscode.workspace.workspaceFolders?.[0]\r\n\t\tif (workspaceFolder) {\r\n\t\t\tthis._gitignoreWatcher?.dispose()\r\n\t\t\tthis._gitignoreWatcher = vscode.workspace.createFileSystemWatcher(\r\n\t\t\t\tnew vscode.RelativePattern(workspaceFolder, '.gitignore')\r\n\t\t\t)\r\n\r\n\t\t\tthis._gitignoreWatcher.onDidCreate(() => this.refresh())\r\n\t\t\tthis._gitignoreWatcher.onDidChange(() => this.refresh())\r\n\t\t\tthis._gitignoreWatcher.onDidDelete(() => this.refresh())\r\n\t\t}\r\n\t}\r\n\r\n\trefresh(): void {\r\n\t\tthis._onDidChangeTreeData.fire(undefined)\r\n\t}\r\n\r\n\tgetTreeItem(element: ActionItem): vscode.TreeItem {\r\n\t\treturn element\r\n\t}\r\n\r\n\tsetRecordingState(isRecording: boolean): void {\r\n\t\tthis._isRecording = isRecording\r\n\t\tif (!isRecording) {\r\n\t\t\tthis._timer = 0\r\n\t\t\tthis._currentFile = ''\r\n\t\t}\r\n\t\tthis.refresh()\r\n\t}\r\n\r\n\tsetCurrentFile(fileName: string): void {\r\n\t\tthis._currentFile = fileName\r\n\t\tthis.refresh()\r\n\t}\r\n\r\n\tformatTime(seconds: number): string {\r\n\t\tconst hours = Math.floor(seconds / 3600)\r\n\t\tconst minutes = Math.floor((seconds % 3600) / 60)\r\n\t\tconst remainingSeconds = seconds % 60\r\n\t\treturn `${hours.toString().padStart(2, '0')}:${minutes\r\n\t\t\t.toString()\r\n\t\t\t.padStart(2, '0')}:${remainingSeconds.toString().padStart(2, '0')}`\r\n\t}\r\n\r\n\tprivate shouldShowGitignoreButton(): boolean {\r\n\t\tconst workspaceFolder = vscode.workspace.workspaceFolders?.[0]\r\n\t\tif (!workspaceFolder) {\r\n\t\t\treturn false\r\n\t\t}\r\n\r\n\t\tconst gitignorePath = path.join(workspaceFolder.uri.fsPath, '.gitignore')\r\n\t\tconst exportPath = getConfig().get('export.exportPath')\r\n\r\n\t\tif (!exportPath) {\r\n\t\t\treturn false\r\n\t\t}\r\n\r\n\t\t// If .gitignore doesn't exist, show the button\r\n\t\tif (!fs.existsSync(gitignorePath)) {\r\n\t\t\treturn false\r\n\t\t}\r\n\r\n\t\t// Get the relative path from workspace folder\r\n\t\tlet relativePath = exportPath\r\n\t\tif (exportPath.startsWith('${workspaceFolder}')) {\r\n\t\t\trelativePath = exportPath.replace('${workspaceFolder}', '').replace(/\\/g, '/')\r\n\t\t}\r\n\t\t// Remove leading and trailing slashes\r\n\t\trelativePath = relativePath.replace(/^\/+|\/+$/g, '')\r\n\r\n\t\t// Check if the path is already in .gitignore\r\n\t\tconst content = fs.readFileSync(gitignorePath, 'utf8')\r\n\t\treturn !content.split('\n').some(line => line.trim() === relativePath)\r\n\t}\r\n\r\n\tasync getChildren(element?: ActionItem): Promise {\r\n\t\tif (element) {\r\n\t\t\treturn []\r\n\t\t}\r\n\r\n\t\tconst items: ActionItem[] = []\r\n\r\n\t\t// Record/Stop button\r\n\t\tconst recordButton = new ActionItem(\r\n\t\t\tthis._isRecording ? 'Stop Recording' : 'Start Recording',\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: this._isRecording ? commands.stopRecording : commands.startRecording,\r\n\t\t\t\ttitle: this._isRecording ? 'Stop Recording' : 'Start Recording',\r\n\t\t\t},\r\n\t\t\tthis._isRecording ? 'debug-stop' : 'record'\r\n\t\t)\r\n\t\titems.push(recordButton)\r\n\r\n\t\t// Timer (only when recording or when showTimer is enabled)\r\n\t\tif (this._isRecording || getConfig().get('appearance.showTimer')) {\r\n\t\t\tconst timer = new ActionItem(\r\n\t\t\t\tthis.formatTime(this._timer),\r\n\t\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t\tundefined,\r\n\t\t\t\t'watch'\r\n\t\t\t)\r\n\t\t\titems.push(timer)\r\n\t\t}\r\n\r\n\t\t// Current file (only when recording)\r\n\t\tif (this._isRecording && this._currentFile) {\r\n\t\t\tconst prefix = this._currentFile.startsWith('Terminal:') ? '' : 'Current File: '\r\n\t\t\tconst displayedFile = this._currentFile.startsWith('Terminal:') ? this._currentFile : vscode.workspace.asRelativePath(this._currentFile)\r\n\t\t\tconst currentFile = new ActionItem(\r\n\t\t\t\t`${prefix}${displayedFile}`,\r\n\t\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t\tundefined,\r\n\t\t\t\t'file'\r\n\t\t\t)\r\n\t\t\titems.push(currentFile)\r\n\t\t}\r\n\r\n\t\t// Add to .gitignore action (only if .gitignore exists and path is not already in it)\r\n\t\tif (this.shouldShowGitignoreButton()) {\r\n\t\t\tconst addToGitignoreButton = new ActionItem(\r\n\t\t\t\t'Add to .gitignore',\r\n\t\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t\t{\r\n\t\t\t\t\tcommand: 'crowd-code.addToGitignore',\r\n\t\t\t\t\ttitle: 'Add to .gitignore',\r\n\t\t\t\t},\r\n\t\t\t\t'git-ignore'\r\n\t\t\t)\r\n\t\t\titems.push(addToGitignoreButton)\r\n\t\t}\r\n\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',\r\n\t\t\t\ttitle: 'Manage Data Collection Consent',\r\n\t\t\t},\r\n\t\t\t'shield'\r\n\t\t)\r\n\t\titems.push(consentStatus)\r\n\r\n\t\treturn items\r\n\t}\r\n\r\n\tdispose() {\r\n\t\tthis._gitignoreWatcher?.dispose()\r\n\t}\r\n}\r\n",typescript,tab +59,52497,"src/actionsProvider.ts",5223,0,"",typescript,selection_command +60,53114,".vscode/tasks.json",0,0,"// See https://go.microsoft.com/fwlink/?LinkId=733558\n// for the documentation about the tasks.json format\n{\n\t""version"": ""2.0.0"",\n\t""tasks"": [\n\t\t{\n\t\t\t""type"": ""npm"",\n\t\t\t""script"": ""watch"",\n\t\t\t""problemMatcher"": ""$ts-webpack-watch"",\n\t\t\t""isBackground"": true,\n\t\t\t""presentation"": {\n\t\t\t\t""reveal"": ""never"",\n\t\t\t\t""group"": ""watchers""\n\t\t\t},\n\t\t\t""group"": {\n\t\t\t\t""kind"": ""build"",\n\t\t\t\t""isDefault"": true\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t""type"": ""npm"",\n\t\t\t""script"": ""watch-tests"",\n\t\t\t""problemMatcher"": ""$tsc-watch"",\n\t\t\t""isBackground"": true,\n\t\t\t""presentation"": {\n\t\t\t\t""reveal"": ""never"",\n\t\t\t\t""group"": ""watchers""\n\t\t\t},\n\t\t\t""group"": ""build""\n\t\t},\n\t\t{\n\t\t\t""label"": ""tasks: watch-tests"",\n\t\t\t""dependsOn"": [\n\t\t\t\t""npm: watch"",\n\t\t\t\t""npm: watch-tests""\n\t\t\t],\n\t\t\t""problemMatcher"": []\n\t\t},\n\t\t{\n\t\t\t""type"": ""npm"",\n\t\t\t""script"": ""compile"",\n\t\t\t""group"": ""build"",\n\t\t\t""problemMatcher"": [],\n\t\t\t""label"": ""npm: compile"",\n\t\t\t""detail"": ""webpack""\n\t\t}\n\t]\n}\n",jsonc,tab +61,53129,".vscode/tasks.json",730,0,"",jsonc,selection_command +62,54483,"README.md",0,0,"# ⚫ crowd-code\n\nThis extension provides functionality to record IDE actions. Currently supported actions include text insertions, deletions, undo, redo, cursor movement (including VIM motions), file switches, terminal invocation and terminal command execution (both input and output). The changes are recorded in a CSV file and uploaded to an S3 bucket, which we plan to thoroughly clean, process, and eventually share with the community. \n\nAll uncaptured data is lost data. We want to crowd-source a dense dataset of IDE actions to eventually finetune models on. This would (to the best of our knowledge) constitute the first crowd-sourced dataset of dense IDE actions.\n\nWe thank Mattia Consiglio for his awesome work on the upstream repository, which made our lives infinitely easier.\n\n## 📚 Table of Contents\n\n- [⚫ crowd-code](#-crowd-code)\n - [📚 Table of Contents](#-table-of-contents)\n - [📖 Usage](#-usage)\n - [📄 Output](#-output)\n - [▶️ Play it back!](#️-play-it-back)\n - [🔧 Extension Settings](#-extension-settings)\n - [⚙️ Requirements](#️-requirements)\n - [🐛 Known Issues](#-known-issues)\n - [🤝 Contributing](#-contributing)\n - [💸 Support me](#-support-me)\n - [📝 Release Notes](#-release-notes)\n\n## 📖 Usage\n\n![crowd-code Extension](https://raw.githubusercontent.com/mattia-consiglio/vs-code-recorder/main/img/preview.gif)\n\nAs soon as the extension activates, recording commences automatically. Recording automatically stops upon IDE closure.\nAdditionally, you can control the recording in two ways:\n\n1. Using the status bar (on the right): Click on ""Start recording"" to begin and ""Stop recording"" to end.\n2. Using the VS Code Recorder sidebar: Click on the extension icon in the activity bar to open the sidebar, where you can:\n - Start/Stop the recording\n - View the recording timer\n - See the current file being recorded\n - Manage your recorded files\n - Add the export path to .gitignore\n - Enable/disable participation in crowd-sourcing the dataset\n\nThe extension will automatically record changes in your text editor. When you stop the recording, it will finalize the data and save it to a CSV (source), JSON and SRT files.\n\nYou can customize the recording experience with these features:\n\n- Choose the export formats (SRT or JSON or both)\n- Set custom names for recording folders\n- Automatically add the export path to .gitignore\n\nYou can also use the command palette to access the extension's features.\nAvailable commands:\n\n- `crowd-code.startRecording`: Start the recording\n- `crowd-code.stopRecording`: Stop the recording\n- `crowd-code.openSettings`: Open the extension settings\n\n## 📄 Output\n\nThe recorded changes are saved in a CSV file in your workspace.\n\nThen, this file is processed to generate output files in SRT and JSON formats, providing a detailed and accessible log of your coding session.\n\n## ▶️ Play it back!\n\nPlayback is a feature by the upstream repository. We have not tested playback using our modified repository (e.g. cursor movement and terminal capture are not implemented upstream; chances are high that playback simply breaks using recordings captured by crowd-code). If you want to try this nonetheless:\n\n- The output files can be played back in the [VS Code Recorder Player web app](https://github.com/mattia-consiglio/vs-code-recorder-player).\n- 🚧 React component available soon...\n\n## 🔧 Extension Settings\n\n- `crowdCode.export.exportPath`: Set the export path. Use `${workspaceFolder}` to export to the workspace folder. In case the path does not exist in the workspace, it will be created.\n\n Default: `${workspaceFolder}/crowd-code/`\n\n- `crowdCode.export.createPathOutsideWorkspace`: Create the export path outside the workspace if it doesn't exist\n\n Default: `false`\n\n- `crowdCode.export.addToGitignore`: Add the export path to .gitignore when creating the folder\n\n Default: `false`\n\n- `crowdCode.export.exportFormats`: Enabled export formats (SRT or JSON or both)\n\n Default: `[""JSON"", ""SRT""]`\n\n- `crowdCode.recording.askFolderName`: Ask for a custom folder name before starting a recording\n\n Default: `false`\n\n- `crowdCode.appearance.minimalMode`: Enable or disable the minimal mode\n\n Default: `false`\n\n- `crowdCode.appearance.showTimer`: Enable or disable the display time\n\n Default: `true`\n\n## ⚙️ Requirements\n\nThis extension requires Visual Studio Code, or any other editor that supports the VS Code API (like Cursor, VSCodium, Windsurf, etc.), to run. No additional dependencies are needed.\n\n## 🐛 Known Issues\n\nThere are currently no known issues with this extension.\n\n## 🤝 Contributing\n\nIf you'd like to contribute to this extension, please feel free to fork the repository and submit a pull request.\n\n## 💸 Support the upstream author\n\nIf you like this extension, please consider [supporting the author of the upstream repository](https://www.paypal.com/donate/?hosted_button_id=D5EUDQ5VEJCSL)!\n\n## 📝 Release Notes\n\nSee [CHANGELOG.md](CHANGELOG.md)\n\n---\n\n**😊 Enjoy!**\n",markdown,tab +63,54521,"README.md",1927,0,"",markdown,selection_command +64,55181,".vscode/tasks.json",0,0,"",jsonc,tab +65,55213,".vscode/tasks.json",730,0,"",jsonc,selection_command +66,58042,"src/actionsProvider.ts",0,0,"",typescript,tab +67,58048,"src/actionsProvider.ts",5223,0,"",typescript,selection_command +68,60363,"test-workspace/.vscode/settings.json",0,0,"",jsonc,tab +69,60367,"test-workspace/.vscode/settings.json",3,0,"",jsonc,selection_command +70,61900,"src/test/recording.test.ts",0,0,"",typescript,tab +71,61906,"src/test/recording.test.ts",616,0,"",typescript,selection_command +72,64282,"src/utilities.ts",0,0,"",typescript,tab +73,64288,"src/utilities.ts",424,0,"",typescript,selection_command +74,65945,"src/recording.ts",0,0,"",typescript,tab +75,65949,"src/recording.ts",753,0,"",typescript,selection_command +76,75949,"src/extension.ts",0,0,"",typescript,tab +77,75954,"src/extension.ts",869,0,"",typescript,selection_command +78,78558,".vscode/tasks.json",0,0,"",jsonc,tab +79,78562,".vscode/tasks.json",730,0,"",jsonc,selection_command +80,80097,"README.md",0,0,"",markdown,tab +81,80133,"README.md",1927,0,"",markdown,selection_command +82,82559,"package.nls.json",0,0,"{\n\t""displayName"": ""crowd-code"",\n\t""description"": ""Record the code in SRT and JSON format"",\n\t""command.startRecording.title"": ""crowd-code: Start Recording"",\n\t""command.stopRecording.title"": ""crowd-code: Stop Recording"",\n\t""command.openSettings.title"": ""crowd-code: Open Settings"",\n\t""command.refreshRecordFiles.title"": ""Refresh"",\n\t""command.addToGitignore.title"": ""Add to .gitignore"",\n\t""command.showUserId.title"": ""crowd-code: Show User ID"",\n\t""command.consent.title"": ""crowd-code: Manage Data Collection Consent"",\n\t""command.resetConsent.title"": ""crowd-code (For Testing): Reset Consent"",\n\t""config.title"": ""crowd-code"",\n\t""config.exportPath.description"": ""Set the export path. Use `${workspaceFolder}` to export to the workspace folder. In case the path does not exist in the workspace, it will be created."",\n\t""config.createPathOutsideWorkspace.description"": ""Create the export path outside the workspace"",\n\t""config.addToGitignore.description"": ""Add the export path to .gitignore when creating the folder"",\n\t""config.exportFormats.description"": ""Select the formats to export recording data"",\n\t""config.minimalMode.description"": ""Enable minimal mode. Display only icons and no text"",\n\t""config.showTimer.description"": ""Show timer. The timer will be displayed even in minimal mode"",\n\t""config.askFolderName.description"": ""Ask for a custom folder name before starting a recording"",\n\t""view.recordFiles.name"": ""Recorded Files"",\n\t""view.recordFiles.contextualTitle"": ""Recorded Files"",\n\t""view.actions.name"": ""Actions"",\n\t""view.actions.contextualTitle"": ""Actions"",\n\t""command.deleteRecordFile.title"": ""Delete"",\n\t""command.revealInExplorer.title"": ""Reveal in File Explorer"",\n\t""dialog.deleteConfirmation"": ""Are you sure you want to delete {name}?"",\n\t""dialog.yes"": ""Yes"",\n\t""dialog.no"": ""No"",\n\t""dialog.enterFolderName.prompt"": ""Enter a name for the recording folder"",\n\t""dialog.enterFolderName.placeholder"": ""Enter recording folder name"",\n\t""error.noWorkspace"": ""No workspace folder found"",\n\t""error.noExportPath"": ""No export path specified""\n}",json,tab +83,82588,"package.nls.json",507,0,"",json,selection_command +84,85130,"package.json",0,0,"{\n ""name"": ""crowd-code"",\n ""displayName"": ""%displayName%"",\n ""description"": ""%description%"",\n ""version"": ""1.1.3"",\n ""publisher"": ""pdoom-org"",\n ""icon"": ""icon.png"",\n ""engines"": {\n ""vscode"": ""^1.89.0""\n },\n ""main"": ""./out/extension.js"",\n ""categories"": [\n ""Other"",\n ""Education""\n ],\n ""activationEvents"": [\n ""onStartupFinished""\n ],\n ""l10n"": ""./l10n"",\n ""contributes"": {\n ""commands"": [\n {\n ""command"": ""crowd-code.startRecording"",\n ""title"": ""%command.startRecording.title%"",\n ""icon"": ""$(play)""\n },\n {\n ""command"": ""crowd-code.stopRecording"",\n ""title"": ""%command.stopRecording.title%"",\n ""icon"": ""$(stop)""\n },\n {\n ""command"": ""crowd-code.openSettings"",\n ""title"": ""%command.openSettings.title%"",\n ""icon"": ""$(settings)""\n },\n {\n ""command"": ""crowd-code.refreshRecordFiles"",\n ""title"": ""%command.refreshRecordFiles.title%"",\n ""icon"": ""$(refresh)""\n },\n {\n ""command"": ""crowd-code.deleteRecordFile"",\n ""title"": ""%command.deleteRecordFile.title%"",\n ""icon"": ""$(trash)""\n },\n {\n ""command"": ""crowd-code.revealInExplorer"",\n ""title"": ""%command.revealInExplorer.title%"",\n ""icon"": ""$(folder-opened)""\n },\n {\n ""command"": ""crowd-code.addToGitignore"",\n ""title"": ""%command.addToGitignore.title%"",\n ""icon"": ""$(git-ignore)""\n },\n {\n ""command"": ""crowd-code.showUserId"",\n ""title"": ""%command.showUserId.title%""\n },\n {\n ""command"": ""crowd-code.consent"",\n ""title"": ""%command.consent.title%""\n },\n {\n ""command"": ""crowd-code.resetConsent"",\n ""title"": ""%command.resetConsent.title%""\n }\n ],\n ""viewsContainers"": {\n ""activitybar"": [\n {\n ""id"": ""crowd-code"",\n ""title"": ""crowd-code"",\n ""icon"": ""icon.svg""\n }\n ]\n },\n ""views"": {\n ""crowd-code"": [\n {\n ""id"": ""actions"",\n ""name"": ""%view.actions.name%"",\n ""icon"": ""icon.svg"",\n ""contextualTitle"": ""%view.actions.contextualTitle%""\n },\n {\n ""id"": ""recordFiles"",\n ""name"": ""%view.recordFiles.name%"",\n ""icon"": ""icon.svg"",\n ""contextualTitle"": ""%view.recordFiles.contextualTitle%""\n }\n ]\n },\n ""menus"": {\n ""view/title"": [\n {\n ""command"": ""crowd-code.refreshRecordFiles"",\n ""when"": ""view == recordFiles"",\n ""group"": ""navigation""\n },\n {\n ""command"": ""crowd-code.addToGitignore"",\n ""when"": ""view == actions"",\n ""group"": ""navigation""\n },\n {\n ""command"": ""crowd-code.consent"",\n ""when"": ""view == actions"",\n ""group"": ""navigation""\n }\n ],\n ""view/item/context"": [\n {\n ""command"": ""crowd-code.deleteRecordFile"",\n ""when"": ""view == recordFiles"",\n ""group"": ""inline""\n },\n {\n ""command"": ""crowd-code.revealInExplorer"",\n ""when"": ""view == recordFiles"",\n ""group"": ""inline""\n },\n {\n ""command"": ""crowd-code.deleteRecordFile"",\n ""when"": ""view == recordFiles"",\n ""group"": ""1_modification""\n },\n {\n ""command"": ""crowd-code.revealInExplorer"",\n ""when"": ""view == recordFiles"",\n ""group"": ""2_workspace""\n }\n ]\n },\n ""configuration"": {\n ""title"": ""%config.title%"",\n ""properties"": {\n ""crowdCode.export.exportPath"": {\n ""type"": ""string"",\n ""default"": ""${workspaceFolder}/crowd-code/"",\n ""markdownDescription"": ""%config.exportPath.description%"",\n ""order"": 0\n },\n ""crowdCode.export.createPathOutsideWorkspace"": {\n ""type"": ""boolean"",\n ""default"": false,\n ""description"": ""%config.createPathOutsideWorkspace.description%"",\n ""order"": 1\n },\n ""crowdCode.export.addToGitignore"": {\n ""type"": ""boolean"",\n ""default"": false,\n ""description"": ""%config.addToGitignore.description%"",\n ""order"": 2\n },\n ""crowdCode.export.exportFormats"": {\n ""type"": ""array"",\n ""items"": {\n ""type"": ""string"",\n ""enum"": [\n ""JSON"",\n ""SRT""\n ]\n },\n ""uniqueItems"": true,\n ""default"": [\n ""JSON"",\n ""SRT""\n ],\n ""description"": ""%config.exportFormats.description%"",\n ""order"": 3\n },\n ""crowdCode.recording.askFolderName"": {\n ""type"": ""boolean"",\n ""default"": false,\n ""description"": ""%config.askFolderName.description%"",\n ""order"": 4\n },\n ""crowdCode.appearance.minimalMode"": {\n ""type"": ""boolean"",\n ""default"": false,\n ""description"": ""%config.minimalMode.description%"",\n ""order"": 5\n },\n ""crowdCode.appearance.showTimer"": {\n ""type"": ""boolean"",\n ""default"": true,\n ""description"": ""%config.showTimer.description%"",\n ""order"": 6\n }\n }\n }\n },\n ""repository"": {\n ""type"": ""git"",\n ""url"": ""git://github.com/p-doom/crowd-code.git""\n },\n ""scripts"": {\n ""vscode:prepublish"": ""npm run package"",\n ""ovsx:publish"": ""ovsx publish"",\n ""compile"": ""webpack"",\n ""watch"": ""webpack --watch"",\n ""package"": ""webpack --mode production --devtool hidden-source-map"",\n ""compile-tests"": ""tsc -p . --outDir out"",\n ""watch-tests"": ""tsc -p . -w --outDir out"",\n ""pretest"": ""npm run compile-tests && npm run compile && npm run lint"",\n ""lint"": ""eslint src --ext ts"",\n ""test"": ""vscode-test""\n },\n ""devDependencies"": {\n ""@types/mocha"": ""^10.0.6"",\n ""@types/node"": ""18.x"",\n ""@types/vscode"": ""^1.89.0"",\n ""@typescript-eslint/eslint-plugin"": ""^7.11.0"",\n ""@typescript-eslint/parser"": ""^7.11.0"",\n ""@vscode/l10n-dev"": ""^0.0.35"",\n ""@vscode/test-cli"": ""^0.0.9"",\n ""@vscode/test-electron"": ""^2.4.0"",\n ""eslint"": ""^8.57.0"",\n ""ts-loader"": ""^9.5.1"",\n ""typescript"": ""^5.4.5"",\n ""webpack"": ""^5.91.0"",\n ""webpack-cli"": ""^5.1.4""\n },\n ""dependencies"": {\n ""@vscode/l10n"": ""^0.0.18"",\n ""axios"": ""^1.7.2""\n }\n}",json,tab +85,85136,"package.json",412,0,"",json,selection_command +86,87085,"CHANGELOG.md",0,0,"# Change Log\n\nAll notable changes to the ""crowd-code"" extension will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)\n\n## [Unreleased]\n\n### Added\n\n### Changed\n\n### Deprecated\n\n### Removed\n\n### Fixed\n\n### Security\n\n## 1.1.3\n\n### Added\n\n- include userId (hashed) and extension version as metadata when sending CSVs\n- a new command to display the userId in the command palette for the user.\n\n### Changed\n\n- user friendly upload to s3 through api gateway and lambda\n- export path defaulting to `/tmp` when none is specified by the user, ensuring a valid export location is always available and NOT in the user's workspace\n\n## 1.1.2\n\n### Added\n\n- log cursor movement, command execution and terminal interactions\n- Upload recording files to S3 bucket\n\n### Changed\n\n- Recording on extension startup, autostart logging\n- only log file content the first time\n- stop recording on closure\n- metadata, icon, project name\n\n\nforked: crowd-code\n--- \n\n## 1.1.1\n\n### Changed\n\n- Updated README.md with new features documentation and improved usage instructions.\n\n## 1.1.0\n\n### Added\n\n- Language locale support. Now available in English and Italian. (Fell free to contribute to add more languages!)\n- Added recording side panel to show the recording progress and manage the recordings.\n- Added option to set custom folder names for recordings with timestamp appended.\n- Added option to automatically add export path to .gitignore and a button to manually add it.\n\n### Fixed\n\n- Skip exporting changes with the same values to the previous change.\n- Offset by 1 ms the `startTime` and `endTime` to avoid the overlap of the changes.\n\n### Changed\n\n- Added automated tests.\n- Refactored code.\n\n## 1.0.11\n\n### Changed\n\n- Code refactoring.\n\n## 1.0.10\n\n### Changed\n\n- Settings sorting.\n\n## 1.0.9\n\n### Added\n\n- Add educational category for the extension.\n\n## 1.0.8\n\n### Added\n\n- Output folder options for SRT and JSON files.\n- Option to create path outside of workspace.\n- Command to open the extension settings.\n- Log to output channel.\n- Link to VS Code Recorder Player web app.\n\n### Fixed\n\n- Prevent to record the files in the export folder.\n\n## 1.0.7 (skipped public release)\n\n### Fixed\n\n- Fix end time in SRT export\n\n## 1.0.6\n\n### Changed\n\n- Referenced changelog for release notes\n\n### Fixed\n\n- Actually add code language recording to SRT export\n\n## 1.0.5\n\n### Changed\n\n- Updated CHANGELOG.md\n\n## 1.0.4\n\n### Added\n\n- Export settings. Now you can choose in which format you want to export the data (SRT or JSON or both).\n- Minimal mode. This will display only the icons.\n- Setting for displaying the timer while recording.\n\n### Changed\n\n- Update README.md\n\n## 1.0.3\n\n### Added\n\n- Code language recording\n\n### Changed\n\n- Code cleanup\n- Update README.md\n\n## 1.0.2\n\n### Changed\n\n- Update README.md\n\n## 1.0.1\n\n### Fixed\n\n- Fix sequence number to start at 0 every recording\n\n## 1.0.0\n\nInitial release of VS Code Recorder Extension.\n",markdown,tab +87,87123,"CHANGELOG.md",14,0,"",markdown,selection_command +88,97184,"extension-output-pdoom-org.crowd-code-#4-crowd-code",0,0,"",Log,tab +89,98183,"CHANGELOG.md",0,0,"",markdown,tab +90,99989,"TERMINAL",0,0,"git stash",,terminal_command +91,100033,"TERMINAL",0,0,"]633;CSaved working directory and index state WIP on consent-modal-on-installation: 990c529 feat: ask user for consent of participation in crowd-sourcing\r\n% \r \r",,terminal_output +92,100195,"CHANGELOG.md",14,83,"All notable changes to the ""vs-code-recorder"" extension will be documented in this file.\n",markdown,content +93,114748,"TERMINAL",0,0,"git stash pop",,terminal_command +94,114788,"TERMINAL",0,0,"]633;CAuto-merging package.json\r\nCONFLICT (content): Merge conflict in package.json\r\nAuto-merging package.nls.json\r\nCONFLICT (content): Merge conflict in package.nls.json\r\nAuto-merging src/actionsProvider.ts\r\nCONFLICT (content): Merge conflict in src/actionsProvider.ts\r\nAuto-merging src/extension.ts\r\nCONFLICT (content): Merge conflict in src/extension.ts\r\nAuto-merging src/recording.ts\r\nOn branch dev\r\nYour branch is up to date with 'origin/dev'.\r\n\r\nChanges to be committed:\r\n (use ""git restore --staged ..."" to unstage)\r\n\tmodified: .gitignore\r\n\tmodified: .vscode/tasks.json\r\n\tmodified: CHANGELOG.md\r\n\tmodified: README.md\r\n\tmodified: src/recording.ts\r\n\tmodified: src/test/recording.test.ts\r\n\tmodified: src/utilities.ts\r\n\tmodified: test-workspace/.vscode/settings.json\r\n\r\nUnmerged paths:\r\n (use ""git restore --staged ..."" to unstage)\r\n (use ""git add ..."" to mark resolution)\r\n\tboth modified: package.json\r\n\tboth modified: package.nls.json\r\n\tboth modified: src/actionsProvider.ts\r\n\tboth modified: src/extension.ts\r\n\r\nThe stash entry is kept in case you need it again.\r\n% \r \r",,terminal_output +95,114950,"CHANGELOG.md",14,89,"All notable changes to the ""crowd-code"" extension will be documented in this file.\n",markdown,content +96,119782,"src/test/recording.test.ts",0,0,"import * as assert from 'node:assert'\r\nimport * as vscode from 'vscode'\r\nimport * as path from 'node:path'\r\nimport * as fs from 'node:fs'\r\nimport { setDefaultOptions, getConfig } from '../utilities'\r\nimport { statusBarItem } from '../extension'\r\n\r\n/**\r\n * Waits for the specified number of milliseconds and then resolves the returned Promise.\r\n * @param ms - The number of milliseconds to wait. Defaults to 500 ms.\r\n * @returns A Promise that resolves after the specified number of milliseconds.\r\n */\r\nconst waitMs = (ms = 500) => new Promise(resolve => setTimeout(resolve, ms))\r\n\r\nsuite('Recording Tests', () => {\r\n\tconst publisher = 'pdoom-org'\r\n\tconst extensionName = 'crowd-code'\r\n\r\n\tlet workspaceFolder: string\r\n\r\n\tlet statusBarSpy: vscode.StatusBarItem\r\n\r\n\tvscode.window.showInformationMessage('Start all tests.')\r\n\r\n\tsetup(async () => {\r\n\t\t// biome-ignore lint/style/noNonNullAssertion: the workspace folder is created by the test suite\r\n\t\tworkspaceFolder = vscode.workspace.workspaceFolders![0].uri.fsPath\r\n\t\tsetDefaultOptions()\r\n\t\t// set workspace export path\r\n\t\tgetConfig().update(\r\n\t\t\t'export.exportPath',\r\n\t\t\t'${workspaceFolder}',\r\n\t\t\tvscode.ConfigurationTarget.Workspace\r\n\t\t)\r\n\t\tstatusBarSpy = statusBarItem\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t})\r\n\r\n\tteardown(async () => {\r\n\t\t// First ensure recording is stopped\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\r\n\t\t// Add small delay to ensure VS Code releases file handles\r\n\t\tawait vscode.commands.executeCommand('workbench.action.closeAllEditors')\r\n\t\tawait waitMs(100)\r\n\r\n\t\tif (workspaceFolder) {\r\n\t\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\t\tfor (const file of files) {\r\n\t\t\t\tif (file !== '.vscode') {\r\n\t\t\t\t\tfs.unlinkSync(path.join(workspaceFolder, file))\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t})\r\n\r\n\ttest('Should be visible the status bar item', async () => {\r\n\t\t// Wait for status bar item to be created\r\n\t\tawait waitMs()\r\n\r\n\t\tassert.strictEqual(\r\n\t\t\tstatusBarSpy.text.includes('$(circle-large-filled)'),\r\n\t\t\ttrue,\r\n\t\t\t'Should be visible the circle icon'\r\n\t\t)\r\n\t\tassert.strictEqual(\r\n\t\t\tstatusBarSpy.tooltip?.toString().includes('Start Recording'),\r\n\t\t\ttrue,\r\n\t\t\t'The tooltip should be ""Start Recording""'\r\n\t\t)\r\n\t})\r\n\r\n\ttest('Should start recording when start command is executed', async () => {\r\n\t\t// Execute start recording command\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\r\n\t\t// Get status bar state through the extension's status bar item\r\n\t\tassert.strictEqual(\r\n\t\t\tstatusBarSpy.text.includes('$(debug-stop)'),\r\n\t\t\ttrue,\r\n\t\t\t'Should be visible the stop icon'\r\n\t\t)\r\n\t\tassert.strictEqual(\r\n\t\t\tstatusBarSpy.tooltip?.toString().includes('Stop Recording'),\r\n\t\t\ttrue,\r\n\t\t\t""Status bar item tooltip should be 'Stop Recording'""\r\n\t\t)\r\n\t})\r\n\r\n\ttest('Should create CSV file when recording starts', async () => {\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\r\n\t\t// Wait for file creation\r\n\t\tawait waitMs(1000)\r\n\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst csvFile = files.find(file => file.endsWith('.csv'))\r\n\r\n\t\tassert.ok(csvFile, 'CSV file should be created')\r\n\r\n\t\t// Cleanup\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t})\r\n\r\n\ttest('Should stop recording when stop command is executed', async () => {\r\n\t\t// Start recording first\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs(1000)\r\n\r\n\t\t// Stop recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\r\n\t\t// Check status bar\r\n\t\tassert.strictEqual(statusBarSpy.text.includes('$(circle-large-filled)'), true)\r\n\t\tassert.strictEqual(statusBarSpy.tooltip?.toString().includes('Start Recording'), true)\r\n\t})\r\n\r\n\ttest('Should not generate output files when stopping recording', async () => {\r\n\t\t// Configure export formats (none)\r\n\t\tawait getConfig().update('exportFormats', [])\r\n\r\n\t\t// Start and stop recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs(1000)\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t\tawait waitMs()\r\n\r\n\t\t// Check for output files\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst jsonFile = files.find(file => file.endsWith('.json'))\r\n\t\tconst srtFile = files.find(file => file.endsWith('.srt'))\r\n\r\n\t\tassert.ok(!jsonFile, 'JSON file should NOT be created')\r\n\t\tassert.ok(!srtFile, 'SRT file should NOT be created')\r\n\t})\r\n\r\n\ttest('Should generate JSON output file when stopping recording', async () => {\r\n\t\t// Configure export formats\r\n\t\tawait getConfig().update('exportFormats', ['JSON'])\r\n\r\n\t\t// Start and stop recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs(1000)\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t\tawait waitMs()\r\n\r\n\t\t// Check for output files\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst jsonFile = files.find(file => file.endsWith('.json'))\r\n\t\tconst srtFile = files.find(file => file.endsWith('.srt'))\r\n\r\n\t\tassert.ok(jsonFile, 'JSON file should be created')\r\n\t\tassert.ok(!srtFile, 'SRT file should NOT be created')\r\n\t})\r\n\r\n\ttest('Should generate SRT output file when stopping recording', async () => {\r\n\t\t// Configure export formats\r\n\t\tawait getConfig().update('exportFormats', ['SRT'])\r\n\r\n\t\t// Start and stop recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs(1000)\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t\tawait waitMs()\r\n\r\n\t\t// Check for output files\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst jsonFile = files.find(file => file.endsWith('.json'))\r\n\t\tconst srtFile = files.find(file => file.endsWith('.srt'))\r\n\r\n\t\tassert.ok(!jsonFile, 'JSON file should NOT be created')\r\n\t\tassert.ok(srtFile, 'SRT file should be created')\r\n\t})\r\n\r\n\ttest('Should generate output files (JSON, SRT) when stopping recording', async () => {\r\n\t\t// Configure export formats\r\n\t\tawait getConfig().update('exportFormats', ['JSON', 'SRT'])\r\n\r\n\t\t// Start and stop recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs(1000)\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t\tawait waitMs()\r\n\r\n\t\t// Check for output files\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst jsonFile = files.find(file => file.endsWith('.json'))\r\n\t\tconst srtFile = files.find(file => file.endsWith('.srt'))\r\n\r\n\t\tassert.ok(jsonFile, 'JSON file should be created')\r\n\t\tassert.ok(srtFile, 'SRT file should be created')\r\n\t})\r\n\r\n\tconst testCsvFile = (csvPath: string, expectedLines: string[]) => {\r\n\t\tconst csvContent = fs.readFileSync(csvPath, 'utf-8')\r\n\t\tconst lines = csvContent.split('\n').filter(line => line.trim() !== '')\r\n\r\n\t\tassert.strictEqual(\r\n\t\t\tlines.length,\r\n\t\t\texpectedLines.length,\r\n\t\t\t'Number of lines in CSV file should match expected lines'\r\n\t\t)\r\n\r\n\t\tfor (let i = 0; i < lines.length; i++) {\r\n\t\t\tconst line = lines[i]\r\n\t\t\tlet expectedLine = expectedLines[i]\r\n\r\n\t\t\tconst timestampIndex = expectedLine.indexOf('%n')\r\n\t\t\tif (timestampIndex !== -1) {\r\n\t\t\t\tconst commaIndex = expectedLine.indexOf(',', timestampIndex + 1)\r\n\t\t\t\texpectedLine = expectedLine.replace('%n', line.substring(0, commaIndex))\r\n\t\t\t}\r\n\t\t\tassert.strictEqual(\r\n\t\t\t\tlines[i],\r\n\t\t\t\texpectedLines[i],\r\n\t\t\t\t`Line ${i + 1} in CSV file should match expected line`\r\n\t\t\t)\r\n\t\t}\r\n\t}\r\n\r\n\ttest('Should record file changes and verify exports', async () => {\r\n\t\t// Create and write to new file using VS Code API\r\n\t\tconst testFileUri = vscode.Uri.file(path.join(workspaceFolder, 'test.txt'))\r\n\t\tconst initialContent = 'This is an example recording'\r\n\t\tawait vscode.workspace.fs.writeFile(testFileUri, Buffer.from(''))\r\n\r\n\t\t// Open file in VS Code\r\n\t\tconst doc = await vscode.workspace.openTextDocument(testFileUri)\r\n\t\tconst editor = await vscode.window.showTextDocument(doc)\r\n\r\n\t\t// Start recording\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.startRecording`)\r\n\t\tawait waitMs()\r\n\r\n\t\t// Get CSV path\r\n\t\tconst csvFilename = fs.readdirSync(workspaceFolder).find(f => f.endsWith('.csv'))\r\n\r\n\t\tassert.strictEqual(csvFilename !== undefined, true, 'CSV file should be created')\r\n\r\n\t\tif (csvFilename === undefined) {\r\n\t\t\treturn\r\n\t\t}\r\n\t\tconst csvPath = path.join(workspaceFolder, csvFilename)\r\n\r\n\t\tconst csvExpectedLines = [\r\n\t\t\t'Sequence,Time,File,RangeOffset,RangeLength,Text,Language,Type',\r\n\t\t\t'1,%n,""test.txt"",0,0,"""",plaintext,tab',\r\n\t\t]\r\n\t\ttestCsvFile(csvPath, csvExpectedLines)\r\n\r\n\t\tawait editor.edit(editBuilder => {\r\n\t\t\teditBuilder.insert(new vscode.Position(0, 0), initialContent)\r\n\t\t})\r\n\t\tawait waitMs(1000)\r\n\r\n\t\tcsvExpectedLines.push('2,%n,""test.txt"",0,0,""This is an example recording"",plaintext,content')\r\n\t\ttestCsvFile(csvPath, csvExpectedLines)\r\n\r\n\t\t// Select text to remove\r\n\t\tconst textToRemove = 'n example'\r\n\t\tconst startPos = initialContent.indexOf(textToRemove)\r\n\t\tawait editor.edit(editBuilder => {\r\n\t\t\teditBuilder.replace(\r\n\t\t\t\tnew vscode.Range(\r\n\t\t\t\t\tnew vscode.Position(0, startPos),\r\n\t\t\t\t\tnew vscode.Position(0, startPos + textToRemove.length)\r\n\t\t\t\t),\r\n\t\t\t\t''\r\n\t\t\t)\r\n\t\t})\r\n\t\tawait waitMs(1000)\r\n\r\n\t\tcsvExpectedLines.push('3,%n,""test.txt"",0,0,""This is a recording"",plaintext,content')\r\n\t\ttestCsvFile(csvPath, csvExpectedLines)\r\n\r\n\t\t// Stop recording and wait for export\r\n\t\tawait vscode.commands.executeCommand(`${extensionName}.stopRecording`)\r\n\t\tawait waitMs(1000)\r\n\r\n\t\t// Verify exports\r\n\t\tconst files = fs.readdirSync(workspaceFolder)\r\n\t\tconst jsonFile = files.find(f => f.endsWith('.json'))\r\n\t\tconst srtFile = files.find(f => f.endsWith('.srt'))\r\n\r\n\t\tif (jsonFile) {\r\n\t\t\tconst jsonContent = JSON.parse(fs.readFileSync(path.join(workspaceFolder, jsonFile), 'utf-8'))\r\n\t\t\t// biome-ignore lint/suspicious/noExplicitAny: \r\n\t\t\tassert.ok(jsonContent.some((change: any) => change.text.includes(initialContent)))\r\n\t\t\t// biome-ignore lint/suspicious/noExplicitAny: \r\n\t\t\tassert.ok(jsonContent.some((change: any) => change.text.includes('This is a recording')))\r\n\t\t}\r\n\r\n\t\tif (srtFile) {\r\n\t\t\tconst srtContent = fs.readFileSync(path.join(workspaceFolder, srtFile), 'utf-8')\r\n\t\t\tassert.ok(srtContent.includes(initialContent))\r\n\t\t\tassert.ok(srtContent.includes('This is a recording'))\r\n\t\t}\r\n\t})\r\n})\r\n",typescript,tab +97,119822,"src/test/recording.test.ts",616,0,"",typescript,selection_command +98,123174,"test-workspace/.vscode/settings.json",0,0,"{\r\n\t""crowdCode.export.exportPath"": ""${workspaceFolder}/crowd-code/"",\r\n\t""crowdCode.export.createPathOutsideWorkspace"": false,\r\n\t""crowdCode.export.exportFormats"": [""JSON"", ""SRT""],\r\n\t""crowdCode.appearance.minimalMode"": false,\r\n\t""crowdCode.appearance.showTimer"": true\r\n}\r\n",jsonc,tab +99,123178,"test-workspace/.vscode/settings.json",3,0,"",jsonc,selection_command +100,123881,"src/test/recording.test.ts",0,0,"",typescript,tab +101,123886,"src/test/recording.test.ts",616,0,"",typescript,selection_command +102,166163,"package.json",0,0,"",json,tab +103,176304,"package.json",2751,0,"",json,selection_mouse +104,176313,"package.json",2750,0,"",json,selection_command +105,177239,"package.json",2727,24,"<<<<<<< Updated upstream",json,selection_command +106,177838,"package.json",2727,32,"<<<<<<< Updated upstream\n=======",json,selection_command +107,182552,"package.json",2758,0,"",json,selection_command +108,183533,"package.json",2750,0,"",json,selection_command +109,183926,"package.json",2727,24,"<<<<<<< Updated upstream",json,selection_command +110,184382,"package.json",2727,32,"<<<<<<< Updated upstream\n=======",json,selection_command +111,184530,"package.json",2727,43,"<<<<<<< Updated upstream\n=======\n },",json,selection_command +112,184676,"package.json",2727,53,"<<<<<<< Updated upstream\n=======\n },\n {",json,selection_command +113,184809,"package.json",2727,96,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",",json,selection_command +114,184971,"package.json",2727,133,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",\n ""when"": ""view == actions"",",json,selection_command +115,185118,"package.json",2727,165,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",\n ""when"": ""view == actions"",\n ""group"": ""navigation""",json,selection_command +116,185403,"package.json",2727,189,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",\n ""when"": ""view == actions"",\n ""group"": ""navigation""\n>>>>>>> Stashed changes",json,selection_command +117,186404,"package.json",2727,190,"",json,content +118,186412,"package.json",2735,0,"",json,selection_command +119,189485,"package.json",1553,0,"",json,selection_mouse +120,189488,"package.json",1552,0,"",json,selection_command +121,189956,"package.json",1529,24,"<<<<<<< Updated upstream",json,selection_command +122,190208,"package.json",1529,32,"<<<<<<< Updated upstream\n=======",json,selection_command +123,190467,"package.json",1529,41,"<<<<<<< Updated upstream\n=======\n },",json,selection_command +124,190493,"package.json",1529,49,"<<<<<<< Updated upstream\n=======\n },\n {",json,selection_command +125,190531,"package.json",1529,90,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",",json,selection_command +126,190824,"package.json",1529,133,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",\n ""title"": ""%command.consent.title%""",json,selection_command +127,191072,"package.json",1529,142,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",\n ""title"": ""%command.consent.title%""\n },",json,selection_command +128,191098,"package.json",1529,150,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",\n ""title"": ""%command.consent.title%""\n },\n {",json,selection_command +129,191239,"package.json",1529,196,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",\n ""title"": ""%command.consent.title%""\n },\n {\n ""command"": ""crowd-code.resetConsent"",",json,selection_command +130,191396,"package.json",1529,244,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",\n ""title"": ""%command.consent.title%""\n },\n {\n ""command"": ""crowd-code.resetConsent"",\n ""title"": ""%command.resetConsent.title%""",json,selection_command +131,191727,"package.json",1529,268,"<<<<<<< Updated upstream\n=======\n },\n {\n ""command"": ""crowd-code.consent"",\n ""title"": ""%command.consent.title%""\n },\n {\n ""command"": ""crowd-code.resetConsent"",\n ""title"": ""%command.resetConsent.title%""\n>>>>>>> Stashed changes",json,selection_command +132,191922,"package.json",1529,269,"",json,content +133,191926,"package.json",1535,0,"",json,selection_command +134,194737,"package.json",0,0,"",json,tab +135,212785,"package.json",2339,50," ""command"": ""vs-code-recorder.addToGitignore"",\n ""when"": ""view == actions"",\n ""group"": ""navigation""\n },\n {\n ""command"": ""vs-code-recorder.consent"",\n",json,content +136,212786,"package.json",2464,139,"",json,content +137,216707,"package.json",0,0,"",json,tab +138,219386,"package.nls.json",0,0,"",json,tab +139,232195,"package.nls.json",0,3931,"{\n\t""displayName"": ""crowd-code"",\n\t""description"": ""Record the code in SRT and JSON format"",\n\t""command.startRecording.title"": ""crowd-code: Start Recording"",\n\t""command.stopRecording.title"": ""crowd-code: Stop Recording"",\n\t""command.openSettings.title"": ""crowd-code: Open Settings"",\n\t""command.refreshRecordFiles.title"": ""Refresh"",\n\t""command.addToGitignore.title"": ""Add to .gitignore"",\n\t""command.showUserId.title"": ""crowd-code: Show User ID"",\n\t""config.title"": ""crowd-code"",\n\t""config.exportPath.description"": ""Set the export path. Use `${workspaceFolder}` to export to the workspace folder. In case the path does not exist in the workspace, it will be created."",\n\t""config.createPathOutsideWorkspace.description"": ""Create the export path outside the workspace"",\n\t""config.addToGitignore.description"": ""Add the export path to .gitignore when creating the folder"",\n\t""config.exportFormats.description"": ""Select the formats to export recording data"",\n\t""config.minimalMode.description"": ""Enable minimal mode. Display only icons and no text"",\n\t""config.showTimer.description"": ""Show timer. The timer will be displayed even in minimal mode"",\n\t""config.askFolderName.description"": ""Ask for a custom folder name before starting a recording"",\n\t""view.recordFiles.name"": ""Recorded Files"",\n\t""view.recordFiles.contextualTitle"": ""Recorded Files"",\n\t""view.actions.name"": ""Actions"",\n\t""view.actions.contextualTitle"": ""Actions"",\n\t""command.deleteRecordFile.title"": ""Delete"",\n\t""command.revealInExplorer.title"": ""Reveal in File Explorer"",\n\t""dialog.deleteConfirmation"": ""Are you sure you want to delete {name}?"",\n\t""dialog.yes"": ""Yes"",\n\t""dialog.no"": ""No"",\n\t""dialog.enterFolderName.prompt"": ""Enter a name for the recording folder"",\n\t""dialog.enterFolderName.placeholder"": ""Enter recording folder name"",\n\t""error.noWorkspace"": ""No workspace folder found"",\n\t""error.noExportPath"": ""No export path specified""\n",json,content +140,235296,"package.nls.json",0,0,"",json,tab +141,244479,"package.nls.json",0,0,"",json,tab +142,246024,"src/actionsProvider.ts",0,0,"",typescript,tab +143,252420,"src/actionsProvider.ts",5357,0,"",typescript,selection_mouse +144,252427,"src/actionsProvider.ts",5356,0,"",typescript,selection_command +145,253149,"src/actionsProvider.ts",5330,0,"",typescript,selection_command +146,257452,"src/actionsProvider.ts",5340,0,"",typescript,selection_mouse +147,258098,"src/actionsProvider.ts",5324,24,"<<<<<<< Updated upstream",typescript,selection_command +148,258308,"src/actionsProvider.ts",5324,33,"<<<<<<< Updated upstream\r\n=======",typescript,selection_command +149,258566,"src/actionsProvider.ts",5324,85,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management",typescript,selection_command +150,258603,"src/actionsProvider.ts",5324,126,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(",typescript,selection_command +151,258625,"src/actionsProvider.ts",5324,157,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),",typescript,selection_command +152,258657,"src/actionsProvider.ts",5324,199,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,",typescript,selection_command +153,258687,"src/actionsProvider.ts",5324,205,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{",typescript,selection_command +154,258721,"src/actionsProvider.ts",5324,241,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',",typescript,selection_command +155,258756,"src/actionsProvider.ts",5324,287,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',\r\n\t\t\t\ttitle: 'Manage Data Collection Consent',",typescript,selection_command +156,258789,"src/actionsProvider.ts",5324,294,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',\r\n\t\t\t\ttitle: 'Manage Data Collection Consent',\r\n\t\t\t},",typescript,selection_command +157,258925,"src/actionsProvider.ts",5324,307,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',\r\n\t\t\t\ttitle: 'Manage Data Collection Consent',\r\n\t\t\t},\r\n\t\t\t'shield'",typescript,selection_command +158,259184,"src/actionsProvider.ts",5324,312,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',\r\n\t\t\t\ttitle: 'Manage Data Collection Consent',\r\n\t\t\t},\r\n\t\t\t'shield'\r\n\t\t)",typescript,selection_command +159,259210,"src/actionsProvider.ts",5324,341,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',\r\n\t\t\t\ttitle: 'Manage Data Collection Consent',\r\n\t\t\t},\r\n\t\t\t'shield'\r\n\t\t)\r\n\t\titems.push(consentStatus)",typescript,selection_command +160,259249,"src/actionsProvider.ts",5324,343,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',\r\n\t\t\t\ttitle: 'Manage Data Collection Consent',\r\n\t\t\t},\r\n\t\t\t'shield'\r\n\t\t)\r\n\t\titems.push(consentStatus)\r\n",typescript,selection_command +161,259429,"src/actionsProvider.ts",5324,368,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',\r\n\t\t\t\ttitle: 'Manage Data Collection Consent',\r\n\t\t\t},\r\n\t\t\t'shield'\r\n\t\t)\r\n\t\titems.push(consentStatus)\r\n\r\n>>>>>>> Stashed changes",typescript,selection_command +162,259697,"src/actionsProvider.ts",5324,384,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',\r\n\t\t\t\ttitle: 'Manage Data Collection Consent',\r\n\t\t\t},\r\n\t\t\t'shield'\r\n\t\t)\r\n\t\titems.push(consentStatus)\r\n\r\n>>>>>>> Stashed changes\r\n\t\treturn items",typescript,selection_command +163,259950,"src/actionsProvider.ts",5324,368,"<<<<<<< Updated upstream\r\n=======\r\n\t\t// Data collection consent status and management\r\n\t\tconst consentStatus = new ActionItem(\r\n\t\t\tgetConsentStatusMessage(),\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: 'crowd-code.consent',\r\n\t\t\t\ttitle: 'Manage Data Collection Consent',\r\n\t\t\t},\r\n\t\t\t'shield'\r\n\t\t)\r\n\t\titems.push(consentStatus)\r\n\r\n>>>>>>> Stashed changes",typescript,selection_command +164,260282,"src/actionsProvider.ts",5324,370,"",typescript,content +165,260298,"src/actionsProvider.ts",5326,0,"",typescript,selection_command +166,264289,"src/actionsProvider.ts",0,0,"",typescript,tab +167,264924,"src/actionsProvider.ts",0,0,"",typescript,tab +168,266774,"src/extension.ts",0,0,"",typescript,tab +169,270759,"src/extension.ts",5214,0,"",typescript,selection_mouse +170,271026,"src/extension.ts",5199,24,"<<<<<<< Updated upstream",typescript,selection_command +171,271196,"src/extension.ts",5199,32,"<<<<<<< Updated upstream\n=======",typescript,selection_command +172,271456,"src/extension.ts",5199,72,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command",typescript,selection_command +173,271482,"src/extension.ts",5199,101,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(",typescript,selection_command +174,271514,"src/extension.ts",5199,171,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {",typescript,selection_command +175,271546,"src/extension.ts",5199,206,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()",typescript,selection_command +176,271582,"src/extension.ts",5199,211,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})",typescript,selection_command +177,271614,"src/extension.ts",5199,214,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)",typescript,selection_command +178,271648,"src/extension.ts",5199,215,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n",typescript,selection_command +179,271688,"src/extension.ts",5199,265,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing",typescript,selection_command +180,271716,"src/extension.ts",5199,294,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(",typescript,selection_command +181,271752,"src/extension.ts",5199,363,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {",typescript,selection_command +182,271785,"src/extension.ts",5199,432,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {\n\t\t\textContext.globalState.update('dataCollectionConsent', undefined)",typescript,selection_command +183,271819,"src/extension.ts",5199,488,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {\n\t\t\textContext.globalState.update('dataCollectionConsent', undefined)\n\t\t\tlogToOutput('Consent state has been reset.', 'info')",typescript,selection_command +184,271852,"src/extension.ts",5199,529,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {\n\t\t\textContext.globalState.update('dataCollectionConsent', undefined)\n\t\t\tlogToOutput('Consent state has been reset.', 'info')\n\t\t\tvscode.window.showInformationMessage(",typescript,selection_command +185,271886,"src/extension.ts",5199,621,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {\n\t\t\textContext.globalState.update('dataCollectionConsent', undefined)\n\t\t\tlogToOutput('Consent state has been reset.', 'info')\n\t\t\tvscode.window.showInformationMessage(\n\t\t\t\t'Consent state has been reset. Please reload the window for the change to take effect.'",typescript,selection_command +186,271916,"src/extension.ts",5199,626,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {\n\t\t\textContext.globalState.update('dataCollectionConsent', undefined)\n\t\t\tlogToOutput('Consent state has been reset.', 'info')\n\t\t\tvscode.window.showInformationMessage(\n\t\t\t\t'Consent state has been reset. Please reload the window for the change to take effect.'\n\t\t\t)",typescript,selection_command +187,272174,"src/extension.ts",5199,631,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {\n\t\t\textContext.globalState.update('dataCollectionConsent', undefined)\n\t\t\tlogToOutput('Consent state has been reset.', 'info')\n\t\t\tvscode.window.showInformationMessage(\n\t\t\t\t'Consent state has been reset. Please reload the window for the change to take effect.'\n\t\t\t)\n\t\t})",typescript,selection_command +188,272340,"src/extension.ts",5199,634,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {\n\t\t\textContext.globalState.update('dataCollectionConsent', undefined)\n\t\t\tlogToOutput('Consent state has been reset.', 'info')\n\t\t\tvscode.window.showInformationMessage(\n\t\t\t\t'Consent state has been reset. Please reload the window for the change to take effect.'\n\t\t\t)\n\t\t})\n\t)",typescript,selection_command +189,272495,"src/extension.ts",5199,635,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {\n\t\t\textContext.globalState.update('dataCollectionConsent', undefined)\n\t\t\tlogToOutput('Consent state has been reset.', 'info')\n\t\t\tvscode.window.showInformationMessage(\n\t\t\t\t'Consent state has been reset. Please reload the window for the change to take effect.'\n\t\t\t)\n\t\t})\n\t)\n",typescript,selection_command +190,272848,"src/extension.ts",5199,659,"<<<<<<< Updated upstream\n=======\n\t// Register consent management command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.consent', async () => {\n\t\t\tawait showConsentChangeDialog()\n\t\t})\n\t)\n\n\t// Register command to reset consent for testing\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.resetConsent', () => {\n\t\t\textContext.globalState.update('dataCollectionConsent', undefined)\n\t\t\tlogToOutput('Consent state has been reset.', 'info')\n\t\t\tvscode.window.showInformationMessage(\n\t\t\t\t'Consent state has been reset. Please reload the window for the change to take effect.'\n\t\t\t)\n\t\t})\n\t)\n\n>>>>>>> Stashed changes",typescript,selection_command +191,273057,"src/extension.ts",5199,660,"",typescript,content +192,273061,"src/extension.ts",5200,0,"",typescript,selection_command +193,275219,"src/extension.ts",0,0,"",typescript,tab +194,275868,"src/extension.ts",0,0,"",typescript,tab +195,280458,"test-workspace/.vscode/settings.json",0,0,"",jsonc,tab +196,280462,"test-workspace/.vscode/settings.json",3,0,"",jsonc,selection_command +197,283876,"src/test/recording.test.ts",0,0,"",typescript,tab +198,283884,"src/test/recording.test.ts",616,0,"",typescript,selection_command +199,287145,"src/utilities.ts",0,0,"import * as vscode from 'vscode'\r\nimport * as fs from 'node:fs'\r\nimport * as path from 'node:path'\r\nimport { contributes } from '../package.json'\r\n\r\ninterface DefaultConfiguration {\r\n\t[key: string]: (typeof defaultConfiguration)[keyof typeof defaultConfiguration]\r\n}\r\n\r\nconst defaultConfiguration = contributes.configuration.properties\r\n\r\nexport const outputChannel = vscode.window.createOutputChannel('crowd-code')\r\n\r\n/**\r\n * Retrieves the configuration object for the 'crowdCode' extension.\r\n *\r\n * @returns The configuration object for the 'crowdCode' extension.\r\n */\r\nexport function getConfig() {\r\n\treturn vscode.workspace.getConfiguration('crowdCode')\r\n}\r\n\r\n/**\r\n * Creates a directory at the specified path if it does not already exist.\r\n *\r\n * @param path - The path of the directory to create.\r\n * @returns Void.\r\n */\r\nexport async function createPath(path: string) {\r\n\t// If the setting is enabled and the path is inside the workspace, add it to .gitignore\r\n\tif (\r\n\t\tgetConfig().get('export.addToGitignore') &&\r\n\t\tgetConfig().get('export.exportPath')?.startsWith('${workspaceFolder}')\r\n\t) {\r\n\t\tawait addToGitignore()\r\n\t}\r\n\r\n\tif (!fs.existsSync(path)) {\r\n\t\tfs.mkdirSync(path)\r\n\t}\r\n}\r\n\r\n/**\r\n * Retrieves the export path for the crowd-code extension, handling various scenarios such as:\r\n * - If no export path is specified, it prompts the user to reset to default or open the settings.\r\n * - If the export path starts with '${workspaceFolder}', it replaces it with the actual workspace path.\r\n * - If the export path does not exist and the 'export.createPathOutsideWorkspace' setting is false, it prompts the user to reset to default or open the settings.\r\n * - It trims, normalizes, and updates the export path in the extension settings.\r\n *\r\n * @returns The normalized and updated export path, or `undefined` if an error occurred.\r\n */\r\nexport function getExportPath(): string | undefined {\r\n\tconst exportPath = getConfig().get('export.exportPath')\r\n\tlet outputExportPath = exportPath\r\n\tconst resetToDefaultMessage = vscode.l10n.t('Reset to default')\r\n\tconst openSettingsMessage = vscode.l10n.t('Open Settings')\r\n\tconst cancelMessage = vscode.l10n.t('Cancel')\r\n\r\n\t/**\r\n\t * Handles the user's selection when prompted to reset the export path to the default or open the settings.\r\n\t *\r\n\t * @param selection - The user's selection, which can be 'Reset to default', 'Open Settings', or 'Cancel'.\r\n\t * @returns Void.\r\n\t */\r\n\tfunction handleSelection(selection: string | undefined) {\r\n\t\tif (selection === resetToDefaultMessage) {\r\n\t\t\tgetConfig().update('export.exportPath', undefined, vscode.ConfigurationTarget.Global)\r\n\t\t}\r\n\t\tif (selection === vscode.l10n.t('Open Settings')) {\r\n\t\t\tvscode.commands.executeCommand(\r\n\t\t\t\t'workbench.action.openSettings',\r\n\t\t\t\t'crowdCode.export.exportPath'\r\n\t\t\t)\r\n\t\t}\r\n\t}\r\n\r\n\tif (!outputExportPath) {\r\n\t\tconst exportPathNotFoundMessage = vscode.l10n.t('No export path specified')\r\n\t\tvscode.window\r\n\t\t\t.showErrorMessage(\r\n\t\t\t\texportPathNotFoundMessage,\r\n\t\t\t\tresetToDefaultMessage,\r\n\t\t\t\topenSettingsMessage,\r\n\t\t\t\tcancelMessage\r\n\t\t\t)\r\n\t\t\t.then(selection => handleSelection(selection))\r\n\t\tlogToOutput(exportPathNotFoundMessage, 'error')\r\n\t\treturn\r\n\t}\r\n\r\n\tif (outputExportPath?.startsWith('${workspaceFolder}')) {\r\n\t\tconst workspacePath = vscode.workspace.workspaceFolders?.[0].uri.fsPath\r\n\t\tif (!workspacePath) {\r\n\t\t\tconst errorMessage = vscode.l10n.t('error.workspaceFolderNotFound')\r\n\t\t\tvscode.window.showErrorMessage(errorMessage)\r\n\t\t\tlogToOutput(errorMessage, 'error')\r\n\t\t\treturn\r\n\t\t}\r\n\t\toutputExportPath = outputExportPath.replace('${workspaceFolder}', workspacePath)\r\n\t\tcreatePath(outputExportPath)\r\n\t} else {\r\n\t\tif (\r\n\t\t\t!fs.existsSync(outputExportPath) &&\r\n\t\t\tgetConfig().get('export.createPathOutsideWorkspace', false) === false\r\n\t\t) {\r\n\t\t\tconst exportPathNotFoundMessage = vscode.l10n.t('Export path does not exist')\r\n\t\t\tvscode.window\r\n\t\t\t\t.showErrorMessage(\r\n\t\t\t\t\texportPathNotFoundMessage,\r\n\t\t\t\t\tresetToDefaultMessage,\r\n\t\t\t\t\topenSettingsMessage,\r\n\t\t\t\t\tcancelMessage\r\n\t\t\t\t)\r\n\t\t\t\t// deepcode ignore PromiseNotCaughtGeneral: catch method not available\r\n\t\t\t\t.then(selection => handleSelection(selection))\r\n\t\t\tlogToOutput(exportPathNotFoundMessage, 'error')\r\n\t\t\treturn\r\n\t\t}\r\n\t\tcreatePath(outputExportPath)\r\n\t}\r\n\r\n\toutputExportPath = outputExportPath.trim()\r\n\toutputExportPath = outputExportPath.replaceAll('\\', '/')\r\n\tif (!outputExportPath.endsWith('/')) {\r\n\t\toutputExportPath += '/'\r\n\t}\r\n\r\n\tif (!exportPath?.startsWith('${workspaceFolder}')) {\r\n\t\tgetConfig().update('export.exportPath', outputExportPath, vscode.ConfigurationTarget.Global)\r\n\t}\r\n\tif (path.sep === '/') {\r\n\t\toutputExportPath = outputExportPath.replaceAll('/', path.sep)\r\n\t}\r\n\treturn outputExportPath\r\n}\r\n\r\nexport function setDefaultOptions() {\r\n\tconst config = getConfig()\r\n\tfor (const [key, value] of Object.entries(defaultConfiguration)) {\r\n\t\tconst configKey = key.replace('crowdCode.', '')\r\n\t\tif ('default' in value) {\r\n\t\t\tconfig.update(configKey, value.default, vscode.ConfigurationTarget.Workspace)\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/**\r\n * Logs a message to the output channel with a timestamp and type.\r\n *\r\n * @param {string} message - The message to be logged.\r\n * @param {'info' | 'success' | 'error'} [type='info'] - The type of the log message.\r\n */\r\nexport function logToOutput(message: string, type: 'info' | 'success' | 'error' = 'info') {\r\n\tconst time = new Date().toLocaleTimeString()\r\n\r\n\toutputChannel.appendLine(`${time} [${type}] ${message}`)\r\n\tconsole.log(message)\r\n}\r\n\r\n/**\r\n * Generates a file name based on the current date and time.\r\n * @param date - The date to use for generating the file name.\r\n * @param isExport - Whether the file is being exported.\r\n * @param customName - Optional custom name for the folder.\r\n * @returns The generated file name.\r\n */\r\nexport function generateBaseFilePath(\r\n\tdate: Date | null,\r\n\tisExport = false,\r\n\tcustomName?: string, \r\n\tsessionId?: string\r\n): string | undefined {\r\n\tif (!date) {\r\n\t\treturn\r\n\t}\r\n\tconst year = date.getFullYear()\r\n\tconst month = (date.getMonth() + 1).toString().padStart(2, '0')\r\n\tconst day = date.getDate().toString().padStart(2, '0')\r\n\tconst hours = date.getHours().toString().padStart(2, '0')\r\n\tconst minutes = date.getMinutes().toString().padStart(2, '0')\r\n\tconst seconds = date.getSeconds().toString().padStart(2, '0')\r\n\tconst milliseconds = date.getMilliseconds().toString().padStart(2, '0')\r\n\r\n\tconst timestamp = `${year}_${month}_${day}-${hours}.${minutes}.${seconds}.${milliseconds}`\r\n\tconst default_name = sessionId ? `crowd-code-${sessionId}-${timestamp}` : `crowd-code-${timestamp}`\r\n\tconst folderName = customName ? `${customName}-${timestamp}` : default_name\r\n\tconst fileName = isExport ? 'recording' : 'source'\r\n\r\n\treturn `${folderName}/${fileName}`\r\n}\r\n\r\n/**\r\n * Retrieves the language identifier of the currently active text editor.\r\n *\r\n * @return {string} The language identifier of the active text editor\r\n */\r\nexport function getEditorLanguage(): string {\r\n\tconst editor = vscode.window.activeTextEditor\r\n\tif (editor) {\r\n\t\tconsole.log(editor.document.languageId)\r\n\t\treturn editor.document.languageId\r\n\t}\r\n\treturn ''\r\n}\r\n\r\n/**\r\n * Gets the relative path of the active text editor's file.\r\n * @returns A string representing the relative path of the active text editor's file.\r\n */\r\nexport function getEditorFileName(): string {\r\n\treturn vscode.workspace.asRelativePath(vscode.window.activeTextEditor?.document.fileName ?? '')\r\n}\r\n\r\n/**\r\n * Displays a notification with progress in VS Code.\r\n * @param title - The title of the notification.\r\n */\r\nexport function notificationWithProgress(title: string): void {\r\n\tvscode.window.withProgress(\r\n\t\t{\r\n\t\t\tlocation: vscode.ProgressLocation.Notification,\r\n\t\t\ttitle: title,\r\n\t\t\tcancellable: false,\r\n\t\t},\r\n\t\tprogress => {\r\n\t\t\treturn new Promise(resolve => {\r\n\t\t\t\tconst times = 1.5 * 1000\r\n\t\t\t\tconst timeout = 50\r\n\t\t\t\tconst increment = (100 / times) * timeout\r\n\t\t\t\tfor (let i = 0; i <= times; i++) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tprogress.report({ increment: increment })\r\n\t\t\t\t\t\tif (i === times / timeout) {\r\n\t\t\t\t\t\t\tresolve()\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}, timeout * i)\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\t)\r\n}\r\n\r\n/**\r\n * Formats a time value in seconds to a display string.\r\n * @param seconds - The number of seconds.\r\n * @returns A string representing the formatted time.\r\n */\r\nexport function formatDisplayTime(seconds: number): string {\r\n\tconst hours = Math.floor(seconds / 3600)\r\n\tconst minutes = Math.floor((seconds % 3600) / 60)\r\n\tconst remainingSeconds = seconds % 60\r\n\r\n\tlet timeString = ''\r\n\r\n\tif (hours > 0) {\r\n\t\ttimeString += `${hours.toString().padStart(2, '0')}:`\r\n\t}\r\n\r\n\ttimeString += `${minutes.toString().padStart(2, '0')}:${remainingSeconds\r\n\t\t.toString()\r\n\t\t.padStart(2, '0')}`\r\n\r\n\treturn timeString\r\n}\r\n\r\n/**\r\n * Formats a time value in milliseconds to an SRT time string.\r\n * @param milliseconds - The number of milliseconds.\r\n * @returns A string representing the formatted SRT time.\r\n */\r\nexport function formatSrtTime(milliseconds: number): string {\r\n\tconst seconds = Math.floor(milliseconds / 1000)\r\n\tconst hours = Math.floor(seconds / 3600)\r\n\tconst minutes = Math.floor((seconds % 3600) / 60)\r\n\tconst remainingSeconds = seconds % 60\r\n\tconst remainingMilliseconds = milliseconds % 1000\r\n\r\n\treturn `${hours.toString().padStart(2, '0')}:${minutes\r\n\t\t.toString()\r\n\t\t.padStart(2, '0')}:${remainingSeconds.toString().padStart(2, '0')},${remainingMilliseconds\r\n\t\t.toString()\r\n\t\t.padStart(3, '0')}`\r\n}\r\n\r\n/**\r\n * Escapes special characters in a string for CSV compatibility.\r\n * @param editorText - The text to escape.\r\n * @returns A string with escaped characters.\r\n */\r\nexport function escapeString(editorText: string | undefined): string {\r\n\tif (editorText === undefined) {\r\n\t\treturn ''\r\n\t}\r\n\treturn editorText\r\n\t\t.replace(/""/g, '""""')\r\n\t\t.replace(/\r\n/g, '\\r\\n')\r\n\t\t.replace(/\n/g, '\\n')\r\n\t\t.replace(/\r/g, '\\r')\r\n\t\t.replace(/\t/g, '\\t')\r\n}\r\n\r\n/**\r\n * Removes double quotes at the start and end of a text string.\r\n * @param text - The text to process.\r\n * @returns A string without surrounding double quotes.\r\n */\r\nexport function removeDoubleQuotes(text: string): string {\r\n\treturn text.replace(/^""(.*)""$/, '$1')\r\n}\r\n\r\n/**\r\n * Unescape special characters in a string.\r\n * @param text - The text to unescape.\r\n * @returns A string with unescaped characters.\r\n */\r\nexport function unescapeString(text: string): string {\r\n\treturn text\r\n\t\t.replace(/""""/g, '""')\r\n\t\t.replace(/\\r\\n/g, '\r\n')\r\n\t\t.replace(/\\n/g, '\n')\r\n\t\t.replace(/\\r/g, '\r')\r\n\t\t.replace(/\\t/g, '\t')\r\n}\r\n\r\n/**\r\n * Adds the export path to .gitignore if it doesn't exist.\r\n * @returns true if the path was added, false if it already exists or if there was an error\r\n */\r\nexport async function addToGitignore(): Promise {\r\n\tconst workspaceFolder = vscode.workspace.workspaceFolders?.[0]\r\n\tif (!workspaceFolder) {\r\n\t\tvscode.window.showErrorMessage(vscode.l10n.t('error.noWorkspace'))\r\n\t\treturn false\r\n\t}\r\n\r\n\tconst gitignorePath = path.join(workspaceFolder.uri.fsPath, '.gitignore')\r\n\tconst exportPath = getConfig().get('export.exportPath')\r\n\r\n\tif (!exportPath) {\r\n\t\tvscode.window.showErrorMessage(vscode.l10n.t('error.noExportPath'))\r\n\t\treturn false\r\n\t}\r\n\r\n\t// Get the relative path from workspace folder\r\n\tlet relativePath = exportPath\r\n\tif (exportPath.startsWith('${workspaceFolder}')) {\r\n\t\trelativePath = exportPath.replace('${workspaceFolder}', '').replace(/\\/g, '/')\r\n\t}\r\n\t// Remove leading and trailing slashes\r\n\trelativePath = relativePath.replace(/^\/+|\/+$/g, '')\r\n\r\n\ttry {\r\n\t\tlet content = ''\r\n\t\tif (fs.existsSync(gitignorePath)) {\r\n\t\t\tcontent = fs.readFileSync(gitignorePath, 'utf8')\r\n\t\t\t// Check if the path is already in .gitignore\r\n\t\t\tif (content.split('\n').some(line => line.trim() === relativePath)) {\r\n\t\t\t\tvscode.window.showInformationMessage(vscode.l10n.t('Export path already in .gitignore'))\r\n\t\t\t\treturn false\r\n\t\t\t}\r\n\t\t\t// Add a newline if the file doesn't end with one\r\n\t\t\tif (!content.endsWith('\n')) {\r\n\t\t\t\tcontent += '\n'\r\n\t\t\t}\r\n\t\t}\r\n\t\tcontent = `${content}${relativePath}\n`\r\n\t\tfs.writeFileSync(gitignorePath, content)\r\n\t\tvscode.window.showInformationMessage(vscode.l10n.t('Export path added to .gitignore'))\r\n\t\treturn true\r\n\t} catch (err) {\r\n\t\tconsole.error('Error updating .gitignore:', err)\r\n\t\tvscode.window.showErrorMessage(vscode.l10n.t('Error updating .gitignore'))\r\n\t\treturn false\r\n\t}\r\n}\r\n",typescript,tab +200,287153,"src/utilities.ts",424,0,"",typescript,selection_command +201,292109,"src/recording.ts",0,0,"import * as fs from 'node:fs'\nimport * as util from 'node:util'\nimport * as path from 'node:path'\nimport * as vscode from 'vscode'\nimport * as readline from 'node:readline'\nimport axios from 'axios';\nimport {\n getEditorFileName,\n escapeString,\n getEditorLanguage,\n notificationWithProgress,\n generateBaseFilePath,\n formatDisplayTime,\n getExportPath,\n logToOutput,\n formatSrtTime,\n getConfig,\n removeDoubleQuotes,\n unescapeString,\n addToGitignore,\n} from './utilities'\nimport { type File, ChangeType, type CSVRowBuilder, type Change, type Recording } from './types'\nimport { extContext, statusBarItem, actionsProvider } from './extension'\n\nexport const commands = {\n openSettings: 'crowd-code.openSettings',\n startRecording: 'crowd-code.startRecording',\n stopRecording: 'crowd-code.stopRecording',\n}\n\nexport const recording: Recording = {\n isRecording: false,\n timer: 0,\n startDateTime: null,\n endDateTime: null,\n sequence: 0,\n customFolderName: '',\n activatedFiles: new Set(),\n}\n\nlet intervalId: NodeJS.Timeout\nconst fileQueue: File[] = []\nlet isAppending = false\n\nlet uploadIntervalId: NodeJS.Timeout;\nconst sessionUuid = vscode.env.sessionId;\n\nconst API_GATEWAY_URL = 'https://knm3fmbwbi.execute-api.us-east-1.amazonaws.com/v1/recordings';\n\n\n/**\n * Builds a CSV row with the given parameters.\n *\n * @param {CSVRowBuilder} sequence - The sequence number of the change.\n * @param {CSVRowBuilder} rangeOffset - The offset of the changed range.\n * @param {CSVRowBuilder} rangeLength - The length of the changed range.\n * @param {CSVRowBuilder} text - The text of the change.\n * @param {string} type - The type of the change (optional, defaults to 'content').\n * @return {string} A CSV row string with the provided information.\n */\nexport function buildCsvRow({\n sequence,\n rangeOffset,\n rangeLength,\n text,\n type = ChangeType.CONTENT,\n}: CSVRowBuilder): string | undefined {\n if (!recording.startDateTime) {\n return\n }\n\n const time = new Date().getTime() - recording.startDateTime.getTime()\n\n if (type === ChangeType.HEADING) {\n return 'Sequence,Time,File,RangeOffset,RangeLength,Text,Language,Type\n'\n }\n\n if (type === ChangeType.TERMINAL_FOCUS || type === ChangeType.TERMINAL_COMMAND || type === ChangeType.TERMINAL_OUTPUT) {\n return `${sequence},${time},""TERMINAL"",${rangeOffset},${rangeLength},""${escapeString(text)}"",,${type}\n`\n }\n\n const editorFileName = getEditorFileName()\n return `${sequence},${time},""${editorFileName}"",${rangeOffset},${rangeLength},""${escapeString(text)}"",${getEditorLanguage()},${type}\n`\n}\n\n/**\n * Checks if the current file being edited is within the configured export path.\n * This is used to determine if the current file should be recorded or not.\n *\n * @returns {boolean} `true` if the current file is within the export path, `false` otherwise.\n */\nexport function isCurrentFileExported(): boolean {\n const editor = vscode.window.activeTextEditor\n const filename = editor?.document.fileName.replaceAll('\\', '/')\n const exportPath = getExportPath()\n if (!editor || !filename || !exportPath) {\n return false\n }\n return filename.startsWith(exportPath)\n}\n\nconst onChangeSubscription = vscode.workspace.onDidChangeTextDocument(event => {\n if (!recording.isRecording) {\n return\n }\n\n if (isCurrentFileExported()) {\n return\n }\n const editor = vscode.window.activeTextEditor\n if (editor && event.document === editor.document) {\n for (const change of event.contentChanges) {\n recording.sequence++\n addToFileQueue(\n buildCsvRow({\n sequence: recording.sequence,\n rangeOffset: change.rangeOffset,\n rangeLength: change.rangeLength,\n text: change.text,\n })\n )\n appendToFile()\n }\n }\n})\n\n/**\n * Creates the recording folder if it doesn't exist.\n * @param folderPath - The path to the recording folder.\n */\nfunction createRecordingFolder(folderPath: string): void {\n if (!fs.existsSync(folderPath)) {\n fs.mkdirSync(folderPath, { recursive: true })\n }\n}\n\n/**\n * Starts the recording process and initializes necessary variables.\n */\nexport async function startRecording(): Promise {\n if (!vscode.window.activeTextEditor) {\n vscode.window.showErrorMessage(vscode.l10n.t('No active text editor'))\n logToOutput(vscode.l10n.t('No active text editor'), 'info')\n return\n }\n if (recording.isRecording) {\n notificationWithProgress(vscode.l10n.t('Already recording'))\n logToOutput(vscode.l10n.t('Already recording'), 'info')\n return\n }\n const exportPath = getExportPath()\n if (!exportPath) {\n return\n }\n\n // If the setting is enabled and the path is inside the workspace, add it to .gitignore\n if (\n getConfig().get('export.addToGitignore') &&\n getConfig().get('export.exportPath')?.startsWith('${workspaceFolder}')\n ) {\n await addToGitignore()\n }\n\n recording.startDateTime = new Date()\n recording.activatedFiles = new Set()\n\n // Ask for folder name if enabled in settings\n let customFolderName: string | undefined\n if (getConfig().get('recording.askFolderName')) {\n customFolderName = await vscode.window.showInputBox({\n prompt: vscode.l10n.t('Enter a name for the recording folder'),\n placeHolder: vscode.l10n.t('Enter recording folder name'),\n })\n if (!customFolderName) {\n stopRecording(true)\n return\n }\n recording.customFolderName = customFolderName\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n stopRecording(true)\n return\n }\n\n // Create the recording folder\n const folderPath = path.dirname(path.join(exportPath, baseFilePath))\n createRecordingFolder(folderPath)\n\n recording.isRecording = true\n recording.timer = 0\n recording.endDateTime = null\n recording.sequence = 0\n intervalId = setInterval(() => {\n recording.timer++\n updateStatusBarItem()\n }, 1000)\n notificationWithProgress(vscode.l10n.t('Recording started'))\n logToOutput(vscode.l10n.t('Recording started'), 'info')\n\n const editorText = vscode.window.activeTextEditor?.document.getText()\n const activeEditorUri = vscode.window.activeTextEditor?.document.uri.toString()\n\n if (editorText !== undefined && activeEditorUri) {\n recording.sequence++\n const csvRow = {\n sequence: recording.sequence,\n rangeOffset: 0,\n rangeLength: 0,\n text: editorText,\n type: ChangeType.TAB,\n }\n addToFileQueue(buildCsvRow({ ...csvRow, type: ChangeType.HEADING }))\n addToFileQueue(buildCsvRow(csvRow))\n appendToFile()\n recording.activatedFiles.add(activeEditorUri)\n actionsProvider.setCurrentFile(vscode.window.activeTextEditor.document.fileName)\n }\n\n extContext.subscriptions.push(onChangeSubscription)\n updateStatusBarItem()\n actionsProvider.setRecordingState(true)\n\n // Set up a timer to send data to the Lambda endpoint periodically\n uploadIntervalId = setInterval(async () => {\n if (!exportPath) {\n return;\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`);\n const extensionVersion = extContext.extension.packageJSON.version as string;\n const userId = extContext.globalState.get('userId');\n\n try {\n const fileContent = await fs.promises.readFile(filePath, 'utf-8');\n\n if (fileContent) {\n const payload = {\n fileName: `${baseFilePath}.csv`,\n content: fileContent,\n version: extensionVersion,\n userId: userId\n };\n await axios.post(API_GATEWAY_URL, payload);\n console.log(`Successfully sent ${payload.fileName} to Lambda endpoint.`);\n }\n } catch (error: any) {\n if (error.code === 'ENOENT') {\n console.warn(`File not found at ${filePath}. It might be created on first write.`);\n } else {\n console.error(`Error sending data to Lambda: ${error.message}`);\n if (axios.isAxiosError(error) && error.response) {\n console.error(""Lambda response status:"", error.response.status);\n console.error(""Lambda response data:"", error.response.data);\n }\n }\n }\n }, 5 * 60 * 1000); // 5 minutes\n}\n\n/**\n * Stops the recording process and finalizes the recording data.\n * @param context - The extension context.\n */\nexport function stopRecording(force = false): Promise | void {\n if (!recording.isRecording) {\n notificationWithProgress(vscode.l10n.t('Not recording'))\n return\n }\n\n recording.isRecording = false\n clearInterval(intervalId)\n clearInterval(uploadIntervalId); // Clear the upload timer\n recording.timer = 0\n recording.activatedFiles?.clear()\n const index = extContext.subscriptions.indexOf(onChangeSubscription)\n if (index !== -1) {\n extContext.subscriptions.splice(index, 1)\n }\n updateStatusBarItem()\n actionsProvider.setRecordingState(false)\n if (force) {\n notificationWithProgress(vscode.l10n.t('Recording cancelled'))\n logToOutput(vscode.l10n.t('Recording cancelled'), 'info')\n recording.customFolderName = undefined\n return\n }\n notificationWithProgress(vscode.l10n.t('Recording finished'))\n logToOutput(vscode.l10n.t('Recording finished'), 'info')\n recording.endDateTime = new Date()\n return processCsvFile().then(() => {\n // Reset customFolderName after processing is complete\n recording.customFolderName = undefined\n }).catch(err => {\n logToOutput(vscode.l10n.t('Error processing CSV file during stop: {0}', String(err)), 'error')\n recording.customFolderName = undefined\n });\n}\n\n/**\n * Appends data from the file queue to the appropriate file in the workspace.\n */\nexport async function appendToFile(): Promise {\n if (isAppending) {\n return\n }\n isAppending = true\n\n const exportPath = getExportPath()\n if (!exportPath) {\n logToOutput('Export path not available in appendToFile, stopping recording.', 'error')\n stopRecording(true)\n isAppending = false\n return\n }\n\n while (fileQueue.length > 0) {\n const itemToAppend = fileQueue.shift()\n if (!itemToAppend) {\n continue\n }\n\n const filePath = path.join(exportPath, itemToAppend.name)\n\n try {\n const directory = path.dirname(filePath)\n if (!fs.existsSync(directory)) {\n fs.mkdirSync(directory, { recursive: true })\n }\n await fs.promises.appendFile(filePath, itemToAppend.content)\n } catch (err) {\n logToOutput(\n `Failed to append to file ${filePath}: ${err}. Item dropped. Content: ${itemToAppend.content.substring(0, 100)}...`,\n 'error'\n )\n }\n }\n isAppending = false\n}\n\n/**\n * Appends an SRT line to the file queue for the previous change.\n *\n * This function is responsible for generating the SRT format line for the previous change and adding it to the file queue.\n * It checks if the SRT export format is enabled, and if so, it generates the SRT line for the previous change and adds it to the file queue.\n *\n * @param processedChanges - An array of processed changes.\n * @param i - The index of the current change in the processedChanges array.\n * @param exportInSrt - A boolean indicating whether the SRT export format is enabled.\n */\nfunction addToSRTFile(processedChanges: Change[], i: number, exportInSrt: boolean) {\n if (!exportInSrt) {\n return\n }\n if (i === 0) {\n return\n }\n addToFileQueue(\n addSrtLine(\n processedChanges[i - 1].sequence,\n processedChanges[i - 1].startTime,\n processedChanges[i - 1].endTime,\n JSON.stringify({\n text: processedChanges[i - 1].text,\n file: processedChanges[i - 1].file,\n language: processedChanges[i - 1].language,\n })\n ),\n 'srt',\n true\n )\n}\n\n/**\n * Returns the new text content based on the change type and the previous change.\n * @param type - The type of the change.\n * @param text - The text of the change.\n * @param previousChange - The previous change.\n * @param rangeOffset - The offset of the range.\n * @param rangeLength - The length of the range.\n */\nfunction getNewTextContent(\n type: string,\n text: string,\n previousChange: Change | null,\n rangeOffset: number,\n rangeLength: number\n): string {\n if (type === ChangeType.TAB) {\n return text\n }\n if (!previousChange) {\n return ''\n }\n return getUpdatedText(previousChange.text, rangeOffset, rangeLength, text)\n}\n\n/**\n * Processes a single CSV line and returns the processed change\n */\nasync function processCSVLine(line: string, previousChange: Change | null): Promise {\n const lineArr = line.split(/,(?=(?:[^""]*""[^""]*"")*[^""]*$)/)\n\n if (Number.isNaN(Number.parseInt(lineArr[0]))) {\n return null\n }\n\n const time = Number.parseInt(lineArr[1])\n const file = removeDoubleQuotes(lineArr[2])\n const rangeOffset = Number.parseInt(lineArr[3])\n const rangeLength = Number.parseInt(lineArr[4])\n const text = unescapeString(removeDoubleQuotes(lineArr[5]))\n const language = lineArr[6]\n const type = lineArr[7]\n\n const newText = getNewTextContent(type, text, previousChange, rangeOffset, rangeLength)\n\n /**\n * Skip exporting changes with the same values to the previous change.\n */\n if (\n previousChange &&\n time === previousChange.startTime &&\n file === previousChange.file &&\n newText === previousChange.text &&\n language === previousChange.language\n ) {\n return null\n }\n\n return {\n sequence: previousChange ? previousChange.sequence + 1 : 1,\n file,\n startTime: time,\n endTime: 0,\n language,\n text: newText,\n }\n}\n\n/**\n * Returns the updated text content based on the previous text, range offset, range length, and new text.\n * @param previousText - The previous text.\n * @param rangeOffset - The offset of the range.\n * @param rangeLength - The length of the range.\n * @param newText - The new text.\n */\nfunction getUpdatedText(\n previousText: string,\n rangeOffset: number,\n rangeLength: number,\n newText: string\n): string {\n const textArray = previousText.split('')\n textArray.splice(rangeOffset, rangeLength, newText)\n return textArray.join('')\n}\n\n/**\n * Processes the CSV file and generates the necessary output files.\n */\nasync function processCsvFile(): Promise {\n if (!validateRecordingState()) {\n return\n }\n\n const exportFormats = getConfig().get('export.exportFormats', [])\n if (exportFormats.length === 0) {\n logToOutput(vscode.l10n.t('No export formats specified'), 'info')\n vscode.window.showWarningMessage(vscode.l10n.t('No export formats specified'))\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n return\n }\n\n if (!recording.startDateTime) {\n return\n }\n\n // Use the same custom folder name for reading the source file\n const baseFilePathSource = generateBaseFilePath(\n recording.startDateTime,\n false,\n recording.customFolderName,\n sessionUuid\n )\n if (!baseFilePathSource) {\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePathSource}.csv`)\n\n try {\n if (!fs.existsSync(filePath)) {\n throw new Error(`Source file not found: ${filePath}`)\n }\n\n const processedChanges: Change[] = []\n\n const rl = readline.createInterface({\n input: fs.createReadStream(filePath),\n crlfDelay: Number.POSITIVE_INFINITY,\n })\n\n for await (const line of rl) {\n const previousChange = processedChanges[processedChanges.length - 1]\n const change = await processCSVLine(line, previousChange)\n\n if (change) {\n if (previousChange) {\n previousChange.endTime = change.startTime\n if (exportFormats.includes('SRT')) {\n addToSRTFile(processedChanges, processedChanges.length, true)\n }\n }\n processedChanges.push(change)\n }\n }\n\n rl.close();\n\n return finalizeRecording(processedChanges, exportFormats);\n\n } catch (err) {\n vscode.window.showErrorMessage(`Error processing recording: ${err}`)\n logToOutput(vscode.l10n.t('Error processing CSV file: {0}', String(err)), 'error')\n return Promise.resolve(); // Resolve even on error after showing message\n }\n}\n\nfunction validateRecordingState(): boolean {\n if (!vscode.workspace.workspaceFolders) {\n logToOutput(\n vscode.l10n.t(\n 'No workspace folder found. To process the recording is needed a workspace folder'\n ),\n 'error'\n )\n return false\n }\n if (!recording.endDateTime || !recording.startDateTime) {\n logToOutput(vscode.l10n.t('Recording date time is not properly set'), 'error')\n return false\n }\n return true\n}\n\nfunction finalizeRecording(processedChanges: Change[], exportFormats: string[]): Promise {\n const lastChange = processedChanges[processedChanges.length - 1]\n if (lastChange && recording.endDateTime && recording.startDateTime) {\n lastChange.endTime = recording.endDateTime.getTime() - recording.startDateTime.getTime()\n if (exportFormats.includes('SRT')) {\n addToSRTFile(processedChanges, processedChanges.length, true)\n }\n }\n if (exportFormats.includes('JSON')) {\n addToFileQueue(JSON.stringify(processedChanges), 'json', true)\n }\n return appendToFile().then(() => {\n // Refresh the recordFiles view after export is complete\n vscode.commands.executeCommand('crowd-code.refreshRecordFiles')\n })\n}\n\n/**\n * Adds a line to the SRT file format.\n * @param sequence - The sequence number of the change.\n * @param start - The start time of the change.\n * @param end - The end time of the change.\n * @param text - The text of the change.\n * @returns A string representing a line in the SRT file format.\n */\nfunction addSrtLine(sequence: number, start: number, end: number, text: string): string {\n return `${sequence}\n${formatSrtTime(start)} --> ${formatSrtTime(end)}\n${text}\n\n`\n}\n\n/**\n * Adds content to the file queue.\n * @param content - The content to add.\n * @param fileExtension - The file extension (optional, defaults to 'csv').\n */\nexport function addToFileQueue(\n content: string | undefined,\n fileExtension = 'csv',\n isExport = false\n): void {\n if (!content) {\n return\n }\n if (!recording.startDateTime) {\n return\n }\n // Use the same custom name throughout the recording session\n const baseFilePath = generateBaseFilePath(recording.startDateTime, isExport, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n return\n }\n fileQueue.push({\n name: `${baseFilePath}.${fileExtension}`,\n content: content,\n })\n}\n\n/**\n * Updates the status bar item with the current recording status and time.\n */\nexport function updateStatusBarItem(): void {\n const editor = vscode.window.activeTextEditor\n if (!editor && !recording) {\n statusBarItem.hide()\n return\n }\n if (recording.isRecording) {\n if (getConfig().get('appearance.showTimer') === false) {\n statusBarItem.text = '$(debug-stop)'\n statusBarItem.tooltip = vscode.l10n.t('Current time: {0}', formatDisplayTime(recording.timer))\n }\n if (getConfig().get('appearance.showTimer') === true) {\n statusBarItem.text = `$(debug-stop) ${formatDisplayTime(recording.timer)}`\n statusBarItem.tooltip = vscode.l10n.t('Stop Recording')\n }\n statusBarItem.command = commands.stopRecording\n } else {\n if (getConfig().get('appearance.minimalMode') === true) {\n statusBarItem.text = '$(circle-large-filled)'\n } else {\n statusBarItem.text = `$(circle-large-filled) ${vscode.l10n.t('Start Recording')}`\n }\n statusBarItem.tooltip = vscode.l10n.t('Start Recording')\n statusBarItem.command = commands.startRecording\n }\n statusBarItem.show()\n}",typescript,tab +202,292115,"src/recording.ts",704,0,"",typescript,selection_command +203,297329,"src/extension.ts",0,0,"import * as vscode from 'vscode'\nimport * as crypto from 'crypto'\nimport { getExportPath, logToOutput, outputChannel, addToGitignore } from './utilities'\nimport {\n\tupdateStatusBarItem,\n\tstartRecording,\n\tstopRecording,\n\tisCurrentFileExported,\n\tcommands,\n\trecording,\n\taddToFileQueue,\n\tbuildCsvRow,\n\tappendToFile,\n} from './recording'\nimport { ChangeType, CSVRowBuilder } from './types'\nimport { RecordFilesProvider } from './recordFilesProvider'\nimport type { RecordFile } from './recordFilesProvider'\nimport { ActionsProvider } from './actionsProvider'\nimport * as fs from 'node:fs'\nimport * as path from 'node:path'\n\nexport let statusBarItem: vscode.StatusBarItem\nexport let extContext: vscode.ExtensionContext\nexport let actionsProvider: ActionsProvider\n\nfunction onConfigurationChange(event: vscode.ConfigurationChangeEvent) {\n\tif (event.affectsConfiguration('crowdCode')) {\n\t\tupdateStatusBarItem()\n\t\tgetExportPath()\n\t}\n}\n\n/**\n * Gets the full path for a file or folder\n * @param item - The tree item representing the file or folder\n * @param exportPath - The base export path\n * @returns The full path to the file or folder\n */\nfunction getFullPath(item: RecordFile, exportPath: string): string {\n\t// If the item has a parent path (file inside a folder), construct the full path\n\tif (item.parentPath) {\n\t\treturn path.join(exportPath, item.parentPath, item.label)\n\t}\n\t// Otherwise, it's a root item\n\treturn path.join(exportPath, item.label)\n}\n\n/**\n * Deletes a file or folder recursively\n * @param filePath - The path to the file or folder to delete\n */\nasync function deleteFileOrFolder(filePath: string): Promise {\n\ttry {\n\t\tconst stat = fs.statSync(filePath)\n\t\tif (stat.isDirectory()) {\n\t\t\t// Delete directory and its contents recursively\n\t\t\tfs.rmSync(filePath, { recursive: true, force: true })\n\t\t} else {\n\t\t\t// Delete single file\n\t\t\tfs.unlinkSync(filePath)\n\t\t}\n\t} catch (err) {\n\t\tconsole.error('Error deleting file or folder:', err)\n\t\tthrow err\n\t}\n}\n\nexport function activate(context: vscode.ExtensionContext): void {\n\textContext = context\n\toutputChannel.show()\n\tlogToOutput(vscode.l10n.t('Activating crowd-code'), 'info')\n\n\t// Save anonUserId globally for user to copy\n\tconst userName = process.env.USER || process.env.USERNAME || ""coder"";\n\tconst machineId = vscode.env.machineId ?? null;\n\tconst rawId = `${machineId}:${userName}`;\n\tconst anonUserId = crypto.createHash('sha256').update(rawId).digest('hex') as string;\n\n\textContext.globalState.update('userId', anonUserId);\n\n\t// Register userID display\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.showUserId', () => {\n\t\t\tconst userId = extContext.globalState.get('userId');\n\t\t\tif (!userId) {\n\t\t\t\tvscode.window.showWarningMessage(""User ID not registered yet. Please wait a few seconds until the extension is fully activated."");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvscode.window.showInformationMessage(`Your User ID is: ${userId}`);\n\t\t}))\n\n\n\t// Register Record Files Provider\n\tconst recordFilesProvider = new RecordFilesProvider()\n\tcontext.subscriptions.push(\n\t\tvscode.window.registerTreeDataProvider('recordFiles', recordFilesProvider)\n\t)\n\n\t// Register Actions Provider\n\tactionsProvider = new ActionsProvider()\n\tcontext.subscriptions.push(vscode.window.registerTreeDataProvider('actions', actionsProvider))\n\n\t// Register refresh command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.refreshRecordFiles', () => {\n\t\t\trecordFilesProvider.refresh()\n\t\t})\n\t)\n\n\t// Register delete command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand(\n\t\t\t'crowd-code.deleteRecordFile',\n\t\t\tasync (item: RecordFile) => {\n\t\t\t\tconst exportPath = getExportPath()\n\t\t\t\tif (!exportPath) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tconst result = await vscode.window.showWarningMessage(\n\t\t\t\t\tvscode.l10n.t('Are you sure you want to delete {name}?', { name: item.label }),\n\t\t\t\t\tvscode.l10n.t('Yes'),\n\t\t\t\t\tvscode.l10n.t('No')\n\t\t\t\t)\n\n\t\t\t\tif (result === vscode.l10n.t('Yes')) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst itemPath = getFullPath(item, exportPath)\n\t\t\t\t\t\tawait deleteFileOrFolder(itemPath)\n\t\t\t\t\t\trecordFilesProvider.refresh()\n\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\tvscode.window.showErrorMessage(`Error deleting ${item.label}: ${err}`)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t)\n\t)\n\n\t// Register reveal in explorer command\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.revealInExplorer', (item: RecordFile) => {\n\t\t\tconst exportPath = getExportPath()\n\t\t\tif (!exportPath) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst itemPath = getFullPath(item, exportPath)\n\t\t\tvscode.commands.executeCommand('revealFileInOS', vscode.Uri.file(itemPath))\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand(commands.startRecording, () => {\n\t\t\tstartRecording()\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand(commands.stopRecording, () => {\n\t\t\tstopRecording()\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand(commands.openSettings, () => {\n\t\t\tvscode.commands.executeCommand(\n\t\t\t\t'workbench.action.openSettings',\n\t\t\t\t'@ext:MattiaConsiglio.crowd-code'\n\t\t\t)\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('crowd-code.addToGitignore', async () => {\n\t\t\tawait addToGitignore()\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(vscode.workspace.onDidChangeConfiguration(onConfigurationChange))\n\n\tvscode.window.onDidChangeActiveTextEditor(editor => {\n\t\tupdateStatusBarItem()\n\t\tif (editor && recording.isRecording) {\n\t\t\tif (isCurrentFileExported()) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst currentFileUri = editor.document.uri.toString()\n\t\t\tlet tabEventText = ''\n\n\t\t\tif (recording.activatedFiles) {\n\t\t\t\tif (!recording.activatedFiles.has(currentFileUri)) {\n\t\t\t\t\ttabEventText = editor.document.getText()\n\t\t\t\t\trecording.activatedFiles.add(currentFileUri)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new Error(""Warning: recording.activatedFiles was not available during TAB event logging."")\n\t\t\t}\n\n\t\t\trecording.sequence++\n\t\t\taddToFileQueue(\n\t\t\t\tbuildCsvRow({\n\t\t\t\t\tsequence: recording.sequence,\n\t\t\t\t\trangeOffset: 0,\n\t\t\t\t\trangeLength: 0,\n\t\t\t\t\ttext: tabEventText,\n\t\t\t\t\ttype: ChangeType.TAB,\n\t\t\t\t})\n\t\t\t)\n\t\t\tappendToFile()\n\t\t\tactionsProvider.setCurrentFile(editor.document.fileName)\n\t\t}\n\t})\n\n\tcontext.subscriptions.push(\n\t\tvscode.window.onDidChangeTextEditorSelection(event => {\n\t\t\tif (recording.isRecording && event.textEditor === vscode.window.activeTextEditor) {\n\t\t\t\tif (isCurrentFileExported()) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tconst editor = event.textEditor\n\t\t\t\t// For simplicity, we'll log the primary selection.\n\t\t\t\tconst selection = event.selections[0]\n\t\t\t\tif (!selection) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tconst selectedText = editor.document.getText(selection)\n\t\t\t\tlet changeType: string\n\n\t\t\t\tswitch (event.kind) {\n\t\t\t\t\tcase vscode.TextEditorSelectionChangeKind.Keyboard:\n\t\t\t\t\t\tchangeType = ChangeType.SELECTION_KEYBOARD\n\t\t\t\t\t\tbreak\n\t\t\t\t\tcase vscode.TextEditorSelectionChangeKind.Mouse:\n\t\t\t\t\t\tchangeType = ChangeType.SELECTION_MOUSE\n\t\t\t\t\t\tbreak\n\t\t\t\t\tcase vscode.TextEditorSelectionChangeKind.Command:\n\t\t\t\t\t\tchangeType = ChangeType.SELECTION_COMMAND\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new TypeError(""Unknown selection change kind."")\n\t\t\t\t}\n\n\t\t\t\trecording.sequence++\n\t\t\t\tconst csvRowParams: CSVRowBuilder = {\n\t\t\t\t\tsequence: recording.sequence,\n\t\t\t\t\trangeOffset: editor.document.offsetAt(selection.start),\n\t\t\t\t\trangeLength: editor.document.offsetAt(selection.end) - editor.document.offsetAt(selection.start),\n\t\t\t\t\ttext: selectedText,\n\t\t\t\t\ttype: changeType,\n\t\t\t\t}\n\t\t\t\taddToFileQueue(buildCsvRow(csvRowParams))\n\t\t\t\tappendToFile()\n\t\t\t\tactionsProvider.setCurrentFile(editor.document.fileName)\n\t\t\t}\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.window.onDidChangeActiveTerminal((terminal: vscode.Terminal | undefined) => {\n\t\t\tif (terminal && recording.isRecording) {\n\t\t\t\tif (isCurrentFileExported()) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\trecording.sequence++\n\t\t\t\taddToFileQueue(\n\t\t\t\t\tbuildCsvRow({\n\t\t\t\t\t\tsequence: recording.sequence,\n\t\t\t\t\t\trangeOffset: 0,\n\t\t\t\t\t\trangeLength: 0,\n\t\t\t\t\t\ttext: terminal.name,\n\t\t\t\t\t\ttype: ChangeType.TERMINAL_FOCUS,\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t\tappendToFile()\n\t\t\t\tactionsProvider.setCurrentFile(`Terminal: ${terminal.name}`)\n\t\t\t}\n\t\t})\n\t)\n\n\tcontext.subscriptions.push(\n\t\tvscode.window.onDidStartTerminalShellExecution(async (event: vscode.TerminalShellExecutionStartEvent) => {\n\t\t\tif (recording.isRecording) {\n\t\t\t\tif (isCurrentFileExported()) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tconst commandLine = event.execution.commandLine.value\n\t\t\t\trecording.sequence++\n\t\t\t\taddToFileQueue(\n\t\t\t\t\tbuildCsvRow({\n\t\t\t\t\t\tsequence: recording.sequence,\n\t\t\t\t\t\trangeOffset: 0,\n\t\t\t\t\t\trangeLength: 0,\n\t\t\t\t\t\ttext: commandLine,\n\t\t\t\t\t\ttype: ChangeType.TERMINAL_COMMAND,\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t\tappendToFile()\n\n\t\t\t\tconst stream = event.execution.read()\n\t\t\t\tfor await (const data of stream) {\n\t\t\t\t\trecording.sequence++\n\t\t\t\t\taddToFileQueue(\n\t\t\t\t\t\tbuildCsvRow({ sequence: recording.sequence, rangeOffset: 0, rangeLength: 0, text: data, type: ChangeType.TERMINAL_OUTPUT })\n\t\t\t\t\t)\n\t\t\t\t\tappendToFile()\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t)\n\n\tstatusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 9000)\n\tupdateStatusBarItem()\n\tcontext.subscriptions.push(statusBarItem)\n\tstartRecording().catch(err => logToOutput(`Autostart recording failed unexpectedly: ${err}`, 'error'));\n}\n\nexport function deactivate(): void {\n\tlogToOutput(vscode.l10n.t('Deactivating crowd-code'), 'info')\n\tif (recording.isRecording) {\n\t\tstopRecording()\n\t}\n\tstatusBarItem.dispose()\n}\n",typescript,tab +204,297336,"src/extension.ts",829,0,"",typescript,selection_command +205,304540,"src/actionsProvider.ts",0,0,"import * as vscode from 'vscode'\r\nimport * as fs from 'node:fs'\r\nimport * as path from 'node:path'\r\nimport { commands } from './recording'\r\nimport { getConfig } from './utilities'\r\n\r\nexport class ActionItem extends vscode.TreeItem {\r\n\tconstructor(\r\n\t\tpublic readonly label: string,\r\n\t\tpublic readonly collapsibleState: vscode.TreeItemCollapsibleState,\r\n\t\tpublic readonly command?: vscode.Command,\r\n\t\tpublic readonly iconId?: string\r\n\t) {\r\n\t\tsuper(label, collapsibleState)\r\n\t\tif (iconId) {\r\n\t\t\tthis.iconPath = new vscode.ThemeIcon(iconId)\r\n\t\t}\r\n\t}\r\n}\r\n\r\nexport class ActionsProvider implements vscode.TreeDataProvider {\r\n\tprivate _onDidChangeTreeData: vscode.EventEmitter =\r\n\t\tnew vscode.EventEmitter()\r\n\treadonly onDidChangeTreeData: vscode.Event =\r\n\t\tthis._onDidChangeTreeData.event\r\n\r\n\tprivate _timer = 0\r\n\tprivate _isRecording = false\r\n\tprivate _currentFile = ''\r\n\tprivate _gitignoreWatcher: vscode.FileSystemWatcher | undefined\r\n\r\n\tconstructor() {\r\n\t\t// Update timer every second when recording\r\n\t\tsetInterval(() => {\r\n\t\t\tif (this._isRecording) {\r\n\t\t\t\tthis._timer++\r\n\t\t\t\tthis.refresh()\r\n\t\t\t}\r\n\t\t}, 1000)\r\n\r\n\t\t// Watch for .gitignore changes\r\n\t\tthis.setupGitignoreWatcher()\r\n\t}\r\n\r\n\tprivate setupGitignoreWatcher() {\r\n\t\tconst workspaceFolder = vscode.workspace.workspaceFolders?.[0]\r\n\t\tif (workspaceFolder) {\r\n\t\t\tthis._gitignoreWatcher?.dispose()\r\n\t\t\tthis._gitignoreWatcher = vscode.workspace.createFileSystemWatcher(\r\n\t\t\t\tnew vscode.RelativePattern(workspaceFolder, '.gitignore')\r\n\t\t\t)\r\n\r\n\t\t\tthis._gitignoreWatcher.onDidCreate(() => this.refresh())\r\n\t\t\tthis._gitignoreWatcher.onDidChange(() => this.refresh())\r\n\t\t\tthis._gitignoreWatcher.onDidDelete(() => this.refresh())\r\n\t\t}\r\n\t}\r\n\r\n\trefresh(): void {\r\n\t\tthis._onDidChangeTreeData.fire(undefined)\r\n\t}\r\n\r\n\tgetTreeItem(element: ActionItem): vscode.TreeItem {\r\n\t\treturn element\r\n\t}\r\n\r\n\tsetRecordingState(isRecording: boolean): void {\r\n\t\tthis._isRecording = isRecording\r\n\t\tif (!isRecording) {\r\n\t\t\tthis._timer = 0\r\n\t\t\tthis._currentFile = ''\r\n\t\t}\r\n\t\tthis.refresh()\r\n\t}\r\n\r\n\tsetCurrentFile(fileName: string): void {\r\n\t\tthis._currentFile = fileName\r\n\t\tthis.refresh()\r\n\t}\r\n\r\n\tformatTime(seconds: number): string {\r\n\t\tconst hours = Math.floor(seconds / 3600)\r\n\t\tconst minutes = Math.floor((seconds % 3600) / 60)\r\n\t\tconst remainingSeconds = seconds % 60\r\n\t\treturn `${hours.toString().padStart(2, '0')}:${minutes\r\n\t\t\t.toString()\r\n\t\t\t.padStart(2, '0')}:${remainingSeconds.toString().padStart(2, '0')}`\r\n\t}\r\n\r\n\tprivate shouldShowGitignoreButton(): boolean {\r\n\t\tconst workspaceFolder = vscode.workspace.workspaceFolders?.[0]\r\n\t\tif (!workspaceFolder) {\r\n\t\t\treturn false\r\n\t\t}\r\n\r\n\t\tconst gitignorePath = path.join(workspaceFolder.uri.fsPath, '.gitignore')\r\n\t\tconst exportPath = getConfig().get('export.exportPath')\r\n\r\n\t\tif (!exportPath) {\r\n\t\t\treturn false\r\n\t\t}\r\n\r\n\t\t// If .gitignore doesn't exist, show the button\r\n\t\tif (!fs.existsSync(gitignorePath)) {\r\n\t\t\treturn false\r\n\t\t}\r\n\r\n\t\t// Get the relative path from workspace folder\r\n\t\tlet relativePath = exportPath\r\n\t\tif (exportPath.startsWith('${workspaceFolder}')) {\r\n\t\t\trelativePath = exportPath.replace('${workspaceFolder}', '').replace(/\\/g, '/')\r\n\t\t}\r\n\t\t// Remove leading and trailing slashes\r\n\t\trelativePath = relativePath.replace(/^\/+|\/+$/g, '')\r\n\r\n\t\t// Check if the path is already in .gitignore\r\n\t\tconst content = fs.readFileSync(gitignorePath, 'utf8')\r\n\t\treturn !content.split('\n').some(line => line.trim() === relativePath)\r\n\t}\r\n\r\n\tasync getChildren(element?: ActionItem): Promise {\r\n\t\tif (element) {\r\n\t\t\treturn []\r\n\t\t}\r\n\r\n\t\tconst items: ActionItem[] = []\r\n\r\n\t\t// Record/Stop button\r\n\t\tconst recordButton = new ActionItem(\r\n\t\t\tthis._isRecording ? 'Stop Recording' : 'Start Recording',\r\n\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t{\r\n\t\t\t\tcommand: this._isRecording ? commands.stopRecording : commands.startRecording,\r\n\t\t\t\ttitle: this._isRecording ? 'Stop Recording' : 'Start Recording',\r\n\t\t\t},\r\n\t\t\tthis._isRecording ? 'debug-stop' : 'record'\r\n\t\t)\r\n\t\titems.push(recordButton)\r\n\r\n\t\t// Timer (only when recording or when showTimer is enabled)\r\n\t\tif (this._isRecording || getConfig().get('appearance.showTimer')) {\r\n\t\t\tconst timer = new ActionItem(\r\n\t\t\t\tthis.formatTime(this._timer),\r\n\t\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t\tundefined,\r\n\t\t\t\t'watch'\r\n\t\t\t)\r\n\t\t\titems.push(timer)\r\n\t\t}\r\n\r\n\t\t// Current file (only when recording)\r\n\t\tif (this._isRecording && this._currentFile) {\r\n\t\t\tconst prefix = this._currentFile.startsWith('Terminal:') ? '' : 'Current File: '\r\n\t\t\tconst displayedFile = this._currentFile.startsWith('Terminal:') ? this._currentFile : vscode.workspace.asRelativePath(this._currentFile)\r\n\t\t\tconst currentFile = new ActionItem(\r\n\t\t\t\t`${prefix}${displayedFile}`,\r\n\t\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t\tundefined,\r\n\t\t\t\t'file'\r\n\t\t\t)\r\n\t\t\titems.push(currentFile)\r\n\t\t}\r\n\r\n\t\t// Add to .gitignore action (only if .gitignore exists and path is not already in it)\r\n\t\tif (this.shouldShowGitignoreButton()) {\r\n\t\t\tconst addToGitignoreButton = new ActionItem(\r\n\t\t\t\t'Add to .gitignore',\r\n\t\t\t\tvscode.TreeItemCollapsibleState.None,\r\n\t\t\t\t{\r\n\t\t\t\t\tcommand: 'crowd-code.addToGitignore',\r\n\t\t\t\t\ttitle: 'Add to .gitignore',\r\n\t\t\t\t},\r\n\t\t\t\t'git-ignore'\r\n\t\t\t)\r\n\t\t\titems.push(addToGitignoreButton)\r\n\t\t}\r\n\r\n\t\treturn items\r\n\t}\r\n\r\n\tdispose() {\r\n\t\tthis._gitignoreWatcher?.dispose()\r\n\t}\r\n}\r\n",typescript,tab +206,304549,"src/actionsProvider.ts",5170,0,"",typescript,selection_command +207,306385,".vscode/tasks.json",0,0,"// See https://go.microsoft.com/fwlink/?LinkId=733558\n// for the documentation about the tasks.json format\n{\n\t""version"": ""2.0.0"",\n\t""tasks"": [\n\t\t{\n\t\t\t""type"": ""npm"",\n\t\t\t""script"": ""watch"",\n\t\t\t""problemMatcher"": ""$ts-webpack-watch"",\n\t\t\t""isBackground"": true,\n\t\t\t""presentation"": {\n\t\t\t\t""reveal"": ""never"",\n\t\t\t\t""group"": ""watchers""\n\t\t\t},\n\t\t\t""group"": {\n\t\t\t\t""kind"": ""build"",\n\t\t\t\t""isDefault"": true\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t""type"": ""npm"",\n\t\t\t""script"": ""watch-tests"",\n\t\t\t""problemMatcher"": ""$tsc-watch"",\n\t\t\t""isBackground"": true,\n\t\t\t""presentation"": {\n\t\t\t\t""reveal"": ""never"",\n\t\t\t\t""group"": ""watchers""\n\t\t\t},\n\t\t\t""group"": ""build""\n\t\t},\n\t\t{\n\t\t\t""label"": ""tasks: watch-tests"",\n\t\t\t""dependsOn"": [\n\t\t\t\t""npm: watch"",\n\t\t\t\t""npm: watch-tests""\n\t\t\t],\n\t\t\t""problemMatcher"": []\n\t\t},\n\t\t{\n\t\t\t""type"": ""npm"",\n\t\t\t""script"": ""compile"",\n\t\t\t""group"": ""build"",\n\t\t\t""problemMatcher"": [],\n\t\t\t""label"": ""npm: compile"",\n\t\t\t""detail"": ""webpack""\n\t\t}\n\t]\n}\n",jsonc,tab +208,306389,".vscode/tasks.json",730,0,"",jsonc,selection_command +209,309767,"README.md",0,0,"# ⚫ crowd-code\n\nThis extension provides functionality to record IDE actions. Currently supported actions include text insertions, deletions, undo, redo, cursor movement (including VIM motions), file switches, terminal invocation and terminal command execution (both input and output). The changes are recorded in a CSV file and uploaded to an S3 bucket, which we plan to thoroughly clean, process, and eventually share with the community. \n\nAll uncaptured data is lost data. We want to crowd-source a dense dataset of IDE actions to eventually finetune models on. This would (to the best of our knowledge) constitute the first crowd-sourced dataset of dense IDE actions.\n\nWe thank Mattia Consiglio for his awesome work on the upstream repository, which made our lives infinitely easier.\n\n## 📚 Table of Contents\n\n- [⚫ crowd-code](#-crowd-code)\n - [📚 Table of Contents](#-table-of-contents)\n - [📖 Usage](#-usage)\n - [📄 Output](#-output)\n - [▶️ Play it back!](#️-play-it-back)\n - [🔧 Extension Settings](#-extension-settings)\n - [⚙️ Requirements](#️-requirements)\n - [🐛 Known Issues](#-known-issues)\n - [🤝 Contributing](#-contributing)\n - [💸 Support me](#-support-me)\n - [📝 Release Notes](#-release-notes)\n\n## 📖 Usage\n\n![crowd-code Extension](https://raw.githubusercontent.com/mattia-consiglio/vs-code-recorder/main/img/preview.gif)\n\nAs soon as the extension activates, recording commences automatically. Recording automatically stops upon IDE closure.\nAdditionally, you can control the recording in two ways:\n\n1. Using the status bar (on the right): Click on ""Start recording"" to begin and ""Stop recording"" to end.\n2. Using the VS Code Recorder sidebar: Click on the extension icon in the activity bar to open the sidebar, where you can:\n - Start/Stop the recording\n - View the recording timer\n - See the current file being recorded\n - Manage your recorded files\n - Add the export path to .gitignore\n - Enable/disable participation in crowd-sourcing the dataset\n\nThe extension will automatically record changes in your text editor. When you stop the recording, it will finalize the data and save it to a CSV (source), JSON and SRT files.\n\nYou can customize the recording experience with these features:\n\n- Choose the export formats (SRT or JSON or both)\n- Set custom names for recording folders\n- Automatically add the export path to .gitignore\n\nYou can also use the command palette to access the extension's features.\nAvailable commands:\n\n- `crowd-code.startRecording`: Start the recording\n- `crowd-code.stopRecording`: Stop the recording\n- `crowd-code.openSettings`: Open the extension settings\n\n## 📄 Output\n\nThe recorded changes are saved in a CSV file in your workspace.\n\nThen, this file is processed to generate output files in SRT and JSON formats, providing a detailed and accessible log of your coding session.\n\n## ▶️ Play it back!\n\nPlayback is a feature by the upstream repository. We have not tested playback using our modified repository (e.g. cursor movement and terminal capture are not implemented upstream; chances are high that playback simply breaks using recordings captured by crowd-code). If you want to try this nonetheless:\n\n- The output files can be played back in the [VS Code Recorder Player web app](https://github.com/mattia-consiglio/vs-code-recorder-player).\n- 🚧 React component available soon...\n\n## 🔧 Extension Settings\n\n- `crowdCode.export.exportPath`: Set the export path. Use `${workspaceFolder}` to export to the workspace folder. In case the path does not exist in the workspace, it will be created.\n\n Default: `${workspaceFolder}/crowd-code/`\n\n- `crowdCode.export.createPathOutsideWorkspace`: Create the export path outside the workspace if it doesn't exist\n\n Default: `false`\n\n- `crowdCode.export.addToGitignore`: Add the export path to .gitignore when creating the folder\n\n Default: `false`\n\n- `crowdCode.export.exportFormats`: Enabled export formats (SRT or JSON or both)\n\n Default: `[""JSON"", ""SRT""]`\n\n- `crowdCode.recording.askFolderName`: Ask for a custom folder name before starting a recording\n\n Default: `false`\n\n- `crowdCode.appearance.minimalMode`: Enable or disable the minimal mode\n\n Default: `false`\n\n- `crowdCode.appearance.showTimer`: Enable or disable the display time\n\n Default: `true`\n\n## ⚙️ Requirements\n\nThis extension requires Visual Studio Code, or any other editor that supports the VS Code API (like Cursor, VSCodium, Windsurf, etc.), to run. No additional dependencies are needed.\n\n## 🐛 Known Issues\n\nThere are currently no known issues with this extension.\n\n## 🤝 Contributing\n\nIf you'd like to contribute to this extension, please feel free to fork the repository and submit a pull request.\n\n## 💸 Support the upstream author\n\nIf you like this extension, please consider [supporting the author of the upstream repository](https://www.paypal.com/donate/?hosted_button_id=D5EUDQ5VEJCSL)!\n\n## 📝 Release Notes\n\nSee [CHANGELOG.md](CHANGELOG.md)\n\n---\n\n**😊 Enjoy!**\n",markdown,tab +210,309807,"README.md",1927,0,"",markdown,selection_command +211,312155,"README.md",1968,0,"",markdown,selection_mouse +212,318972,"README.md",1927,2333,"\nThe extension will automatically record changes in your text editor. When you stop the recording, it will finalize the data and save it to a CSV (source), JSON and SRT files.\n\nYou can customize the recording experience with these features:\n\n- Choose the export formats (SRT or JSON or both)\n- Set custom names for recording folders\n- Automatically add the export path to .gitignore\n\nYou can also use the command palette to access the extension's features.\nAvailable commands:\n\n- `vs-code-recorder.startRecording`: Start the recording\n- `vs-code-recorder.stopRecording`: Stop the recording\n- `vs-code-recorder.openSettings`: Open the extension settings\n\n## 📄 Output\n\nThe recorded changes are saved in a CSV file in your workspace.\n\nThen, this file is processed to generate output files in SRT and JSON formats, providing a detailed and accessible log of your coding session.\n\n## ▶️ Play it back!\n\nPlayback is a feature by the upstream repository. We have not tested playback using our modified repository (e.g. cursor movement and terminal capture are not implemented upstream; chances are high that playback simply breaks using recordings captured by crowd-code). If you want to try this nonetheless:\n\n- The output files can be played back in the [VS Code Recorder Player web app](https://github.com/mattia-consiglio/vs-code-recorder-player).\n- 🚧 React component available soon...\n\n## 🔧 Extension Settings\n\n- `vsCodeRecorder.export.exportPath`: Set the export path. Use `${workspaceFolder}` to export to the workspace folder. In case the path does not exist in the workspace, it will be created.\n\n Default: `${workspaceFolder}/vs-code-recorder/`\n\n- `vsCodeRecorder.export.createPathOutsideWorkspace`: Create the export path outside the workspace if it doesn't exist\n\n Default: `false`\n\n- `vsCodeRecorder.export.addToGitignore`: Add the export path to .gitignore when creating the folder\n\n Default: `false`\n\n- `vsCodeRecorder.export.exportFormats`: Enabled export formats (SRT or JSON or both)\n\n Default: `[""JSON"", ""SRT""]`\n\n- `vsCodeRecorder.recording.askFolderName`: Ask for a custom folder name before starting a recording\n\n Default: `false`\n\n- `vsCodeRecorder.appearance.minimalMode`: Enable or disable the minimal mode\n\n Default: `false`\n\n- `vsCodeRecorder.appearance.showTimer`: Enable or disable the display time\n",markdown,content +213,320167,"README.md",0,0,"",markdown,tab +214,320173,"README.md",1927,0,"",markdown,selection_command +215,348132,"README.md",0,0,"",markdown,tab +216,348140,"README.md",2405,0,"",markdown,selection_command +217,348618,"package.nls.json",0,0,"{\n\t""displayName"": ""crowd-code"",\n\t""description"": ""Record the code in SRT and JSON format"",\n\t""command.startRecording.title"": ""crowd-code: Start Recording"",\n\t""command.stopRecording.title"": ""crowd-code: Stop Recording"",\n\t""command.openSettings.title"": ""crowd-code: Open Settings"",\n\t""command.refreshRecordFiles.title"": ""Refresh"",\n\t""command.addToGitignore.title"": ""Add to .gitignore"",\n\t""command.showUserId.title"": ""crowd-code: Show User ID"",\n\t""config.title"": ""crowd-code"",\n\t""config.exportPath.description"": ""Set the export path. Use `${workspaceFolder}` to export to the workspace folder. In case the path does not exist in the workspace, it will be created."",\n\t""config.createPathOutsideWorkspace.description"": ""Create the export path outside the workspace"",\n\t""config.addToGitignore.description"": ""Add the export path to .gitignore when creating the folder"",\n\t""config.exportFormats.description"": ""Select the formats to export recording data"",\n\t""config.minimalMode.description"": ""Enable minimal mode. Display only icons and no text"",\n\t""config.showTimer.description"": ""Show timer. The timer will be displayed even in minimal mode"",\n\t""config.askFolderName.description"": ""Ask for a custom folder name before starting a recording"",\n\t""view.recordFiles.name"": ""Recorded Files"",\n\t""view.recordFiles.contextualTitle"": ""Recorded Files"",\n\t""view.actions.name"": ""Actions"",\n\t""view.actions.contextualTitle"": ""Actions"",\n\t""command.deleteRecordFile.title"": ""Delete"",\n\t""command.revealInExplorer.title"": ""Reveal in File Explorer"",\n\t""dialog.deleteConfirmation"": ""Are you sure you want to delete {name}?"",\n\t""dialog.yes"": ""Yes"",\n\t""dialog.no"": ""No"",\n\t""dialog.enterFolderName.prompt"": ""Enter a name for the recording folder"",\n\t""dialog.enterFolderName.placeholder"": ""Enter recording folder name"",\n\t""error.noWorkspace"": ""No workspace folder found"",\n\t""error.noExportPath"": ""No export path specified""\n}",json,tab +218,357345,"package.nls.json",0,1865,"{\r\n\t""displayName"": ""crowd-code"",\r\n\t""description"": ""Record the code in SRT and JSON format"",\r\n\t""command.startRecording.title"": ""crowd-code: Start Recording"",\r\n\t""command.stopRecording.title"": ""crowd-code: Stop Recording"",\r\n\t""command.openSettings.title"": ""crowd-code: Open Settings"",\r\n\t""command.refreshRecordFiles.title"": ""Refresh"",\r\n\t""command.addToGitignore.title"": ""Add to .gitignore"",\r\n\t""command.showUserId.title"": ""crowd-code: Show User ID"",\r\n\t""config.title"": ""crowd-code"",\r\n\t""config.exportPath.description"": ""Set the export path. Use `${workspaceFolder}` to export to the workspace folder. In case the path does not exist in the workspace, it will be created."",\r\n\t""config.createPathOutsideWorkspace.description"": ""Create the export path outside the workspace"",\r\n\t""config.addToGitignore.description"": ""Add the export path to .gitignore when creating the folder"",\r\n\t""config.exportFormats.description"": ""Select the formats to export recording data"",\r\n\t""config.minimalMode.description"": ""Enable minimal mode. Display only icons and no text"",\r\n\t""config.showTimer.description"": ""Show timer. The timer will be displayed even in minimal mode"",\r\n\t""config.askFolderName.description"": ""Ask for a custom folder name before starting a recording"",\r\n\t""view.recordFiles.name"": ""Recorded Files"",\r\n\t""view.recordFiles.contextualTitle"": ""Recorded Files"",\r\n\t""view.actions.name"": ""Actions"",\r\n\t""view.actions.contextualTitle"": ""Actions"",\r\n\t""command.deleteRecordFile.title"": ""Delete"",\r\n\t""command.revealInExplorer.title"": ""Reveal in File Explorer"",\r\n\t""dialog.deleteConfirmation"": ""Are you sure you want to delete {name}?"",\r\n\t""dialog.yes"": ""Yes"",\r\n\t""dialog.no"": ""No"",\r\n\t""dialog.enterFolderName.prompt"": ""Enter a name for the recording folder"",\r\n\t""dialog.enterFolderName.placeholder"": ""Enter recording folder name"",\r\n\t""error.noWorkspace"": ""No workspace folder found"",\r\n\t""error.noExportPath"": ""No export path specified""\r\n}",json,content +219,357627,"package.nls.json",0,0,"",json,tab +220,361025,"package.nls.json",1363,0,"",json,selection_mouse +221,361951,"src/extension.ts",0,0,"",typescript,tab +222,363728,"package.json",0,0,"{\n ""name"": ""crowd-code"",\n ""displayName"": ""%displayName%"",\n ""description"": ""%description%"",\n ""version"": ""1.1.3"",\n ""publisher"": ""pdoom-org"",\n ""icon"": ""icon.png"",\n ""engines"": {\n ""vscode"": ""^1.89.0""\n },\n ""main"": ""./out/extension.js"",\n ""categories"": [\n ""Other"",\n ""Education""\n ],\n ""activationEvents"": [\n ""onStartupFinished""\n ],\n ""l10n"": ""./l10n"",\n ""contributes"": {\n ""commands"": [\n {\n ""command"": ""crowd-code.startRecording"",\n ""title"": ""%command.startRecording.title%"",\n ""icon"": ""$(play)""\n },\n {\n ""command"": ""crowd-code.stopRecording"",\n ""title"": ""%command.stopRecording.title%"",\n ""icon"": ""$(stop)""\n },\n {\n ""command"": ""crowd-code.openSettings"",\n ""title"": ""%command.openSettings.title%"",\n ""icon"": ""$(settings)""\n },\n {\n ""command"": ""crowd-code.refreshRecordFiles"",\n ""title"": ""%command.refreshRecordFiles.title%"",\n ""icon"": ""$(refresh)""\n },\n {\n ""command"": ""crowd-code.deleteRecordFile"",\n ""title"": ""%command.deleteRecordFile.title%"",\n ""icon"": ""$(trash)""\n },\n {\n ""command"": ""crowd-code.revealInExplorer"",\n ""title"": ""%command.revealInExplorer.title%"",\n ""icon"": ""$(folder-opened)""\n },\n {\n ""command"": ""crowd-code.addToGitignore"",\n ""title"": ""%command.addToGitignore.title%"",\n ""icon"": ""$(git-ignore)""\n },\n {\n ""command"": ""crowd-code.showUserId"",\n ""title"": ""%command.showUserId.title%""\n }\n ],\n ""viewsContainers"": {\n ""activitybar"": [\n {\n ""id"": ""crowd-code"",\n ""title"": ""crowd-code"",\n ""icon"": ""icon.svg""\n }\n ]\n },\n ""views"": {\n ""crowd-code"": [\n {\n ""id"": ""actions"",\n ""name"": ""%view.actions.name%"",\n ""icon"": ""icon.svg"",\n ""contextualTitle"": ""%view.actions.contextualTitle%""\n },\n {\n ""id"": ""recordFiles"",\n ""name"": ""%view.recordFiles.name%"",\n ""icon"": ""icon.svg"",\n ""contextualTitle"": ""%view.recordFiles.contextualTitle%""\n }\n ]\n },\n ""menus"": {\n ""view/title"": [\n {\n ""command"": ""crowd-code.refreshRecordFiles"",\n ""when"": ""view == recordFiles"",\n ""group"": ""navigation""\n },\n {\n ""command"": ""vs-code-recorder.addToGitignore"",\n ""when"": ""view == actions"",\n ""group"": ""navigation""\n }\n ],\n ""view/item/context"": [\n {\n ""command"": ""crowd-code.deleteRecordFile"",\n ""when"": ""view == recordFiles"",\n ""group"": ""inline""\n },\n {\n ""command"": ""crowd-code.revealInExplorer"",\n ""when"": ""view == recordFiles"",\n ""group"": ""inline""\n },\n {\n ""command"": ""crowd-code.deleteRecordFile"",\n ""when"": ""view == recordFiles"",\n ""group"": ""1_modification""\n },\n {\n ""command"": ""crowd-code.revealInExplorer"",\n ""when"": ""view == recordFiles"",\n ""group"": ""2_workspace""\n }\n ]\n },\n ""configuration"": {\n ""title"": ""%config.title%"",\n ""properties"": {\n ""crowdCode.export.exportPath"": {\n ""type"": ""string"",\n ""default"": ""${workspaceFolder}/crowd-code/"",\n ""markdownDescription"": ""%config.exportPath.description%"",\n ""order"": 0\n },\n ""crowdCode.export.createPathOutsideWorkspace"": {\n ""type"": ""boolean"",\n ""default"": false,\n ""description"": ""%config.createPathOutsideWorkspace.description%"",\n ""order"": 1\n },\n ""crowdCode.export.addToGitignore"": {\n ""type"": ""boolean"",\n ""default"": false,\n ""description"": ""%config.addToGitignore.description%"",\n ""order"": 2\n },\n ""crowdCode.export.exportFormats"": {\n ""type"": ""array"",\n ""items"": {\n ""type"": ""string"",\n ""enum"": [\n ""JSON"",\n ""SRT""\n ]\n },\n ""uniqueItems"": true,\n ""default"": [\n ""JSON"",\n ""SRT""\n ],\n ""description"": ""%config.exportFormats.description%"",\n ""order"": 3\n },\n ""crowdCode.recording.askFolderName"": {\n ""type"": ""boolean"",\n ""default"": false,\n ""description"": ""%config.askFolderName.description%"",\n ""order"": 4\n },\n ""crowdCode.appearance.minimalMode"": {\n ""type"": ""boolean"",\n ""default"": false,\n ""description"": ""%config.minimalMode.description%"",\n ""order"": 5\n },\n ""crowdCode.appearance.showTimer"": {\n ""type"": ""boolean"",\n ""default"": true,\n ""description"": ""%config.showTimer.description%"",\n ""order"": 6\n }\n }\n }\n },\n ""repository"": {\n ""type"": ""git"",\n ""url"": ""git://github.com/p-doom/crowd-code.git""\n },\n ""scripts"": {\n ""vscode:prepublish"": ""npm run package"",\n ""ovsx:publish"": ""ovsx publish"",\n ""compile"": ""webpack"",\n ""watch"": ""webpack --watch"",\n ""package"": ""webpack --mode production --devtool hidden-source-map"",\n ""compile-tests"": ""tsc -p . --outDir out"",\n ""watch-tests"": ""tsc -p . -w --outDir out"",\n ""pretest"": ""npm run compile-tests && npm run compile && npm run lint"",\n ""lint"": ""eslint src --ext ts"",\n ""test"": ""vscode-test""\n },\n ""devDependencies"": {\n ""@types/mocha"": ""^10.0.6"",\n ""@types/node"": ""18.x"",\n ""@types/vscode"": ""^1.89.0"",\n ""@typescript-eslint/eslint-plugin"": ""^7.11.0"",\n ""@typescript-eslint/parser"": ""^7.11.0"",\n ""@vscode/l10n-dev"": ""^0.0.35"",\n ""@vscode/test-cli"": ""^0.0.9"",\n ""@vscode/test-electron"": ""^2.4.0"",\n ""eslint"": ""^8.57.0"",\n ""ts-loader"": ""^9.5.1"",\n ""typescript"": ""^5.4.5"",\n ""webpack"": ""^5.91.0"",\n ""webpack-cli"": ""^5.1.4""\n },\n ""dependencies"": {\n ""@vscode/l10n"": ""^0.0.18"",\n ""axios"": ""^1.7.2""\n }\n}",json,tab +223,363735,"package.json",412,0,"",json,selection_command +224,373910,"CHANGELOG.md",0,0,"# Change Log\n\nAll notable changes to the ""crowd-code"" extension will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)\n\n## [Unreleased]\n\n### Added\n\n### Changed\n\n### Deprecated\n\n### Removed\n\n### Fixed\n\n### Security\n\n## 1.1.3\n\n### Added\n\n- include userId (hashed) and extension version as metadata when sending CSVs\n- a new command to display the userId in the command palette for the user.\n\n### Changed\n\n- user friendly upload to s3 through api gateway and lambda\n- export path defaulting to `/tmp` when none is specified by the user, ensuring a valid export location is always available and NOT in the user's workspace\n\n## 1.1.2\n\n### Added\n\n- log cursor movement, command execution and terminal interactions\n- Upload recording files to S3 bucket\n\n### Changed\n\n- Recording on extension startup, autostart logging\n- only log file content the first time\n- stop recording on closure\n- metadata, icon, project name\n\n\nforked: crowd-code\n--- \n\n## 1.1.1\n\n### Changed\n\n- Updated README.md with new features documentation and improved usage instructions.\n\n## 1.1.0\n\n### Added\n\n- Language locale support. Now available in English and Italian. (Fell free to contribute to add more languages!)\n- Added recording side panel to show the recording progress and manage the recordings.\n- Added option to set custom folder names for recordings with timestamp appended.\n- Added option to automatically add export path to .gitignore and a button to manually add it.\n\n### Fixed\n\n- Skip exporting changes with the same values to the previous change.\n- Offset by 1 ms the `startTime` and `endTime` to avoid the overlap of the changes.\n\n### Changed\n\n- Added automated tests.\n- Refactored code.\n\n## 1.0.11\n\n### Changed\n\n- Code refactoring.\n\n## 1.0.10\n\n### Changed\n\n- Settings sorting.\n\n## 1.0.9\n\n### Added\n\n- Add educational category for the extension.\n\n## 1.0.8\n\n### Added\n\n- Output folder options for SRT and JSON files.\n- Option to create path outside of workspace.\n- Command to open the extension settings.\n- Log to output channel.\n- Link to VS Code Recorder Player web app.\n\n### Fixed\n\n- Prevent to record the files in the export folder.\n\n## 1.0.7 (skipped public release)\n\n### Fixed\n\n- Fix end time in SRT export\n\n## 1.0.6\n\n### Changed\n\n- Referenced changelog for release notes\n\n### Fixed\n\n- Actually add code language recording to SRT export\n\n## 1.0.5\n\n### Changed\n\n- Updated CHANGELOG.md\n\n## 1.0.4\n\n### Added\n\n- Export settings. Now you can choose in which format you want to export the data (SRT or JSON or both).\n- Minimal mode. This will display only the icons.\n- Setting for displaying the timer while recording.\n\n### Changed\n\n- Update README.md\n\n## 1.0.3\n\n### Added\n\n- Code language recording\n\n### Changed\n\n- Code cleanup\n- Update README.md\n\n## 1.0.2\n\n### Changed\n\n- Update README.md\n\n## 1.0.1\n\n### Fixed\n\n- Fix sequence number to start at 0 every recording\n\n## 1.0.0\n\nInitial release of VS Code Recorder Extension.\n",markdown,tab +225,373938,"CHANGELOG.md",14,0,"",markdown,selection_command +226,377119,".gitignore",0,0,"node_modules\ndist\n*.vsix\n*.ai\nvs-code-recorder\ncrowd-code/\n.vscode-test/\nout\ntest-workspace/vscode-recorder/*",ignore,tab +227,377135,".gitignore",47,0,"",ignore,selection_command +228,379262,".gitignore",47,12,"",ignore,content +229,462040,"TERMINAL",0,0,"git stash",,terminal_command +230,462080,"TERMINAL",0,0,"]633;CSaved working directory and index state WIP on change-remaining-names-to-crowd-code: 0f27745 chore: change remaining vs code namings to crowd-code\r\n% \r \r",,terminal_output +231,469131,"TERMINAL",0,0,"git stash pop",,terminal_command +232,469157,"TERMINAL",0,0,"]633;CAuto-merging README.md\r\nAuto-merging package.nls.json\r\nCONFLICT (content): Merge conflict in package.nls.json\r\nOn branch consent-modal-on-installation\r\nYour branch is up to date with 'origin/consent-modal-on-installation'.\r\n\r\nChanges to be committed:\r\n (use ""git restore --staged ..."" to unstage)\r\n\tmodified: .gitignore\r\n\tmodified: .vscode/tasks.json\r\n\tmodified: README.md\r\n\r\nUnmerged paths:\r\n (use ""git restore --staged ..."" to unstage)\r\n (use ""git add ..."" to mark resolution)\r\n\tboth modified: package.nls.json\r\n\r\nThe stash entry is kept in case you need it again.\r\n% \r \r",,terminal_output +233,470441,".gitignore",47,0,"crowd-code/\n",ignore,content +234,474844,"package.nls.json",0,0,"",json,tab +235,476610,"package.nls.json",459,0,"",json,selection_mouse +236,476611,"package.nls.json",458,0,"",json,selection_command +237,480466,"package.nls.json",483,0,"",json,selection_command +238,480649,"package.nls.json",458,0,"",json,selection_command +239,484238,"package.nls.json",435,25,"",json,content +240,484252,"package.nls.json",436,0,"",json,selection_command +241,484526,"package.nls.json",508,0,"",json,selection_command +242,485150,"package.nls.json",507,7,"=======",json,selection_command +243,485323,"package.nls.json",507,31,"=======\n>>>>>>> Stashed changes",json,selection_command +244,485438,"package.nls.json",507,32,"",json,content +245,485440,"package.nls.json",508,0,"",json,selection_command +246,487472,"package.nls.json",0,0,"",json,tab +247,488268,"package.nls.json",0,0,"",json,tab +248,489052,"package.nls.json",1669,0,"",json,selection_mouse +249,489056,"package.nls.json",1668,0,"",json,selection_command +250,489681,"src/extension.ts",0,0,"",typescript,tab +251,491224,".vscode/tasks.json",0,0,"",jsonc,tab +252,491227,".vscode/tasks.json",730,0,"",jsonc,selection_command +253,492857,"README.md",0,0,"",markdown,tab +254,492873,"README.md",1927,0,"",markdown,selection_command +255,496361,"README.md",1991,0,"",markdown,selection_mouse +256,539071,".vscode/tasks.json",0,0,"",jsonc,tab +257,539102,".vscode/tasks.json",730,0,"",jsonc,selection_command +258,539891,"README.md",0,0,"",markdown,tab +259,539914,"README.md",1927,0,"",markdown,selection_command +260,542010,"README.md",1805,0,"",markdown,selection_mouse +261,546550,"README.md",440,0,"",markdown,selection_mouse +262,549207,"README.md",671,0,"",markdown,selection_mouse +263,596176,"README.md",2243,0,"",markdown,selection_mouse +264,596785,"README.md",2232,0,"",markdown,selection_mouse +265,658600,"README.md",902,0,"",markdown,selection_mouse +266,659839,"README.md",918,0,"",markdown,selection_command +267,661607,"README.md",944,0,"",markdown,selection_command +268,661822,"README.md",918,0,"",markdown,selection_command +269,662303,"README.md",894,0,"",markdown,selection_command +270,662888,"README.md",918,0,"",markdown,selection_command +271,663816,"README.md",944,0,"",markdown,selection_command +272,663992,"README.md",918,0,"",markdown,selection_command +273,664178,"README.md",894,0,"",markdown,selection_command +274,664558,"README.md",896,0,"",markdown,selection_command +275,664742,"README.md",897,0,"",markdown,selection_command +276,665100,"README.md",900,0,"",markdown,selection_command +277,666471,"README.md",899,0,"",markdown,selection_command +278,667004,"README.md",915,0,"",markdown,selection_command +279,667677,"README.md",914,0,"",markdown,selection_command +280,668589,"README.md",913,0,"",markdown,selection_command +281,669132,"README.md",937,0,"",markdown,selection_command +282,669640,"README.md",913,0,"",markdown,selection_command +283,677343,"README.md",1758,0,"",markdown,selection_command +284,678471,"README.md",2526,0,"",markdown,selection_command +285,679146,"README.md",2581,0,"",markdown,selection_command +286,679299,"README.md",2644,0,"",markdown,selection_command +287,679554,"README.md",2581,0,"",markdown,selection_command +288,681495,"src/extension.ts",0,0,"",typescript,tab +289,682602,"README.md",0,0,"",markdown,tab +290,683415,"README.md",0,0,"",markdown,selection_command +291,684033,"README.md",15,0,"",markdown,selection_command +292,684286,"README.md",16,0,"",markdown,selection_command +293,684317,"README.md",440,0,"",markdown,selection_command +294,684348,"README.md",441,0,"",markdown,selection_command +295,684383,"README.md",671,0,"",markdown,selection_command +296,684410,"README.md",672,0,"",markdown,selection_command +297,684442,"README.md",787,0,"",markdown,selection_command +298,684474,"README.md",788,0,"",markdown,selection_command +299,684507,"README.md",812,0,"",markdown,selection_command +300,684539,"README.md",813,0,"",markdown,selection_command +301,684573,"README.md",844,0,"",markdown,selection_command +302,684606,"README.md",892,0,"",markdown,selection_command +303,684639,"README.md",916,0,"",markdown,selection_command +304,684672,"README.md",942,0,"",markdown,selection_command +305,684706,"README.md",982,0,"",markdown,selection_command +306,684862,"README.md",942,0,"",markdown,selection_command +307,685014,"README.md",916,0,"",markdown,selection_command +308,685173,"README.md",892,0,"",markdown,selection_command +309,689606,"README.md",915,0,"\n - [📖 Usage](#-usage)",markdown,content +310,689610,"README.md",918,0,"",markdown,selection_command +311,689993,"README.md",920,0,"",markdown,selection_command +312,690150,"README.md",921,0,"",markdown,selection_command +313,690514,"README.md",924,0,"",markdown,selection_command +314,690843,"README.md",924,5,"",markdown,content +315,691342,"README.md",924,0,"P",markdown,content +316,691343,"README.md",925,0,"",markdown,selection_keyboard +317,691393,"README.md",925,0,"R",markdown,content +318,691394,"README.md",926,0,"",markdown,selection_keyboard +319,691529,"README.md",926,0,"I",markdown,content +320,691530,"README.md",927,0,"",markdown,selection_keyboard +321,691871,"README.md",926,1,"",markdown,content +322,692005,"README.md",925,1,"",markdown,content +323,692095,"README.md",925,0,"r",markdown,content +324,692095,"README.md",926,0,"",markdown,selection_keyboard +325,692197,"README.md",926,0,"i",markdown,content +326,692197,"README.md",927,0,"",markdown,selection_keyboard +327,692270,"README.md",927,0,"v",markdown,content +328,692271,"README.md",928,0,"",markdown,selection_keyboard +329,692342,"README.md",928,0,"a",markdown,content +330,692343,"README.md",929,0,"",markdown,selection_keyboard +331,692679,"README.md",929,0,"c",markdown,content +332,692679,"README.md",930,0,"",markdown,selection_keyboard +333,692749,"README.md",930,0,"y",markdown,content +334,692750,"README.md",931,0,"",markdown,selection_keyboard +335,692921,"README.md",930,0,"",markdown,selection_command +336,693151,"README.md",931,0,"",markdown,selection_command +337,693314,"README.md",935,0,"",markdown,selection_command +338,693485,"README.md",940,0,"",markdown,selection_command +339,693855,"README.md",935,0,"",markdown,selection_command +340,694042,"README.md",935,5,"",markdown,content +341,694161,"README.md",935,0,"p",markdown,content +342,694162,"README.md",936,0,"",markdown,selection_keyboard +343,694264,"README.md",936,0,"r",markdown,content +344,694265,"README.md",937,0,"",markdown,selection_keyboard +345,694358,"README.md",937,0,"i",markdown,content +346,694359,"README.md",938,0,"",markdown,selection_keyboard +347,694422,"README.md",938,0,"v",markdown,content +348,694423,"README.md",939,0,"",markdown,selection_keyboard +349,694527,"README.md",939,0,"a",markdown,content +350,694527,"README.md",940,0,"",markdown,selection_keyboard +351,694599,"README.md",940,0,"c",markdown,content +352,694599,"README.md",941,0,"",markdown,selection_keyboard +353,694710,"README.md",941,0,"y",markdown,content +354,694711,"README.md",942,0,"",markdown,selection_keyboard +355,694849,"README.md",941,0,"",markdown,selection_command +356,695089,"README.md",935,0,"",markdown,selection_command +357,695233,"README.md",931,0,"",markdown,selection_command +358,695376,"README.md",924,0,"",markdown,selection_command +359,695553,"README.md",921,0,"",markdown,selection_command +360,695816,"README.md",924,0,"",markdown,selection_command +361,696141,"README.md",921,0,"",markdown,selection_command +362,707394,"README.md",921,2,"",markdown,content +363,708477,"README.md",921,0,"🔒",markdown,content +364,708478,"README.md",923,0,"",markdown,selection_keyboard +365,708818,"README.md",921,0,"",markdown,selection_command +366,710809,"README.md",1554,0,"",markdown,selection_command +367,711370,"README.md",2476,0,"",markdown,selection_command +368,711891,"README.md",2496,0,"",markdown,selection_command +369,712039,"README.md",2497,0,"",markdown,selection_command +370,712165,"README.md",2554,0,"",markdown,selection_command +371,712304,"README.md",2609,0,"",markdown,selection_command +372,712482,"README.md",2672,0,"",markdown,selection_command +373,712696,"README.md",2609,0,"",markdown,selection_command +374,712857,"README.md",2671,0,"\n",markdown,content +375,713291,"README.md",2671,1,"",markdown,content +376,713559,"README.md",2671,0,"#",markdown,content +377,713560,"README.md",2672,0,"",markdown,selection_keyboard +378,714341,"README.md",2671,0,"",markdown,selection_command +379,714556,"README.md",2671,1,"",markdown,content +380,714558,"README.md",2609,0,"",markdown,selection_command +381,714956,"README.md",921,2,"",markdown,content +382,714957,"README.md",923,0,"",markdown,selection_command +383,716607,"README.md",921,0,"🔒",markdown,content +384,716618,"README.md",923,0,"",markdown,selection_command +385,717514,"README.md",1554,0,"",markdown,selection_command +386,718042,"README.md",2476,0,"",markdown,selection_command +387,718616,"README.md",2496,0,"",markdown,selection_command +388,718804,"README.md",2497,0,"",markdown,selection_command +389,718948,"README.md",2554,0,"",markdown,selection_command +390,719087,"README.md",2609,0,"",markdown,selection_command +391,719473,"README.md",2672,0,"",markdown,selection_command +392,719772,"README.md",2609,0,"",markdown,selection_command +393,720143,"README.md",2671,0,"\n",markdown,content +394,720539,"README.md",2672,0,"\n",markdown,content +395,720890,"README.md",2673,0,"#",markdown,content +396,720891,"README.md",2674,0,"",markdown,selection_keyboard +397,721034,"README.md",2674,0,"#",markdown,content +398,721035,"README.md",2675,0,"",markdown,selection_keyboard +399,721286,"README.md",2675,0," ",markdown,content +400,721287,"README.md",2676,0,"",markdown,selection_keyboard +401,723268,"README.md",2675,0,"",markdown,selection_command +402,723626,"README.md",1919,0,"",markdown,selection_command +403,723859,"README.md",1062,0,"",markdown,selection_command +404,724458,"README.md",1012,0,"",markdown,selection_command +405,724590,"README.md",972,0,"",markdown,selection_command +406,724721,"README.md",946,0,"",markdown,selection_command +407,724888,"README.md",918,0,"",markdown,selection_command +408,724989,"README.md",919,0,"",markdown,selection_command +409,725164,"README.md",920,0,"",markdown,selection_command +410,725361,"README.md",921,0,"",markdown,selection_command +411,725945,"README.md",949,0,"",markdown,selection_command +412,726201,"README.md",975,0,"",markdown,selection_command +413,726229,"README.md",1015,0,"",markdown,selection_command +414,726256,"README.md",1065,0,"",markdown,selection_command +415,726290,"README.md",1104,0,"",markdown,selection_command +416,726323,"README.md",1142,0,"",markdown,selection_command +417,726358,"README.md",1180,0,"",markdown,selection_command +418,726390,"README.md",1214,0,"",markdown,selection_command +419,726587,"README.md",1958,0,"",markdown,selection_command +420,727107,"README.md",2678,0,"",markdown,selection_command +421,727611,"README.md",2677,0,"",markdown,selection_command +422,727740,"README.md",2673,0,"",markdown,selection_command +423,728218,"README.md",2676,0,"",markdown,selection_command +424,728425,"README.md",2675,0,"",markdown,selection_command +425,728556,"README.md",2676,0,"🔒",markdown,content +426,728558,"README.md",2676,0,"",markdown,selection_command +427,729360,"README.md",2678,0,"",markdown,selection_command +428,729517,"README.md",2678,0," ",markdown,content +429,729518,"README.md",2679,0,"",markdown,selection_keyboard +430,729703,"README.md",2679,0,"P",markdown,content +431,729704,"README.md",2680,0,"",markdown,selection_keyboard +432,729888,"README.md",2680,0,"r",markdown,content +433,729889,"README.md",2681,0,"",markdown,selection_keyboard +434,729994,"README.md",2681,0,"i",markdown,content +435,729994,"README.md",2682,0,"",markdown,selection_keyboard +436,730090,"README.md",2682,0,"v",markdown,content +437,730090,"README.md",2683,0,"",markdown,selection_keyboard +438,730242,"README.md",2683,0,"a",markdown,content +439,730243,"README.md",2684,0,"",markdown,selection_keyboard +440,730322,"README.md",2684,0,"c",markdown,content +441,730323,"README.md",2685,0,"",markdown,selection_keyboard +442,730430,"README.md",2685,0,"y",markdown,content +443,730430,"README.md",2686,0,"",markdown,selection_keyboard +444,730652,"README.md",2686,0,"\n",markdown,content +445,731025,"README.md",2687,0,"\n",markdown,content +446,733657,"README.md",2688,0,"W",markdown,content +447,733658,"README.md",2689,0,"",markdown,selection_keyboard +448,733865,"README.md",2689,0,"e",markdown,content +449,733866,"README.md",2690,0,"",markdown,selection_keyboard +450,733907,"README.md",2690,0," ",markdown,content +451,733908,"README.md",2691,0,"",markdown,selection_keyboard +452,734038,"README.md",2691,0,"a",markdown,content +453,734039,"README.md",2692,0,"",markdown,selection_keyboard +454,734116,"README.md",2692,0,"s",markdown,content +455,734116,"README.md",2693,0,"",markdown,selection_keyboard +456,734244,"README.md",2693,0,"k",markdown,content +457,734245,"README.md",2694,0,"",markdown,selection_keyboard +458,734359,"README.md",2694,0," ",markdown,content +459,734359,"README.md",2695,0,"",markdown,selection_keyboard +460,734458,"README.md",2695,0,"f",markdown,content +461,734458,"README.md",2696,0,"",markdown,selection_keyboard +462,734573,"README.md",2696,0,"o",markdown,content +463,734573,"README.md",2697,0,"",markdown,selection_keyboard +464,734659,"README.md",2697,0,"r",markdown,content +465,734659,"README.md",2698,0,"",markdown,selection_keyboard +466,734703,"README.md",2698,0," ",markdown,content +467,734703,"README.md",2699,0,"",markdown,selection_keyboard +468,735276,"README.md",2699,0,"c",markdown,content +469,735277,"README.md",2700,0,"",markdown,selection_keyboard +470,735410,"README.md",2700,0,"o",markdown,content +471,735411,"README.md",2701,0,"",markdown,selection_keyboard +472,735475,"README.md",2701,0,"n",markdown,content +473,735476,"README.md",2702,0,"",markdown,selection_keyboard +474,735764,"README.md",2702,0,"s",markdown,content +475,735765,"README.md",2703,0,"",markdown,selection_keyboard +476,735817,"README.md",2703,0,"e",markdown,content +477,735817,"README.md",2704,0,"",markdown,selection_keyboard +478,735941,"README.md",2704,0,"n",markdown,content +479,735942,"README.md",2705,0,"",markdown,selection_keyboard +480,736032,"README.md",2705,0,"t",markdown,content +481,736032,"README.md",2706,0,"",markdown,selection_keyboard +482,736105,"README.md",2706,0," ",markdown,content +483,736106,"README.md",2707,0,"",markdown,selection_keyboard +484,736258,"README.md",2707,0,"i",markdown,content +485,736258,"README.md",2708,0,"",markdown,selection_keyboard +486,736324,"README.md",2708,0,"n",markdown,content +487,736325,"README.md",2709,0,"",markdown,selection_keyboard +488,736439,"README.md",2709,0," ",markdown,content +489,736440,"README.md",2710,0,"",markdown,selection_keyboard +490,738342,"README.md",2707,3,"",markdown,content +491,739326,"README.md",2699,8,"",markdown,content +492,739748,"README.md",2699,0,"y",markdown,content +493,739749,"README.md",2700,0,"",markdown,selection_keyboard +494,739915,"README.md",2700,0,"o",markdown,content +495,739915,"README.md",2701,0,"",markdown,selection_keyboard +496,739988,"README.md",2701,0,"u",markdown,content +497,739988,"README.md",2702,0,"",markdown,selection_keyboard +498,740049,"README.md",2702,0,"r",markdown,content +499,740049,"README.md",2703,0,"",markdown,selection_keyboard +500,740127,"README.md",2703,0," ",markdown,content +501,740128,"README.md",2704,0,"",markdown,selection_keyboard +502,740296,"README.md",2704,0,"c",markdown,content +503,740297,"README.md",2705,0,"",markdown,selection_keyboard +504,740359,"README.md",2705,0,"o",markdown,content +505,740359,"README.md",2706,0,"",markdown,selection_keyboard +506,740400,"README.md",2706,0,"n",markdown,content +507,740401,"README.md",2707,0,"",markdown,selection_keyboard +508,740507,"README.md",2707,0,"s",markdown,content +509,740507,"README.md",2708,0,"",markdown,selection_keyboard +510,740574,"README.md",2708,0,"e",markdown,content +511,740574,"README.md",2709,0,"",markdown,selection_keyboard +512,740649,"README.md",2709,0,"n",markdown,content +513,740650,"README.md",2710,0,"",markdown,selection_keyboard +514,740751,"README.md",2710,0,"t",markdown,content +515,740752,"README.md",2711,0,"",markdown,selection_keyboard +516,740821,"README.md",2711,0," ",markdown,content +517,740821,"README.md",2712,0,"",markdown,selection_keyboard +518,746861,"README.md",2711,1,"",markdown,content +519,747017,"README.md",2711,0," ",markdown,content +520,747017,"README.md",2712,0,"",markdown,selection_keyboard +521,747151,"README.md",2712,0,"i",markdown,content +522,747151,"README.md",2713,0,"",markdown,selection_keyboard +523,747205,"README.md",2713,0,"n",markdown,content +524,747205,"README.md",2714,0,"",markdown,selection_keyboard +525,747461,"README.md",2714,0,"p",markdown,content +526,747461,"README.md",2715,0,"",markdown,selection_keyboard +527,747836,"README.md",2714,1,"",markdown,content +528,747932,"README.md",2714,0," ",markdown,content +529,747932,"README.md",2715,0,"",markdown,selection_keyboard +530,748010,"README.md",2715,0,"p",markdown,content +531,748011,"README.md",2716,0,"",markdown,selection_keyboard +532,748110,"README.md",2716,0,"a",markdown,content +533,748111,"README.md",2717,0,"",markdown,selection_keyboard +534,748141,"README.md",2717,0,"r",markdown,content +535,748142,"README.md",2718,0,"",markdown,selection_keyboard +536,748325,"README.md",2718,0,"t",markdown,content +537,748326,"README.md",2719,0,"",markdown,selection_keyboard +538,748418,"README.md",2719,0,"i",markdown,content +539,748418,"README.md",2720,0,"",markdown,selection_keyboard +540,748521,"README.md",2720,0,"c",markdown,content +541,748521,"README.md",2721,0,"",markdown,selection_keyboard +542,748617,"README.md",2721,0,"i",markdown,content +543,748618,"README.md",2722,0,"",markdown,selection_keyboard +544,748719,"README.md",2722,0,"p",markdown,content +545,748720,"README.md",2723,0,"",markdown,selection_keyboard +546,748907,"README.md",2723,0,"a",markdown,content +547,748908,"README.md",2724,0,"",markdown,selection_keyboard +548,748990,"README.md",2724,0,"t",markdown,content +549,748990,"README.md",2725,0,"",markdown,selection_keyboard +550,749177,"README.md",2725,0,"i",markdown,content +551,749178,"README.md",2726,0,"",markdown,selection_keyboard +552,749262,"README.md",2726,0,"n",markdown,content +553,749262,"README.md",2727,0,"",markdown,selection_keyboard +554,749307,"README.md",2727,0,"g",markdown,content +555,749307,"README.md",2728,0,"",markdown,selection_keyboard +556,749407,"README.md",2728,0," ",markdown,content +557,749407,"README.md",2729,0,"",markdown,selection_keyboard +558,749607,"README.md",2729,0,"i",markdown,content +559,749607,"README.md",2730,0,"",markdown,selection_keyboard +560,749692,"README.md",2730,0,"n",markdown,content +561,749692,"README.md",2731,0,"",markdown,selection_keyboard +562,749734,"README.md",2731,0," ",markdown,content +563,749734,"README.md",2732,0,"",markdown,selection_keyboard +564,749922,"README.md",2732,0,"t",markdown,content +565,749923,"README.md",2733,0,"",markdown,selection_keyboard +566,750320,"README.md",2732,1,"",markdown,content +567,750344,"README.md",2732,0,"c",markdown,content +568,750344,"README.md",2733,0,"",markdown,selection_keyboard +569,750786,"README.md",2733,0,"r",markdown,content +570,750787,"README.md",2734,0,"",markdown,selection_keyboard +571,750875,"README.md",2734,0,"o",markdown,content +572,750875,"README.md",2735,0,"",markdown,selection_keyboard +573,751005,"README.md",2735,0,"w",markdown,content +574,751005,"README.md",2736,0,"",markdown,selection_keyboard +575,751242,"README.md",2736,0,"d",markdown,content +576,751243,"README.md",2737,0,"",markdown,selection_keyboard +577,751380,"README.md",2737,0,"-",markdown,content +578,751380,"README.md",2738,0,"",markdown,selection_keyboard +579,751805,"README.md",2738,0,"s",markdown,content +580,751806,"README.md",2739,0,"",markdown,selection_keyboard +581,751890,"README.md",2739,0,"o",markdown,content +582,751891,"README.md",2740,0,"",markdown,selection_keyboard +583,751956,"README.md",2740,0,"u",markdown,content +584,751956,"README.md",2741,0,"",markdown,selection_keyboard +585,752032,"README.md",2741,0,"r",markdown,content +586,752033,"README.md",2742,0,"",markdown,selection_keyboard +587,752208,"README.md",2742,0,"c",markdown,content +588,752208,"README.md",2743,0,"",markdown,selection_keyboard +589,752302,"README.md",2743,0,"i",markdown,content +590,752302,"README.md",2744,0,"",markdown,selection_keyboard +591,752389,"README.md",2744,0,"n",markdown,content +592,752390,"README.md",2745,0,"",markdown,selection_keyboard +593,752447,"README.md",2745,0,"g",markdown,content +594,752448,"README.md",2746,0,"",markdown,selection_keyboard +595,752532,"README.md",2746,0," ",markdown,content +596,752532,"README.md",2747,0,"",markdown,selection_keyboard +597,757936,"README.md",2747,0,"u",markdown,content +598,757937,"README.md",2748,0,"",markdown,selection_keyboard +599,757975,"README.md",2748,0,"p",markdown,content +600,757975,"README.md",2749,0,"",markdown,selection_keyboard +601,758088,"README.md",2749,0,"o",markdown,content +602,758088,"README.md",2750,0,"",markdown,selection_keyboard +603,758242,"README.md",2750,0,"n",markdown,content +604,758243,"README.md",2751,0,"",markdown,selection_keyboard +605,758383,"README.md",2751,0," ",markdown,content +606,758383,"README.md",2752,0,"",markdown,selection_keyboard +607,758498,"README.md",2752,0,"i",markdown,content +608,758498,"README.md",2753,0,"",markdown,selection_keyboard +609,758557,"README.md",2753,0,"n",markdown,content +610,758557,"README.md",2754,0,"",markdown,selection_keyboard +611,758634,"README.md",2754,0,"s",markdown,content +612,758634,"README.md",2755,0,"",markdown,selection_keyboard +613,758705,"README.md",2755,0,"t",markdown,content +614,758706,"README.md",2756,0,"",markdown,selection_keyboard +615,758772,"README.md",2756,0,"a",markdown,content +616,758772,"README.md",2757,0,"",markdown,selection_keyboard +617,758850,"README.md",2757,0,"l",markdown,content +618,758851,"README.md",2758,0,"",markdown,selection_keyboard +619,758974,"README.md",2758,0,"l",markdown,content +620,758974,"README.md",2759,0,"",markdown,selection_keyboard +621,759077,"README.md",2759,0,"a",markdown,content +622,759077,"README.md",2760,0,"",markdown,selection_keyboard +623,759100,"README.md",2760,0,"t",markdown,content +624,759100,"README.md",2761,0,"",markdown,selection_keyboard +625,759204,"README.md",2761,0,"i",markdown,content +626,759204,"README.md",2762,0,"",markdown,selection_keyboard +627,759242,"README.md",2762,0,"o",markdown,content +628,759242,"README.md",2763,0,"",markdown,selection_keyboard +629,759322,"README.md",2763,0,"n",markdown,content +630,759322,"README.md",2764,0,"",markdown,selection_keyboard +631,759407,"README.md",2764,0," ",markdown,content +632,759407,"README.md",2765,0,"",markdown,selection_keyboard +633,759533,"README.md",2765,0,"o",markdown,content +634,759533,"README.md",2766,0,"",markdown,selection_keyboard +635,759584,"README.md",2766,0,"f",markdown,content +636,759584,"README.md",2767,0,"",markdown,selection_keyboard +637,759752,"README.md",2767,0," ",markdown,content +638,759753,"README.md",2768,0,"",markdown,selection_keyboard +639,759884,"README.md",2768,0,"t",markdown,content +640,759884,"README.md",2769,0,"",markdown,selection_keyboard +641,760026,"README.md",2769,0,"h",markdown,content +642,760026,"README.md",2770,0,"",markdown,selection_keyboard +643,760120,"README.md",2770,0,"e",markdown,content +644,760121,"README.md",2771,0,"",markdown,selection_keyboard +645,760176,"README.md",2771,0," ",markdown,content +646,760177,"README.md",2772,0,"",markdown,selection_keyboard +647,760365,"README.md",2772,0,"e",markdown,content +648,760365,"README.md",2773,0,"",markdown,selection_keyboard +649,760516,"README.md",2773,0,"x",markdown,content +650,760516,"README.md",2774,0,"",markdown,selection_keyboard +651,760701,"README.md",2774,0,"t",markdown,content +652,760701,"README.md",2775,0,"",markdown,selection_keyboard +653,761014,"README.md",2775,0,"e",markdown,content +654,761015,"README.md",2776,0,"",markdown,selection_keyboard +655,761336,"README.md",2776,0,"n",markdown,content +656,761337,"README.md",2777,0,"",markdown,selection_keyboard +657,761848,"README.md",2777,0,"s",markdown,content +658,761850,"README.md",2778,0,"",markdown,selection_keyboard +659,761964,"README.md",2778,0,"i",markdown,content +660,761964,"README.md",2779,0,"",markdown,selection_keyboard +661,762040,"README.md",2779,0,"o",markdown,content +662,762040,"README.md",2780,0,"",markdown,selection_keyboard +663,762150,"README.md",2780,0,"n",markdown,content +664,762150,"README.md",2781,0,"",markdown,selection_keyboard +665,762338,"README.md",2781,0,".",markdown,content +666,762339,"README.md",2782,0,"",markdown,selection_keyboard +667,762457,"README.md",2782,0," ",markdown,content +668,762458,"README.md",2783,0,"",markdown,selection_keyboard +669,763014,"README.md",2783,0,"Y",markdown,content +670,763014,"README.md",2784,0,"",markdown,selection_keyboard +671,763237,"README.md",2784,0,"o",markdown,content +672,763237,"README.md",2785,0,"",markdown,selection_keyboard +673,763352,"README.md",2785,0,"u",markdown,content +674,764199,"README.md",2786,0," ",markdown,content +675,764199,"README.md",2787,0,"",markdown,selection_keyboard +676,764305,"README.md",2787,0,"c",markdown,content +677,764305,"README.md",2788,0,"",markdown,selection_keyboard +678,764341,"README.md",2788,0,"a",markdown,content +679,764341,"README.md",2789,0,"",markdown,selection_keyboard +680,764466,"README.md",2789,0,"n",markdown,content +681,764467,"README.md",2790,0,"",markdown,selection_keyboard +682,764588,"README.md",2790,0," ",markdown,content +683,764589,"README.md",2791,0,"",markdown,selection_keyboard +684,764671,"README.md",2791,0,"a",markdown,content +685,764672,"README.md",2792,0,"",markdown,selection_keyboard +686,764782,"README.md",2792,0,"l",markdown,content +687,764782,"README.md",2793,0,"",markdown,selection_keyboard +688,764859,"README.md",2793,0,"s",markdown,content +689,764860,"README.md",2794,0,"",markdown,selection_keyboard +690,765248,"README.md",2793,1,"",markdown,content +691,765308,"README.md",2793,0,"w",markdown,content +692,765309,"README.md",2794,0,"",markdown,selection_keyboard +693,765366,"README.md",2794,0,"a",markdown,content +694,765366,"README.md",2795,0,"",markdown,selection_keyboard +695,765505,"README.md",2795,0,"y",markdown,content +696,765505,"README.md",2796,0,"",markdown,selection_keyboard +697,765595,"README.md",2796,0,"s",markdown,content +698,765595,"README.md",2797,0,"",markdown,selection_keyboard +699,765700,"README.md",2797,0," ",markdown,content +700,765701,"README.md",2798,0,"",markdown,selection_keyboard +701,765979,"README.md",2798,0,"r",markdown,content +702,765979,"README.md",2799,0,"",markdown,selection_keyboard +703,766014,"README.md",2799,0,"e",markdown,content +704,766014,"README.md",2800,0,"",markdown,selection_keyboard +705,766191,"README.md",2800,0,"v",markdown,content +706,766192,"README.md",2801,0,"",markdown,selection_keyboard +707,766286,"README.md",2801,0,"o",markdown,content +708,766286,"README.md",2802,0,"",markdown,selection_keyboard +709,766343,"README.md",2802,0,"k",markdown,content +710,766343,"README.md",2803,0,"",markdown,selection_keyboard +711,766452,"README.md",2803,0,"e",markdown,content +712,766452,"README.md",2804,0,"",markdown,selection_keyboard +713,766537,"README.md",2804,0," ",markdown,content +714,766537,"README.md",2805,0,"",markdown,selection_keyboard +715,771479,"README.md",2805,0,"y",markdown,content +716,771479,"README.md",2806,0,"",markdown,selection_keyboard +717,771603,"README.md",2806,0,"o",markdown,content +718,771603,"README.md",2807,0,"",markdown,selection_keyboard +719,771676,"README.md",2807,0,"u",markdown,content +720,771676,"README.md",2808,0,"",markdown,selection_keyboard +721,771738,"README.md",2808,0,"r",markdown,content +722,771738,"README.md",2809,0,"",markdown,selection_keyboard +723,771820,"README.md",2809,0," ",markdown,content +724,771821,"README.md",2810,0,"",markdown,selection_keyboard +725,771940,"README.md",2810,0,"p",markdown,content +726,771941,"README.md",2811,0,"",markdown,selection_keyboard +727,772022,"README.md",2811,0,"a",markdown,content +728,772022,"README.md",2812,0,"",markdown,selection_keyboard +729,772092,"README.md",2812,0,"r",markdown,content +730,772092,"README.md",2813,0,"",markdown,selection_keyboard +731,772253,"README.md",2813,0,"t",markdown,content +732,772254,"README.md",2814,0,"",markdown,selection_keyboard +733,772326,"README.md",2814,0,"i",markdown,content +734,772327,"README.md",2815,0,"",markdown,selection_keyboard +735,772440,"README.md",2815,0,"c",markdown,content +736,772440,"README.md",2816,0,"",markdown,selection_keyboard +737,772527,"README.md",2816,0,"i",markdown,content +738,772527,"README.md",2817,0,"",markdown,selection_keyboard +739,772624,"README.md",2817,0,"p",markdown,content +740,772624,"README.md",2818,0,"",markdown,selection_keyboard +741,772734,"README.md",2818,0,"a",markdown,content +742,772734,"README.md",2819,0,"",markdown,selection_keyboard +743,772815,"README.md",2819,0,"t",markdown,content +744,772815,"README.md",2820,0,"",markdown,selection_keyboard +745,772940,"README.md",2820,0,"i",markdown,content +746,772940,"README.md",2821,0,"",markdown,selection_keyboard +747,773007,"README.md",2821,0,"o",markdown,content +748,773007,"README.md",2822,0,"",markdown,selection_keyboard +749,773196,"README.md",2822,0,"n",markdown,content +750,773197,"README.md",2823,0,"",markdown,selection_keyboard +751,773485,"README.md",2823,0,",",markdown,content +752,773486,"README.md",2824,0,"",markdown,selection_keyboard +753,773538,"README.md",2824,0," ",markdown,content +754,773538,"README.md",2825,0,"",markdown,selection_keyboard +755,776681,"README.md",2824,0,"",markdown,selection_command +756,777030,"README.md",2688,0,"",markdown,selection_command +757,779009,"README.md",2691,0,"",markdown,selection_command +758,779257,"README.md",2695,0,"",markdown,selection_command +759,779288,"README.md",2699,0,"",markdown,selection_command +760,779315,"README.md",2704,0,"",markdown,selection_command +761,779349,"README.md",2712,0,"",markdown,selection_command +762,779382,"README.md",2715,0,"",markdown,selection_command +763,779416,"README.md",2729,0,"",markdown,selection_command +764,779547,"README.md",2732,0,"",markdown,selection_command +765,779792,"README.md",2737,0,"",markdown,selection_command +766,780051,"README.md",2738,0,"",markdown,selection_command +767,780082,"README.md",2747,0,"",markdown,selection_command +768,780297,"README.md",2752,0,"",markdown,selection_command +769,780552,"README.md",2765,0,"",markdown,selection_command +770,780720,"README.md",2768,0,"",markdown,selection_command +771,780975,"README.md",2772,0,"",markdown,selection_command +772,781000,"README.md",2781,0,"",markdown,selection_command +773,781031,"README.md",2783,0,"",markdown,selection_command +774,781233,"README.md",2787,0,"",markdown,selection_command +775,781434,"README.md",2791,0,"",markdown,selection_command +776,781939,"README.md",2825,0,"",markdown,selection_command +777,782922,"README.md",2824,1,"",markdown,content +778,783311,"README.md",2823,1,"",markdown,content +779,783525,"README.md",2823,0,",",markdown,content +780,783525,"README.md",2824,0,"",markdown,selection_keyboard +781,783593,"README.md",2824,0," ",markdown,content +782,783593,"README.md",2825,0,"",markdown,selection_keyboard +783,783741,"README.md",2825,0,"a",markdown,content +784,783742,"README.md",2826,0,"",markdown,selection_keyboard +785,783776,"README.md",2826,0,"f",markdown,content +786,783777,"README.md",2827,0,"",markdown,selection_keyboard +787,784042,"README.md",2827,0,"t",markdown,content +788,784042,"README.md",2828,0,"",markdown,selection_keyboard +789,784080,"README.md",2828,0,"e",markdown,content +790,784081,"README.md",2829,0,"",markdown,selection_keyboard +791,784183,"README.md",2829,0,"r",markdown,content +792,784184,"README.md",2830,0,"",markdown,selection_keyboard +793,784235,"README.md",2830,0," ",markdown,content +794,784235,"README.md",2831,0,"",markdown,selection_keyboard +795,784310,"README.md",2831,0,"w",markdown,content +796,784311,"README.md",2832,0,"",markdown,selection_keyboard +797,784421,"README.md",2832,0,"h",markdown,content +798,784422,"README.md",2833,0,"",markdown,selection_keyboard +799,784489,"README.md",2833,0,"i",markdown,content +800,784489,"README.md",2834,0,"",markdown,selection_keyboard +801,784559,"README.md",2834,0,"c",markdown,content +802,784559,"README.md",2835,0,"",markdown,selection_keyboard +803,784708,"README.md",2835,0,"h",markdown,content +804,784708,"README.md",2836,0,"",markdown,selection_keyboard +805,784795,"README.md",2836,0," ",markdown,content +806,784795,"README.md",2837,0,"",markdown,selection_keyboard +807,788765,"README.md",2837,0,"y",markdown,content +808,788765,"README.md",2838,0,"",markdown,selection_keyboard +809,788872,"README.md",2838,0,"o",markdown,content +810,788872,"README.md",2839,0,"",markdown,selection_keyboard +811,788950,"README.md",2839,0,"u",markdown,content +812,788951,"README.md",2840,0,"",markdown,selection_keyboard +813,788999,"README.md",2840,0,"r",markdown,content +814,788999,"README.md",2841,0,"",markdown,selection_keyboard +815,789032,"README.md",2841,0," ",markdown,content +816,789032,"README.md",2842,0,"",markdown,selection_keyboard +817,789177,"README.md",2842,0,"r",markdown,content +818,789177,"README.md",2843,0,"",markdown,selection_keyboard +819,789258,"README.md",2843,0,"e",markdown,content +820,789258,"README.md",2844,0,"",markdown,selection_keyboard +821,789434,"README.md",2844,0,"c",markdown,content +822,789434,"README.md",2845,0,"",markdown,selection_keyboard +823,789509,"README.md",2845,0,"o",markdown,content +824,789509,"README.md",2846,0,"",markdown,selection_keyboard +825,789617,"README.md",2846,0,"r",markdown,content +826,789617,"README.md",2847,0,"",markdown,selection_keyboard +827,789807,"README.md",2847,0,"d",markdown,content +828,789807,"README.md",2848,0,"",markdown,selection_keyboard +829,789917,"README.md",2848,0,"e",markdown,content +830,789917,"README.md",2849,0,"",markdown,selection_keyboard +831,790021,"README.md",2849,0,"d",markdown,content +832,790022,"README.md",2850,0,"",markdown,selection_keyboard +833,790127,"README.md",2850,0," ",markdown,content +834,790127,"README.md",2851,0,"",markdown,selection_keyboard +835,790364,"README.md",2851,0,"d",markdown,content +836,790365,"README.md",2852,0,"",markdown,selection_keyboard +837,790522,"README.md",2852,0,"a",markdown,content +838,790523,"README.md",2853,0,"",markdown,selection_keyboard +839,790600,"README.md",2853,0,"t",markdown,content +840,790600,"README.md",2854,0,"",markdown,selection_keyboard +841,790713,"README.md",2854,0,"a",markdown,content +842,790713,"README.md",2855,0,"",markdown,selection_keyboard +843,790788,"README.md",2855,0," ",markdown,content +844,790789,"README.md",2856,0,"",markdown,selection_keyboard +845,790899,"README.md",2856,0,"w",markdown,content +846,790899,"README.md",2857,0,"",markdown,selection_keyboard +847,790998,"README.md",2857,0,"i",markdown,content +848,790999,"README.md",2858,0,"",markdown,selection_keyboard +849,791058,"README.md",2858,0,"l",markdown,content +850,791059,"README.md",2859,0,"",markdown,selection_keyboard +851,791203,"README.md",2859,0,"l",markdown,content +852,791203,"README.md",2860,0,"",markdown,selection_keyboard +853,791266,"README.md",2860,0," ",markdown,content +854,791267,"README.md",2861,0,"",markdown,selection_keyboard +855,791366,"README.md",2861,0,"s",markdown,content +856,791367,"README.md",2862,0,"",markdown,selection_keyboard +857,791505,"README.md",2862,0,"e",markdown,content +858,791505,"README.md",2863,0,"",markdown,selection_keyboard +859,791884,"README.md",2862,1,"",markdown,content +860,792077,"README.md",2862,0,"o",markdown,content +861,792078,"README.md",2863,0,"",markdown,selection_keyboard +862,792230,"README.md",2863,0,"l",markdown,content +863,792230,"README.md",2864,0,"",markdown,selection_keyboard +864,792311,"README.md",2864,0,"e",markdown,content +865,792312,"README.md",2865,0,"",markdown,selection_keyboard +866,792375,"README.md",2865,0,"l",markdown,content +867,792376,"README.md",2866,0,"",markdown,selection_keyboard +868,792506,"README.md",2866,0,"y",markdown,content +869,792507,"README.md",2867,0,"",markdown,selection_keyboard +870,792609,"README.md",2867,0," ",markdown,content +871,792609,"README.md",2868,0,"",markdown,selection_keyboard +872,792782,"README.md",2868,0,"b",markdown,content +873,792783,"README.md",2869,0,"",markdown,selection_keyboard +874,792857,"README.md",2869,0,"e",markdown,content +875,792858,"README.md",2870,0,"",markdown,selection_keyboard +876,792960,"README.md",2870,0," ",markdown,content +877,792960,"README.md",2871,0,"",markdown,selection_keyboard +878,793217,"README.md",2868,3,"",markdown,content +879,793359,"README.md",2861,7,"",markdown,content +880,793565,"README.md",2861,0,"b",markdown,content +881,793565,"README.md",2862,0,"",markdown,selection_keyboard +882,793623,"README.md",2862,0,"e",markdown,content +883,793623,"README.md",2863,0,"",markdown,selection_keyboard +884,793707,"README.md",2863,0," ",markdown,content +885,793707,"README.md",2864,0,"",markdown,selection_keyboard +886,793874,"README.md",2864,0,"s",markdown,content +887,793874,"README.md",2865,0,"",markdown,selection_keyboard +888,793982,"README.md",2865,0,"t",markdown,content +889,793983,"README.md",2866,0,"",markdown,selection_keyboard +890,794188,"README.md",2866,0,"o",markdown,content +891,794189,"README.md",2867,0,"",markdown,selection_keyboard +892,794455,"README.md",2867,0,"r",markdown,content +893,794456,"README.md",2868,0,"",markdown,selection_keyboard +894,794582,"README.md",2868,0,"e",markdown,content +895,794582,"README.md",2869,0,"",markdown,selection_keyboard +896,794757,"README.md",2869,0,"d",markdown,content +897,794757,"README.md",2870,0,"",markdown,selection_keyboard +898,794822,"README.md",2870,0," ",markdown,content +899,794822,"README.md",2871,0,"",markdown,selection_keyboard +900,795657,"README.md",2871,0,"o",markdown,content +901,795658,"README.md",2872,0,"",markdown,selection_keyboard +902,795708,"README.md",2872,0,"n",markdown,content +903,795709,"README.md",2873,0,"",markdown,selection_keyboard +904,795915,"README.md",2873,0,"-",markdown,content +905,795916,"README.md",2874,0,"",markdown,selection_keyboard +906,796005,"README.md",2874,0,"d",markdown,content +907,796005,"README.md",2875,0,"",markdown,selection_keyboard +908,796173,"README.md",2875,0,"v",markdown,content +909,796173,"README.md",2876,0,"",markdown,selection_keyboard +910,796319,"README.md",2876,0,"e",markdown,content +911,796319,"README.md",2877,0,"",markdown,selection_keyboard +912,796616,"README.md",2876,1,"",markdown,content +913,796739,"README.md",2875,1,"",markdown,content +914,796792,"README.md",2875,0,"e",markdown,content +915,796793,"README.md",2876,0,"",markdown,selection_keyboard +916,796834,"README.md",2876,0,"v",markdown,content +917,796834,"README.md",2877,0,"",markdown,selection_keyboard +918,796961,"README.md",2877,0,"i",markdown,content +919,796961,"README.md",2878,0,"",markdown,selection_keyboard +920,797075,"README.md",2878,0,"c",markdown,content +921,797075,"README.md",2879,0,"",markdown,selection_keyboard +922,797155,"README.md",2879,0,"e",markdown,content +923,797155,"README.md",2880,0,"",markdown,selection_keyboard +924,797267,"README.md",2880,0,",",markdown,content +925,797421,"README.md",2881,0," ",markdown,content +926,797422,"README.md",2882,0,"",markdown,selection_keyboard +927,797547,"README.md",2882,0,"b",markdown,content +928,797547,"README.md",2883,0,"",markdown,selection_keyboard +929,797588,"README.md",2883,0,"u",markdown,content +930,797589,"README.md",2884,0,"",markdown,selection_keyboard +931,797673,"README.md",2884,0,"t",markdown,content +932,797673,"README.md",2885,0,"",markdown,selection_keyboard +933,797727,"README.md",2885,0," ",markdown,content +934,797727,"README.md",2886,0,"",markdown,selection_keyboard +935,797836,"README.md",2886,0,"n",markdown,content +936,797836,"README.md",2887,0,"",markdown,selection_keyboard +937,797898,"README.md",2887,0,"o",markdown,content +938,797898,"README.md",2888,0,"",markdown,selection_keyboard +939,797992,"README.md",2888,0,"t",markdown,content +940,797993,"README.md",2889,0,"",markdown,selection_keyboard +941,798056,"README.md",2889,0," ",markdown,content +942,798057,"README.md",2890,0,"",markdown,selection_keyboard +943,798301,"README.md",2890,0,"s",markdown,content +944,798301,"README.md",2891,0,"",markdown,selection_keyboard +945,798416,"README.md",2891,0,"h",markdown,content +946,798416,"README.md",2892,0,"",markdown,selection_keyboard +947,798543,"README.md",2892,0,"a",markdown,content +948,798544,"README.md",2893,0,"",markdown,selection_keyboard +949,798595,"README.md",2893,0,"r",markdown,content +950,798595,"README.md",2894,0,"",markdown,selection_keyboard +951,798691,"README.md",2894,0,"e",markdown,content +952,798691,"README.md",2895,0,"",markdown,selection_keyboard +953,798880,"README.md",2895,0,"d",markdown,content +954,798880,"README.md",2896,0,"",markdown,selection_keyboard +955,800283,"README.md",2896,0," ",markdown,content +956,800284,"README.md",2897,0,"",markdown,selection_keyboard +957,800355,"README.md",2897,0,"w",markdown,content +958,800356,"README.md",2898,0,"",markdown,selection_keyboard +959,800466,"README.md",2898,0,"i",markdown,content +960,800467,"README.md",2899,0,"",markdown,selection_keyboard +961,800555,"README.md",2899,0,"t",markdown,content +962,800556,"README.md",2900,0,"",markdown,selection_keyboard +963,800667,"README.md",2900,0,"h",markdown,content +964,800667,"README.md",2901,0,"",markdown,selection_keyboard +965,800748,"README.md",2901,0," ",markdown,content +966,800748,"README.md",2902,0,"",markdown,selection_keyboard +967,802258,"README.md",2902,0,"u",markdown,content +968,802259,"README.md",2903,0,"",markdown,selection_keyboard +969,802361,"README.md",2903,0,"s",markdown,content +970,802361,"README.md",2904,0,"",markdown,selection_keyboard +971,802529,"README.md",2904,0,".",markdown,content +972,802529,"README.md",2905,0,"",markdown,selection_keyboard +973,802712,"README.md",2904,0,"",markdown,selection_command +974,803384,"README.md",2688,0,"",markdown,selection_command +975,805380,"README.md",2691,0,"",markdown,selection_command +976,805626,"README.md",2695,0,"",markdown,selection_command +977,805655,"README.md",2699,0,"",markdown,selection_command +978,805689,"README.md",2704,0,"",markdown,selection_command +979,805721,"README.md",2712,0,"",markdown,selection_command +980,805753,"README.md",2715,0,"",markdown,selection_command +981,805786,"README.md",2729,0,"",markdown,selection_command +982,805820,"README.md",2732,0,"",markdown,selection_command +983,805853,"README.md",2737,0,"",markdown,selection_command +984,805887,"README.md",2738,0,"",markdown,selection_command +985,805920,"README.md",2747,0,"",markdown,selection_command +986,805950,"README.md",2752,0,"",markdown,selection_command +987,805982,"README.md",2765,0,"",markdown,selection_command +988,806015,"README.md",2768,0,"",markdown,selection_command +989,806307,"README.md",2772,0,"",markdown,selection_command +990,806560,"README.md",2781,0,"",markdown,selection_command +991,806583,"README.md",2783,0,"",markdown,selection_command +992,806613,"README.md",2787,0,"",markdown,selection_command +993,806819,"README.md",2791,0,"",markdown,selection_command +994,807077,"README.md",2798,0,"",markdown,selection_command +995,807100,"README.md",2805,0,"",markdown,selection_command +996,807132,"README.md",2810,0,"",markdown,selection_command +997,807163,"README.md",2823,0,"",markdown,selection_command +998,807197,"README.md",2825,0,"",markdown,selection_command +999,807230,"README.md",2831,0,"",markdown,selection_command +1000,808089,"README.md",2837,0,"",markdown,selection_command +1001,808342,"README.md",2842,0,"",markdown,selection_command +1002,808366,"README.md",2851,0,"",markdown,selection_command +1003,808395,"README.md",2856,0,"",markdown,selection_command +1004,808426,"README.md",2861,0,"",markdown,selection_command +1005,808460,"README.md",2864,0,"",markdown,selection_command +1006,808493,"README.md",2871,0,"",markdown,selection_command +1007,809535,"README.md",2864,0,"",markdown,selection_command +1008,809706,"README.md",2861,0,"",markdown,selection_command +1009,809892,"README.md",2856,0,"",markdown,selection_command +1010,810025,"README.md",2851,0,"",markdown,selection_command +1011,810454,"README.md",2856,0,"",markdown,selection_command +1012,811478,"README.md",2856,49,"",markdown,content +1013,812510,"README.md",2856,0,"w",markdown,content +1014,812511,"README.md",2857,0,"",markdown,selection_keyboard +1015,812555,"README.md",2857,0,"i",markdown,content +1016,812555,"README.md",2858,0,"",markdown,selection_keyboard +1017,812632,"README.md",2858,0,"l",markdown,content +1018,812632,"README.md",2859,0,"",markdown,selection_keyboard +1019,812741,"README.md",2859,0,"l",markdown,content +1020,812741,"README.md",2860,0,"",markdown,selection_keyboard +1021,812838,"README.md",2860,0," ",markdown,content +1022,812839,"README.md",2861,0,"",markdown,selection_keyboard +1023,814214,"README.md",2861,0,"s",markdown,content +1024,814215,"README.md",2862,0,"",markdown,selection_keyboard +1025,814273,"README.md",2862,0,"o",markdown,content +1026,814273,"README.md",2863,0,"",markdown,selection_keyboard +1027,814437,"README.md",2863,0,"l",markdown,content +1028,814438,"README.md",2864,0,"",markdown,selection_keyboard +1029,814517,"README.md",2864,0,"e",markdown,content +1030,814517,"README.md",2865,0,"",markdown,selection_keyboard +1031,814601,"README.md",2865,0,"l",markdown,content +1032,814602,"README.md",2866,0,"",markdown,selection_keyboard +1033,814759,"README.md",2866,0,"y",markdown,content +1034,814760,"README.md",2867,0,"",markdown,selection_keyboard +1035,814889,"README.md",2867,0," ",markdown,content +1036,814889,"README.md",2868,0,"",markdown,selection_keyboard +1037,814998,"README.md",2868,0,"b",markdown,content +1038,814999,"README.md",2869,0,"",markdown,selection_keyboard +1039,815091,"README.md",2869,0,"e",markdown,content +1040,815092,"README.md",2870,0,"",markdown,selection_keyboard +1041,815156,"README.md",2870,0," ",markdown,content +1042,815156,"README.md",2871,0,"",markdown,selection_keyboard +1043,815297,"README.md",2871,0,"s",markdown,content +1044,815297,"README.md",2872,0,"",markdown,selection_keyboard +1045,815586,"README.md",2872,0,"t",markdown,content +1046,815586,"README.md",2873,0,"",markdown,selection_keyboard +1047,815687,"README.md",2873,0,"o",markdown,content +1048,815688,"README.md",2874,0,"",markdown,selection_keyboard +1049,815773,"README.md",2874,0,"r",markdown,content +1050,815773,"README.md",2875,0,"",markdown,selection_keyboard +1051,815843,"README.md",2875,0,"e",markdown,content +1052,815843,"README.md",2876,0,"",markdown,selection_keyboard +1053,815991,"README.md",2876,0,"d",markdown,content +1054,815991,"README.md",2877,0,"",markdown,selection_keyboard +1055,816068,"README.md",2877,0," ",markdown,content +1056,816069,"README.md",2878,0,"",markdown,selection_keyboard +1057,816138,"README.md",2878,0,"o",markdown,content +1058,816139,"README.md",2879,0,"",markdown,selection_keyboard +1059,816198,"README.md",2879,0,"n",markdown,content +1060,816198,"README.md",2880,0,"",markdown,selection_keyboard +1061,816423,"README.md",2880,0,"-",markdown,content +1062,816517,"README.md",2881,0,"d",markdown,content +1063,816517,"README.md",2882,0,"",markdown,selection_keyboard +1064,816573,"README.md",2882,0,"e",markdown,content +1065,816573,"README.md",2883,0,"",markdown,selection_keyboard +1066,816720,"README.md",2883,0,"v",markdown,content +1067,816721,"README.md",2884,0,"",markdown,selection_keyboard +1068,816793,"README.md",2884,0,"i",markdown,content +1069,816793,"README.md",2885,0,"",markdown,selection_keyboard +1070,816907,"README.md",2885,0,"c",markdown,content +1071,816908,"README.md",2886,0,"",markdown,selection_keyboard +1072,816961,"README.md",2886,0,"e",markdown,content +1073,816961,"README.md",2887,0,"",markdown,selection_keyboard +1074,817124,"README.md",2887,0,",",markdown,content +1075,817124,"README.md",2888,0,"",markdown,selection_keyboard +1076,817226,"README.md",2888,0," ",markdown,content +1077,817226,"README.md",2889,0,"",markdown,selection_keyboard +1078,817316,"README.md",2889,0,"a",markdown,content +1079,817316,"README.md",2890,0,"",markdown,selection_keyboard +1080,817432,"README.md",2890,0,"n",markdown,content +1081,817432,"README.md",2891,0,"",markdown,selection_keyboard +1082,817494,"README.md",2891,0,"d",markdown,content +1083,817494,"README.md",2892,0,"",markdown,selection_keyboard +1084,817561,"README.md",2892,0," ",markdown,content +1085,817561,"README.md",2893,0,"",markdown,selection_keyboard +1086,817959,"README.md",2893,0,"c",markdown,content +1087,817960,"README.md",2894,0,"",markdown,selection_keyboard +1088,818022,"README.md",2894,0,"e",markdown,content +1089,818023,"README.md",2895,0,"",markdown,selection_keyboard +1090,818099,"README.md",2895,0,"a",markdown,content +1091,818100,"README.md",2896,0,"",markdown,selection_keyboard +1092,818193,"README.md",2896,0,"s",markdown,content +1093,818194,"README.md",2897,0,"",markdown,selection_keyboard +1094,818272,"README.md",2897,0,"e",markdown,content +1095,818272,"README.md",2898,0,"",markdown,selection_keyboard +1096,818430,"README.md",2898,0,"s",markdown,content +1097,818431,"README.md",2899,0,"",markdown,selection_keyboard +1098,818510,"README.md",2899,0," ",markdown,content +1099,818510,"README.md",2900,0,"",markdown,selection_keyboard +1100,818705,"README.md",2900,0,"t",markdown,content +1101,818706,"README.md",2901,0,"",markdown,selection_keyboard +1102,818797,"README.md",2901,0,"o",markdown,content +1103,818798,"README.md",2902,0,"",markdown,selection_keyboard +1104,818838,"README.md",2902,0," ",markdown,content +1105,818838,"README.md",2903,0,"",markdown,selection_keyboard +1106,819171,"README.md",2902,0,"",markdown,selection_command +1107,819301,"README.md",2900,0,"",markdown,selection_command +1108,819452,"README.md",2893,0,"",markdown,selection_command +1109,819580,"README.md",2889,0,"",markdown,selection_command +1110,819807,"README.md",2887,0,"",markdown,selection_command +1111,820197,"README.md",2889,0,"",markdown,selection_command +1112,820729,"README.md",2888,0,"",markdown,selection_command +1113,820876,"README.md",2887,0,"",markdown,selection_command +1114,821067,"README.md",2887,16,"",markdown,content +1115,821896,"README.md",2887,0,",",markdown,content +1116,821898,"README.md",2888,0,"",markdown,selection_keyboard +1117,821929,"README.md",2888,0," ",markdown,content +1118,821929,"README.md",2889,0,"",markdown,selection_keyboard +1119,822097,"README.md",2889,0,"a",markdown,content +1120,822098,"README.md",2890,0,"",markdown,selection_keyboard +1121,822181,"README.md",2890,0,"n",markdown,content +1122,822181,"README.md",2891,0,"",markdown,selection_keyboard +1123,822271,"README.md",2891,0,"d",markdown,content +1124,822271,"README.md",2892,0,"",markdown,selection_keyboard +1125,822333,"README.md",2892,0," ",markdown,content +1126,822334,"README.md",2893,0,"",markdown,selection_keyboard +1127,822699,"README.md",2893,0,"w",markdown,content +1128,822699,"README.md",2894,0,"",markdown,selection_keyboard +1129,822793,"README.md",2894,0,"i",markdown,content +1130,822793,"README.md",2895,0,"",markdown,selection_keyboard +1131,822838,"README.md",2895,0,"l",markdown,content +1132,822838,"README.md",2896,0,"",markdown,selection_keyboard +1133,823011,"README.md",2896,0,"l",markdown,content +1134,823012,"README.md",2897,0,"",markdown,selection_keyboard +1135,823126,"README.md",2897,0," ",markdown,content +1136,823126,"README.md",2898,0,"",markdown,selection_keyboard +1137,823230,"README.md",2898,0,"n",markdown,content +1138,823230,"README.md",2899,0,"",markdown,selection_keyboard +1139,823277,"README.md",2899,0,"o",markdown,content +1140,823277,"README.md",2900,0,"",markdown,selection_keyboard +1141,823369,"README.md",2900,0,"t",markdown,content +1142,823370,"README.md",2901,0,"",markdown,selection_keyboard +1143,823415,"README.md",2901,0," ",markdown,content +1144,823415,"README.md",2902,0,"",markdown,selection_keyboard +1145,823581,"README.md",2902,0,"g",markdown,content +1146,823581,"README.md",2903,0,"",markdown,selection_keyboard +1147,823677,"README.md",2903,0,"e",markdown,content +1148,823677,"README.md",2904,0,"",markdown,selection_keyboard +1149,823796,"README.md",2904,0,"t",markdown,content +1150,823797,"README.md",2905,0,"",markdown,selection_keyboard +1151,823820,"README.md",2905,0," ",markdown,content +1152,823821,"README.md",2906,0,"",markdown,selection_keyboard +1153,823991,"README.md",2906,0,"s",markdown,content +1154,823991,"README.md",2907,0,"",markdown,selection_keyboard +1155,824055,"README.md",2907,0,"e",markdown,content +1156,824055,"README.md",2908,0,"",markdown,selection_keyboard +1157,824183,"README.md",2908,0,"n",markdown,content +1158,824184,"README.md",2909,0,"",markdown,selection_keyboard +1159,824272,"README.md",2909,0,"d",markdown,content +1160,824272,"README.md",2910,0,"",markdown,selection_keyboard +1161,824333,"README.md",2910,0," ",markdown,content +1162,824333,"README.md",2911,0,"",markdown,selection_keyboard +1163,825079,"README.md",2911,0,"f",markdown,content +1164,825080,"README.md",2912,0,"",markdown,selection_keyboard +1165,825235,"README.md",2912,0,"o",markdown,content +1166,825235,"README.md",2913,0,"",markdown,selection_keyboard +1167,825299,"README.md",2913,0,"r",markdown,content +1168,825300,"README.md",2914,0,"",markdown,selection_keyboard +1169,825374,"README.md",2914,0," ",markdown,content +1170,825375,"README.md",2915,0,"",markdown,selection_keyboard +1171,826934,"README.md",2914,1,"",markdown,content +1172,827122,"README.md",2911,3,"",markdown,content +1173,827283,"README.md",2906,5,"",markdown,content +1174,827916,"README.md",2902,4,"",markdown,content +1175,828089,"README.md",2898,4,"",markdown,content +1176,828242,"README.md",2893,5,"",markdown,content +1177,828392,"README.md",2889,4,"",markdown,content +1178,828707,"README.md",2888,1,"",markdown,content +1179,828852,"README.md",2887,1,"",markdown,content +1180,829034,"README.md",2887,0,".",markdown,content +1181,829035,"README.md",2888,0,"",markdown,selection_keyboard +1182,829139,"README.md",2887,0,"",markdown,selection_command +1183,830777,"README.md",2881,0,"",markdown,selection_command +1184,831032,"README.md",2880,0,"",markdown,selection_command +1185,831060,"README.md",2878,0,"",markdown,selection_command +1186,831088,"README.md",2871,0,"",markdown,selection_command +1187,831121,"README.md",2868,0,"",markdown,selection_command +1188,831154,"README.md",2861,0,"",markdown,selection_command +1189,831187,"README.md",2856,0,"",markdown,selection_command +1190,831221,"README.md",2851,0,"",markdown,selection_command +1191,831255,"README.md",2842,0,"",markdown,selection_command +1192,831289,"README.md",2837,0,"",markdown,selection_command +1193,831323,"README.md",2831,0,"",markdown,selection_command +1194,831356,"README.md",2825,0,"",markdown,selection_command +1195,831389,"README.md",2823,0,"",markdown,selection_command +1196,831423,"README.md",2810,0,"",markdown,selection_command +1197,831456,"README.md",2805,0,"",markdown,selection_command +1198,831489,"README.md",2798,0,"",markdown,selection_command +1199,831523,"README.md",2791,0,"",markdown,selection_command +1200,831556,"README.md",2787,0,"",markdown,selection_command +1201,831589,"README.md",2783,0,"",markdown,selection_command +1202,831623,"README.md",2781,0,"",markdown,selection_command +1203,831656,"README.md",2772,0,"",markdown,selection_command +1204,831917,"README.md",2768,0,"",markdown,selection_command +1205,832298,"README.md",2688,0,"",markdown,selection_command +1206,856483,"README.md",2888,0,"\n",markdown,content +1207,857083,"README.md",2889,0,"\n",markdown,content +1208,857342,"README.md",2890,0,"I",markdown,content +1209,857343,"README.md",2891,0,"",markdown,selection_keyboard +1210,857517,"README.md",2891,0,"f",markdown,content +1211,857518,"README.md",2892,0,"",markdown,selection_keyboard +1212,857582,"README.md",2892,0," ",markdown,content +1213,857582,"README.md",2893,0,"",markdown,selection_keyboard +1214,857671,"README.md",2893,0,"y",markdown,content +1215,857671,"README.md",2894,0,"",markdown,selection_keyboard +1216,857756,"README.md",2894,0,"o",markdown,content +1217,857757,"README.md",2895,0,"",markdown,selection_keyboard +1218,857849,"README.md",2895,0,"u",markdown,content +1219,857849,"README.md",2896,0,"",markdown,selection_keyboard +1220,857898,"README.md",2896,0," ",markdown,content +1221,857899,"README.md",2897,0,"",markdown,selection_keyboard +1222,858072,"README.md",2897,0,"h",markdown,content +1223,858072,"README.md",2898,0,"",markdown,selection_keyboard +1224,858181,"README.md",2898,0,"a",markdown,content +1225,858181,"README.md",2899,0,"",markdown,selection_keyboard +1226,858275,"README.md",2899,0,"p",markdown,content +1227,858275,"README.md",2900,0,"",markdown,selection_keyboard +1228,858393,"README.md",2900,0,"p",markdown,content +1229,858394,"README.md",2901,0,"",markdown,selection_keyboard +1230,858488,"README.md",2901,0,"e",markdown,content +1231,858488,"README.md",2902,0,"",markdown,selection_keyboard +1232,858588,"README.md",2902,0,"n",markdown,content +1233,858588,"README.md",2903,0,"",markdown,selection_keyboard +1234,859303,"README.md",2902,0,"",markdown,selection_command +1235,859621,"README.md",2890,0,"",markdown,selection_command +1236,864422,"README.md",2890,14,"",markdown,content +1237,864672,"README.md",2889,0,"",markdown,selection_command +1238,865245,"README.md",2889,1,"",markdown,content +1239,865560,"README.md",2688,0,"",markdown,selection_command +1240,866379,"README.md",2889,0,"",markdown,selection_command +1241,866779,"README.md",2889,0,"\n",markdown,content +1242,867800,"README.md",2889,0,"",markdown,selection_command +1243,867959,"README.md",2688,0,"",markdown,selection_command +1244,873884,"README.md",0,0,"",markdown,tab +1245,873890,"README.md",916,0,"",markdown,selection_command +1246,880655,"README.md",2402,0,"",markdown,selection_mouse +1247,880964,"README.md",0,0,"",markdown,tab +1248,881949,"README.md",2889,0,"",markdown,selection_command +1249,882182,"README.md",2890,0,"",markdown,selection_command +1250,882383,"README.md",2889,0,"",markdown,selection_command +1251,882596,"README.md",2889,0,"\n",markdown,content +1252,883917,"README.md",2890,0,"\n",markdown,content +1253,884242,"README.md",2890,0,"",markdown,selection_command +1254,885933,"README.md",2890,0,"W",markdown,content +1255,885934,"README.md",2891,0,"",markdown,selection_keyboard +1256,886368,"README.md",2891,0,"e",markdown,content +1257,886369,"README.md",2892,0,"",markdown,selection_keyboard +1258,886440,"README.md",2892,0," ",markdown,content +1259,886441,"README.md",2893,0,"",markdown,selection_keyboard +1260,902610,"README.md",2893,0,"W",markdown,content +1261,902611,"README.md",2894,0,"",markdown,selection_keyboard +1262,903170,"README.md",2893,1,"",markdown,content +1263,903860,"README.md",2892,0,"",markdown,selection_command +1264,904007,"README.md",2890,0,"",markdown,selection_command +1265,905314,"README.md",2890,3,"",markdown,content +1266,905940,"README.md",2890,0,"Y",markdown,content +1267,905940,"README.md",2891,0,"",markdown,selection_keyboard +1268,906114,"README.md",2891,0,"o",markdown,content +1269,906115,"README.md",2892,0,"",markdown,selection_keyboard +1270,906195,"README.md",2892,0,"u",markdown,content +1271,906196,"README.md",2893,0,"",markdown,selection_keyboard +1272,906270,"README.md",2893,0,"r",markdown,content +1273,906270,"README.md",2894,0,"",markdown,selection_keyboard +1274,906322,"README.md",2894,0," ",markdown,content +1275,906322,"README.md",2895,0,"",markdown,selection_keyboard +1276,906501,"README.md",2895,0,"t",markdown,content +1277,906501,"README.md",2896,0,"",markdown,selection_keyboard +1278,906581,"README.md",2896,0,"r",markdown,content +1279,906581,"README.md",2897,0,"",markdown,selection_keyboard +1280,906698,"README.md",2897,0,"u",markdown,content +1281,906699,"README.md",2898,0,"",markdown,selection_keyboard +1282,906775,"README.md",2898,0,"s",markdown,content +1283,906775,"README.md",2899,0,"",markdown,selection_keyboard +1284,906854,"README.md",2899,0,"t",markdown,content +1285,906854,"README.md",2900,0,"",markdown,selection_keyboard +1286,906921,"README.md",2900,0," ",markdown,content +1287,906921,"README.md",2901,0,"",markdown,selection_keyboard +1288,907047,"README.md",2901,0,"m",markdown,content +1289,907047,"README.md",2902,0,"",markdown,selection_keyboard +1290,907131,"README.md",2902,0,"e",markdown,content +1291,907131,"README.md",2903,0,"",markdown,selection_keyboard +1292,907171,"README.md",2903,0,"a",markdown,content +1293,907171,"README.md",2904,0,"",markdown,selection_keyboard +1294,907264,"README.md",2904,0,"n",markdown,content +1295,907265,"README.md",2905,0,"",markdown,selection_keyboard +1296,907354,"README.md",2905,0,"s",markdown,content +1297,907354,"README.md",2906,0,"",markdown,selection_keyboard +1298,907424,"README.md",2906,0," ",markdown,content +1299,907424,"README.md",2907,0,"",markdown,selection_keyboard +1300,907567,"README.md",2907,0,"a",markdown,content +1301,907568,"README.md",2908,0,"",markdown,selection_keyboard +1302,907658,"README.md",2908,0," ",markdown,content +1303,907659,"README.md",2909,0,"",markdown,selection_keyboard +1304,907799,"README.md",2909,0,"l",markdown,content +1305,907800,"README.md",2910,0,"",markdown,selection_keyboard +1306,907955,"README.md",2910,0,"o",markdown,content +1307,907956,"README.md",2911,0,"",markdown,selection_keyboard +1308,908005,"README.md",2911,0,"t",markdown,content +1309,908006,"README.md",2912,0,"",markdown,selection_keyboard +1310,908065,"README.md",2912,0," ",markdown,content +1311,908066,"README.md",2913,0,"",markdown,selection_keyboard +1312,908200,"README.md",2913,0,"t",markdown,content +1313,908200,"README.md",2914,0,"",markdown,selection_keyboard +1314,908340,"README.md",2914,0,"o",markdown,content +1315,908341,"README.md",2915,0,"",markdown,selection_keyboard +1316,908384,"README.md",2915,0," ",markdown,content +1317,908384,"README.md",2916,0,"",markdown,selection_keyboard +1318,908554,"README.md",2916,0,"u",markdown,content +1319,908554,"README.md",2917,0,"",markdown,selection_keyboard +1320,908646,"README.md",2917,0,"s",markdown,content +1321,908647,"README.md",2918,0,"",markdown,selection_keyboard +1322,908830,"README.md",2918,0,",",markdown,content +1323,908830,"README.md",2919,0,"",markdown,selection_keyboard +1324,908911,"README.md",2919,0," ",markdown,content +1325,908911,"README.md",2920,0,"",markdown,selection_keyboard +1326,908989,"README.md",2920,0,"w",markdown,content +1327,908989,"README.md",2921,0,"",markdown,selection_keyboard +1328,909281,"README.md",2920,1,"",markdown,content +1329,909563,"README.md",2919,1,"",markdown,content +1330,909717,"README.md",2918,1,"",markdown,content +1331,909944,"README.md",2918,0,",",markdown,content +1332,909945,"README.md",2919,0,"",markdown,selection_keyboard +1333,910000,"README.md",2919,0," ",markdown,content +1334,910000,"README.md",2920,0,"",markdown,selection_keyboard +1335,910077,"README.md",2920,0,"a",markdown,content +1336,910077,"README.md",2921,0,"",markdown,selection_keyboard +1337,910188,"README.md",2921,0,"n",markdown,content +1338,910188,"README.md",2922,0,"",markdown,selection_keyboard +1339,910312,"README.md",2922,0,"d",markdown,content +1340,910313,"README.md",2923,0,"",markdown,selection_keyboard +1341,910404,"README.md",2923,0," ",markdown,content +1342,910404,"README.md",2924,0,"",markdown,selection_keyboard +1343,910557,"README.md",2924,0,"w",markdown,content +1344,910558,"README.md",2925,0,"",markdown,selection_keyboard +1345,910627,"README.md",2925,0,"e",markdown,content +1346,910628,"README.md",2926,0,"",markdown,selection_keyboard +1347,910726,"README.md",2926,0," ",markdown,content +1348,910726,"README.md",2927,0,"",markdown,selection_keyboard +1349,910833,"README.md",2927,0,"w",markdown,content +1350,910833,"README.md",2928,0,"",markdown,selection_keyboard +1351,910979,"README.md",2928,0,"i",markdown,content +1352,910980,"README.md",2929,0,"",markdown,selection_keyboard +1353,911052,"README.md",2929,0,"l",markdown,content +1354,911053,"README.md",2930,0,"",markdown,selection_keyboard +1355,911191,"README.md",2930,0,"l",markdown,content +1356,911192,"README.md",2931,0,"",markdown,selection_keyboard +1357,911284,"README.md",2931,0," ",markdown,content +1358,911284,"README.md",2932,0,"",markdown,selection_keyboard +1359,911572,"README.md",2932,0,"d",markdown,content +1360,911572,"README.md",2933,0,"",markdown,selection_keyboard +1361,911670,"README.md",2933,0,"o",markdown,content +1362,911671,"README.md",2934,0,"",markdown,selection_keyboard +1363,911738,"README.md",2934,0," ",markdown,content +1364,911738,"README.md",2935,0,"",markdown,selection_keyboard +1365,911822,"README.md",2935,0,"e",markdown,content +1366,911823,"README.md",2936,0,"",markdown,selection_keyboard +1367,912107,"README.md",2936,0,"e",markdown,content +1368,912108,"README.md",2937,0,"",markdown,selection_keyboard +1369,912142,"README.md",2937,0,"r",markdown,content +1370,912143,"README.md",2938,0,"",markdown,selection_keyboard +1371,912413,"README.md",2937,1,"",markdown,content +1372,912546,"README.md",2936,1,"",markdown,content +1373,912628,"README.md",2936,0,"v",markdown,content +1374,912628,"README.md",2937,0,"",markdown,selection_keyboard +1375,912756,"README.md",2937,0,"e",markdown,content +1376,912756,"README.md",2938,0,"",markdown,selection_keyboard +1377,912825,"README.md",2938,0,"r",markdown,content +1378,912825,"README.md",2939,0,"",markdown,selection_keyboard +1379,912933,"README.md",2939,0,"y",markdown,content +1380,912933,"README.md",2940,0,"",markdown,selection_keyboard +1381,913082,"README.md",2940,0,"t",markdown,content +1382,913083,"README.md",2941,0,"",markdown,selection_keyboard +1383,913220,"README.md",2941,0,"h",markdown,content +1384,913221,"README.md",2942,0,"",markdown,selection_keyboard +1385,913274,"README.md",2942,0,"i",markdown,content +1386,913274,"README.md",2943,0,"",markdown,selection_keyboard +1387,913391,"README.md",2943,0,"n",markdown,content +1388,913392,"README.md",2944,0,"",markdown,selection_keyboard +1389,913476,"README.md",2944,0,"g",markdown,content +1390,913476,"README.md",2945,0,"",markdown,selection_keyboard +1391,913585,"README.md",2945,0," ",markdown,content +1392,913585,"README.md",2946,0,"",markdown,selection_keyboard +1393,917651,"README.md",2945,1,"",markdown,content +1394,917766,"README.md",2945,0," ",markdown,content +1395,917766,"README.md",2946,0,"",markdown,selection_keyboard +1396,917884,"README.md",2946,0,"t",markdown,content +1397,917884,"README.md",2947,0,"",markdown,selection_keyboard +1398,917980,"README.md",2947,0,"o",markdown,content +1399,917981,"README.md",2948,0,"",markdown,selection_keyboard +1400,918123,"README.md",2948,0," ",markdown,content +1401,918124,"README.md",2949,0,"",markdown,selection_keyboard +1402,918631,"README.md",2948,0,"",markdown,selection_command +1403,918771,"README.md",2946,0,"",markdown,selection_command +1404,918943,"README.md",2935,0,"",markdown,selection_command +1405,919043,"README.md",2932,0,"",markdown,selection_command +1406,919271,"README.md",2927,0,"",markdown,selection_command +1407,920106,"README.md",2932,0,"",markdown,selection_command +1408,920466,"README.md",2932,17,"",markdown,content +1409,920725,"README.md",2932,0,"t",markdown,content +1410,920725,"README.md",2933,0,"",markdown,selection_keyboard +1411,920771,"README.md",2933,0,"a",markdown,content +1412,920771,"README.md",2934,0,"",markdown,selection_keyboard +1413,920818,"README.md",2934,0,"k",markdown,content +1414,920818,"README.md",2935,0,"",markdown,selection_keyboard +1415,920943,"README.md",2935,0,"e",markdown,content +1416,920943,"README.md",2936,0,"",markdown,selection_keyboard +1417,920975,"README.md",2936,0," ",markdown,content +1418,920975,"README.md",2937,0,"",markdown,selection_keyboard +1419,921374,"README.md",2937,0,"g",markdown,content +1420,921374,"README.md",2938,0,"",markdown,selection_keyboard +1421,921526,"README.md",2938,0,"r",markdown,content +1422,921527,"README.md",2939,0,"",markdown,selection_keyboard +1423,921600,"README.md",2939,0,"a",markdown,content +1424,921601,"README.md",2940,0,"",markdown,selection_keyboard +1425,921707,"README.md",2940,0,"e",markdown,content +1426,921707,"README.md",2941,0,"",markdown,selection_keyboard +1427,922095,"README.md",2940,1,"",markdown,content +1428,922230,"README.md",2939,1,"",markdown,content +1429,922240,"README.md",2939,0,"e",markdown,content +1430,922241,"README.md",2940,0,"",markdown,selection_keyboard +1431,922297,"README.md",2940,0,"a",markdown,content +1432,922297,"README.md",2941,0,"",markdown,selection_keyboard +1433,922371,"README.md",2941,0,"t",markdown,content +1434,922371,"README.md",2942,0,"",markdown,selection_keyboard +1435,922458,"README.md",2942,0," ",markdown,content +1436,922459,"README.md",2943,0,"",markdown,selection_keyboard +1437,922778,"README.md",2943,0,"c",markdown,content +1438,922779,"README.md",2944,0,"",markdown,selection_keyboard +1439,922866,"README.md",2944,0,"a",markdown,content +1440,922867,"README.md",2945,0,"",markdown,selection_keyboard +1441,922978,"README.md",2945,0,"r",markdown,content +1442,922978,"README.md",2946,0,"",markdown,selection_keyboard +1443,923041,"README.md",2946,0,"e",markdown,content +1444,923041,"README.md",2947,0,"",markdown,selection_keyboard +1445,923093,"README.md",2947,0," ",markdown,content +1446,923093,"README.md",2948,0,"",markdown,selection_keyboard +1447,923215,"README.md",2948,0,"i",markdown,content +1448,923216,"README.md",2949,0,"",markdown,selection_keyboard +1449,923318,"README.md",2949,0,"n",markdown,content +1450,923318,"README.md",2950,0,"",markdown,selection_keyboard +1451,923341,"README.md",2950,0," ",markdown,content +1452,923341,"README.md",2951,0,"",markdown,selection_keyboard +1453,923409,"README.md",2951,0,"a",markdown,content +1454,923410,"README.md",2952,0,"",markdown,selection_keyboard +1455,923550,"README.md",2952,0,"n",markdown,content +1456,923551,"README.md",2953,0,"",markdown,selection_keyboard +1457,923684,"README.md",2953,0,"o",markdown,content +1458,923684,"README.md",2954,0,"",markdown,selection_keyboard +1459,923762,"README.md",2954,0,"n",markdown,content +1460,923763,"README.md",2955,0,"",markdown,selection_keyboard +1461,923966,"README.md",2955,0,"y",markdown,content +1462,923966,"README.md",2956,0,"",markdown,selection_keyboard +1463,924173,"README.md",2956,0,"m",markdown,content +1464,924174,"README.md",2957,0,"",markdown,selection_keyboard +1465,924425,"README.md",2957,0,"i",markdown,content +1466,924426,"README.md",2958,0,"",markdown,selection_keyboard +1467,924529,"README.md",2958,0,"z",markdown,content +1468,924529,"README.md",2959,0,"",markdown,selection_keyboard +1469,924649,"README.md",2959,0,"i",markdown,content +1470,924649,"README.md",2960,0,"",markdown,selection_keyboard +1471,924741,"README.md",2960,0,"n",markdown,content +1472,924741,"README.md",2961,0,"",markdown,selection_keyboard +1473,924810,"README.md",2961,0,"g",markdown,content +1474,924811,"README.md",2962,0,"",markdown,selection_keyboard +1475,924896,"README.md",2962,0," ",markdown,content +1476,924896,"README.md",2963,0,"",markdown,selection_keyboard +1477,925934,"README.md",2962,0,"",markdown,selection_command +1478,926061,"README.md",2951,0,"",markdown,selection_command +1479,927483,"README.md",2951,12,"",markdown,content +1480,927742,"README.md",2951,0,"a",markdown,content +1481,927743,"README.md",2952,0,"",markdown,selection_keyboard +1482,927824,"README.md",2952,0,"n",markdown,content +1483,927824,"README.md",2953,0,"",markdown,selection_keyboard +1484,927945,"README.md",2953,0,"o",markdown,content +1485,927945,"README.md",2954,0,"",markdown,selection_keyboard +1486,928008,"README.md",2954,0,"n",markdown,content +1487,928009,"README.md",2955,0,"",markdown,selection_keyboard +1488,928211,"README.md",2955,0,"y",markdown,content +1489,928212,"README.md",2956,0,"",markdown,selection_keyboard +1490,928581,"README.md",2956,0,"m",markdown,content +1491,928582,"README.md",2957,0,"",markdown,selection_keyboard +1492,928680,"README.md",2957,0,"i",markdown,content +1493,928680,"README.md",2958,0,"",markdown,selection_keyboard +1494,928767,"README.md",2958,0,"z",markdown,content +1495,928767,"README.md",2959,0,"",markdown,selection_keyboard +1496,928866,"README.md",2959,0,"i",markdown,content +1497,928867,"README.md",2960,0,"",markdown,selection_keyboard +1498,928978,"README.md",2960,0,"n",markdown,content +1499,928978,"README.md",2961,0,"",markdown,selection_keyboard +1500,929077,"README.md",2961,0,"g",markdown,content +1501,929077,"README.md",2962,0,"",markdown,selection_keyboard +1502,929190,"README.md",2962,0," ",markdown,content +1503,929190,"README.md",2963,0,"",markdown,selection_keyboard +1504,929551,"README.md",2963,0,"t",markdown,content +1505,929552,"README.md",2964,0,"",markdown,selection_keyboard +1506,929640,"README.md",2964,0,"h",markdown,content +1507,929640,"README.md",2965,0,"",markdown,selection_keyboard +1508,929699,"README.md",2965,0,"e",markdown,content +1509,929699,"README.md",2966,0,"",markdown,selection_keyboard +1510,929758,"README.md",2966,0," ",markdown,content +1511,929758,"README.md",2967,0,"",markdown,selection_keyboard +1512,929872,"README.md",2967,0,"d",markdown,content +1513,929873,"README.md",2968,0,"",markdown,selection_keyboard +1514,929974,"README.md",2968,0,"a",markdown,content +1515,929975,"README.md",2969,0,"",markdown,selection_keyboard +1516,930059,"README.md",2969,0,"t",markdown,content +1517,930059,"README.md",2970,0,"",markdown,selection_keyboard +1518,930147,"README.md",2970,0,"a",markdown,content +1519,930148,"README.md",2971,0,"",markdown,selection_keyboard +1520,930303,"README.md",2971,0,"s",markdown,content +1521,930304,"README.md",2972,0,"",markdown,selection_keyboard +1522,930418,"README.md",2972,0,"e",markdown,content +1523,930418,"README.md",2973,0,"",markdown,selection_keyboard +1524,930465,"README.md",2973,0,"t",markdown,content +1525,930465,"README.md",2974,0,"",markdown,selection_keyboard +1526,930560,"README.md",2974,0," ",markdown,content +1527,930560,"README.md",2975,0,"",markdown,selection_keyboard +1528,930822,"README.md",2975,0,"b",markdown,content +1529,930823,"README.md",2976,0,"",markdown,selection_keyboard +1530,930899,"README.md",2976,0,"e",markdown,content +1531,930899,"README.md",2977,0,"",markdown,selection_keyboard +1532,930984,"README.md",2977,0,"f",markdown,content +1533,930985,"README.md",2978,0,"",markdown,selection_keyboard +1534,931233,"README.md",2978,0,"r",markdown,content +1535,931234,"README.md",2979,0,"",markdown,selection_keyboard +1536,931284,"README.md",2979,0,"o",markdown,content +1537,931285,"README.md",2980,0,"",markdown,selection_keyboard +1538,931536,"README.md",2979,1,"",markdown,content +1539,931659,"README.md",2978,1,"",markdown,content +1540,931857,"README.md",2978,0,"o",markdown,content +1541,931858,"README.md",2979,0,"",markdown,selection_keyboard +1542,931914,"README.md",2979,0,"r",markdown,content +1543,931915,"README.md",2980,0,"",markdown,selection_keyboard +1544,931961,"README.md",2980,0,"e",markdown,content +1545,931962,"README.md",2981,0,"",markdown,selection_keyboard +1546,932021,"README.md",2981,0," ",markdown,content +1547,932021,"README.md",2982,0,"",markdown,selection_keyboard +1548,932150,"README.md",2982,0,"s",markdown,content +1549,932150,"README.md",2983,0,"",markdown,selection_keyboard +1550,932244,"README.md",2983,0,"h",markdown,content +1551,932244,"README.md",2984,0,"",markdown,selection_keyboard +1552,932346,"README.md",2984,0,"a",markdown,content +1553,932346,"README.md",2985,0,"",markdown,selection_keyboard +1554,932400,"README.md",2985,0,"r",markdown,content +1555,932401,"README.md",2986,0,"",markdown,selection_keyboard +1556,932484,"README.md",2986,0,"i",markdown,content +1557,932485,"README.md",2987,0,"",markdown,selection_keyboard +1558,932572,"README.md",2987,0,"n",markdown,content +1559,932623,"README.md",2988,0,"g",markdown,content +1560,932624,"README.md",2989,0,"",markdown,selection_keyboard +1561,932688,"README.md",2989,0," ",markdown,content +1562,932688,"README.md",2990,0,"",markdown,selection_keyboard +1563,932841,"README.md",2990,0,"t",markdown,content +1564,932841,"README.md",2991,0,"",markdown,selection_keyboard +1565,932962,"README.md",2991,0,"o",markdown,content +1566,932962,"README.md",2992,0,"",markdown,selection_keyboard +1567,933235,"README.md",2991,1,"",markdown,content +1568,933352,"README.md",2990,1,"",markdown,content +1569,933588,"README.md",2990,0,"i",markdown,content +1570,933589,"README.md",2991,0,"",markdown,selection_keyboard +1571,933686,"README.md",2991,0,"t",markdown,content +1572,933686,"README.md",2992,0,"",markdown,selection_keyboard +1573,933735,"README.md",2992,0," ",markdown,content +1574,933735,"README.md",2993,0,"",markdown,selection_keyboard +1575,933975,"README.md",2993,0,"f",markdown,content +1576,933976,"README.md",2994,0,"",markdown,selection_keyboard +1577,934093,"README.md",2994,0,"o",markdown,content +1578,934093,"README.md",2995,0,"",markdown,selection_keyboard +1579,934185,"README.md",2995,0,"r",markdown,content +1580,934186,"README.md",2996,0,"",markdown,selection_keyboard +1581,934240,"README.md",2996,0," ",markdown,content +1582,934241,"README.md",2997,0,"",markdown,selection_keyboard +1583,934468,"README.md",2996,0,"",markdown,selection_command +1584,934593,"README.md",2890,0,"",markdown,selection_command +1585,940024,"README.md",2895,0,"",markdown,selection_command +1586,940274,"README.md",2901,0,"",markdown,selection_command +1587,940302,"README.md",2907,0,"",markdown,selection_command +1588,940328,"README.md",2909,0,"",markdown,selection_command +1589,940361,"README.md",2913,0,"",markdown,selection_command +1590,940394,"README.md",2916,0,"",markdown,selection_command +1591,940428,"README.md",2918,0,"",markdown,selection_command +1592,940462,"README.md",2920,0,"",markdown,selection_command +1593,940496,"README.md",2924,0,"",markdown,selection_command +1594,940529,"README.md",2927,0,"",markdown,selection_command +1595,940563,"README.md",2932,0,"",markdown,selection_command +1596,940723,"README.md",2937,0,"",markdown,selection_command +1597,940979,"README.md",2943,0,"",markdown,selection_command +1598,941011,"README.md",2948,0,"",markdown,selection_command +1599,941041,"README.md",2951,0,"",markdown,selection_command +1600,941072,"README.md",2963,0,"",markdown,selection_command +1601,941106,"README.md",2967,0,"",markdown,selection_command +1602,941140,"README.md",2975,0,"",markdown,selection_command +1603,941174,"README.md",2982,0,"",markdown,selection_command +1604,941206,"README.md",2990,0,"",markdown,selection_command +1605,941239,"README.md",2993,0,"",markdown,selection_command +1606,941796,"README.md",2997,0,"",markdown,selection_command +1607,944817,"README.md",2993,4,"",markdown,content +1608,945421,"README.md",2993,0,"t",markdown,content +1609,945422,"README.md",2994,0,"",markdown,selection_keyboard +1610,945557,"README.md",2994,0,"o",markdown,content +1611,945557,"README.md",2995,0,"",markdown,selection_keyboard +1612,945647,"README.md",2995,0," ",markdown,content +1613,945647,"README.md",2996,0,"",markdown,selection_keyboard +1614,945749,"README.md",2996,0,"t",markdown,content +1615,945749,"README.md",2997,0,"",markdown,selection_keyboard +1616,945844,"README.md",2997,0,"h",markdown,content +1617,945844,"README.md",2998,0,"",markdown,selection_keyboard +1618,946096,"README.md",2998,0,"e",markdown,content +1619,946097,"README.md",2999,0,"",markdown,selection_keyboard +1620,946222,"README.md",2999,0," ",markdown,content +1621,946222,"README.md",3000,0,"",markdown,selection_keyboard +1622,946334,"README.md",3000,0,"r",markdown,content +1623,946334,"README.md",3001,0,"",markdown,selection_keyboard +1624,946424,"README.md",3001,0,"e",markdown,content +1625,946424,"README.md",3002,0,"",markdown,selection_keyboard +1626,946558,"README.md",3002,0,"s",markdown,content +1627,946558,"README.md",3003,0,"",markdown,selection_keyboard +1628,946835,"README.md",3003,0,"e",markdown,content +1629,946837,"README.md",3004,0,"",markdown,selection_keyboard +1630,947225,"README.md",3004,0,"e",markdown,content +1631,947226,"README.md",3005,0,"",markdown,selection_keyboard +1632,947569,"README.md",3004,1,"",markdown,content +1633,947660,"README.md",3004,0,"a",markdown,content +1634,947660,"README.md",3005,0,"",markdown,selection_keyboard +1635,947765,"README.md",3005,0,"r",markdown,content +1636,947766,"README.md",3006,0,"",markdown,selection_keyboard +1637,947983,"README.md",3006,0,"c",markdown,content +1638,947983,"README.md",3007,0,"",markdown,selection_keyboard +1639,948107,"README.md",3007,0,"h",markdown,content +1640,948107,"README.md",3008,0,"",markdown,selection_keyboard +1641,948196,"README.md",3008,0," ",markdown,content +1642,948198,"README.md",3009,0,"",markdown,selection_keyboard +1643,948275,"README.md",3009,0,"c",markdown,content +1644,948276,"README.md",3010,0,"",markdown,selection_keyboard +1645,948393,"README.md",3010,0,"o",markdown,content +1646,948393,"README.md",3011,0,"",markdown,selection_keyboard +1647,948441,"README.md",3011,0,"m",markdown,content +1648,948441,"README.md",3012,0,"",markdown,selection_keyboard +1649,948599,"README.md",3012,0,"m",markdown,content +1650,948600,"README.md",3013,0,"",markdown,selection_keyboard +1651,948787,"README.md",3013,0,"u",markdown,content +1652,948787,"README.md",3014,0,"",markdown,selection_keyboard +1653,948855,"README.md",3014,0,"n",markdown,content +1654,948856,"README.md",3015,0,"",markdown,selection_keyboard +1655,948993,"README.md",3015,0,"i",markdown,content +1656,948994,"README.md",3016,0,"",markdown,selection_keyboard +1657,949133,"README.md",3016,0,"t",markdown,content +1658,949134,"README.md",3017,0,"",markdown,selection_keyboard +1659,949218,"README.md",3017,0,"y",markdown,content +1660,949219,"README.md",3018,0,"",markdown,selection_keyboard +1661,949458,"README.md",3018,0,".",markdown,content +1662,949458,"README.md",3019,0,"",markdown,selection_keyboard +1663,949617,"README.md",3019,0," ",markdown,content +1664,949617,"README.md",3020,0,"",markdown,selection_keyboard +1665,949920,"README.md",3019,0,"",markdown,selection_command +1666,950203,"README.md",2890,0,"",markdown,selection_command +1667,950640,"README.md",3020,0,"",markdown,selection_command +1668,951092,"README.md",3019,0,"",markdown,selection_command +1669,951476,"README.md",3020,0,"",markdown,selection_command +1670,951641,"README.md",3019,1,"",markdown,content +1671,951779,"README.md",3018,1,"",markdown,content +1672,951996,"README.md",3018,0,".",markdown,content +1673,951997,"README.md",3019,0,"",markdown,selection_keyboard +1674,952073,"README.md",3018,0,"",markdown,selection_command +1675,952765,"README.md",2890,0,"",markdown,selection_command +1676,953016,"README.md",3019,0,"",markdown,selection_command +1677,953486,"README.md",3018,0,"",markdown,selection_command +1678,954260,"README.md",3019,0,"",markdown,selection_command +1679,954379,"README.md",3019,0," ",markdown,content +1680,954379,"README.md",3020,0,"",markdown,selection_keyboard +1681,954560,"README.md",3020,0,"A",markdown,content +1682,954560,"README.md",3021,0,"",markdown,selection_keyboard +1683,954949,"README.md",3021,0,"t",markdown,content +1684,954949,"README.md",3022,0,"",markdown,selection_keyboard +1685,955042,"README.md",3022,0," ",markdown,content +1686,955042,"README.md",3023,0,"",markdown,selection_keyboard +1687,955165,"README.md",3023,0,"t",markdown,content +1688,955165,"README.md",3024,0,"",markdown,selection_keyboard +1689,955264,"README.md",3024,0,"h",markdown,content +1690,955265,"README.md",3025,0,"",markdown,selection_keyboard +1691,955368,"README.md",3025,0,"e",markdown,content +1692,955368,"README.md",3026,0,"",markdown,selection_keyboard +1693,955405,"README.md",3026,0," ",markdown,content +1694,955405,"README.md",3027,0,"",markdown,selection_keyboard +1695,955517,"README.md",3027,0,"s",markdown,content +1696,955518,"README.md",3028,0,"",markdown,selection_keyboard +1697,955643,"README.md",3028,0,"a",markdown,content +1698,955643,"README.md",3029,0,"",markdown,selection_keyboard +1699,955787,"README.md",3029,0,"m",markdown,content +1700,955787,"README.md",3030,0,"",markdown,selection_keyboard +1701,955849,"README.md",3030,0,"e",markdown,content +1702,955850,"README.md",3031,0,"",markdown,selection_keyboard +1703,955945,"README.md",3031,0," ",markdown,content +1704,955946,"README.md",3032,0,"",markdown,selection_keyboard +1705,956084,"README.md",3032,0,"t",markdown,content +1706,956084,"README.md",3033,0,"",markdown,selection_keyboard +1707,956196,"README.md",3033,0,"i",markdown,content +1708,956197,"README.md",3034,0,"",markdown,selection_keyboard +1709,956341,"README.md",3034,0,"m",markdown,content +1710,956341,"README.md",3035,0,"",markdown,selection_keyboard +1711,956376,"README.md",3035,0,"e",markdown,content +1712,956376,"README.md",3036,0,"",markdown,selection_keyboard +1713,956519,"README.md",3036,0,",",markdown,content +1714,956519,"README.md",3037,0,"",markdown,selection_keyboard +1715,956620,"README.md",3037,0," ",markdown,content +1716,956620,"README.md",3038,0,"",markdown,selection_keyboard +1717,956715,"README.md",3038,0,"w",markdown,content +1718,956715,"README.md",3039,0,"",markdown,selection_keyboard +1719,956805,"README.md",3039,0,"e",markdown,content +1720,956805,"README.md",3040,0,"",markdown,selection_keyboard +1721,956883,"README.md",3040,0," ",markdown,content +1722,956883,"README.md",3041,0,"",markdown,selection_keyboard +1723,957390,"README.md",3041,0,"w",markdown,content +1724,957390,"README.md",3042,0,"",markdown,selection_keyboard +1725,957420,"README.md",3042,0,"o",markdown,content +1726,957421,"README.md",3043,0,"",markdown,selection_keyboard +1727,957523,"README.md",3043,0,"u",markdown,content +1728,957523,"README.md",3044,0,"",markdown,selection_keyboard +1729,957732,"README.md",3044,0,"l",markdown,content +1730,957732,"README.md",3045,0,"",markdown,selection_keyboard +1731,957772,"README.md",3045,0,"d",markdown,content +1732,957772,"README.md",3046,0,"",markdown,selection_keyboard +1733,958491,"README.md",3041,5,"",markdown,content +1734,958731,"README.md",3041,0,"s",markdown,content +1735,958731,"README.md",3042,0,"",markdown,selection_keyboard +1736,958878,"README.md",3042,0,"t",markdown,content +1737,958878,"README.md",3043,0,"",markdown,selection_keyboard +1738,959034,"README.md",3043,0,"r",markdown,content +1739,959035,"README.md",3044,0,"",markdown,selection_keyboard +1740,959136,"README.md",3044,0,"i",markdown,content +1741,959136,"README.md",3045,0,"",markdown,selection_keyboard +1742,959247,"README.md",3045,0,"v",markdown,content +1743,959248,"README.md",3046,0,"",markdown,selection_keyboard +1744,959355,"README.md",3046,0,"e",markdown,content +1745,959356,"README.md",3047,0,"",markdown,selection_keyboard +1746,959422,"README.md",3047,0," ",markdown,content +1747,959422,"README.md",3048,0,"",markdown,selection_keyboard +1748,959813,"README.md",3048,0,"f",markdown,content +1749,959814,"README.md",3049,0,"",markdown,selection_keyboard +1750,959924,"README.md",3049,0,"o",markdown,content +1751,959924,"README.md",3050,0,"",markdown,selection_keyboard +1752,960017,"README.md",3050,0,"r",markdown,content +1753,960017,"README.md",3051,0,"",markdown,selection_keyboard +1754,960063,"README.md",3051,0," ",markdown,content +1755,960063,"README.md",3052,0,"",markdown,selection_keyboard +1756,960268,"README.md",3052,0,"u",markdown,content +1757,960270,"README.md",3053,0,"",markdown,selection_keyboard +1758,960399,"README.md",3053,0,"l",markdown,content +1759,960400,"README.md",3054,0,"",markdown,selection_keyboard +1760,960467,"README.md",3054,0,"t",markdown,content +1761,960467,"README.md",3055,0,"",markdown,selection_keyboard +1762,960539,"README.md",3055,0,"i",markdown,content +1763,960539,"README.md",3056,0,"",markdown,selection_keyboard +1764,960622,"README.md",3056,0,"m",markdown,content +1765,960623,"README.md",3057,0,"",markdown,selection_keyboard +1766,960705,"README.md",3057,0,"a",markdown,content +1767,960705,"README.md",3058,0,"",markdown,selection_keyboard +1768,960747,"README.md",3058,0,"t",markdown,content +1769,960747,"README.md",3059,0,"",markdown,selection_keyboard +1770,960893,"README.md",3059,0,"e",markdown,content +1771,960893,"README.md",3060,0,"",markdown,selection_keyboard +1772,961053,"README.md",3060,0," ",markdown,content +1773,961053,"README.md",3061,0,"",markdown,selection_keyboard +1774,961226,"README.md",3061,0,"t",markdown,content +1775,961226,"README.md",3062,0,"",markdown,selection_keyboard +1776,961426,"README.md",3062,0,"r",markdown,content +1777,961426,"README.md",3063,0,"",markdown,selection_keyboard +1778,961511,"README.md",3063,0,"a",markdown,content +1779,961511,"README.md",3064,0,"",markdown,selection_keyboard +1780,961626,"README.md",3064,0,"n",markdown,content +1781,961626,"README.md",3065,0,"",markdown,selection_keyboard +1782,961700,"README.md",3065,0,"s",markdown,content +1783,961701,"README.md",3066,0,"",markdown,selection_keyboard +1784,961899,"README.md",3066,0,"p",markdown,content +1785,961899,"README.md",3067,0,"",markdown,selection_keyboard +1786,962065,"README.md",3067,0,"a",markdown,content +1787,962065,"README.md",3068,0,"",markdown,selection_keyboard +1788,962352,"README.md",3068,0,"r",markdown,content +1789,962353,"README.md",3069,0,"",markdown,selection_keyboard +1790,962563,"README.md",3069,0,"e",markdown,content +1791,962564,"README.md",3070,0,"",markdown,selection_keyboard +1792,962698,"README.md",3070,0,"n",markdown,content +1793,962699,"README.md",3071,0,"",markdown,selection_keyboard +1794,962822,"README.md",3071,0,"c",markdown,content +1795,962823,"README.md",3072,0,"",markdown,selection_keyboard +1796,962937,"README.md",3072,0,"y",markdown,content +1797,962938,"README.md",3073,0,"",markdown,selection_keyboard +1798,967309,"README.md",3073,0,".",markdown,content +1799,967309,"README.md",3074,0,"",markdown,selection_keyboard +1800,967363,"README.md",3074,0," ",markdown,content +1801,967363,"README.md",3075,0,"",markdown,selection_keyboard +1802,967664,"README.md",3075,0,"I",markdown,content +1803,967664,"README.md",3076,0,"",markdown,selection_keyboard +1804,967857,"README.md",3076,0,"f",markdown,content +1805,967857,"README.md",3077,0,"",markdown,selection_keyboard +1806,967971,"README.md",3077,0," ",markdown,content +1807,967972,"README.md",3078,0,"",markdown,selection_keyboard +1808,968870,"README.md",3078,0,"o",markdown,content +1809,968870,"README.md",3079,0,"",markdown,selection_keyboard +1810,969152,"README.md",3078,1,"",markdown,content +1811,969401,"README.md",3078,0,"y",markdown,content +1812,969401,"README.md",3079,0,"",markdown,selection_keyboard +1813,969443,"README.md",3079,0,"o",markdown,content +1814,969506,"README.md",3080,0,"u",markdown,content +1815,969507,"README.md",3081,0,"",markdown,selection_keyboard +1816,970079,"README.md",3081,0," ",markdown,content +1817,970080,"README.md",3082,0,"",markdown,selection_keyboard +1818,970189,"README.md",3082,0,"h",markdown,content +1819,970189,"README.md",3083,0,"",markdown,selection_keyboard +1820,970276,"README.md",3083,0,"a",markdown,content +1821,970276,"README.md",3084,0,"",markdown,selection_keyboard +1822,970321,"README.md",3084,0,"v",markdown,content +1823,970321,"README.md",3085,0,"",markdown,selection_keyboard +1824,970469,"README.md",3085,0,"e",markdown,content +1825,970469,"README.md",3086,0,"",markdown,selection_keyboard +1826,970523,"README.md",3086,0," ",markdown,content +1827,970524,"README.md",3087,0,"",markdown,selection_keyboard +1828,970638,"README.md",3087,0,"s",markdown,content +1829,970639,"README.md",3088,0,"",markdown,selection_keyboard +1830,970741,"README.md",3088,0,"u",markdown,content +1831,970742,"README.md",3089,0,"",markdown,selection_keyboard +1832,970806,"README.md",3089,0,"g",markdown,content +1833,970806,"README.md",3090,0,"",markdown,selection_keyboard +1834,970949,"README.md",3090,0,"g",markdown,content +1835,970949,"README.md",3091,0,"",markdown,selection_keyboard +1836,971033,"README.md",3091,0,"e",markdown,content +1837,971034,"README.md",3092,0,"",markdown,selection_keyboard +1838,971088,"README.md",3092,0,"s",markdown,content +1839,971089,"README.md",3093,0,"",markdown,selection_keyboard +1840,971191,"README.md",3093,0,"t",markdown,content +1841,971192,"README.md",3094,0,"",markdown,selection_keyboard +1842,971280,"README.md",3094,0,"i",markdown,content +1843,971281,"README.md",3095,0,"",markdown,selection_keyboard +1844,971311,"README.md",3095,0,"o",markdown,content +1845,971311,"README.md",3096,0,"",markdown,selection_keyboard +1846,971430,"README.md",3096,0,"n",markdown,content +1847,971430,"README.md",3097,0,"",markdown,selection_keyboard +1848,971878,"README.md",3097,0," ",markdown,content +1849,971879,"README.md",3098,0,"",markdown,selection_keyboard +1850,972241,"README.md",3098,0,"o",markdown,content +1851,972242,"README.md",3099,0,"",markdown,selection_keyboard +1852,972317,"README.md",3099,0,"n",markdown,content +1853,972318,"README.md",3100,0,"",markdown,selection_keyboard +1854,972376,"README.md",3100,0," ",markdown,content +1855,972377,"README.md",3101,0,"",markdown,selection_keyboard +1856,972680,"README.md",3101,0,"h",markdown,content +1857,972682,"README.md",3102,0,"",markdown,selection_keyboard +1858,972757,"README.md",3102,0,"o",markdown,content +1859,972757,"README.md",3103,0,"",markdown,selection_keyboard +1860,972805,"README.md",3103,0,"w",markdown,content +1861,972806,"README.md",3104,0,"",markdown,selection_keyboard +1862,972888,"README.md",3104,0," ",markdown,content +1863,972889,"README.md",3105,0,"",markdown,selection_keyboard +1864,973025,"README.md",3105,0,"w",markdown,content +1865,973025,"README.md",3106,0,"",markdown,selection_keyboard +1866,973085,"README.md",3106,0,"e",markdown,content +1867,973085,"README.md",3107,0,"",markdown,selection_keyboard +1868,973210,"README.md",3107,0," ",markdown,content +1869,973210,"README.md",3108,0,"",markdown,selection_keyboard +1870,973380,"README.md",3108,0,"c",markdown,content +1871,973380,"README.md",3109,0,"",markdown,selection_keyboard +1872,973442,"README.md",3109,0,"a",markdown,content +1873,973442,"README.md",3110,0,"",markdown,selection_keyboard +1874,973538,"README.md",3110,0,"n",markdown,content +1875,973539,"README.md",3111,0,"",markdown,selection_keyboard +1876,973638,"README.md",3111,0," ",markdown,content +1877,973638,"README.md",3112,0,"",markdown,selection_keyboard +1878,980027,"README.md",3112,0,"i",markdown,content +1879,980028,"README.md",3113,0,"",markdown,selection_keyboard +1880,980101,"README.md",3113,0,"m",markdown,content +1881,980102,"README.md",3114,0,"",markdown,selection_keyboard +1882,980190,"README.md",3114,0,"p",markdown,content +1883,980191,"README.md",3115,0,"",markdown,selection_keyboard +1884,980308,"README.md",3115,0,"r",markdown,content +1885,980309,"README.md",3116,0,"",markdown,selection_keyboard +1886,980416,"README.md",3116,0,"o",markdown,content +1887,980416,"README.md",3117,0,"",markdown,selection_keyboard +1888,980532,"README.md",3117,0,"v",markdown,content +1889,980533,"README.md",3118,0,"",markdown,selection_keyboard +1890,980590,"README.md",3118,0,"e",markdown,content +1891,980590,"README.md",3119,0,"",markdown,selection_keyboard +1892,980682,"README.md",3119,0," ",markdown,content +1893,980682,"README.md",3120,0,"",markdown,selection_keyboard +1894,988747,"README.md",3119,0,"",markdown,selection_command +1895,989175,"README.md",2890,0,"",markdown,selection_command +1896,989635,"README.md",2895,0,"",markdown,selection_command +1897,989880,"README.md",2901,0,"",markdown,selection_command +1898,989913,"README.md",2907,0,"",markdown,selection_command +1899,989941,"README.md",2909,0,"",markdown,selection_command +1900,989972,"README.md",2913,0,"",markdown,selection_command +1901,990003,"README.md",2916,0,"",markdown,selection_command +1902,990037,"README.md",2918,0,"",markdown,selection_command +1903,990071,"README.md",2920,0,"",markdown,selection_command +1904,990105,"README.md",2924,0,"",markdown,selection_command +1905,990139,"README.md",2927,0,"",markdown,selection_command +1906,990172,"README.md",2932,0,"",markdown,selection_command +1907,990207,"README.md",2937,0,"",markdown,selection_command +1908,990240,"README.md",2943,0,"",markdown,selection_command +1909,990273,"README.md",2948,0,"",markdown,selection_command +1910,990306,"README.md",2951,0,"",markdown,selection_command +1911,990340,"README.md",2963,0,"",markdown,selection_command +1912,990373,"README.md",2967,0,"",markdown,selection_command +1913,990408,"README.md",2975,0,"",markdown,selection_command +1914,990641,"README.md",2982,0,"",markdown,selection_command +1915,990896,"README.md",2990,0,"",markdown,selection_command +1916,990926,"README.md",2993,0,"",markdown,selection_command +1917,990956,"README.md",2996,0,"",markdown,selection_command +1918,990988,"README.md",3000,0,"",markdown,selection_command +1919,991228,"README.md",3009,0,"",markdown,selection_command +1920,991485,"README.md",3018,0,"",markdown,selection_command +1921,991510,"README.md",3020,0,"",markdown,selection_command +1922,992041,"README.md",3023,0,"",markdown,selection_command +1923,992297,"README.md",3027,0,"",markdown,selection_command +1924,992326,"README.md",3032,0,"",markdown,selection_command +1925,992357,"README.md",3036,0,"",markdown,selection_command +1926,992388,"README.md",3038,0,"",markdown,selection_command +1927,992657,"README.md",3041,0,"",markdown,selection_command +1928,992903,"README.md",3048,0,"",markdown,selection_command +1929,992933,"README.md",3052,0,"",markdown,selection_command +1930,992965,"README.md",3061,0,"",markdown,selection_command +1931,992996,"README.md",3073,0,"",markdown,selection_command +1932,993030,"README.md",3075,0,"",markdown,selection_command +1933,993066,"README.md",3078,0,"",markdown,selection_command +1934,993262,"README.md",3082,0,"",markdown,selection_command +1935,993520,"README.md",3087,0,"",markdown,selection_command +1936,993550,"README.md",3098,0,"",markdown,selection_command +1937,993720,"README.md",3101,0,"",markdown,selection_command +1938,993876,"README.md",3105,0,"",markdown,selection_command +1939,994348,"README.md",3120,0,"",markdown,selection_command +1940,1000845,"README.md",3119,0,"",markdown,selection_command +1941,1001972,"README.md",3112,0,"",markdown,selection_command +1942,1002226,"README.md",3108,0,"",markdown,selection_command +1943,1002254,"README.md",3105,0,"",markdown,selection_command +1944,1002287,"README.md",3101,0,"",markdown,selection_command +1945,1002319,"README.md",3098,0,"",markdown,selection_command +1946,1002354,"README.md",3087,0,"",markdown,selection_command +1947,1002385,"README.md",3082,0,"",markdown,selection_command +1948,1002693,"README.md",3078,0,"",markdown,selection_command +1949,1002892,"README.md",3075,0,"",markdown,selection_command +1950,1003006,"README.md",3073,0,"",markdown,selection_command +1951,1003314,"README.md",3075,0,"",markdown,selection_command +1952,1003608,"README.md",3078,0,"",markdown,selection_command +1953,1003863,"README.md",3082,0,"",markdown,selection_command +1954,1003891,"README.md",3087,0,"",markdown,selection_command +1955,1004084,"README.md",3098,0,"",markdown,selection_command +1956,1004261,"README.md",3101,0,"",markdown,selection_command +1957,1004570,"README.md",3120,0,"",markdown,selection_command +1958,1008614,"README.md",3120,0,"t",markdown,content +1959,1008614,"README.md",3121,0,"",markdown,selection_keyboard +1960,1008700,"README.md",3121,0,"h",markdown,content +1961,1008700,"README.md",3122,0,"",markdown,selection_keyboard +1962,1008784,"README.md",3122,0,"e",markdown,content +1963,1008785,"README.md",3123,0,"",markdown,selection_keyboard +1964,1008857,"README.md",3123,0," ",markdown,content +1965,1008858,"README.md",3124,0,"",markdown,selection_keyboard +1966,1008972,"README.md",3124,0,"c",markdown,content +1967,1008973,"README.md",3125,0,"",markdown,selection_keyboard +1968,1009152,"README.md",3125,0,"r",markdown,content +1969,1009153,"README.md",3126,0,"",markdown,selection_keyboard +1970,1009243,"README.md",3126,0,"o",markdown,content +1971,1009244,"README.md",3127,0,"",markdown,selection_keyboard +1972,1009259,"README.md",3127,0,"w",markdown,content +1973,1009259,"README.md",3128,0,"",markdown,selection_keyboard +1974,1009372,"README.md",3128,0,"d",markdown,content +1975,1009372,"README.md",3129,0,"",markdown,selection_keyboard +1976,1009504,"README.md",3129,0,"-",markdown,content +1977,1009504,"README.md",3130,0,"",markdown,selection_keyboard +1978,1009645,"README.md",3130,0,"s",markdown,content +1979,1009646,"README.md",3131,0,"",markdown,selection_keyboard +1980,1009763,"README.md",3131,0,"o",markdown,content +1981,1009763,"README.md",3132,0,"",markdown,selection_keyboard +1982,1009851,"README.md",3132,0,"u",markdown,content +1983,1009851,"README.md",3133,0,"",markdown,selection_keyboard +1984,1009885,"README.md",3133,0,"r",markdown,content +1985,1009885,"README.md",3134,0,"",markdown,selection_keyboard +1986,1010090,"README.md",3134,0,"c",markdown,content +1987,1010091,"README.md",3135,0,"",markdown,selection_keyboard +1988,1010174,"README.md",3135,0,"i",markdown,content +1989,1010175,"README.md",3136,0,"",markdown,selection_keyboard +1990,1010256,"README.md",3136,0,"n",markdown,content +1991,1010256,"README.md",3137,0,"",markdown,selection_keyboard +1992,1010326,"README.md",3137,0,"g",markdown,content +1993,1010326,"README.md",3138,0,"",markdown,selection_keyboard +1994,1010406,"README.md",3138,0," ",markdown,content +1995,1010407,"README.md",3139,0,"",markdown,selection_keyboard +1996,1010747,"README.md",3138,0,"",markdown,selection_command +1997,1010848,"README.md",3130,0,"",markdown,selection_command +1998,1010983,"README.md",3129,0,"",markdown,selection_command +1999,1011183,"README.md",3124,0,"",markdown,selection_command +2000,1011561,"README.md",3120,0,"",markdown,selection_command +2001,1012003,"README.md",3120,0,"o",markdown,content +2002,1012004,"README.md",3121,0,"",markdown,selection_keyboard +2003,1012337,"README.md",3120,0,"",markdown,selection_command +2004,1012732,"README.md",3120,4,"",markdown,content +2005,1012950,"README.md",3120,0,"o",markdown,content +2006,1012951,"README.md",3121,0,"",markdown,selection_keyboard +2007,1013039,"README.md",3121,0,"u",markdown,content +2008,1013040,"README.md",3122,0,"",markdown,selection_keyboard +2009,1013093,"README.md",3122,0,"r",markdown,content +2010,1013094,"README.md",3123,0,"",markdown,selection_keyboard +2011,1013488,"README.md",3122,0,"",markdown,selection_command +2012,1013807,"README.md",3139,0,"",markdown,selection_command +2013,1014040,"README.md",3139,0,",",markdown,content +2014,1014041,"README.md",3140,0,"",markdown,selection_keyboard +2015,1014483,"README.md",3139,1,"",markdown,content +2016,1014591,"README.md",3138,1,"",markdown,content +2017,1014809,"README.md",3138,0,",",markdown,content +2018,1014810,"README.md",3139,0,"",markdown,selection_keyboard +2019,1014877,"README.md",3139,0," ",markdown,content +2020,1014877,"README.md",3140,0,"",markdown,selection_keyboard +2021,1015302,"README.md",3140,0,"w",markdown,content +2022,1015303,"README.md",3141,0,"",markdown,selection_keyboard +2023,1015393,"README.md",3141,0,"e",markdown,content +2024,1015393,"README.md",3142,0,"",markdown,selection_keyboard +2025,1015479,"README.md",3142,0," ",markdown,content +2026,1015480,"README.md",3143,0,"",markdown,selection_keyboard +2027,1015631,"README.md",3143,0,"w",markdown,content +2028,1015632,"README.md",3144,0,"",markdown,selection_keyboard +2029,1015718,"README.md",3144,0,"o",markdown,content +2030,1015718,"README.md",3145,0,"",markdown,selection_keyboard +2031,1015758,"README.md",3145,0,"u",markdown,content +2032,1015758,"README.md",3146,0,"",markdown,selection_keyboard +2033,1015953,"README.md",3146,0,"l",markdown,content +2034,1015953,"README.md",3147,0,"",markdown,selection_keyboard +2035,1016011,"README.md",3147,0,"d",markdown,content +2036,1016012,"README.md",3148,0,"",markdown,selection_keyboard +2037,1016138,"README.md",3148,0," ",markdown,content +2038,1016138,"README.md",3149,0,"",markdown,selection_keyboard +2039,1016406,"README.md",3149,0,"h",markdown,content +2040,1016407,"README.md",3150,0,"",markdown,selection_keyboard +2041,1016501,"README.md",3150,0,"a",markdown,content +2042,1016502,"README.md",3151,0,"",markdown,selection_keyboard +2043,1016599,"README.md",3151,0,"p",markdown,content +2044,1016599,"README.md",3152,0,"",markdown,selection_keyboard +2045,1016717,"README.md",3152,0,"p",markdown,content +2046,1016717,"README.md",3153,0,"",markdown,selection_keyboard +2047,1016829,"README.md",3153,0,"y",markdown,content +2048,1016830,"README.md",3154,0,"",markdown,selection_keyboard +2049,1016954,"README.md",3154,0," ",markdown,content +2050,1016954,"README.md",3155,0,"",markdown,selection_keyboard +2051,1017127,"README.md",3155,0,"t",markdown,content +2052,1017127,"README.md",3156,0,"",markdown,selection_keyboard +2053,1017476,"README.md",3156,0,"o",markdown,content +2054,1017476,"README.md",3157,0,"",markdown,selection_keyboard +2055,1017582,"README.md",3157,0," ",markdown,content +2056,1017583,"README.md",3158,0,"",markdown,selection_keyboard +2057,1018609,"README.md",3157,0,"",markdown,selection_command +2058,1018867,"README.md",3155,0,"",markdown,selection_command +2059,1019028,"README.md",3149,0,"",markdown,selection_command +2060,1019394,"README.md",3143,0,"",markdown,selection_command +2061,1019611,"README.md",3143,15,"",markdown,content +2062,1022644,"README.md",3143,0,"a",markdown,content +2063,1022645,"README.md",3144,0,"",markdown,selection_keyboard +2064,1022823,"README.md",3144,0,"r",markdown,content +2065,1022823,"README.md",3145,0,"",markdown,selection_keyboard +2066,1022950,"README.md",3145,0,"e",markdown,content +2067,1022950,"README.md",3146,0,"",markdown,selection_keyboard +2068,1023041,"README.md",3146,0," ",markdown,content +2069,1023042,"README.md",3147,0,"",markdown,selection_keyboard +2070,1023196,"README.md",3147,0,"m",markdown,content +2071,1023196,"README.md",3148,0,"",markdown,selection_keyboard +2072,1023280,"README.md",3148,0,"o",markdown,content +2073,1023281,"README.md",3149,0,"",markdown,selection_keyboard +2074,1023334,"README.md",3149,0,"r",markdown,content +2075,1023335,"README.md",3150,0,"",markdown,selection_keyboard +2076,1023394,"README.md",3150,0,"e",markdown,content +2077,1023394,"README.md",3151,0,"",markdown,selection_keyboard +2078,1023431,"README.md",3151,0," ",markdown,content +2079,1023432,"README.md",3152,0,"",markdown,selection_keyboard +2080,1023560,"README.md",3152,0,"t",markdown,content +2081,1023561,"README.md",3153,0,"",markdown,selection_keyboard +2082,1023638,"README.md",3153,0,"h",markdown,content +2083,1023639,"README.md",3154,0,"",markdown,selection_keyboard +2084,1023717,"README.md",3154,0,"a",markdown,content +2085,1023717,"README.md",3155,0,"",markdown,selection_keyboard +2086,1023854,"README.md",3155,0,"n",markdown,content +2087,1023854,"README.md",3156,0,"",markdown,selection_keyboard +2088,1023910,"README.md",3156,0," ",markdown,content +2089,1023911,"README.md",3157,0,"",markdown,selection_keyboard +2090,1024099,"README.md",3157,0,"h",markdown,content +2091,1024100,"README.md",3158,0,"",markdown,selection_keyboard +2092,1024174,"README.md",3158,0,"a",markdown,content +2093,1024174,"README.md",3159,0,"",markdown,selection_keyboard +2094,1024318,"README.md",3159,0,"p",markdown,content +2095,1024318,"README.md",3160,0,"",markdown,selection_keyboard +2096,1024457,"README.md",3160,0,"p",markdown,content +2097,1024458,"README.md",3161,0,"",markdown,selection_keyboard +2098,1024543,"README.md",3161,0,"y",markdown,content +2099,1024544,"README.md",3162,0,"",markdown,selection_keyboard +2100,1024639,"README.md",3162,0," ",markdown,content +2101,1024640,"README.md",3163,0,"",markdown,selection_keyboard +2102,1024734,"README.md",3163,0,"t",markdown,content +2103,1024734,"README.md",3164,0,"",markdown,selection_keyboard +2104,1024775,"README.md",3164,0,"o",markdown,content +2105,1024776,"README.md",3165,0,"",markdown,selection_keyboard +2106,1024909,"README.md",3165,0," ",markdown,content +2107,1024910,"README.md",3166,0,"",markdown,selection_keyboard +2108,1026418,"README.md",3166,0,"h",markdown,content +2109,1026419,"README.md",3167,0,"",markdown,selection_keyboard +2110,1026466,"README.md",3167,0,"e",markdown,content +2111,1026467,"README.md",3168,0,"",markdown,selection_keyboard +2112,1026542,"README.md",3168,0,"a",markdown,content +2113,1026542,"README.md",3169,0,"",markdown,selection_keyboard +2114,1026594,"README.md",3169,0,"r",markdown,content +2115,1026594,"README.md",3170,0,"",markdown,selection_keyboard +2116,1026634,"README.md",3170,0," ",markdown,content +2117,1026634,"README.md",3171,0,"",markdown,selection_keyboard +2118,1026751,"README.md",3171,0,"y",markdown,content +2119,1026751,"README.md",3172,0,"",markdown,selection_keyboard +2120,1026848,"README.md",3172,0,"o",markdown,content +2121,1026849,"README.md",3173,0,"",markdown,selection_keyboard +2122,1026922,"README.md",3173,0,"u",markdown,content +2123,1026922,"README.md",3174,0,"",markdown,selection_keyboard +2124,1026971,"README.md",3174,0,"r",markdown,content +2125,1026971,"README.md",3175,0,"",markdown,selection_keyboard +2126,1027064,"README.md",3175,0," ",markdown,content +2127,1027221,"README.md",3176,0,"f",markdown,content +2128,1027222,"README.md",3177,0,"",markdown,selection_keyboard +2129,1027321,"README.md",3177,0,"e",markdown,content +2130,1027321,"README.md",3178,0,"",markdown,selection_keyboard +2131,1027460,"README.md",3178,0,"e",markdown,content +2132,1027461,"README.md",3179,0,"",markdown,selection_keyboard +2133,1027518,"README.md",3179,0,"d",markdown,content +2134,1027518,"README.md",3180,0,"",markdown,selection_keyboard +2135,1027640,"README.md",3180,0,"b",markdown,content +2136,1027641,"README.md",3181,0,"",markdown,selection_keyboard +2137,1028040,"README.md",3181,0,"a",markdown,content +2138,1028041,"README.md",3182,0,"",markdown,selection_keyboard +2139,1028078,"README.md",3182,0,"c",markdown,content +2140,1028078,"README.md",3183,0,"",markdown,selection_keyboard +2141,1028182,"README.md",3183,0,"k",markdown,content +2142,1028183,"README.md",3184,0,"",markdown,selection_keyboard +2143,1028311,"README.md",3184,0,".",markdown,content +2144,1028311,"README.md",3185,0,"",markdown,selection_keyboard +2145,1028441,"README.md",3184,0,"",markdown,selection_command +2146,1029418,"README.md",3186,0,"",markdown,selection_command +2147,1029579,"README.md",3184,0,"",markdown,selection_command +2148,1029837,"README.md",2889,0,"",markdown,selection_command +2149,1029867,"README.md",2887,0,"",markdown,selection_command +2150,1029895,"README.md",2687,0,"",markdown,selection_command +2151,1029924,"README.md",2685,0,"",markdown,selection_command +2152,1029957,"README.md",2672,0,"",markdown,selection_command +2153,1030283,"README.md",2685,0,"",markdown,selection_command +2154,1030451,"README.md",2687,0,"",markdown,selection_command +2155,1031058,"README.md",2887,0,"",markdown,selection_command +2156,1031227,"README.md",2688,200,"We ask for your consent in participating in crowd-sourcing upon installation of the extension. You can always revoke your participation, after which your recorded data will solely be stored on-device.",markdown,selection_command +2157,1038436,"README.md",2887,0,"",markdown,selection_command +2158,1038652,"README.md",2881,0,"",markdown,selection_command +2159,1039010,"README.md",2880,0,"",markdown,selection_command +2160,1040347,"README.md",2886,0,"",markdown,selection_command +2161,1042343,"README.md",2881,0,"",markdown,selection_command +2162,1042550,"README.md",2880,0,"",markdown,selection_command +2163,1042903,"README.md",2878,0,"",markdown,selection_command +2164,1043577,"README.md",2879,0,"",markdown,selection_command +2165,1043763,"README.md",2880,0,"",markdown,selection_command +2166,1044190,"README.md",2886,0,"",markdown,selection_command +2167,1044624,"README.md",2887,0,"",markdown,selection_command +2168,1044809,"README.md",2887,0,",",markdown,content +2169,1044810,"README.md",2888,0,"",markdown,selection_keyboard +2170,1044899,"README.md",2888,0," ",markdown,content +2171,1044900,"README.md",2889,0,"",markdown,selection_keyboard +2172,1044983,"README.md",2889,0,"a",markdown,content +2173,1044984,"README.md",2890,0,"",markdown,selection_keyboard +2174,1045094,"README.md",2890,0,"n",markdown,content +2175,1045095,"README.md",2891,0,"",markdown,selection_keyboard +2176,1045172,"README.md",2891,0,"d",markdown,content +2177,1045172,"README.md",2892,0,"",markdown,selection_keyboard +2178,1045239,"README.md",2892,0," ",markdown,content +2179,1045240,"README.md",2893,0,"",markdown,selection_keyboard +2180,1045592,"README.md",2893,0,"n",markdown,content +2181,1045592,"README.md",2894,0,"",markdown,selection_keyboard +2182,1045660,"README.md",2894,0,"o",markdown,content +2183,1045661,"README.md",2895,0,"",markdown,selection_keyboard +2184,1045778,"README.md",2895,0,"t",markdown,content +2185,1045779,"README.md",2896,0,"",markdown,selection_keyboard +2186,1045808,"README.md",2896,0," ",markdown,content +2187,1045809,"README.md",2897,0,"",markdown,selection_keyboard +2188,1046501,"README.md",2893,4,"",markdown,content +2189,1046680,"README.md",2889,4,"",markdown,content +2190,1047014,"README.md",2888,1,"",markdown,content +2191,1047166,"README.md",2887,1,"",markdown,content +2192,1047534,"README.md",2886,0,"",markdown,selection_command +2193,1048265,"README.md",2881,0,"",markdown,selection_command +2194,1048432,"README.md",2880,0,"",markdown,selection_command +2195,1048842,"README.md",2878,0,"",markdown,selection_command +2196,1049096,"README.md",2871,0,"",markdown,selection_command +2197,1049119,"README.md",2868,0,"",markdown,selection_command +2198,1049151,"README.md",2861,0,"",markdown,selection_command +2199,1049185,"README.md",2856,0,"",markdown,selection_command +2200,1049217,"README.md",2851,0,"",markdown,selection_command +2201,1049248,"README.md",2842,0,"",markdown,selection_command +2202,1049548,"README.md",2851,0,"",markdown,selection_command +2203,1049797,"README.md",2856,0,"",markdown,selection_command +2204,1050024,"README.md",2861,0,"",markdown,selection_command +2205,1050226,"README.md",2868,0,"",markdown,selection_command +2206,1050435,"README.md",2871,0,"",markdown,selection_command +2207,1050867,"README.md",2878,0,"",markdown,selection_command +2208,1051330,"README.md",2878,1,"o",markdown,selection_command +2209,1051406,"README.md",2878,2,"on",markdown,selection_command +2210,1051554,"README.md",2878,3,"on-",markdown,selection_command +2211,1051976,"README.md",2878,9,"on-device",markdown,selection_command +2212,1052227,"README.md",2878,9,"",markdown,content +2213,1052489,"README.md",2878,0,"o",markdown,content +2214,1052490,"README.md",2879,0,"",markdown,selection_keyboard +2215,1052558,"README.md",2879,0,"n",markdown,content +2216,1052641,"README.md",2880,0," ",markdown,content +2217,1052641,"README.md",2881,0,"",markdown,selection_keyboard +2218,1052794,"README.md",2881,0,"y",markdown,content +2219,1052794,"README.md",2882,0,"",markdown,selection_keyboard +2220,1052922,"README.md",2882,0,"o",markdown,content +2221,1052922,"README.md",2883,0,"",markdown,selection_keyboard +2222,1053000,"README.md",2883,0,"u",markdown,content +2223,1053001,"README.md",2884,0,"",markdown,selection_keyboard +2224,1053081,"README.md",2884,0,"r",markdown,content +2225,1053081,"README.md",2885,0,"",markdown,selection_keyboard +2226,1053145,"README.md",2885,0," ",markdown,content +2227,1053145,"README.md",2886,0,"",markdown,selection_keyboard +2228,1053282,"README.md",2886,0,"d",markdown,content +2229,1053283,"README.md",2887,0,"",markdown,selection_keyboard +2230,1053439,"README.md",2887,0,"e",markdown,content +2231,1053439,"README.md",2888,0,"",markdown,selection_keyboard +2232,1053525,"README.md",2888,0,"v",markdown,content +2233,1053526,"README.md",2889,0,"",markdown,selection_keyboard +2234,1053635,"README.md",2889,0,"i",markdown,content +2235,1053635,"README.md",2890,0,"",markdown,selection_keyboard +2236,1053724,"README.md",2890,0,"c",markdown,content +2237,1053724,"README.md",2891,0,"",markdown,selection_keyboard +2238,1053769,"README.md",2891,0,"e",markdown,content +2239,1053769,"README.md",2892,0,"",markdown,selection_keyboard +2240,1054052,"README.md",2891,0,"",markdown,selection_command +2241,1054241,"README.md",2688,0,"",markdown,selection_command +2242,1055630,"README.md",2691,0,"",markdown,selection_command +2243,1055879,"README.md",2695,0,"",markdown,selection_command +2244,1055908,"README.md",2699,0,"",markdown,selection_command +2245,1055939,"README.md",2704,0,"",markdown,selection_command +2246,1055971,"README.md",2712,0,"",markdown,selection_command +2247,1056004,"README.md",2715,0,"",markdown,selection_command +2248,1056038,"README.md",2729,0,"",markdown,selection_command +2249,1056071,"README.md",2732,0,"",markdown,selection_command +2250,1056105,"README.md",2737,0,"",markdown,selection_command +2251,1056139,"README.md",2738,0,"",markdown,selection_command +2252,1056172,"README.md",2747,0,"",markdown,selection_command +2253,1056206,"README.md",2752,0,"",markdown,selection_command +2254,1056241,"README.md",2765,0,"",markdown,selection_command +2255,1056273,"README.md",2768,0,"",markdown,selection_command +2256,1056307,"README.md",2772,0,"",markdown,selection_command +2257,1056340,"README.md",2781,0,"",markdown,selection_command +2258,1056374,"README.md",2783,0,"",markdown,selection_command +2259,1056407,"README.md",2787,0,"",markdown,selection_command +2260,1056440,"README.md",2791,0,"",markdown,selection_command +2261,1056474,"README.md",2798,0,"",markdown,selection_command +2262,1056507,"README.md",2805,0,"",markdown,selection_command +2263,1056540,"README.md",2810,0,"",markdown,selection_command +2264,1056789,"README.md",2823,0,"",markdown,selection_command +2265,1057040,"README.md",2825,0,"",markdown,selection_command +2266,1057067,"README.md",2831,0,"",markdown,selection_command +2267,1057101,"README.md",2837,0,"",markdown,selection_command +2268,1057133,"README.md",2842,0,"",markdown,selection_command +2269,1057166,"README.md",2851,0,"",markdown,selection_command +2270,1057196,"README.md",2856,0,"",markdown,selection_command +2271,1057231,"README.md",2861,0,"",markdown,selection_command +2272,1057264,"README.md",2868,0,"",markdown,selection_command +2273,1057298,"README.md",2871,0,"",markdown,selection_command +2274,1057332,"README.md",2878,0,"",markdown,selection_command +2275,1057366,"README.md",2881,0,"",markdown,selection_command +2276,1057649,"README.md",2886,0,"",markdown,selection_command +2277,1057819,"README.md",2892,0,"",markdown,selection_command +2278,1058206,"README.md",2894,0,"",markdown,selection_command +2279,1058508,"README.md",2895,0,"",markdown,selection_command +2280,1059051,"README.md",2900,0,"",markdown,selection_command +2281,1059305,"README.md",2906,0,"",markdown,selection_command +2282,1059333,"README.md",2912,0,"",markdown,selection_command +2283,1059368,"README.md",2914,0,"",markdown,selection_command +2284,1059400,"README.md",2918,0,"",markdown,selection_command +2285,1059433,"README.md",2921,0,"",markdown,selection_command +2286,1059466,"README.md",2923,0,"",markdown,selection_command +2287,1059496,"README.md",2925,0,"",markdown,selection_command +2288,1059527,"README.md",2929,0,"",markdown,selection_command +2289,1059848,"README.md",2932,0,"",markdown,selection_command +2290,1060104,"README.md",2937,0,"",markdown,selection_command +2291,1060128,"README.md",2942,0,"",markdown,selection_command +2292,1060164,"README.md",2948,0,"",markdown,selection_command +2293,1060194,"README.md",2953,0,"",markdown,selection_command +2294,1061235,"README.md",2956,0,"",markdown,selection_command +2295,1061487,"README.md",2968,0,"",markdown,selection_command +2296,1061515,"README.md",2972,0,"",markdown,selection_command +2297,1061544,"README.md",2980,0,"",markdown,selection_command +2298,1061575,"README.md",2987,0,"",markdown,selection_command +2299,1061778,"README.md",2995,0,"",markdown,selection_command +2300,1062326,"README.md",2998,0,"",markdown,selection_command +2301,1062582,"README.md",3001,0,"",markdown,selection_command +2302,1062772,"README.md",3005,0,"",markdown,selection_command +2303,1063001,"README.md",3014,0,"",markdown,selection_command +2304,1063182,"README.md",3023,0,"",markdown,selection_command +2305,1063441,"README.md",3025,0,"",markdown,selection_command +2306,1063618,"README.md",3028,0,"",markdown,selection_command +2307,1063877,"README.md",3032,0,"",markdown,selection_command +2308,1063900,"README.md",3037,0,"",markdown,selection_command +2309,1063931,"README.md",3041,0,"",markdown,selection_command +2310,1063963,"README.md",3043,0,"",markdown,selection_command +2311,1063998,"README.md",3046,0,"",markdown,selection_command +2312,1064205,"README.md",3053,0,"",markdown,selection_command +2313,1064459,"README.md",3057,0,"",markdown,selection_command +2314,1064489,"README.md",3066,0,"",markdown,selection_command +2315,1064523,"README.md",3078,0,"",markdown,selection_command +2316,1064554,"README.md",3080,0,"",markdown,selection_command +2317,1064587,"README.md",3083,0,"",markdown,selection_command +2318,1065312,"README.md",3080,0,"",markdown,selection_command +2319,1065492,"README.md",3078,0,"",markdown,selection_command +2320,1065646,"README.md",3066,0,"",markdown,selection_command +2321,1065787,"README.md",3057,0,"",markdown,selection_command +2322,1065955,"README.md",3053,0,"",markdown,selection_command +2323,1066120,"README.md",3046,0,"",markdown,selection_command +2324,1066268,"README.md",3043,0,"",markdown,selection_command +2325,1066317,"README.md",3046,0,"",markdown,selection_command +2326,1066632,"README.md",3053,0,"",markdown,selection_command +2327,1066856,"README.md",3057,0,"",markdown,selection_command +2328,1067084,"README.md",3066,0,"",markdown,selection_command +2329,1067242,"README.md",3078,0,"",markdown,selection_command +2330,1067946,"README.md",3080,0,"",markdown,selection_command +2331,1068605,"README.md",3083,0,"",markdown,selection_command +2332,1068821,"README.md",3087,0,"",markdown,selection_command +2333,1069197,"README.md",3092,0,"",markdown,selection_command +2334,1069373,"README.md",3103,0,"",markdown,selection_command +2335,1069955,"README.md",3092,0,"",markdown,selection_command +2336,1070191,"README.md",3101,0,"",markdown,selection_command +2337,1070362,"README.md",3102,0,"",markdown,selection_command +2338,1070507,"README.md",3102,0,"s",markdown,content +2339,1070507,"README.md",3103,0,"",markdown,selection_keyboard +2340,1070869,"README.md",3102,0,"",markdown,selection_command +2341,1071884,"README.md",3092,0,"",markdown,selection_command +2342,1072048,"README.md",3087,0,"",markdown,selection_command +2343,1072200,"README.md",3083,0,"",markdown,selection_command +2344,1072348,"README.md",3080,0,"",markdown,selection_command +2345,1072486,"README.md",3078,0,"",markdown,selection_command +2346,1072689,"README.md",3080,0,"",markdown,selection_command +2347,1072947,"README.md",3083,0,"",markdown,selection_command +2348,1072978,"README.md",3087,0,"",markdown,selection_command +2349,1073151,"README.md",3092,0,"",markdown,selection_command +2350,1073405,"README.md",3104,0,"",markdown,selection_command +2351,1073435,"README.md",3107,0,"",markdown,selection_command +2352,1073467,"README.md",3111,0,"",markdown,selection_command +2353,1073499,"README.md",3114,0,"",markdown,selection_command +2354,1074125,"README.md",3118,0,"",markdown,selection_command +2355,1074333,"README.md",3126,0,"",markdown,selection_command +2356,1074594,"README.md",3130,0,"",markdown,selection_command +2357,1074900,"README.md",3134,0,"",markdown,selection_command +2358,1075114,"README.md",3135,0,"",markdown,selection_command +2359,1075280,"README.md",3143,0,"",markdown,selection_command +2360,1075728,"README.md",3144,0,"",markdown,selection_command +2361,1075828,"README.md",3144,0," ",markdown,content +2362,1075829,"README.md",3145,0,"",markdown,selection_keyboard +2363,1075950,"README.md",3145,0,"s",markdown,content +2364,1075950,"README.md",3146,0,"",markdown,selection_keyboard +2365,1076104,"README.md",3146,0,"e",markdown,content +2366,1076104,"README.md",3147,0,"",markdown,selection_keyboard +2367,1076188,"README.md",3147,0,"t",markdown,content +2368,1076188,"README.md",3148,0,"",markdown,selection_keyboard +2369,1076355,"README.md",3148,0,"t",markdown,content +2370,1076355,"README.md",3149,0,"",markdown,selection_keyboard +2371,1076472,"README.md",3149,0,"i",markdown,content +2372,1076472,"README.md",3150,0,"",markdown,selection_keyboard +2373,1076550,"README.md",3150,0,"n",markdown,content +2374,1076550,"README.md",3151,0,"",markdown,selection_keyboard +2375,1076606,"README.md",3151,0,"g",markdown,content +2376,1076607,"README.md",3152,0,"",markdown,selection_keyboard +2377,1076877,"README.md",3151,0,"",markdown,selection_command +2378,1077854,"README.md",3145,0,"",markdown,selection_command +2379,1078113,"README.md",3136,0,"",markdown,selection_command +2380,1078134,"README.md",3135,0,"",markdown,selection_command +2381,1078168,"README.md",3130,0,"",markdown,selection_command +2382,1078200,"README.md",3126,0,"",markdown,selection_command +2383,1078238,"README.md",3118,0,"",markdown,selection_command +2384,1078272,"README.md",3114,0,"",markdown,selection_command +2385,1078304,"README.md",3111,0,"",markdown,selection_command +2386,1078338,"README.md",3107,0,"",markdown,selection_command +2387,1078371,"README.md",3104,0,"",markdown,selection_command +2388,1078405,"README.md",3092,0,"",markdown,selection_command +2389,1078438,"README.md",3087,0,"",markdown,selection_command +2390,1078468,"README.md",3083,0,"",markdown,selection_command +2391,1078499,"README.md",3080,0,"",markdown,selection_command +2392,1078676,"README.md",3078,0,"",markdown,selection_command +2393,1079543,"README.md",3080,0,"",markdown,selection_command +2394,1080156,"README.md",3083,0,"",markdown,selection_command +2395,1080981,"README.md",3087,0,"",markdown,selection_command +2396,1081197,"README.md",3092,0,"",markdown,selection_command +2397,1081448,"README.md",3104,0,"",markdown,selection_command +2398,1081482,"README.md",3107,0,"",markdown,selection_command +2399,1081509,"README.md",3111,0,"",markdown,selection_command +2400,1081540,"README.md",3114,0,"",markdown,selection_command +2401,1081722,"README.md",3118,0,"",markdown,selection_command +2402,1081980,"README.md",3126,0,"",markdown,selection_command +2403,1082179,"README.md",3130,0,"",markdown,selection_command +2404,1082827,"README.md",3126,0,"",markdown,selection_command +2405,1082958,"README.md",3130,0,"",markdown,selection_command +2406,1083204,"README.md",3135,0,"",markdown,selection_command +2407,1083408,"README.md",3136,0,"",markdown,selection_command +2408,1083619,"README.md",3145,0,"",markdown,selection_command +2409,53772988,"README.md",2895,0,"",markdown,selection_command +2410,53773408,"README.md",2894,0,"",markdown,selection_command +2411,53773538,"README.md",2688,0,"",markdown,selection_command +2412,53773673,"README.md",2687,0,"",markdown,selection_command +2413,53773823,"README.md",2673,0,"",markdown,selection_command +2414,53774021,"README.md",2687,0,"",markdown,selection_command +2415,53774212,"README.md",2688,0,"",markdown,selection_command +2416,53778650,"README.md",2894,0,"",markdown,selection_command +2417,53779151,"README.md",2688,0,"",markdown,selection_command +2418,53780396,"README.md",2894,0,"",markdown,selection_command +2419,53780933,"README.md",2895,0,"",markdown,selection_command +2420,53785618,"README.md",3200,0,"",markdown,selection_command +2421,53786103,"README.md",2895,0,"",markdown,selection_command +2422,53791276,"README.md",3200,0,"",markdown,selection_command +2423,53796843,"README.md",0,0,"",markdown,tab +2424,53796854,"README.md",916,0,"",markdown,selection_command +2425,53800978,".vscode/tasks.json",0,0,"",jsonc,tab +2426,53801019,".vscode/tasks.json",730,0,"",jsonc,selection_command +2427,53802018,"README.md",0,0,"",markdown,tab +2428,53802055,"README.md",916,0,"",markdown,selection_command +2429,53814207,"README.md",943,0,"",markdown,selection_mouse +2430,53814209,"README.md",942,0,"",markdown,selection_command +2431,53815708,"README.md",2679,0,"",markdown,selection_command +2432,54849678,"README.md",0,0,"",markdown,tab +2433,54851253,"l10n/bundle.l10n.it.json",0,0,"{\n ""Reset to default"": ""Ripristina predefinito"",\n ""Open Settings"": ""Apri Impostazioni"",\n ""Cancel"": ""Annulla"",\n ""No export path specified"": ""Nessun percorso di esportazione specificato"",\n ""error.workspaceFolderNotFound"": ""Nessuna cartella workspace trovata"",\n ""Export path does not exist"": ""Il percorso di esportazione non esiste"",\n ""No active text editor"": ""Nessun editor di testo attivo"",\n ""Already recording"": ""Registrazione già in corso"",\n ""Recording started"": ""Registrazione avviata"",\n ""Not recording"": ""Nessuna registrazione in corso"",\n ""Recording cancelled"": ""Registrazione annullata"",\n ""Recording finished"": ""Registrazione terminata"",\n ""No export formats specified"": ""Nessun formato di esportazione specificato"",\n ""No workspace folder found. To process the recording is needed a workspace folder"": ""Nessuna cartella workspace trovata. Per elaborare la registrazione è necessaria una cartella workspace"",\n ""Recording date time is not properly set"": ""Data e ora della registrazione non impostati correttamente"",\n ""Current time: {0}"": ""Tempo corrente: {0}"",\n ""Stop Recording"": ""Ferma Registrazione"",\n ""Start Recording"": ""Avvia Registrazione"",\n ""Activating crowd-code"": ""Attivazione crowd-code"",\n ""Deactivating crowd-code"": ""Disattivazione crowd-code"",\n ""Current File: {fileName}"": ""File corrente: {fileName}"",\n ""command.deleteRecordFile.title"": ""Elimina"",\n ""command.revealInExplorer.title"": ""Mostra in Esplora File"",\n ""Are you sure you want to delete {name}?"": ""Sei sicuro di voler eliminare {name}?"",\n ""Yes"": ""Si"",\n ""No"": ""No"",\n ""config.askFolderName.description"": ""Chiedi un nome personalizzato per la cartella prima di iniziare una registrazione"",\n ""Enter recording folder name"": ""Inserisci nome cartella registrazione"",\n ""Enter a name for the recording folder"": ""Inserisci un nome per la cartella di registrazione"",\n ""displayName"": ""crowd-code"",\n ""description"": ""Registra la tua attività di editing del codice in VS Code"",\n ""command.startRecording.title"": ""Inizia Registrazione"",\n ""command.stopRecording.title"": ""Ferma Registrazione"",\n ""command.openSettings.title"": ""Apri Impostazioni"",\n ""config.title"": ""Configurazione crowd-code"",\n ""config.exportPath.description"": ""Percorso dove le registrazioni saranno esportate. Usa '${workspaceFolder}' per riferirti alla cartella di lavoro."",\n ""config.createPathOutsideWorkspace.description"": ""Se creare il percorso di esportazione se non esiste, anche se è fuori dalla cartella di lavoro."",\n ""config.exportFormats.description"": ""Formati in cui esportare la registrazione."",\n ""config.minimalMode.description"": ""Se mostrare solo l'icona nella barra di stato quando la registrazione è ferma."",\n ""config.showTimer.description"": ""Se mostrare il timer nella barra di stato quando si registra."",\n ""view.recordFiles.name"": ""File di registrazione"",\n ""view.recordFiles.contextualTitle"": ""File di registrazione"",\n ""view.actions.name"": ""Azioni"",\n ""view.actions.contextualTitle"": ""Azioni"",\n ""Add to .gitignore"": ""Aggiungi a .gitignore"",\n ""Export path already in .gitignore"": ""Percorso di esportazione già in .gitignore"",\n ""Error updating .gitignore"": ""Errore durante l'aggiornamento di .gitignore"",\n ""Data Collection Consent"": ""Consenso alla Raccolta Dati"",\n\t""Data collection consent message"": ""Questa estensione può raccogliere dati di codifica anonimi per aiutare a migliorare gli strumenti per sviluppatori e la ricerca. I tuoi dati verranno archiviati localmente e potranno essere condivisi con i ricercatori se acconsenti.\n\nQuesti dati includono:\n• I tuoi schemi di codifica e le modifiche ai file\n• L'utilizzo del linguaggio di programmazione\n• La durata delle tue sessioni di codifica\n\nI tuoi dati sono anonimi e non contengono informazioni personali.\n\nDesideri partecipare a questa raccolta dati?"",\n\t""Consent to data collection"": ""Sì, acconsento alla raccolta dati"",\n\t""Decline data collection"": ""No, archivia i dati solo localmente"",\n\t""Learn more about data collection"": ""Scopri di più"",\n\t""Data collection enabled"": ""Raccolta dati: Abilitata"",\n\t""Data collection disabled"": ""Raccolta dati: Disabilitata"",\n\t""Data collection pending"": ""Raccolta dati: In attesa di consenso"",\n\t""Enable data collection"": ""Abilita raccolta dati"",\n\t""Disable data collection"": ""Disabilita raccolta dati"",\n\t""Data collection preference updated"": ""Preferenza raccolta dati aggiornata""\n}",json,tab +2434,54854219,"l10n/bundle.l10n.json",0,0,"{\n ""Reset to default"": ""Reset to default"",\n ""Open Settings"": ""Open Settings"",\n ""Cancel"": ""Cancel"",\n ""No export path specified"": ""No export path specified"",\n ""error.workspaceFolderNotFound"": ""error.workspaceFolderNotFound"",\n ""Export path does not exist"": ""Export path does not exist"",\n ""No active text editor"": ""No active text editor"",\n ""Already recording"": ""Already recording"",\n ""Recording started"": ""Recording started"",\n ""Not recording"": ""Not recording"",\n ""Recording cancelled"": ""Recording cancelled"",\n ""Recording finished"": ""Recording finished"",\n ""No export formats specified"": ""No export formats specified"",\n ""No workspace folder found. To process the recording is needed a workspace folder"": ""No workspace folder found. To process the recording is needed a workspace folder"",\n ""Recording date time is not properly set"": ""Recording date time is not properly set"",\n ""Current time: {0}"": ""Current time: {0}"",\n ""Stop Recording"": ""Stop Recording"",\n ""Start Recording"": ""Start Recording"",\n ""Activating crowd-code"": ""Activating crowd-code"",\n ""Deactivating crowd-code"": ""Deactivating crowd-code"",\n ""Current File: {fileName}"": ""Current File: {fileName}"",\n ""command.deleteRecordFile.title"": ""Delete"",\n ""command.revealInExplorer.title"": ""Reveal in File Explorer"",\n ""Are you sure you want to delete {name}?"": ""Are you sure you want to delete {name}?"",\n ""Yes"": ""Yes"",\n ""No"": ""No"",\n ""config.askFolderName.description"": ""Ask for a custom folder name before starting a recording"",\n ""Enter recording folder name"": ""Enter recording folder name"",\n ""Enter a name for the recording folder"": ""Enter a name for the recording folder"",\n ""Add to .gitignore"": ""Add to .gitignore"",\n ""Export path already in .gitignore"": ""Export path already in .gitignore"",\n ""Error updating .gitignore"": ""Error updating .gitignore"",\n ""Data Collection Consent"": ""Data Collection Consent"",\n ""Data collection consent message"": ""crowd-code can collect anonymous coding data to help improve developer tools and research. Your data will be stored locally and may be shared with researchers if you consent.\n\nThis data includes:\n• Your coding patterns and file changes\n• Programming language usage\n• Timing of your coding sessions\n\nYour data is anonymized and does not contain personal information.\n\nWould you like to participate in this data collection?"",\n ""Consent to data collection"": ""Yes, I consent to data collection"",\n ""Decline data collection"": ""No, store data locally only"",\n ""Learn more about data collection"": ""Learn More"",\n ""Data collection enabled"": ""Data collection: Enabled"",\n ""Data collection disabled"": ""Data collection: Disabled"",\n ""Data collection pending"": ""Data collection: Pending consent"",\n ""Enable data collection"": ""Enable data collection"",\n ""Disable data collection"": ""Disable data collection"",\n ""Data collection preference updated"": ""Data collection preference updated""\n}",json,tab +2435,54855219,"l10n/bundle.l10n.json",0,0,"",json,selection_command +2436,54856131,"l10n/bundle.l10n.json",1172,0,"",json,selection_command +2437,54856339,"l10n/bundle.l10n.json",2899,0,"",json,selection_command +2438,54863671,"l10n/bundle.l10n.it.json",0,0,"",json,tab +2439,54865068,"l10n/bundle.l10n.it.json",0,0,"",json,selection_command +2440,54865374,"l10n/bundle.l10n.it.json",1337,0,"",json,selection_command +2441,54865505,"l10n/bundle.l10n.it.json",2929,0,"",json,selection_command +2442,54865654,"l10n/bundle.l10n.it.json",4359,0,"",json,selection_command +2443,54908234,"l10n/bundle.l10n.it.json",3104,1255," ""Error updating .gitignore"": ""Errore durante l'aggiornamento di .gitignore""\n",json,content +2444,54919142,"src/recording.ts",0,0,"",typescript,tab +2445,64106876,"src/recording.ts",863,0," panicButton: 'vs-code-recorder.panicButton',\n",typescript,content +2446,64116161,"src/recording.ts",21144,0,"\n\n/**\n * Deletes the last 10 seconds of recording data from the CSV file.\n * This is a ""panic button"" feature that allows users to quickly remove recent sensitive data.\n */\nexport async function panicButton(): Promise {\n if (!recording.isRecording) {\n vscode.window.showWarningMessage(vscode.l10n.t('No active recording to panic'))\n logToOutput(vscode.l10n.t('No active recording to panic'), 'warning')\n return\n }\n\n if (!recording.startDateTime) {\n vscode.window.showErrorMessage(vscode.l10n.t('Recording start time not available'))\n logToOutput(vscode.l10n.t('Recording start time not available'), 'error')\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n vscode.window.showErrorMessage(vscode.l10n.t('Export path not available'))\n logToOutput(vscode.l10n.t('Export path not available'), 'error')\n return\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n vscode.window.showErrorMessage(vscode.l10n.t('Could not generate file path'))\n logToOutput(vscode.l10n.t('Could not generate file path'), 'error')\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`)\n \n try {\n // Check if file exists\n if (!fs.existsSync(filePath)) {\n vscode.window.showWarningMessage(vscode.l10n.t('No recording file found to panic'))\n logToOutput(vscode.l10n.t('No recording file found to panic'), 'warning')\n return\n }\n\n // Read the current file content\n const fileContent = await fs.promises.readFile(filePath, 'utf-8')\n const lines = fileContent.split('\n')\n \n if (lines.length <= 1) {\n vscode.window.showWarningMessage(vscode.l10n.t('Recording file is empty'))\n logToOutput(vscode.l10n.t('Recording file is empty'), 'warning')\n return\n }\n\n // Calculate the cutoff time (10 seconds ago from now)\n const now = new Date().getTime()\n const cutoffTime = now - recording.startDateTime.getTime() - 10000 // 10 seconds in milliseconds\n\n // Keep the header line and filter out lines from the last 10 seconds\n const headerLine = lines[0]\n const dataLines = lines.slice(1).filter(line => {\n if (!line.trim()) return false // Skip empty lines\n \n const lineArr = line.split(/,(?=(?:[^""]*""[^""]*"")*[^""]*$)/)\n if (lineArr.length < 2) return false // Skip malformed lines\n \n const timeStr = lineArr[1]\n const time = parseInt(timeStr, 10)\n \n if (isNaN(time)) return false // Skip lines with invalid time\n \n return time <= cutoffTime\n })\n\n // Rewrite the file with filtered content\n const newContent = [headerLine, ...dataLines].join('\n')\n await fs.promises.writeFile(filePath, newContent, 'utf-8')\n\n // Update the sequence number to reflect the removed entries\n const removedLines = lines.length - dataLines.length - 1 // -1 for header\n if (removedLines > 0) {\n recording.sequence = Math.max(0, recording.sequence - removedLines)\n }\n\n vscode.window.showInformationMessage(vscode.l10n.t('Panic button activated: Removed last 10 seconds of recording'))\n logToOutput(vscode.l10n.t('Panic button activated: Removed last 10 seconds of recording'), 'info')\n\n } catch (error) {\n const errorMessage = `Error during panic button operation: ${error}`\n vscode.window.showErrorMessage(errorMessage)\n logToOutput(errorMessage, 'error')\n }\n}",typescript,content +2447,64123575,"src/recording.ts",21492,1632," logToOutput(vscode.l10n.t('No active recording to panic'), 'info')\n return\n }\n\n if (!recording.startDateTime) {\n vscode.window.showErrorMessage(vscode.l10n.t('Recording start time not available'))\n logToOutput(vscode.l10n.t('Recording start time not available'), 'error')\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n vscode.window.showErrorMessage(vscode.l10n.t('Export path not available'))\n logToOutput(vscode.l10n.t('Export path not available'), 'error')\n return\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n vscode.window.showErrorMessage(vscode.l10n.t('Could not generate file path'))\n logToOutput(vscode.l10n.t('Could not generate file path'), 'error')\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`)\n \n try {\n // Check if file exists\n if (!fs.existsSync(filePath)) {\n vscode.window.showWarningMessage(vscode.l10n.t('No recording file found to panic'))\n logToOutput(vscode.l10n.t('No recording file found to panic'), 'info')\n return\n }\n\n // Read the current file content\n const fileContent = await fs.promises.readFile(filePath, 'utf-8')\n const lines = fileContent.split('\n')\n \n if (lines.length <= 1) {\n vscode.window.showWarningMessage(vscode.l10n.t('Recording file is empty'))\n logToOutput(vscode.l10n.t('Recording file is empty'), 'info')\n",typescript,content +2448,64132220,"src/recording.ts",21150,0," * Creates and updates the panic button status bar item.\n */\nexport function updatePanicButton(): void {\n if (!recording.isRecording) {\n // Hide panic button when not recording\n if (global.panicStatusBarItem) {\n global.panicStatusBarItem.hide()\n }\n return\n }\n\n // Create panic button if it doesn't exist\n if (!global.panicStatusBarItem) {\n global.panicStatusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 8999) // Position it to the left of the recording button\n extContext.subscriptions.push(global.panicStatusBarItem)\n }\n\n global.panicStatusBarItem.text = '$(alert)'\n global.panicStatusBarItem.tooltip = vscode.l10n.t('Panic Button: Delete last 10 seconds of recording')\n global.panicStatusBarItem.command = commands.panicButton\n global.panicStatusBarItem.show()\n}\n\n/**\n",typescript,content +2449,64143568,"src/recording.ts",1290,20735,"let panicStatusBarItem: vscode.StatusBarItem | undefined;\n\nconst API_GATEWAY_URL = 'https://knm3fmbwbi.execute-api.us-east-1.amazonaws.com/v1/recordings';\n\n\n/**\n * Builds a CSV row with the given parameters.\n *\n * @param {CSVRowBuilder} sequence - The sequence number of the change.\n * @param {CSVRowBuilder} rangeOffset - The offset of the changed range.\n * @param {CSVRowBuilder} rangeLength - The length of the changed range.\n * @param {CSVRowBuilder} text - The text of the change.\n * @param {string} type - The type of the change (optional, defaults to 'content').\n * @return {string} A CSV row string with the provided information.\n */\nexport function buildCsvRow({\n sequence,\n rangeOffset,\n rangeLength,\n text,\n type = ChangeType.CONTENT,\n}: CSVRowBuilder): string | undefined {\n if (!recording.startDateTime) {\n return\n }\n\n const time = new Date().getTime() - recording.startDateTime.getTime()\n\n if (type === ChangeType.HEADING) {\n return 'Sequence,Time,File,RangeOffset,RangeLength,Text,Language,Type\n'\n }\n\n if (type === ChangeType.TERMINAL_FOCUS || type === ChangeType.TERMINAL_COMMAND || type === ChangeType.TERMINAL_OUTPUT) {\n return `${sequence},${time},""TERMINAL"",${rangeOffset},${rangeLength},""${escapeString(text)}"",,${type}\n`\n }\n\n const editorFileName = getEditorFileName()\n return `${sequence},${time},""${editorFileName}"",${rangeOffset},${rangeLength},""${escapeString(text)}"",${getEditorLanguage()},${type}\n`\n}\n\n/**\n * Checks if the current file being edited is within the configured export path.\n * This is used to determine if the current file should be recorded or not.\n *\n * @returns {boolean} `true` if the current file is within the export path, `false` otherwise.\n */\nexport function isCurrentFileExported(): boolean {\n const editor = vscode.window.activeTextEditor\n const filename = editor?.document.fileName.replaceAll('\\', '/')\n const exportPath = getExportPath()\n if (!editor || !filename || !exportPath) {\n return false\n }\n return filename.startsWith(exportPath)\n}\n\nconst onChangeSubscription = vscode.workspace.onDidChangeTextDocument(event => {\n if (!recording.isRecording) {\n return\n }\n\n if (isCurrentFileExported()) {\n return\n }\n const editor = vscode.window.activeTextEditor\n if (editor && event.document === editor.document) {\n for (const change of event.contentChanges) {\n recording.sequence++\n addToFileQueue(\n buildCsvRow({\n sequence: recording.sequence,\n rangeOffset: change.rangeOffset,\n rangeLength: change.rangeLength,\n text: change.text,\n })\n )\n appendToFile()\n }\n }\n})\n\n/**\n * Creates the recording folder if it doesn't exist.\n * @param folderPath - The path to the recording folder.\n */\nfunction createRecordingFolder(folderPath: string): void {\n if (!fs.existsSync(folderPath)) {\n fs.mkdirSync(folderPath, { recursive: true })\n }\n}\n\n/**\n * Starts the recording process and initializes necessary variables.\n */\nexport async function startRecording(): Promise {\n if (!vscode.window.activeTextEditor) {\n vscode.window.showErrorMessage(vscode.l10n.t('No active text editor'))\n logToOutput(vscode.l10n.t('No active text editor'), 'info')\n return\n }\n if (recording.isRecording) {\n notificationWithProgress(vscode.l10n.t('Already recording'))\n logToOutput(vscode.l10n.t('Already recording'), 'info')\n return\n }\n const exportPath = getExportPath()\n if (!exportPath) {\n return\n }\n\n // If the setting is enabled and the path is inside the workspace, add it to .gitignore\n if (\n getConfig().get('export.addToGitignore') &&\n getConfig().get('export.exportPath')?.startsWith('${workspaceFolder}')\n ) {\n await addToGitignore()\n }\n\n recording.startDateTime = new Date()\n recording.activatedFiles = new Set()\n\n // Ask for folder name if enabled in settings\n let customFolderName: string | undefined\n if (getConfig().get('recording.askFolderName')) {\n customFolderName = await vscode.window.showInputBox({\n prompt: vscode.l10n.t('Enter a name for the recording folder'),\n placeHolder: vscode.l10n.t('Enter recording folder name'),\n })\n if (!customFolderName) {\n stopRecording(true)\n return\n }\n recording.customFolderName = customFolderName\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n stopRecording(true)\n return\n }\n\n // Create the recording folder\n const folderPath = path.dirname(path.join(exportPath, baseFilePath))\n createRecordingFolder(folderPath)\n\n recording.isRecording = true\n recording.timer = 0\n recording.endDateTime = null\n recording.sequence = 0\n intervalId = setInterval(() => {\n recording.timer++\n updateStatusBarItem()\n }, 1000)\n notificationWithProgress(vscode.l10n.t('Recording started'))\n logToOutput(vscode.l10n.t('Recording started'), 'info')\n\n const editorText = vscode.window.activeTextEditor?.document.getText()\n const activeEditorUri = vscode.window.activeTextEditor?.document.uri.toString()\n\n if (editorText !== undefined && activeEditorUri) {\n recording.sequence++\n const csvRow = {\n sequence: recording.sequence,\n rangeOffset: 0,\n rangeLength: 0,\n text: editorText,\n type: ChangeType.TAB,\n }\n addToFileQueue(buildCsvRow({ ...csvRow, type: ChangeType.HEADING }))\n addToFileQueue(buildCsvRow(csvRow))\n appendToFile()\n recording.activatedFiles.add(activeEditorUri)\n actionsProvider.setCurrentFile(vscode.window.activeTextEditor.document.fileName)\n }\n\n extContext.subscriptions.push(onChangeSubscription)\n updateStatusBarItem()\n actionsProvider.setRecordingState(true)\n\n // Set up a timer to send data to the Lambda endpoint periodically\n uploadIntervalId = setInterval(async () => {\n if (!exportPath) {\n return;\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`);\n const extensionVersion = extContext.extension.packageJSON.version as string;\n const userId = extContext.globalState.get('userId');\n\n try {\n const fileContent = await fs.promises.readFile(filePath, 'utf-8');\n\n if (fileContent) {\n const payload = {\n fileName: `${baseFilePath}.csv`,\n content: fileContent,\n version: extensionVersion,\n userId: userId\n };\n await axios.post(API_GATEWAY_URL, payload);\n console.log(`Successfully sent ${payload.fileName} to Lambda endpoint.`);\n }\n } catch (error: any) {\n if (error.code === 'ENOENT') {\n console.warn(`File not found at ${filePath}. It might be created on first write.`);\n } else {\n console.error(`Error sending data to Lambda: ${error.message}`);\n if (axios.isAxiosError(error) && error.response) {\n console.error(""Lambda response status:"", error.response.status);\n console.error(""Lambda response data:"", error.response.data);\n }\n }\n }\n }, 5 * 60 * 1000); // 5 minutes\n}\n\n/**\n * Stops the recording process and finalizes the recording data.\n * @param context - The extension context.\n */\nexport function stopRecording(force = false): Promise | void {\n if (!recording.isRecording) {\n notificationWithProgress(vscode.l10n.t('Not recording'))\n return\n }\n\n recording.isRecording = false\n clearInterval(intervalId)\n clearInterval(uploadIntervalId); // Clear the upload timer\n recording.timer = 0\n recording.activatedFiles?.clear()\n const index = extContext.subscriptions.indexOf(onChangeSubscription)\n if (index !== -1) {\n extContext.subscriptions.splice(index, 1)\n }\n updateStatusBarItem()\n actionsProvider.setRecordingState(false)\n if (force) {\n notificationWithProgress(vscode.l10n.t('Recording cancelled'))\n logToOutput(vscode.l10n.t('Recording cancelled'), 'info')\n recording.customFolderName = undefined\n return\n }\n notificationWithProgress(vscode.l10n.t('Recording finished'))\n logToOutput(vscode.l10n.t('Recording finished'), 'info')\n recording.endDateTime = new Date()\n return processCsvFile().then(() => {\n // Reset customFolderName after processing is complete\n recording.customFolderName = undefined\n }).catch(err => {\n logToOutput(vscode.l10n.t('Error processing CSV file during stop: {0}', String(err)), 'error')\n recording.customFolderName = undefined\n });\n}\n\n/**\n * Appends data from the file queue to the appropriate file in the workspace.\n */\nexport async function appendToFile(): Promise {\n if (isAppending) {\n return\n }\n isAppending = true\n\n const exportPath = getExportPath()\n if (!exportPath) {\n logToOutput('Export path not available in appendToFile, stopping recording.', 'error')\n stopRecording(true)\n isAppending = false\n return\n }\n\n while (fileQueue.length > 0) {\n const itemToAppend = fileQueue.shift()\n if (!itemToAppend) {\n continue\n }\n\n const filePath = path.join(exportPath, itemToAppend.name)\n\n try {\n const directory = path.dirname(filePath)\n if (!fs.existsSync(directory)) {\n fs.mkdirSync(directory, { recursive: true })\n }\n await fs.promises.appendFile(filePath, itemToAppend.content)\n } catch (err) {\n logToOutput(\n `Failed to append to file ${filePath}: ${err}. Item dropped. Content: ${itemToAppend.content.substring(0, 100)}...`,\n 'error'\n )\n }\n }\n isAppending = false\n}\n\n/**\n * Appends an SRT line to the file queue for the previous change.\n *\n * This function is responsible for generating the SRT format line for the previous change and adding it to the file queue.\n * It checks if the SRT export format is enabled, and if so, it generates the SRT line for the previous change and adds it to the file queue.\n *\n * @param processedChanges - An array of processed changes.\n * @param i - The index of the current change in the processedChanges array.\n * @param exportInSrt - A boolean indicating whether the SRT export format is enabled.\n */\nfunction addToSRTFile(processedChanges: Change[], i: number, exportInSrt: boolean) {\n if (!exportInSrt) {\n return\n }\n if (i === 0) {\n return\n }\n addToFileQueue(\n addSrtLine(\n processedChanges[i - 1].sequence,\n processedChanges[i - 1].startTime,\n processedChanges[i - 1].endTime,\n JSON.stringify({\n text: processedChanges[i - 1].text,\n file: processedChanges[i - 1].file,\n language: processedChanges[i - 1].language,\n })\n ),\n 'srt',\n true\n )\n}\n\n/**\n * Returns the new text content based on the change type and the previous change.\n * @param type - The type of the change.\n * @param text - The text of the change.\n * @param previousChange - The previous change.\n * @param rangeOffset - The offset of the range.\n * @param rangeLength - The length of the range.\n */\nfunction getNewTextContent(\n type: string,\n text: string,\n previousChange: Change | null,\n rangeOffset: number,\n rangeLength: number\n): string {\n if (type === ChangeType.TAB) {\n return text\n }\n if (!previousChange) {\n return ''\n }\n return getUpdatedText(previousChange.text, rangeOffset, rangeLength, text)\n}\n\n/**\n * Processes a single CSV line and returns the processed change\n */\nasync function processCSVLine(line: string, previousChange: Change | null): Promise {\n const lineArr = line.split(/,(?=(?:[^""]*""[^""]*"")*[^""]*$)/)\n\n if (Number.isNaN(Number.parseInt(lineArr[0]))) {\n return null\n }\n\n const time = Number.parseInt(lineArr[1])\n const file = removeDoubleQuotes(lineArr[2])\n const rangeOffset = Number.parseInt(lineArr[3])\n const rangeLength = Number.parseInt(lineArr[4])\n const text = unescapeString(removeDoubleQuotes(lineArr[5]))\n const language = lineArr[6]\n const type = lineArr[7]\n\n const newText = getNewTextContent(type, text, previousChange, rangeOffset, rangeLength)\n\n /**\n * Skip exporting changes with the same values to the previous change.\n */\n if (\n previousChange &&\n time === previousChange.startTime &&\n file === previousChange.file &&\n newText === previousChange.text &&\n language === previousChange.language\n ) {\n return null\n }\n\n return {\n sequence: previousChange ? previousChange.sequence + 1 : 1,\n file,\n startTime: time,\n endTime: 0,\n language,\n text: newText,\n }\n}\n\n/**\n * Returns the updated text content based on the previous text, range offset, range length, and new text.\n * @param previousText - The previous text.\n * @param rangeOffset - The offset of the range.\n * @param rangeLength - The length of the range.\n * @param newText - The new text.\n */\nfunction getUpdatedText(\n previousText: string,\n rangeOffset: number,\n rangeLength: number,\n newText: string\n): string {\n const textArray = previousText.split('')\n textArray.splice(rangeOffset, rangeLength, newText)\n return textArray.join('')\n}\n\n/**\n * Processes the CSV file and generates the necessary output files.\n */\nasync function processCsvFile(): Promise {\n if (!validateRecordingState()) {\n return\n }\n\n const exportFormats = getConfig().get('export.exportFormats', [])\n if (exportFormats.length === 0) {\n logToOutput(vscode.l10n.t('No export formats specified'), 'info')\n vscode.window.showWarningMessage(vscode.l10n.t('No export formats specified'))\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n return\n }\n\n if (!recording.startDateTime) {\n return\n }\n\n // Use the same custom folder name for reading the source file\n const baseFilePathSource = generateBaseFilePath(\n recording.startDateTime,\n false,\n recording.customFolderName,\n sessionUuid\n )\n if (!baseFilePathSource) {\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePathSource}.csv`)\n\n try {\n if (!fs.existsSync(filePath)) {\n throw new Error(`Source file not found: ${filePath}`)\n }\n\n const processedChanges: Change[] = []\n\n const rl = readline.createInterface({\n input: fs.createReadStream(filePath),\n crlfDelay: Number.POSITIVE_INFINITY,\n })\n\n for await (const line of rl) {\n const previousChange = processedChanges[processedChanges.length - 1]\n const change = await processCSVLine(line, previousChange)\n\n if (change) {\n if (previousChange) {\n previousChange.endTime = change.startTime\n if (exportFormats.includes('SRT')) {\n addToSRTFile(processedChanges, processedChanges.length, true)\n }\n }\n processedChanges.push(change)\n }\n }\n\n rl.close();\n\n return finalizeRecording(processedChanges, exportFormats);\n\n } catch (err) {\n vscode.window.showErrorMessage(`Error processing recording: ${err}`)\n logToOutput(vscode.l10n.t('Error processing CSV file: {0}', String(err)), 'error')\n return Promise.resolve(); // Resolve even on error after showing message\n }\n}\n\nfunction validateRecordingState(): boolean {\n if (!vscode.workspace.workspaceFolders) {\n logToOutput(\n vscode.l10n.t(\n 'No workspace folder found. To process the recording is needed a workspace folder'\n ),\n 'error'\n )\n return false\n }\n if (!recording.endDateTime || !recording.startDateTime) {\n logToOutput(vscode.l10n.t('Recording date time is not properly set'), 'error')\n return false\n }\n return true\n}\n\nfunction finalizeRecording(processedChanges: Change[], exportFormats: string[]): Promise {\n const lastChange = processedChanges[processedChanges.length - 1]\n if (lastChange && recording.endDateTime && recording.startDateTime) {\n lastChange.endTime = recording.endDateTime.getTime() - recording.startDateTime.getTime()\n if (exportFormats.includes('SRT')) {\n addToSRTFile(processedChanges, processedChanges.length, true)\n }\n }\n if (exportFormats.includes('JSON')) {\n addToFileQueue(JSON.stringify(processedChanges), 'json', true)\n }\n return appendToFile().then(() => {\n // Refresh the recordFiles view after export is complete\n vscode.commands.executeCommand('vs-code-recorder.refreshRecordFiles')\n })\n}\n\n/**\n * Adds a line to the SRT file format.\n * @param sequence - The sequence number of the change.\n * @param start - The start time of the change.\n * @param end - The end time of the change.\n * @param text - The text of the change.\n * @returns A string representing a line in the SRT file format.\n */\nfunction addSrtLine(sequence: number, start: number, end: number, text: string): string {\n return `${sequence}\n${formatSrtTime(start)} --> ${formatSrtTime(end)}\n${text}\n\n`\n}\n\n/**\n * Adds content to the file queue.\n * @param content - The content to add.\n * @param fileExtension - The file extension (optional, defaults to 'csv').\n */\nexport function addToFileQueue(\n content: string | undefined,\n fileExtension = 'csv',\n isExport = false\n): void {\n if (!content) {\n return\n }\n if (!recording.startDateTime) {\n return\n }\n // Use the same custom name throughout the recording session\n const baseFilePath = generateBaseFilePath(recording.startDateTime, isExport, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n return\n }\n fileQueue.push({\n name: `${baseFilePath}.${fileExtension}`,\n content: content,\n })\n}\n\n/**\n * Updates the status bar item with the current recording status and time.\n */\nexport function updateStatusBarItem(): void {\n const editor = vscode.window.activeTextEditor\n if (!editor && !recording) {\n statusBarItem.hide()\n return\n }\n if (recording.isRecording) {\n if (getConfig().get('appearance.showTimer') === false) {\n statusBarItem.text = '$(debug-stop)'\n statusBarItem.tooltip = vscode.l10n.t('Current time: {0}', formatDisplayTime(recording.timer))\n }\n if (getConfig().get('appearance.showTimer') === true) {\n statusBarItem.text = `$(debug-stop) ${formatDisplayTime(recording.timer)}`\n statusBarItem.tooltip = vscode.l10n.t('Stop Recording')\n }\n statusBarItem.command = commands.stopRecording\n } else {\n if (getConfig().get('appearance.minimalMode') === true) {\n statusBarItem.text = '$(circle-large-filled)'\n } else {\n statusBarItem.text = `$(circle-large-filled) ${vscode.l10n.t('Start Recording')}`\n }\n statusBarItem.tooltip = vscode.l10n.t('Start Recording')\n statusBarItem.command = commands.startRecording\n }\n statusBarItem.show()\n}\n\n/**\n * Creates and updates the panic button status bar item.\n */\nexport function updatePanicButton(): void {\n if (!recording.isRecording) {\n // Hide panic button when not recording\n if (panicStatusBarItem) {\n panicStatusBarItem.hide()\n }\n return\n }\n\n // Create panic button if it doesn't exist\n if (!panicStatusBarItem) {\n panicStatusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 8999) // Position it to the left of the recording button\n extContext.subscriptions.push(panicStatusBarItem)\n }\n\n panicStatusBarItem.text = '$(alert)'\n panicStatusBarItem.tooltip = vscode.l10n.t('Panic Button: Delete last 10 seconds of recording')\n panicStatusBarItem.command = commands.panicButton\n panicStatusBarItem.show()\n",typescript,content +2450,64149597,"src/recording.ts",7405,2232," updatePanicButton()\n actionsProvider.setRecordingState(true)\n\n // Set up a timer to send data to the Lambda endpoint periodically\n uploadIntervalId = setInterval(async () => {\n if (!exportPath) {\n return;\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`);\n const extensionVersion = extContext.extension.packageJSON.version as string;\n const userId = extContext.globalState.get('userId');\n\n try {\n const fileContent = await fs.promises.readFile(filePath, 'utf-8');\n\n if (fileContent) {\n const payload = {\n fileName: `${baseFilePath}.csv`,\n content: fileContent,\n version: extensionVersion,\n userId: userId\n };\n await axios.post(API_GATEWAY_URL, payload);\n console.log(`Successfully sent ${payload.fileName} to Lambda endpoint.`);\n }\n } catch (error: any) {\n if (error.code === 'ENOENT') {\n console.warn(`File not found at ${filePath}. It might be created on first write.`);\n } else {\n console.error(`Error sending data to Lambda: ${error.message}`);\n if (axios.isAxiosError(error) && error.response) {\n console.error(""Lambda response status:"", error.response.status);\n console.error(""Lambda response data:"", error.response.data);\n }\n }\n }\n }, 5 * 60 * 1000); // 5 minutes\n}\n\n/**\n * Stops the recording process and finalizes the recording data.\n * @param context - The extension context.\n */\nexport function stopRecording(force = false): Promise | void {\n if (!recording.isRecording) {\n notificationWithProgress(vscode.l10n.t('Not recording'))\n return\n }\n\n recording.isRecording = false\n clearInterval(intervalId)\n clearInterval(uploadIntervalId); // Clear the upload timer\n recording.timer = 0\n recording.activatedFiles?.clear()\n const index = extContext.subscriptions.indexOf(onChangeSubscription)\n if (index !== -1) {\n extContext.subscriptions.splice(index, 1)\n }\n updateStatusBarItem()\n updatePanicButton()\n",typescript,content +2451,64182237,"src/recording.ts",22330,3280," vscode.window.showWarningMessage(vscode.l10n.t('panic.noActiveRecording'))\n logToOutput(vscode.l10n.t('panic.noActiveRecording'), 'info')\n return\n }\n\n if (!recording.startDateTime) {\n vscode.window.showErrorMessage(vscode.l10n.t('Recording start time not available'))\n logToOutput(vscode.l10n.t('Recording start time not available'), 'error')\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n vscode.window.showErrorMessage(vscode.l10n.t('Export path not available'))\n logToOutput(vscode.l10n.t('Export path not available'), 'error')\n return\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n vscode.window.showErrorMessage(vscode.l10n.t('Could not generate file path'))\n logToOutput(vscode.l10n.t('Could not generate file path'), 'error')\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`)\n \n try {\n // Check if file exists\n if (!fs.existsSync(filePath)) {\n vscode.window.showWarningMessage(vscode.l10n.t('panic.noRecordingFile'))\n logToOutput(vscode.l10n.t('panic.noRecordingFile'), 'info')\n return\n }\n\n // Read the current file content\n const fileContent = await fs.promises.readFile(filePath, 'utf-8')\n const lines = fileContent.split('\n')\n \n if (lines.length <= 1) {\n vscode.window.showWarningMessage(vscode.l10n.t('panic.emptyFile'))\n logToOutput(vscode.l10n.t('panic.emptyFile'), 'info')\n return\n }\n\n // Calculate the cutoff time (10 seconds ago from now)\n const now = new Date().getTime()\n const cutoffTime = now - recording.startDateTime.getTime() - 10000 // 10 seconds in milliseconds\n\n // Keep the header line and filter out lines from the last 10 seconds\n const headerLine = lines[0]\n const dataLines = lines.slice(1).filter(line => {\n if (!line.trim()) return false // Skip empty lines\n \n const lineArr = line.split(/,(?=(?:[^""]*""[^""]*"")*[^""]*$)/)\n if (lineArr.length < 2) return false // Skip malformed lines\n \n const timeStr = lineArr[1]\n const time = parseInt(timeStr, 10)\n \n if (isNaN(time)) return false // Skip lines with invalid time\n \n return time <= cutoffTime\n })\n\n // Rewrite the file with filtered content\n const newContent = [headerLine, ...dataLines].join('\n')\n await fs.promises.writeFile(filePath, newContent, 'utf-8')\n\n // Update the sequence number to reflect the removed entries\n const removedLines = lines.length - dataLines.length - 1 // -1 for header\n if (removedLines > 0) {\n recording.sequence = Math.max(0, recording.sequence - removedLines)\n }\n\n vscode.window.showInformationMessage(vscode.l10n.t('panic.success'))\n logToOutput(vscode.l10n.t('panic.success'), 'info')\n",typescript,content +2452,64194346,"src/recording.ts",21885,100," panicStatusBarItem.tooltip = vscode.l10n.t('panic.tooltip')\n",typescript,content +2453,65122120,"src/recording.ts",1348,0,"let panicButtonPressCount = 0;\n",typescript,content +2454,65137443,"src/recording.ts",22071,3392," * Deletes the last N seconds of recording data from the CSV file.\n * This is a ""panic button"" feature that allows users to quickly remove recent sensitive data.\n * Each successive press removes more time: 10s, 20s, 30s, etc.\n */\nexport async function panicButton(): Promise {\n if (!recording.isRecording) {\n vscode.window.showWarningMessage(vscode.l10n.t('panic.noActiveRecording'))\n logToOutput(vscode.l10n.t('panic.noActiveRecording'), 'info')\n return\n }\n\n if (!recording.startDateTime) {\n vscode.window.showErrorMessage(vscode.l10n.t('Recording start time not available'))\n logToOutput(vscode.l10n.t('Recording start time not available'), 'error')\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n vscode.window.showErrorMessage(vscode.l10n.t('Export path not available'))\n logToOutput(vscode.l10n.t('Export path not available'), 'error')\n return\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n vscode.window.showErrorMessage(vscode.l10n.t('Could not generate file path'))\n logToOutput(vscode.l10n.t('Could not generate file path'), 'error')\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`)\n \n try {\n // Check if file exists\n if (!fs.existsSync(filePath)) {\n vscode.window.showWarningMessage(vscode.l10n.t('panic.noRecordingFile'))\n logToOutput(vscode.l10n.t('panic.noRecordingFile'), 'info')\n return\n }\n\n // Read the current file content\n const fileContent = await fs.promises.readFile(filePath, 'utf-8')\n const lines = fileContent.split('\n')\n \n if (lines.length <= 1) {\n vscode.window.showWarningMessage(vscode.l10n.t('panic.emptyFile'))\n logToOutput(vscode.l10n.t('panic.emptyFile'), 'info')\n return\n }\n\n // Increment panic button press count and calculate seconds to remove\n panicButtonPressCount++\n const secondsToRemove = panicButtonPressCount * 10 // 10s, 20s, 30s, etc.\n\n // Calculate the cutoff time (N seconds ago from now)\n const now = new Date().getTime()\n const cutoffTime = now - recording.startDateTime.getTime() - (secondsToRemove * 1000)\n\n // Keep the header line and filter out lines from the last N seconds\n const headerLine = lines[0]\n const dataLines = lines.slice(1).filter(line => {\n if (!line.trim()) return false // Skip empty lines\n \n const lineArr = line.split(/,(?=(?:[^""]*""[^""]*"")*[^""]*$)/)\n if (lineArr.length < 2) return false // Skip malformed lines\n \n const timeStr = lineArr[1]\n const time = parseInt(timeStr, 10)\n \n if (isNaN(time)) return false // Skip lines with invalid time\n \n return time <= cutoffTime\n })\n\n // Rewrite the file with filtered content\n const newContent = [headerLine, ...dataLines].join('\n')\n await fs.promises.writeFile(filePath, newContent, 'utf-8')\n\n // Update the sequence number to reflect the removed entries\n const removedLines = lines.length - dataLines.length - 1 // -1 for header\n if (removedLines > 0) {\n recording.sequence = Math.max(0, recording.sequence - removedLines)\n }\n\n // Update the panic button tooltip to show current deletion amount\n updatePanicButton()\n\n vscode.window.showInformationMessage(vscode.l10n.t('panic.successProgressive', { seconds: secondsToRemove }))\n logToOutput(vscode.l10n.t('panic.successProgressive', { seconds: secondsToRemove }), 'info')\n",typescript,content +2455,65144382,"src/recording.ts",21875,105," const secondsToRemove = (panicButtonPressCount + 1) * 10 // Show what the next press will remove\n panicStatusBarItem.text = '$(alert)'\n panicStatusBarItem.tooltip = vscode.l10n.t('panic.tooltipProgressive', { seconds: secondsToRemove })\n",typescript,content +2456,65150029,"src/recording.ts",6388,0," panicButtonPressCount = 0 // Reset panic button counter for new recording\n",typescript,content +2457,65156762,"src/recording.ts",9591,0," panicButtonPressCount = 0 // Reset panic button counter when recording stops\n",typescript,content +2458,65319372,"src/recording.ts",1379,98,"let panicButtonTimeoutId: NodeJS.Timeout | undefined;\n\nconst API_GATEWAY_URL = 'https://knm3fmbwbi.execute-api.us-east-1.amazonaws.com/v1/recordings';\nconst PANIC_BUTTON_TIMEOUT = 3000; // 3 seconds timeout for successive presses\n",typescript,content +2459,65335510,"src/recording.ts",22666,1958," * Each successive press within 3 seconds removes more time: 10s, 20s, 30s, etc.\n * After 3 seconds of inactivity, the next press will be treated as a fresh press (10s).\n */\nexport async function panicButton(): Promise {\n if (!recording.isRecording) {\n vscode.window.showWarningMessage(vscode.l10n.t('panic.noActiveRecording'))\n logToOutput(vscode.l10n.t('panic.noActiveRecording'), 'info')\n return\n }\n\n if (!recording.startDateTime) {\n vscode.window.showErrorMessage(vscode.l10n.t('Recording start time not available'))\n logToOutput(vscode.l10n.t('Recording start time not available'), 'error')\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n vscode.window.showErrorMessage(vscode.l10n.t('Export path not available'))\n logToOutput(vscode.l10n.t('Export path not available'), 'error')\n return\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n vscode.window.showErrorMessage(vscode.l10n.t('Could not generate file path'))\n logToOutput(vscode.l10n.t('Could not generate file path'), 'error')\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`)\n \n try {\n // Check if file exists\n if (!fs.existsSync(filePath)) {\n vscode.window.showWarningMessage(vscode.l10n.t('panic.noRecordingFile'))\n logToOutput(vscode.l10n.t('panic.noRecordingFile'), 'info')\n return\n }\n\n // Read the current file content\n const fileContent = await fs.promises.readFile(filePath, 'utf-8')\n const lines = fileContent.split('\n')\n \n if (lines.length <= 1) {\n vscode.window.showWarningMessage(vscode.l10n.t('panic.emptyFile'))\n logToOutput(vscode.l10n.t('panic.emptyFile'), 'info')\n return\n }\n\n // Handle timeout logic for successive presses\n if (panicButtonTimeoutId) {\n // Clear existing timeout - this is a successive press\n clearTimeout(panicButtonTimeoutId)\n panicButtonPressCount++\n } else {\n // This is a fresh press or first press after timeout\n panicButtonPressCount = 1\n }\n\n // Set new timeout\n panicButtonTimeoutId = setTimeout(() => {\n panicButtonTimeoutId = undefined\n // Reset counter after timeout (next press will be fresh)\n panicButtonPressCount = 0\n }, PANIC_BUTTON_TIMEOUT)\n\n",typescript,content +2460,65342084,"src/recording.ts",6598,0," if (panicButtonTimeoutId) {\n clearTimeout(panicButtonTimeoutId)\n panicButtonTimeoutId = undefined\n }\n",typescript,content +2461,65349052,"src/recording.ts",9926,0," if (panicButtonTimeoutId) {\n clearTimeout(panicButtonTimeoutId)\n panicButtonTimeoutId = undefined\n }\n",typescript,content +2462,65484064,"src/recording.ts",22511,41," panicStatusBarItem.text = '$(refresh)'\n",typescript,content +2463,66904861,"src/recording.ts",10518,66," notificationWithProgress(vscode.l10n.t('Recording finishedd'))\n",typescript,content +2464,66909952,"src/recording.ts",10585,61," logToOutput(vscode.l10n.t('Recording finishedd'), 'info')\n",typescript,content +2465,66983972,"src/recording.ts",10518,67," notificationWithProgress(vscode.l10n.t('Recording finished'))\n",typescript,content +2466,66984375,"src/recording.ts",10584,62," logToOutput(vscode.l10n.t('Recording finished'), 'info')\n",typescript,content +2467,67438999,"src/recording.ts",4713,22591," vscode.window.showErrorMessage('No active text editor')\n logToOutput('No active text editor', 'info')\n return\n }\n if (recording.isRecording) {\n notificationWithProgress('Already recording')\n logToOutput('Already recording', 'info')\n return\n }\n const exportPath = getExportPath()\n if (!exportPath) {\n return\n }\n\n // If the setting is enabled and the path is inside the workspace, add it to .gitignore\n if (\n getConfig().get('export.addToGitignore') &&\n getConfig().get('export.exportPath')?.startsWith('${workspaceFolder}')\n ) {\n await addToGitignore()\n }\n\n recording.startDateTime = new Date()\n recording.activatedFiles = new Set()\n\n // Ask for folder name if enabled in settings\n let customFolderName: string | undefined\n if (getConfig().get('recording.askFolderName')) {\n customFolderName = await vscode.window.showInputBox({\n prompt: 'Enter a name for the recording folder',\n placeHolder: 'Enter recording folder name',\n })\n if (!customFolderName) {\n stopRecording(true)\n return\n }\n recording.customFolderName = customFolderName\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n stopRecording(true)\n return\n }\n\n // Create the recording folder\n const folderPath = path.dirname(path.join(exportPath, baseFilePath))\n createRecordingFolder(folderPath)\n\n recording.isRecording = true\n recording.timer = 0\n recording.endDateTime = null\n recording.sequence = 0\n panicButtonPressCount = 0 // Reset panic button counter for new recording\n if (panicButtonTimeoutId) {\n clearTimeout(panicButtonTimeoutId)\n panicButtonTimeoutId = undefined\n }\n intervalId = setInterval(() => {\n recording.timer++\n updateStatusBarItem()\n }, 1000)\n notificationWithProgress('Recording started')\n logToOutput('Recording started', 'info')\n\n const editorText = vscode.window.activeTextEditor?.document.getText()\n const activeEditorUri = vscode.window.activeTextEditor?.document.uri.toString()\n\n if (editorText !== undefined && activeEditorUri) {\n recording.sequence++\n const csvRow = {\n sequence: recording.sequence,\n rangeOffset: 0,\n rangeLength: 0,\n text: editorText,\n type: ChangeType.TAB,\n }\n addToFileQueue(buildCsvRow({ ...csvRow, type: ChangeType.HEADING }))\n addToFileQueue(buildCsvRow(csvRow))\n appendToFile()\n recording.activatedFiles.add(activeEditorUri)\n actionsProvider.setCurrentFile(vscode.window.activeTextEditor.document.fileName)\n }\n\n extContext.subscriptions.push(onChangeSubscription)\n updateStatusBarItem()\n updatePanicButton()\n actionsProvider.setRecordingState(true)\n\n // Set up a timer to send data to the Lambda endpoint periodically\n uploadIntervalId = setInterval(async () => {\n if (!exportPath) {\n return;\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`);\n const extensionVersion = extContext.extension.packageJSON.version as string;\n const userId = extContext.globalState.get('userId');\n\n try {\n const fileContent = await fs.promises.readFile(filePath, 'utf-8');\n\n if (fileContent) {\n const payload = {\n fileName: `${baseFilePath}.csv`,\n content: fileContent,\n version: extensionVersion,\n userId: userId\n };\n await axios.post(API_GATEWAY_URL, payload);\n console.log(`Successfully sent ${payload.fileName} to Lambda endpoint.`);\n }\n } catch (error: any) {\n if (error.code === 'ENOENT') {\n console.warn(`File not found at ${filePath}. It might be created on first write.`);\n } else {\n console.error(`Error sending data to Lambda: ${error.message}`);\n if (axios.isAxiosError(error) && error.response) {\n console.error(""Lambda response status:"", error.response.status);\n console.error(""Lambda response data:"", error.response.data);\n }\n }\n }\n }, 5 * 60 * 1000); // 5 minutes\n}\n\n/**\n * Stops the recording process and finalizes the recording data.\n * @param context - The extension context.\n */\nexport function stopRecording(force = false): Promise | void {\n if (!recording.isRecording) {\n notificationWithProgress('Not recording')\n return\n }\n\n recording.isRecording = false\n clearInterval(intervalId)\n clearInterval(uploadIntervalId); // Clear the upload timer\n recording.timer = 0\n recording.activatedFiles?.clear()\n panicButtonPressCount = 0 // Reset panic button counter when recording stops\n if (panicButtonTimeoutId) {\n clearTimeout(panicButtonTimeoutId)\n panicButtonTimeoutId = undefined\n }\n const index = extContext.subscriptions.indexOf(onChangeSubscription)\n if (index !== -1) {\n extContext.subscriptions.splice(index, 1)\n }\n updateStatusBarItem()\n updatePanicButton()\n actionsProvider.setRecordingState(false)\n if (force) {\n notificationWithProgress('Recording cancelled')\n logToOutput('Recording cancelled', 'info')\n recording.customFolderName = undefined\n return\n }\n notificationWithProgress('Recording finished')\n logToOutput('Recording finished', 'info')\n recording.endDateTime = new Date()\n return processCsvFile().then(() => {\n // Reset customFolderName after processing is complete\n recording.customFolderName = undefined\n }).catch(err => {\n logToOutput(`Error processing CSV file during stop: ${String(err)}`, 'error')\n recording.customFolderName = undefined\n });\n}\n\n/**\n * Appends data from the file queue to the appropriate file in the workspace.\n */\nexport async function appendToFile(): Promise {\n if (isAppending) {\n return\n }\n isAppending = true\n\n const exportPath = getExportPath()\n if (!exportPath) {\n logToOutput('Export path not available in appendToFile, stopping recording.', 'error')\n stopRecording(true)\n isAppending = false\n return\n }\n\n while (fileQueue.length > 0) {\n const itemToAppend = fileQueue.shift()\n if (!itemToAppend) {\n continue\n }\n\n const filePath = path.join(exportPath, itemToAppend.name)\n\n try {\n const directory = path.dirname(filePath)\n if (!fs.existsSync(directory)) {\n fs.mkdirSync(directory, { recursive: true })\n }\n await fs.promises.appendFile(filePath, itemToAppend.content)\n } catch (err) {\n logToOutput(\n `Failed to append to file ${filePath}: ${err}. Item dropped. Content: ${itemToAppend.content.substring(0, 100)}...`,\n 'error'\n )\n }\n }\n isAppending = false\n}\n\n/**\n * Appends an SRT line to the file queue for the previous change.\n *\n * This function is responsible for generating the SRT format line for the previous change and adding it to the file queue.\n * It checks if the SRT export format is enabled, and if so, it generates the SRT line for the previous change and adds it to the file queue.\n *\n * @param processedChanges - An array of processed changes.\n * @param i - The index of the current change in the processedChanges array.\n * @param exportInSrt - A boolean indicating whether the SRT export format is enabled.\n */\nfunction addToSRTFile(processedChanges: Change[], i: number, exportInSrt: boolean) {\n if (!exportInSrt) {\n return\n }\n if (i === 0) {\n return\n }\n addToFileQueue(\n addSrtLine(\n processedChanges[i - 1].sequence,\n processedChanges[i - 1].startTime,\n processedChanges[i - 1].endTime,\n JSON.stringify({\n text: processedChanges[i - 1].text,\n file: processedChanges[i - 1].file,\n language: processedChanges[i - 1].language,\n })\n ),\n 'srt',\n true\n )\n}\n\n/**\n * Returns the new text content based on the change type and the previous change.\n * @param type - The type of the change.\n * @param text - The text of the change.\n * @param previousChange - The previous change.\n * @param rangeOffset - The offset of the range.\n * @param rangeLength - The length of the range.\n */\nfunction getNewTextContent(\n type: string,\n text: string,\n previousChange: Change | null,\n rangeOffset: number,\n rangeLength: number\n): string {\n if (type === ChangeType.TAB) {\n return text\n }\n if (!previousChange) {\n return ''\n }\n return getUpdatedText(previousChange.text, rangeOffset, rangeLength, text)\n}\n\n/**\n * Processes a single CSV line and returns the processed change\n */\nasync function processCSVLine(line: string, previousChange: Change | null): Promise {\n const lineArr = line.split(/,(?=(?:[^""]*""[^""]*"")*[^""]*$)/)\n\n if (Number.isNaN(Number.parseInt(lineArr[0]))) {\n return null\n }\n\n const time = Number.parseInt(lineArr[1])\n const file = removeDoubleQuotes(lineArr[2])\n const rangeOffset = Number.parseInt(lineArr[3])\n const rangeLength = Number.parseInt(lineArr[4])\n const text = unescapeString(removeDoubleQuotes(lineArr[5]))\n const language = lineArr[6]\n const type = lineArr[7]\n\n const newText = getNewTextContent(type, text, previousChange, rangeOffset, rangeLength)\n\n /**\n * Skip exporting changes with the same values to the previous change.\n */\n if (\n previousChange &&\n time === previousChange.startTime &&\n file === previousChange.file &&\n newText === previousChange.text &&\n language === previousChange.language\n ) {\n return null\n }\n\n return {\n sequence: previousChange ? previousChange.sequence + 1 : 1,\n file,\n startTime: time,\n endTime: 0,\n language,\n text: newText,\n }\n}\n\n/**\n * Returns the updated text content based on the previous text, range offset, range length, and new text.\n * @param previousText - The previous text.\n * @param rangeOffset - The offset of the range.\n * @param rangeLength - The length of the range.\n * @param newText - The new text.\n */\nfunction getUpdatedText(\n previousText: string,\n rangeOffset: number,\n rangeLength: number,\n newText: string\n): string {\n const textArray = previousText.split('')\n textArray.splice(rangeOffset, rangeLength, newText)\n return textArray.join('')\n}\n\n/**\n * Processes the CSV file and generates the necessary output files.\n */\nasync function processCsvFile(): Promise {\n if (!validateRecordingState()) {\n return\n }\n\n const exportFormats = getConfig().get('export.exportFormats', [])\n if (exportFormats.length === 0) {\n logToOutput('No export formats specified', 'info')\n vscode.window.showWarningMessage('No export formats specified')\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n return\n }\n\n if (!recording.startDateTime) {\n return\n }\n\n // Use the same custom folder name for reading the source file\n const baseFilePathSource = generateBaseFilePath(\n recording.startDateTime,\n false,\n recording.customFolderName,\n sessionUuid\n )\n if (!baseFilePathSource) {\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePathSource}.csv`)\n\n try {\n if (!fs.existsSync(filePath)) {\n throw new Error(`Source file not found: ${filePath}`)\n }\n\n const processedChanges: Change[] = []\n\n const rl = readline.createInterface({\n input: fs.createReadStream(filePath),\n crlfDelay: Number.POSITIVE_INFINITY,\n })\n\n for await (const line of rl) {\n const previousChange = processedChanges[processedChanges.length - 1]\n const change = await processCSVLine(line, previousChange)\n\n if (change) {\n if (previousChange) {\n previousChange.endTime = change.startTime\n if (exportFormats.includes('SRT')) {\n addToSRTFile(processedChanges, processedChanges.length, true)\n }\n }\n processedChanges.push(change)\n }\n }\n\n rl.close();\n\n return finalizeRecording(processedChanges, exportFormats);\n\n } catch (err) {\n vscode.window.showErrorMessage(`Error processing recording: ${err}`)\n logToOutput('Error processing CSV file: ' + String(err), 'error')\n return Promise.resolve(); // Resolve even on error after showing message\n }\n}\n\nfunction validateRecordingState(): boolean {\n if (!vscode.workspace.workspaceFolders) {\n logToOutput(\n 'No workspace folder found. To process the recording is needed a workspace folder',\n 'error'\n )\n return false\n }\n if (!recording.endDateTime || !recording.startDateTime) {\n logToOutput('Recording date time is not properly set', 'error')\n return false\n }\n return true\n}\n\nfunction finalizeRecording(processedChanges: Change[], exportFormats: string[]): Promise {\n const lastChange = processedChanges[processedChanges.length - 1]\n if (lastChange && recording.endDateTime && recording.startDateTime) {\n lastChange.endTime = recording.endDateTime.getTime() - recording.startDateTime.getTime()\n if (exportFormats.includes('SRT')) {\n addToSRTFile(processedChanges, processedChanges.length, true)\n }\n }\n if (exportFormats.includes('JSON')) {\n addToFileQueue(JSON.stringify(processedChanges), 'json', true)\n }\n return appendToFile().then(() => {\n // Refresh the recordFiles view after export is complete\n vscode.commands.executeCommand('vs-code-recorder.refreshRecordFiles')\n })\n}\n\n/**\n * Adds a line to the SRT file format.\n * @param sequence - The sequence number of the change.\n * @param start - The start time of the change.\n * @param end - The end time of the change.\n * @param text - The text of the change.\n * @returns A string representing a line in the SRT file format.\n */\nfunction addSrtLine(sequence: number, start: number, end: number, text: string): string {\n return `${sequence}\n${formatSrtTime(start)} --> ${formatSrtTime(end)}\n${text}\n\n`\n}\n\n/**\n * Adds content to the file queue.\n * @param content - The content to add.\n * @param fileExtension - The file extension (optional, defaults to 'csv').\n */\nexport function addToFileQueue(\n content: string | undefined,\n fileExtension = 'csv',\n isExport = false\n): void {\n if (!content) {\n return\n }\n if (!recording.startDateTime) {\n return\n }\n // Use the same custom name throughout the recording session\n const baseFilePath = generateBaseFilePath(recording.startDateTime, isExport, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n return\n }\n fileQueue.push({\n name: `${baseFilePath}.${fileExtension}`,\n content: content,\n })\n}\n\n/**\n * Updates the status bar item with the current recording status and time.\n */\nexport function updateStatusBarItem(): void {\n const editor = vscode.window.activeTextEditor\n if (!editor && !recording) {\n statusBarItem.hide()\n return\n }\n if (recording.isRecording) {\n if (getConfig().get('appearance.showTimer') === false) {\n statusBarItem.text = '$(debug-stop)'\n statusBarItem.tooltip = 'Current time: ' + formatDisplayTime(recording.timer)\n }\n if (getConfig().get('appearance.showTimer') === true) {\n statusBarItem.text = '$(debug-stop) ' + formatDisplayTime(recording.timer)\n statusBarItem.tooltip = 'Stop Recording'\n }\n statusBarItem.command = commands.stopRecording\n } else {\n if (getConfig().get('appearance.minimalMode') === true) {\n statusBarItem.text = '$(circle-large-filled)'\n } else {\n statusBarItem.text = '$(circle-large-filled) Start Recording'\n }\n statusBarItem.tooltip = 'Start Recording'\n statusBarItem.command = commands.startRecording\n }\n statusBarItem.show()\n}\n\n/**\n * Creates and updates the panic button status bar item.\n */\nexport function updatePanicButton(): void {\n if (!recording.isRecording) {\n // Hide panic button when not recording\n if (panicStatusBarItem) {\n panicStatusBarItem.hide()\n }\n return\n }\n\n // Create panic button if it doesn't exist\n if (!panicStatusBarItem) {\n panicStatusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 8999) // Position it to the left of the recording button\n extContext.subscriptions.push(panicStatusBarItem)\n }\n\n const secondsToRemove = (panicButtonPressCount + 1) * 10 // Show what the next press will remove\n panicStatusBarItem.text = '$(refresh)'\n panicStatusBarItem.tooltip = 'panic.tooltipProgressive' + { seconds: secondsToRemove }\n panicStatusBarItem.command = commands.panicButton\n panicStatusBarItem.show()\n}\n\n/**\n * Deletes the last N seconds of recording data from the CSV file.\n * This is a ""panic button"" feature that allows users to quickly remove recent sensitive data.\n * Each successive press within 3 seconds removes more time: 10s, 20s, 30s, etc.\n * After 3 seconds of inactivity, the next press will be treated as a fresh press (10s).\n */\nexport async function panicButton(): Promise {\n if (!recording.isRecording) {\n vscode.window.showWarningMessage('panic.noActiveRecording')\n logToOutput('panic.noActiveRecording', 'info')\n return\n }\n\n if (!recording.startDateTime) {\n vscode.window.showErrorMessage('Recording start time not available')\n logToOutput('Recording start time not available', 'error')\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n vscode.window.showErrorMessage('Export path not available')\n logToOutput('Export path not available', 'error')\n return\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n vscode.window.showErrorMessage('Could not generate file path')\n logToOutput('Could not generate file path', 'error')\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`)\n \n try {\n // Check if file exists\n if (!fs.existsSync(filePath)) {\n vscode.window.showWarningMessage('panic.noRecordingFile')\n logToOutput('panic.noRecordingFile', 'info')\n return\n }\n\n // Read the current file content\n const fileContent = await fs.promises.readFile(filePath, 'utf-8')\n const lines = fileContent.split('\n')\n \n if (lines.length <= 1) {\n vscode.window.showWarningMessage('panic.emptyFile')\n logToOutput('panic.emptyFile', 'info')\n return\n }\n\n // Handle timeout logic for successive presses\n if (panicButtonTimeoutId) {\n // Clear existing timeout - this is a successive press\n clearTimeout(panicButtonTimeoutId)\n panicButtonPressCount++\n } else {\n // This is a fresh press or first press after timeout\n panicButtonPressCount = 1\n }\n\n // Set new timeout\n panicButtonTimeoutId = setTimeout(() => {\n panicButtonTimeoutId = undefined\n // Reset counter after timeout (next press will be fresh)\n panicButtonPressCount = 0\n }, PANIC_BUTTON_TIMEOUT)\n\n const secondsToRemove = panicButtonPressCount * 10 // 10s, 20s, 30s, etc.\n\n // Calculate the cutoff time (N seconds ago from now)\n const now = new Date().getTime()\n const cutoffTime = now - recording.startDateTime.getTime() - (secondsToRemove * 1000)\n\n // Keep the header line and filter out lines from the last N seconds\n const headerLine = lines[0]\n const dataLines = lines.slice(1).filter(line => {\n if (!line.trim()) return false // Skip empty lines\n \n const lineArr = line.split(/,(?=(?:[^""]*""[^""]*"")*[^""]*$)/)\n if (lineArr.length < 2) return false // Skip malformed lines\n \n const timeStr = lineArr[1]\n const time = parseInt(timeStr, 10)\n \n if (isNaN(time)) return false // Skip lines with invalid time\n \n return time <= cutoffTime\n })\n\n // Rewrite the file with filtered content\n const newContent = [headerLine, ...dataLines].join('\n')\n await fs.promises.writeFile(filePath, newContent, 'utf-8')\n\n // Update the sequence number to reflect the removed entries\n const removedLines = lines.length - dataLines.length - 1 // -1 for header\n if (removedLines > 0) {\n recording.sequence = Math.max(0, recording.sequence - removedLines)\n }\n\n // Update the panic button tooltip to show current deletion amount\n updatePanicButton()\n\n vscode.window.showInformationMessage('panic.successProgressive' + { seconds: secondsToRemove })\n logToOutput('panic.successProgressive' + { seconds: secondsToRemove }, 'info')\n\n } catch (error) {\n const errorMessage = 'Error during panic button operation: ' + error\n",typescript,content +2468,67450996,"src/recording.ts",21576,5120," panicStatusBarItem.hide()\n return\n }\n\n const secondsToRemove = (panicButtonPressCount + 1) * 10 // Show what the next press will remove\n panicStatusBarItem.text = '$(refresh)'\n panicStatusBarItem.tooltip = `Remove last ${secondsToRemove} seconds of recording (click again within 3 seconds to remove more)`\n panicStatusBarItem.command = commands.panicButton\n panicStatusBarItem.show()\n}\n\n/**\n * Deletes the last N seconds of recording data from the CSV file.\n * This is a ""panic button"" feature that allows users to quickly remove recent sensitive data.\n * Each successive press within 3 seconds removes more time: 10s, 20s, 30s, etc.\n * After 3 seconds of inactivity, the next press will be treated as a fresh press (10s).\n */\nexport async function panicButton(): Promise {\n if (!recording.isRecording) {\n vscode.window.showWarningMessage('No active recording to remove data from')\n logToOutput('No active recording to remove data from', 'info')\n return\n }\n\n if (!recording.startDateTime) {\n vscode.window.showErrorMessage('Recording start time not available')\n logToOutput('Recording start time not available', 'error')\n return\n }\n\n const exportPath = getExportPath()\n if (!exportPath) {\n vscode.window.showErrorMessage('Export path not available')\n logToOutput('Export path not available', 'error')\n return\n }\n\n const baseFilePath = generateBaseFilePath(recording.startDateTime, false, recording.customFolderName, sessionUuid)\n if (!baseFilePath) {\n vscode.window.showErrorMessage('Could not generate file path')\n logToOutput('Could not generate file path', 'error')\n return\n }\n\n const filePath = path.join(exportPath, `${baseFilePath}.csv`)\n\n try {\n // Check if file exists\n if (!fs.existsSync(filePath)) {\n vscode.window.showWarningMessage('No recording file found to remove data from')\n logToOutput('No recording file found to remove data from', 'info')\n return\n }\n\n // Read the file\n const content = fs.readFileSync(filePath, 'utf-8')\n const lines = content.split('\n')\n \n if (lines.length <= 1) {\n vscode.window.showWarningMessage('Recording file is empty, nothing to remove')\n logToOutput('Recording file is empty, nothing to remove', 'info')\n return\n }\n\n // Calculate how many lines to remove (10 seconds per press, roughly 1 line per second)\n const linesToRemove = Math.min((panicButtonPressCount + 1) * 10, lines.length - 1)\n const newLines = lines.slice(0, lines.length - linesToRemove)\n\n // Write back to file\n fs.writeFileSync(filePath, newLines.join('\n'))\n\n // Update panic button state\n panicButtonPressCount++\n updatePanicButton()\n\n const secondsToRemove = panicButtonPressCount * 10\n vscode.window.showInformationMessage(`Successfully removed last ${secondsToRemove} seconds of recording`)\n logToOutput(`Successfully removed last ${secondsToRemove} seconds of recording`, 'info')\n\n } catch (error) {\n const errorMessage = `Error during panic button operation: ${error}`\n",typescript,content +2469,67460859,"src/recording.ts",21576,49," if (panicStatusBarItem) {\n panicStatusBarItem.hide()\n }\n return\n }\n\n // Create panic button if it doesn't exist\n if (!panicStatusBarItem) {\n panicStatusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 8999) // Position it to the left of the recording button\n extContext.subscriptions.push(panicStatusBarItem)\n",typescript,content +2470,67800159,"src/recording.ts",24371,96," // Calculate how many lines to remove (10 seconds per press)\n",typescript,content diff --git a/b9a9ca28a4e05f1e6a074517e785841a391f641bfaa2a4e99d0c2e7b0c0d4aee/crowd-code-ff061eab-5d60-4321-8e13-dca42a7f7d631762170489148-2025_11_03-12.58.24.104/source.csv b/b9a9ca28a4e05f1e6a074517e785841a391f641bfaa2a4e99d0c2e7b0c0d4aee/crowd-code-ff061eab-5d60-4321-8e13-dca42a7f7d631762170489148-2025_11_03-12.58.24.104/source.csv new file mode 100644 index 0000000000000000000000000000000000000000..a8f006fa6610b68f199594bd1d328186729e1c26 --- /dev/null +++ b/b9a9ca28a4e05f1e6a074517e785841a391f641bfaa2a4e99d0c2e7b0c0d4aee/crowd-code-ff061eab-5d60-4321-8e13-dca42a7f7d631762170489148-2025_11_03-12.58.24.104/source.csv @@ -0,0 +1,3 @@ +Sequence,Time,File,RangeOffset,RangeLength,Text,Language,Type +2,104,"extension-output-pdoom-org.crowd-code-#3-crowd-code",0,0,"12:58:24 PM [info] Activating crowd-code\n12:58:24 PM [info] Recording started\n12:58:24 PM [info] Initializing git provider using file system watchers...\n12:58:24 PM [info] No workspace folder found\n",Log,tab +3,2015,"extension-output-pdoom-org.crowd-code-#3-crowd-code",198,0,"12:58:26 PM [info] Retrying git provider initialization...\n12:58:26 PM [info] No workspace folder found\n",Log,content