Skip to content

Commit

Permalink
#nullable enable IWorkspaceProjectContext
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmalinowski committed Dec 2, 2023
1 parent 611ef89 commit b79f0f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ public string DisplayName

public string BinOutputPath
{
get => _vsProjectContext.BinOutputPath;
get => _vsProjectContext.BinOutputPath!;
set => _vsProjectContext.BinOutputPath = value;
}

public ProjectId Id
=> _vsProjectContext.Id;

public string FilePath
=> _vsProjectContext.ProjectFilePath;
=> _vsProjectContext.ProjectFilePath!;

public int ProjectReferenceCount
=> _projectReferences.Count;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable disable

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem;

namespace Microsoft.VisualStudio.LanguageServices.ProjectSystem
{
Expand All @@ -23,10 +20,10 @@ internal interface IWorkspaceProjectContext : IDisposable
{
// Project properties.
string DisplayName { get; set; }
string ProjectFilePath { get; set; }
string? ProjectFilePath { get; set; }
Guid Guid { get; set; }
bool LastDesignTimeBuildSucceeded { get; set; }
string BinOutputPath { get; set; }
string? BinOutputPath { get; set; }

/// <summary>
/// When this project is one of a multi-targeting group of projects, this value indicates whether or not this
Expand Down Expand Up @@ -55,11 +52,11 @@ internal interface IWorkspaceProjectContext : IDisposable
void RemoveAnalyzerReference(string referencePath);

// Files.
void AddSourceFile(string filePath, bool isInCurrentContext = true, IEnumerable<string> folderNames = null, SourceCodeKind sourceCodeKind = SourceCodeKind.Regular);
void AddSourceFile(string filePath, bool isInCurrentContext = true, IEnumerable<string>? folderNames = null, SourceCodeKind sourceCodeKind = SourceCodeKind.Regular);
void RemoveSourceFile(string filePath);
void AddAdditionalFile(string filePath, bool isInCurrentContext = true);
void RemoveAdditionalFile(string filePath);
void AddDynamicFile(string filePath, IEnumerable<string> folderNames = null);
void AddDynamicFile(string filePath, IEnumerable<string>? folderNames = null);
void RemoveDynamicFile(string filePath);

/// <summary>
Expand Down

0 comments on commit b79f0f9

Please sign in to comment.