mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-07 12:16:24 +00:00

- Temporarily disable the deque test for the VS Code extension, as the Rust formatter seems to malfunction after a recent VS Code update. - Add configuration for iwasm host managed heap size, allowing users to flexibly `malloc` memory. This also fixes the current bug that when default size is 0, it can't run and debug. - Apply coding style formatting for WAMR IDE source code and add a format check for it in CI. - Update document and some screenshots.
30 lines
1018 B
JavaScript
30 lines
1018 B
JavaScript
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
*/
|
|
|
|
const vscode = acquireVsCodeApi();
|
|
|
|
document.getElementById('btn_submit').onclick = () => {
|
|
submitFunc();
|
|
};
|
|
|
|
function submitFunc() {
|
|
let outputFileName = document.getElementById('output_file_name').value;
|
|
let initMemSize = document.getElementById('initial_mem_size').value;
|
|
let maxMemSize = document.getElementById('max_mem_size').value;
|
|
let stackSize = document.getElementById('stack_size').value;
|
|
let exportedSymbols = document.getElementById('exported_symbols').value;
|
|
let hostManagedHeapSize = document.getElementById('host_managed_heap_size').value;
|
|
|
|
vscode.postMessage({
|
|
command: 'config_build_target',
|
|
outputFileName: outputFileName,
|
|
initMemSize: initMemSize,
|
|
maxMemSize: maxMemSize,
|
|
stackSize: stackSize,
|
|
exportedSymbols: exportedSymbols,
|
|
hostManagedHeapSize: hostManagedHeapSize,
|
|
});
|
|
}
|