MCPcopy
hub / github.com/graphql/graphiql / _getTextModel

Method _getTextModel

packages/monaco-graphql/src/GraphQLWorker.ts:151–159  ·  view source on GitHub ↗

* TODO: store this in a proper document cache in the language service

(uri: string)

Source from the content-addressed store, hash-verified

149 * TODO: store this in a proper document cache in the language service
150 */
151 private _getTextModel(uri: string): monaco.worker.IMirrorModel | null {
152 const models = this._ctx.getMirrorModels();
153 for (const model of models) {
154 if (model.uri.toString() === uri) {
155 return model;
156 }
157 }
158 return null;
159 }
160 public doUpdateSchema(schema: SchemaConfig) {
161 return this._languageService.updateSchema(schema);
162 }

Callers 5

doValidationMethod · 0.95
doCompleteMethod · 0.95
doHoverMethod · 0.95
doFormatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected