MCPcopy Create free account
hub / github.com/facebook/pyrefly / parseUri

Function parseUri

lsp/src/codeLens.ts:83–92  ·  view source on GitHub ↗
(rawUri: string | undefined)

Source from the content-addressed store, hash-verified

81}
82
83function parseUri(rawUri: string | undefined): vscode.Uri | undefined {
84 if (!rawUri) {
85 return undefined;
86 }
87 try {
88 return vscode.Uri.parse(rawUri);
89 } catch {
90 return undefined;
91 }
92}
93
94function configurationTargetForUri(uri: vscode.Uri): vscode.ConfigurationTarget {
95 return vscode.workspace.getWorkspaceFolder(uri) != null

Callers 2

runMainFileFunction · 0.85
runTestAtLocationFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected