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
This PR makes the following adjustments:
- Fix a potential bug where nested workspace folders could lead to
nested language servers (i.e. in core)
- Improve error reporting for nested language servers
- Improve error reporting for the 'Restart File' command
`Error while starting language server: The project at '${folderUri.fsPath}' of the file '${path.basename(fileUri.fsPath)}' is contained inside of another project at '${clientFolderUri.fsPath}', for which a language server is already running.
43
+
The Lean 4 VS Code extension does not support nested Lean projects.`
`Error while starting language server: The project at '${folderUri.fsPath}' of the file '${path.basename(fileUri.fsPath)}' contains another project at '${clientFolderUri.fsPath}', for which a language server is already running.
51
+
The Lean 4 VS Code extension does not support nested Lean projects.`
52
+
35
53
exportclassSetupDiagnostics{
36
54
privaten: SetupNotifier
37
55
@@ -163,6 +181,56 @@ export class SetupDiagnostics {
@@ -488,6 +506,10 @@ export class LeanClient implements Disposable {
488
506
)
489
507
490
508
if(this.openServerDocuments.has(uri)){
509
+
displayNotification(
510
+
'Error',
511
+
`Cannot restart '${formattedFileName}': The file has already been opened in the language server for the project at '${formattedProjectName}' since initiating the restart.`,
"\n\nIf you are using an up-to-date version of the Lean 4 VS Code extension, please copy the full error message using the 'Copy Error to Clipboard' button and report it at https://github.com/leanprover/vscode-lean4/ or https://leanprover.zulipchat.com/."
12
+
constcopyToClipboardInput='Copy Error to Clipboard'
"\n\nIf you are using an up-to-date version of the Lean 4 VS Code extension, please copy the full error message using the 'Copy Error to Clipboard' button and report it at https://github.com/leanprover/vscode-lean4/ or https://leanprover.zulipchat.com/."
15
-
constcopyToClipboardInput='Copy Error to Clipboard'
0 commit comments