Skip to content

Consider differentiating these two *CompletionContext scenarios using fewer public types #1929

Closed
@jonsequitur

Description

@jonsequitur
    public class TextCompletionContext : CompletionContext 
    {
        public string CommandLineText { get; }
        public int CursorPosition { get; }
        public TextCompletionContext AtCursorPosition(int position);
    }
 
    // Does this class need to be public?  (Could some other library instantiate one meaningfully?)
    public class TokenCompletionContext : CompletionContext 
    {
    }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions