|
@@ -21,12 +21,9 @@ let handle_display_argument_old com file_pos actx =
|
|
| "memory" ->
|
|
| "memory" ->
|
|
actx.did_something <- true;
|
|
actx.did_something <- true;
|
|
(try Memory.display_memory com with e -> prerr_endline (Printexc.get_backtrace ()));
|
|
(try Memory.display_memory com with e -> prerr_endline (Printexc.get_backtrace ()));
|
|
- | "diagnostics" ->
|
|
|
|
- com.report_mode <- RMLegacyDiagnostics []
|
|
|
|
| _ ->
|
|
| _ ->
|
|
let file, pos = try ExtString.String.split file_pos "@" with _ -> failwith ("Invalid format: " ^ file_pos) in
|
|
let file, pos = try ExtString.String.split file_pos "@" with _ -> failwith ("Invalid format: " ^ file_pos) in
|
|
let file = Helper.unquote file in
|
|
let file = Helper.unquote file in
|
|
- let file_unique = com.file_keys#get file in
|
|
|
|
let pos, smode = try ExtString.String.split pos "@" with _ -> pos,"" in
|
|
let pos, smode = try ExtString.String.split pos "@" with _ -> pos,"" in
|
|
let create mode =
|
|
let create mode =
|
|
Parser.display_mode := mode;
|
|
Parser.display_mode := mode;
|
|
@@ -45,10 +42,6 @@ let handle_display_argument_old com file_pos actx =
|
|
create DMDefault
|
|
create DMDefault
|
|
| "module-symbols" ->
|
|
| "module-symbols" ->
|
|
create (DMModuleSymbols None)
|
|
create (DMModuleSymbols None)
|
|
- | "diagnostics" ->
|
|
|
|
- com.report_mode <- RMLegacyDiagnostics [file_unique];
|
|
|
|
- let dm = create DMNone in
|
|
|
|
- {dm with dms_display_file_policy = DFPAlso; dms_per_file = true; dms_populate_cache = !ServerConfig.populate_cache_from_display}
|
|
|
|
| "statistics" ->
|
|
| "statistics" ->
|
|
com.report_mode <- RMStatistics;
|
|
com.report_mode <- RMStatistics;
|
|
let dm = create DMNone in
|
|
let dm = create DMNone in
|
|
@@ -348,8 +341,6 @@ let handle_display_after_finalization ctx tctx display_file_dot_path =
|
|
end;
|
|
end;
|
|
process_global_display_mode com tctx;
|
|
process_global_display_mode com tctx;
|
|
begin match com.report_mode with
|
|
begin match com.report_mode with
|
|
- | RMLegacyDiagnostics _ ->
|
|
|
|
- DisplayOutput.emit_legacy_diagnostics com
|
|
|
|
| RMDiagnostics _ ->
|
|
| RMDiagnostics _ ->
|
|
DisplayOutput.emit_diagnostics com
|
|
DisplayOutput.emit_diagnostics com
|
|
| RMStatistics ->
|
|
| RMStatistics ->
|