33 references to ParsedUri
Microsoft.CodeAnalysis.LanguageServer.Protocol (33)
Extensions\Extensions.cs (9)
63Contract.ThrowIfNull(documentUri.ParsedUri, $"URI {documentUri} could not be parsed"); 64return documentUri.ParsedUri; 84if (documentUri.ParsedUri is null) 92if (documentUri.ParsedUri.Scheme != SourceGeneratedDocumentUri.Scheme) 93return solution.GetDocumentIdsWithFilePath(ProtocolConversions.GetDocumentFilePathFromUri(documentUri.ParsedUri)); 98var documentId = SourceGeneratedDocumentUri.DeserializeIdentity(solution, documentUri.ParsedUri)?.DocumentId; 119if (documentIdentifier.DocumentUri.ParsedUri?.Scheme == SourceGeneratedDocumentUri.Scheme) 181if (projectIdentifier.DocumentUri.ParsedUri is null) 186var projects = solution.Projects.Where(project => project.FilePath == projectIdentifier.DocumentUri.ParsedUri.LocalPath).ToImmutableArray();
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
125var hasOpenSourceGeneratedDocuments = _lspWorkspaceManager.GetTrackedLspText().Keys.Any(uri => uri.ParsedUri?.Scheme == SourceGeneratedDocumentUri.Scheme);
LanguageInfoProvider.cs (4)
52if (requestUri.ParsedUri is not null && (requestUri.ParsedUri.IsFile || requestUri.ParsedUri.IsAbsoluteUri)) 54var localPath = requestUri.ParsedUri.LocalPath;
Protocol\DocumentUri.cs (12)
84if (otherUri.ParsedUri is null || this.ParsedUri is null) 103if (this.ParsedUri.IsAbsoluteUri && otherUri.ParsedUri.IsAbsoluteUri && this.ParsedUri.AbsoluteUri == otherUri.ParsedUri.AbsoluteUri) 109return Uri.Equals(this.ParsedUri, otherUri.ParsedUri); 115if (this.ParsedUri is null) 121if (this.ParsedUri.IsAbsoluteUri) 132return StringComparer.OrdinalIgnoreCase.GetHashCode(this.ParsedUri.AbsoluteUri); 136return this.ParsedUri.GetHashCode();
Workspaces\LspMiscellaneousFilesWorkspaceProvider.cs (4)
46if (uri.ParsedUri is not null) 48documentFilePath = ProtocolConversions.GetDocumentFilePathFromUri(uri.ParsedUri); 92if (removeFromMetadataWorkspace && uri.ParsedUri is not null && metadataAsSourceFileService.TryRemoveDocumentFromWorkspace(ProtocolConversions.GetDocumentFilePathFromUri(uri.ParsedUri)))
Workspaces\LspWorkspaceManager.cs (3)
111if (uri.ParsedUri is null) 355_trackedDocuments.Keys.Where(static trackedDocument => trackedDocument.ParsedUri?.Scheme == SourceGeneratedDocumentUri.Scheme) 357.Select(uri => (identity: SourceGeneratedDocumentUri.DeserializeIdentity(workspaceCurrentSolution, uri.ParsedUri!), _trackedDocuments[uri].Text))