File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,6 @@ export class ProviderRegistry {
3333 }
3434 }
3535
36- getProviderForEditorQuick ( editor : TextEditor ) : Provider | undefined {
37- const grammar = editor . getGrammar ( ) . scopeName
38- return this . findProviderQuick ( grammar )
39- }
40-
4136 // TODO deprecate since there can be N providers.
4237 getProviderForEditor ( editor : TextEditor ) : Provider | null {
4338 const grammar = editor . getGrammar ( ) . scopeName
@@ -50,12 +45,6 @@ export class ProviderRegistry {
5045 return this . findAllProviders ( grammar )
5146 }
5247
53- findProviderQuick ( grammar : string ) : Provider | undefined {
54- return this . providers . find ( ( provider ) => {
55- provider . grammarScopes ?. includes ( grammar )
56- } )
57- }
58-
5948 findProvider ( grammar : string ) : Provider | null {
6049 for ( const provider of this . findAllProviders ( grammar ) ) {
6150 return provider
You can’t perform that action at this time.
0 commit comments