| e93ba842 | 06-Apr-2022 |
River Riddle <[email protected]> |
[mlir-vscode] Don't emit errors if the user didn't set the server path
This avoids emitting errors in situations where the user doesn't have a server setup, and doesn't mean to (e.g. when they merel
[mlir-vscode] Don't emit errors if the user didn't set the server path
This avoids emitting errors in situations where the user doesn't have a server setup, and doesn't mean to (e.g. when they merely want syntax highlighting).
Differential Revision: https://reviews.llvm.org/D123240
show more ...
|
| 4a6f5d73 | 06-Apr-2022 |
River Riddle <[email protected]> |
[mlir-vscode] Refactor server creation to be lazy
We currently proactively create language clients for every workspace folder, and every language. This makes startup time more costly, and also emits
[mlir-vscode] Refactor server creation to be lazy
We currently proactively create language clients for every workspace folder, and every language. This makes startup time more costly, and also emits errors for missing language servers in contexts that the user currently isn't in. For example, if a user opens a .mlir file we don't want to emit errors about .pdll files. We also don't want to emit errors for missing servers in workspace folders that don't even utilize MLIR.
This commit refactors client creation to lazy-load when a document that requires the server is opened.
Differential Revision: https://reviews.llvm.org/D123184
show more ...
|
| 43c0a45a | 31-Mar-2022 |
River Riddle <[email protected]> |
[mlir-vscode] Add better support for multiple workspace folders
We currently only launch one set of language clients when starting the extension, but this has the unfortunate effect of applying the
[mlir-vscode] Add better support for multiple workspace folders
We currently only launch one set of language clients when starting the extension, but this has the unfortunate effect of applying the same settings to all workspace folders. This commit adds support for multiple workspace folders by launching a server for each folder in the workspace. This allows for having different servers for different workspace folders, e.g. when there are multiple MLIR projects in the same workspace.
Differential Revision: https://reviews.llvm.org/D122793
show more ...
|