MCPcopy Index your code
hub / github.com/coder/coder / looksLikeLegacySharedPlanPath

Function looksLikeLegacySharedPlanPath

coderd/x/chatd/chattool/planpath.go:107–110  ·  view source on GitHub ↗

looksLikeLegacySharedPlanPath reports whether requestedPath matches the legacy shared plan path (case-insensitive). Used as a narrow fallback when the workspace home cannot be resolved.

(requestedPath string)

Source from the content-addressed store, hash-verified

105// matches the legacy shared plan path (case-insensitive). Used as a
106// narrow fallback when the workspace home cannot be resolved.
107func looksLikeLegacySharedPlanPath(requestedPath string) bool {
108 normalized := path.Clean(requestedPath)
109 return strings.EqualFold(normalized, LegacySharedPlanPath)
110}

Callers 2

rejectSharedPlanPathFunction · 0.85

Calls

no outgoing calls

Tested by 1