MCPcopy Index your code
hub / github.com/Marus/cortex-debug / normalize

Method normalize

src/frontend/extension.ts:661–668  ·  view source on GitHub ↗
(fsPath: string)

Source from the content-addressed store, hash-verified

659 if (folder) {
660 const orig = folder;
661 const normalize = (fsPath: string) => {
662 fsPath = path.normalize(fsPath).replace(/\\/g, '/');
663 fsPath = (fsPath === '/') ? fsPath : fsPath.replace(/\/+$/, '');
664 if (process.platform === 'win32') {
665 fsPath = fsPath.toLowerCase();
666 }
667 return fsPath;
668 };
669 // Folder is always a full path name
670 folder = normalize(folder);
671 for (const f of vscode.workspace.workspaceFolders) {

Callers 6

normalizeArgumentsMethod · 0.80
getGdbPathMethod · 0.80
findSerialPortModuleFunction · 0.80
constructorMethod · 0.80
NormalizePathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected