flight-manual.atom.io icon indicating copy to clipboard operation
flight-manual.atom.io copied to clipboard

GrammarRegistry docs link to wrong location

Open icecream17 opened this issue 2 years ago • 0 comments

Prerequisites

Description

https://flight-manual.atom.io/api/v1.57.0/GrammarRegistry/ links to the wrong location.

Should be [email protected]/src/grammar-registry.js

But got [email protected]/src/grammar-registry.coffee

Steps to Reproduce

  1. Go to https://flight-manual.atom.io/api/v1.57.0/GrammarRegistry/

Reproduces how often:

100%

Additional Information

Discovered by inconsistent types at https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/atom/src/grammar-registry.d.ts which are difference than the actual methods.

It seems that FirstMate's grammar registry is used for GrammarRegistry#textmateRegistry https://github.com/atom/atom/search?q=FirstMate

The methods are similar but not exactly the same. For example, GrammarRegistry doesn't have onDidRemoveGrammar

icecream17 avatar Sep 18 '21 18:09 icecream17