You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Equivalent of registry.loadGrammarFromPathSync API that doesn't touch the disk #21
This issue is a feature request.
In our scenario (test harness), it's desirable to instantiate grammar from a text string and not a file on the disk. Could we add such API?
PR welcome. You can add an optional getFileContents?(filePath:string): string to the IGrammarLocator and then try that first before going to fs and pass some object encapsulating file reading to the two methods in grammarReader.ts.
Activity
alexdima commentedon Sep 7, 2016
PR welcome. You can add an optional
getFileContents?(filePath:string): stringto theIGrammarLocatorand then try that first before going tofsand pass some object encapsulating file reading to the two methods ingrammarReader.ts.alexdima commentedon Jul 12, 2019
This is now supported via the
loadGrammarindirection.vors commentedon Jul 13, 2019
Good!