VSCode IDE enhancement and readme update (#3172)

- 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.
This commit is contained in:
TianlongLiang
2024-02-22 12:36:49 +08:00
committed by GitHub
parent 1429d8cc03
commit 0fa0beba94
23 changed files with 303 additions and 182 deletions

View File

@ -31,6 +31,7 @@ export class WasmTaskProvider implements vscode.TaskProvider {
/* target name is used for generated aot target */
const targetName =
TargetConfigPanel.buildArgs.outputFileName.split('.')[0];
const heapSize = TargetConfigPanel.buildArgs.hostManagedHeapSize;
if (
os.platform() === 'linux' ||
@ -57,7 +58,7 @@ export class WasmTaskProvider implements vscode.TaskProvider {
: (this._script.get('debugScript') as string),
options: {
executable: this._script.get('debugScript'),
shellArgs: [targetName, this._wamrVersion],
shellArgs: [targetName, this._wamrVersion, heapSize],
},
};
@ -69,7 +70,7 @@ export class WasmTaskProvider implements vscode.TaskProvider {
: (this._script.get('runScript') as string),
options: {
executable: this._script.get('runScript'),
shellArgs: [targetName, this._wamrVersion],
shellArgs: [targetName, this._wamrVersion, heapSize],
},
};