* override all schema config. * * @param schemas {SchemaConfig[]}
(schemas: SchemaConfig[])
| 107 | * @param schemas {SchemaConfig[]} |
| 108 | */ |
| 109 | public setSchemaConfig(schemas: SchemaConfig[]): void { |
| 110 | this._schemas = schemas || null; |
| 111 | this._schemasById = schemas.reduce((result, schema) => { |
| 112 | result[schema.uri] = schema; |
| 113 | return result; |
| 114 | }, Object.create(null)); |
| 115 | this._onDidChange.fire(this); |
| 116 | } |
| 117 | |
| 118 | public setExternalFragmentDefinitions( |
| 119 | externalFragmentDefinitions: string | FragmentDefinitionNode[], |
no outgoing calls
no test coverage detected