We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
given the grammar
entry Model: 'model' name=ID '{' enitities+=Entity* elements+=Element* '}'; Entity: "entity" name=ID "{" fields+=Field* '}'; Field: name=ID; Element: name=ID ":" type=TypeWithEverythingAndSauce; TypeWithEverythingAndSauce: InlineType | Type | FieldType; InlineType: {infer InlineType} 'inline' '<' '{' '}' '>'; BuiltInType infers BuiltInType: TextType | NumberType; TextType infers DataType: name='Text'; NumberType infers DataType: name='Number'; FieldType: 'field''<' entity=[Entity:ID] '.' field=FieldRefOrBuiltInField'>'; Type: BuiltInType | FieldType; FieldRef: field=[Field:ID]; BuiltInFieldId infers BuiltInField: name="id"; FieldRefOrBuiltInField: FieldRef | BuiltInFieldId;
and scope provider
export class HelloWorldScopeProvider extends DefaultScopeProvider { override getScope(context: ReferenceInfo): Scope { if (isFieldRef(context.container)) { if (context.property === "field") { return this.createScopeForNodes(context.container.$container.entity.ref?.fields || []); } } return super.getScope(context); } }
content assist does not work here
model mymodel { entity MyEntitiy { yyyy} xxxx: field<MyEntitiy.|yyyy> }
when removing the redunant FieldType from TypeWithEverythingAndSauce it works as expected
FieldType
TypeWithEverythingAndSauce
The text was updated successfully, but these errors were encountered:
No branches or pull requests
given the grammar
and scope provider
content assist does not work here
when removing the redunant
FieldType
fromTypeWithEverythingAndSauce
it works as expectedThe text was updated successfully, but these errors were encountered: