Description
As described by @modderme123 in #103 (comment):
This is an issue with files that don't have imports or exports and are then treated as a global script file. One trick might be to add a tsconfig flag to ignore output_dont_import.tsx?
I tried adding an exclude
option to languages.typescript.typescriptDefaults.setCompilerOptions
(in src/components/editor/setupSolid.ts
) but it doesn't seem to fix the problem.
I previously wrote:
It seems that
src/components/editor/monacoTabs.tsx
'sMonacoTabs
creates two models: themodel
at the top of the function and themodel
for each tab in tabs. I'm seeing the same source code in both the root model and a tab, which is presumably the source of the problem. [...] Could we remove one of the duplicates (presumably the top-level model?)?