You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User story.
As a user of the VSCode plugin, when working on $reffed files that aren't root documents, Spectral properly find out the proper root file to lint.
Is your feature request related to a problem? stoplightio/vscode-spectral#6 introduces a half-baked way to deal with this by managing an in-memory tree of dependencies based on the issues that have been in found. Although this helps (a bit) the "lint-while-you-work" experience, this is very fragile.
Describe the solution you'd like
Maybe a first step would be to have run()/runWithResolved() return an object representing the dep graph of the files that the resolver met. This dep graph may contain multiple roots. This object would also expose a helper function allowing one to find the proper root(s) from a random file.
This discussion was converted from issue #1282 on March 23, 2023 16:17.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
User story.
As a user of the VSCode plugin, when working on $reffed files that aren't root documents, Spectral properly find out the proper root file to lint.
Is your feature request related to a problem?
stoplightio/vscode-spectral#6 introduces a half-baked way to deal with this by managing an in-memory tree of dependencies based on the issues that have been in found. Although this helps (a bit) the "lint-while-you-work" experience, this is very fragile.
Describe the solution you'd like
Maybe a first step would be to have
run()/runWithResolved()
return an object representing the dep graph of the files that the resolver met. This dep graph may contain multiple roots. This object would also expose a helper function allowing one to find the proper root(s) from a random file.Beta Was this translation helpful? Give feedback.
All reactions