-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from retailcoder/pipeline/state
Collects document state, resolves member symbols (some cut corners, but mostly works)
- Loading branch information
Showing
71 changed files
with
1,163 additions
and
434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
Server/Rubberduck.LanguageServer/SyntaxErrorMessageService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Microsoft.Extensions.Logging; | ||
using Rubberduck.InternalApi.Services; | ||
using Rubberduck.InternalApi.Settings; | ||
using Rubberduck.Parsing.Exceptions; | ||
|
||
namespace Rubberduck.LanguageServer | ||
{ | ||
public class SyntaxErrorMessageService : ServiceBase, ISyntaxErrorMessageService | ||
{ | ||
public SyntaxErrorMessageService(ILogger<SyntaxErrorMessageService> logger, RubberduckSettingsProvider settingsProvider, PerformanceRecordAggregator performance) | ||
: base(logger, settingsProvider, performance) | ||
{ | ||
} | ||
|
||
public bool TryGetMeaningfulMessage(AntlrSyntaxErrorInfo info, out string message) | ||
{ | ||
/*TODO*/ | ||
|
||
message = info.Message; | ||
return false; | ||
} | ||
} | ||
} |
10 changes: 6 additions & 4 deletions
10
Server/Rubberduck.Parsing/Abstract/ICompilationArgumentsCache.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
namespace Rubberduck.Parsing.Abstract; | ||
using Rubberduck.InternalApi.Extensions; | ||
|
||
namespace Rubberduck.Parsing.Abstract; | ||
|
||
public interface ICompilationArgumentsCache : ICompilationArgumentsProvider | ||
{ | ||
void ReloadCompilationArguments(IEnumerable<Uri> workspaceUris); | ||
IReadOnlyCollection<Uri> ProjectWhoseCompilationArgumentsChanged(); | ||
void ReloadCompilationArguments(IEnumerable<WorkspaceUri> workspaceUris); | ||
IReadOnlyCollection<WorkspaceUri> ProjectWhoseCompilationArgumentsChanged(); | ||
void ClearProjectWhoseCompilationArgumentsChanged(); | ||
void RemoveCompilationArgumentsFromCache(IEnumerable<Uri> workspaceUris); | ||
void RemoveCompilationArgumentsFromCache(IEnumerable<WorkspaceUri> workspaceUris); | ||
} |
5 changes: 3 additions & 2 deletions
5
Server/Rubberduck.Parsing/Abstract/ICompilationArgumentsProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
using Rubberduck.Parsing.PreProcessing; | ||
using Rubberduck.InternalApi.Extensions; | ||
using Rubberduck.Parsing.PreProcessing; | ||
|
||
namespace Rubberduck.Parsing.Abstract; | ||
|
||
public interface ICompilationArgumentsProvider | ||
{ | ||
VBAPredefinedCompilationConstants PredefinedCompilationConstants { get; } | ||
Dictionary<string, short> UserDefinedCompilationArguments(Uri workspaceRoot); | ||
Dictionary<string, short> UserDefinedCompilationArguments(WorkspaceUri workspaceRoot); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.