MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / resolveHome

Function resolveHome

Extension/src/common.ts:475–477  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

473
474// Resolve '~' at the start of the path.
475export function resolveHome(filePath: string): string {
476 return filePath.replace(/^\~/g, os.homedir());
477}
478
479export function asFolder(uri: vscode.Uri): string {
480 let result: string = uri.toString();

Callers 4

resolveConfigIncludesFunction · 0.90
writeSshConfigurationFunction · 0.90
getSshConfigSourceFunction · 0.90
resolveVariablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected