(uri: string)
| 29 | } |
| 30 | |
| 31 | export function getProjectPathFromContextResourceUri(uri: string): string | undefined { |
| 32 | const normalized = normalizeResourceUri(uri); |
| 33 | if (!normalized.startsWith(PROJECT_CONTEXT_RESOURCE_PREFIX)) { |
| 34 | return undefined; |
| 35 | } |
| 36 | |
| 37 | const encodedProjectPath = normalized.slice(PROJECT_CONTEXT_RESOURCE_PREFIX.length); |
| 38 | return encodedProjectPath ? decodeURIComponent(encodedProjectPath) : undefined; |
| 39 | } |
| 40 | |
| 41 | export function getProjectPathFromFullContextResourceUri(uri: string): string | undefined { |
| 42 | const normalized = normalizeResourceUri(uri); |
no test coverage detected