src/Tools/VSCode/extension/src/extension.ts
changeset 75127 1fed80019bff
parent 75126 da1108a6d249
child 75129 49f9fa8f9601
equal deleted inserted replaced
75126:da1108a6d249 75127:1fed80019bff
    28 
    28 
    29   if (isabelle_home === "")
    29   if (isabelle_home === "")
    30     window.showErrorMessage("Missing user settings: isabelle.home")
    30     window.showErrorMessage("Missing user settings: isabelle.home")
    31   else {
    31   else {
    32     const workspace_dir = await Isabelle_FSP.register(context)
    32     const workspace_dir = await Isabelle_FSP.register(context)
    33     const roots = await workspace.findFiles("{ROOT,ROOTS}")
    33     const roots = workspace.workspaceFile === undefined ? await workspace.findFiles("{ROOT,ROOTS}") : []
    34     const isabelle_tool = isabelle_home + "/bin/isabelle"
    34     const isabelle_tool = isabelle_home + "/bin/isabelle"
    35     const standard_args = ["-o", "vscode_unicode_symbols", "-o", "vscode_pide_extensions"]
    35     const standard_args = ["-o", "vscode_unicode_symbols", "-o", "vscode_pide_extensions"]
    36     const session_args = roots.length > 0 ? ["-D", workspace_dir] : []
    36     const session_args = roots.length > 0 && workspace_dir !== undefined ? ["-D", workspace_dir] : []
    37 
    37 
    38     const server_options: ServerOptions =
    38     const server_options: ServerOptions =
    39       library.platform_is_windows() ?
    39       library.platform_is_windows() ?
    40         { command:
    40         { command:
    41             (cygwin_root === "" ? path.join(isabelle_home, "contrib", "cygwin") : cygwin_root) +
    41             (cygwin_root === "" ? path.join(isabelle_home, "contrib", "cygwin") : cygwin_root) +