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
Local variables across files within our editor are listed in our autocompletions and show errors related to the local variable. For example if you had two const x = 5 lines in two different files the linter will say you cant redeclare block scoped variables. See attached screenshots for more examples of the issue.
My idea to fix this issue would be to rework how we populate the typescript VFS. I think to fix this problem we will need it to only read and update the current active tab within the editor instead of all the files in our shareDB doc.
The text was updated successfully, but these errors were encountered:
EvWhymark
changed the title
Local Variables are Accessible Across Files.
Local Variables are Accessible in Typescript Across Files.
Dec 5, 2023
I was able to consistently get this interaction rather consistently between two typescript/javascript files. Try out opening index.js and try accessing one of the local variables in hexContinousTest1.js.
Local variables across files within our editor are listed in our autocompletions and show errors related to the local variable. For example if you had two const x = 5 lines in two different files the linter will say you cant redeclare block scoped variables. See attached screenshots for more examples of the issue.
My idea to fix this issue would be to rework how we populate the typescript VFS. I think to fix this problem we will need it to only read and update the current active tab within the editor instead of all the files in our shareDB doc.
The text was updated successfully, but these errors were encountered: