Skip to content

Commit

Permalink
fixed this binding for parse in monaco-graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Mar 8, 2022
1 parent ab83198 commit 278aa82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/five-avocados-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'monaco-graphql': patch
---

fixed lost this handle while parsing schema, thanks @waterfoul
2 changes: 1 addition & 1 deletion packages/monaco-graphql/src/LanguageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class LanguageService {
}

private _cacheSchema(schemaConfig: SchemaConfig) {
const schema = this._schemaLoader(schemaConfig, this.parse);
const schema = this._schemaLoader(schemaConfig, this.parse.bind(this));
return this._schemaCache.set(schemaConfig.uri, {
...schemaConfig,
schema,
Expand Down

0 comments on commit 278aa82

Please sign in to comment.