From 13f7e4f0c337b4dae013cb6bfbaa0a86c4ffd5e6 Mon Sep 17 00:00:00 2001 From: chen-zhongwei050 Date: Thu, 7 Nov 2024 19:07:53 +0800 Subject: [PATCH] fix napi class snippets bug Signed-off-by: chen-zhongwei050 --- src/vscode_plugin/snippets/napi_class_snippets.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vscode_plugin/snippets/napi_class_snippets.json b/src/vscode_plugin/snippets/napi_class_snippets.json index a5c03b40..b94eb08f 100644 --- a/src/vscode_plugin/snippets/napi_class_snippets.json +++ b/src/vscode_plugin/snippets/napi_class_snippets.json @@ -50,6 +50,7 @@ " // Retrieve obj (the C++ object) previously wrapped in jsThis (the ArkTS object), and perform subsequent operations.", " napi_unwrap(env, jsThis, reinterpret_cast(&obj));", " // Todo: you can use \"napistringutf8out\" command that return string utf8 value to js.", + " return stringOut;", "}", "napi_value HelloWorld::SetValue(napi_env env, napi_callback_info info)", "{",