Remove debug logs
This commit is contained in:
parent
6d59219d26
commit
b29508949d
@ -132,9 +132,6 @@ pub(crate) fn handle_view_crate_graph(
|
|||||||
) -> Result<String> {
|
) -> Result<String> {
|
||||||
let _p = profile::span("handle_view_crate_graph");
|
let _p = profile::span("handle_view_crate_graph");
|
||||||
let dot = snap.analysis.view_crate_graph(params.full)??;
|
let dot = snap.analysis.view_crate_graph(params.full)??;
|
||||||
|
|
||||||
eprintln!("{}", dot);
|
|
||||||
|
|
||||||
Ok(dot)
|
Ok(dot)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -483,16 +483,14 @@ function crateGraph(ctx: Ctx, full: boolean): Cmd {
|
|||||||
const params = {
|
const params = {
|
||||||
full: full,
|
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 = [
|
let scripts = [
|
||||||
{ file: vscode.Uri.joinPath(node_modules_path, 'd3', 'dist', 'd3.min.js') },
|
{ 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, '@hpcc-js', 'wasm', 'dist', 'index.min.js'), worker: true },
|
||||||
{ file: vscode.Uri.joinPath(node_modules_path, 'd3-graphviz', 'build', 'd3-graphviz.min.js') },
|
{ file: vscode.Uri.joinPath(node_modules_path, 'd3-graphviz', 'build', 'd3-graphviz.min.js') },
|
||||||
]
|
]
|
||||||
console.log(scripts);
|
|
||||||
|
|
||||||
const scripts_html = scripts.map(({ file, worker }) => {
|
const scripts_html = scripts.map(({ file, worker }) => {
|
||||||
let uri = panel.webview.asWebviewUri(file);
|
let uri = panel.webview.asWebviewUri(file);
|
||||||
@ -535,8 +533,6 @@ function crateGraph(ctx: Ctx, full: boolean): Cmd {
|
|||||||
</body>
|
</body>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
console.log(html);
|
|
||||||
|
|
||||||
panel.webview.html = html;
|
panel.webview.html = html;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user