Replies: 2 comments
-
This is as designed. There is a single language service (a conceptual equivalent of a single |
Beta Was this translation helpful? Give feedback.
0 replies
-
Gotcha. I've been playing with this scenario in VSCode. It seems like the language service behavior matches the compiler when not using modules (I just added However, when using modules, the errors regarding 'foo' go away. However, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When calling
setModel
, it seems like typescript info isn't being cleared properly.Originally filed here: suren-atoyan/monaco-react#308
monaco-editor version: 0.30.1 (playground version)
Browser: Chrome M96
OS: Linux
Playground code that reproduces the issue:
After the snipped toggles the models, try typing
const bar
. You'll getbar
as a completion choice even thoughbar
is defined in the non-current model.Beta Was this translation helpful? Give feedback.
All reactions