Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 812 Bytes

File metadata and controls

21 lines (16 loc) · 812 Bytes

CodeEditorService

MVVM service that provides access to CodeEditor control functionality from ViewModels.

Interface

public interface ICodeEditorService {
    void MarkAsSaved();
    Task<IReadOnlyCollection<string>> GetLanguagesAsync(CancellationToken cancellationToken = default);
    void RegisterLanguage(LanguageDescriptor language);
}

Methods

Name Description
MarkAsSaved() Resets the IsModified flag of the associated CodeEditor to false.
GetLanguagesAsync(CancellationToken) Asynchronously retrieves a collection of available programming language IDs from the associated CodeEditor.
RegisterLanguage(LanguageDescriptor) Registers a custom programming language with a Monarch tokenizer in the associated CodeEditor.