Esempio n. 1
0
        protected static LSP.TextDocumentIdentifier CreateTextDocumentIdentifier(Uri uri, ProjectId?projectContext = null)
        {
            var documentIdentifier = new LSP.VSTextDocumentIdentifier {
                Uri = uri
            };

            if (projectContext != null)
            {
                documentIdentifier.ProjectContext =
                    new LSP.ProjectContext {
                    Id = ProtocolConversions.ProjectIdToProjectContextId(projectContext)
                };
            }

            return(documentIdentifier);
        }
        protected static LSP.TextDocumentIdentifier CreateTextDocumentIdentifier(Uri uri, ProjectId?projectContext = null)
        {
            var documentIdentifier = new LSP.VSTextDocumentIdentifier {
                Uri = uri
            };

            if (projectContext != null)
            {
                documentIdentifier.ProjectContext =
                    new LSP.VSProjectContext {
                    Id = ProtocolConversions.ProjectIdToProjectContextId(projectContext), Label = projectContext.DebugName !, Kind = LSP.VSProjectKind.CSharp
                };
            }

            return(documentIdentifier);
        }