Activate language features solely on file open (in theia IDE) #1369
-
Hi, is it possible to active the language features only to the file(s) which are currently opened by the IDE? Usually the whole workspace is parsed on extension activation and if the workspace contains many files, this makes the (theia) IDE pretty slow. If yes, can this be made configurable in a "lunch.json" file or so? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @chbo123456, you will effectively need to build a toggle for this behavior: langium/packages/langium/src/workspace/workspace-manager.ts Lines 80 to 83 in 8a53552 You could maybe create a config format for your language (similar to |
Beta Was this translation helpful? Give feedback.
Either
traverseFolder
or the wholeinitializeWorkspace
method if needed. It depends on how much you actually need to modify the behavior.