Remove debug logs

This commit is contained in:
André Oliveira 2021-08-06 23:52:33 +00:00
parent 6d59219d26
commit b29508949d
2 changed files with 1 additions and 8 deletions

View File

@ -132,9 +132,6 @@ pub(crate) fn handle_view_crate_graph(
) -> Result<String> {
let _p = profile::span("handle_view_crate_graph");
let dot = snap.analysis.view_crate_graph(params.full)??;
eprintln!("{}", dot);
Ok(dot)
}

View File

@ -483,16 +483,14 @@ function crateGraph(ctx: Ctx, full: boolean): Cmd {
const params = {
full: full,
};
const dot = await ctx.client.sendRequest(ra.viewCrateGraph, params);
console.log(dot);
const dot = await ctx.client.sendRequest(ra.viewCrateGraph, params);
let scripts = [
{ file: vscode.Uri.joinPath(node_modules_path, 'd3', 'dist', 'd3.min.js') },
{ file: vscode.Uri.joinPath(node_modules_path, '@hpcc-js', 'wasm', 'dist', 'index.min.js'), worker: true },
{ file: vscode.Uri.joinPath(node_modules_path, 'd3-graphviz', 'build', 'd3-graphviz.min.js') },
]
console.log(scripts);
const scripts_html = scripts.map(({ file, worker }) => {
let uri = panel.webview.asWebviewUri(file);
@ -535,8 +533,6 @@ function crateGraph(ctx: Ctx, full: boolean): Cmd {
</body>
`;
console.log(html);
panel.webview.html = html;
};
}