diff --git a/src/vscode_plugin/readme.md b/src/vscode_plugin/readme.md index f31607c42fd12e2464d2397ba0c114e80405b991..d7ca8f379062a1fbfccc1b142a80b8825a6b5832 100644 --- a/src/vscode_plugin/readme.md +++ b/src/vscode_plugin/readme.md @@ -1,6 +1,6 @@ # 模板生成和语言转换工具 -napi-gen插件为OpenHarmony开发者提供模板生成(**sa**模板、**hdf**模板)和语言转换功能(依据**h**头文件转换生成**dts**接口文件 和 **native C++**工程文件)。 +napi-gen插件为OpenHarmony开发者提供模板生成(**sa**模板、**hdf**模板)和语言转换功能(依据**h**头文件转换生成**dts**接口文件 和 **native C++** 工程文件)。 ## 功能: @@ -24,19 +24,19 @@ napi-gen插件为OpenHarmony开发者提供模板生成(**sa**模板、**hdf** 验证过的平台如下: - | DecEco Studio | 4.1 Release(Build Version: 4.1.0.400, built on April 9, 2024) | - | ------------- | ------------------------------------------------------------ | | 平台 | 版本 | + | ------------- | ------------------------------------------------------------ | + | DecEco Studio | 4.1 Release(Build Version: 4.1.0.400, built on April 9, 2024) | ## 使用: -- **方式1**: 右键.h文件在弹出菜单里选择子菜单**[OHOS_Gen]**内的功能: +- **方式1**: 右键.h文件在弹出菜单里选择子菜单 **[OHOS_Gen]** 内的功能: ![](https://gitee.com/openharmony/napi_generator/raw/master/src/vscode_plugin/images/h2sa4-1.png) -- **方式2**: 通过在工具栏选择**[帮助]**->**[显示所有命令]** 或者 快捷命令**[ctrl + shift + p]**在弹出窗口里输入h2dts等命令使用功能 +- **方式2**: 通过在工具栏选择 **[帮助]** -> **[显示所有命令]** 或者 快捷命令 **[ctrl + shift + p]** 在弹出窗口里输入h2dts等命令使用功能 ![](https://gitee.com/openharmony/napi_generator/raw/master/src/vscode_plugin/images/ctrl_shift_p.png) diff --git a/src/vscode_plugin/src/template/sa/sa_i_servicecpp_template.ts b/src/vscode_plugin/src/template/sa/sa_i_servicecpp_template.ts deleted file mode 100644 index f843608499ddd3c03e089defde4a61d6a786920c..0000000000000000000000000000000000000000 --- a/src/vscode_plugin/src/template/sa/sa_i_servicecpp_template.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* -* Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { FileTemp } from "../../datatype"; - -export let iServiceCppTemplate: FileTemp = { - name: 'i_[serviceName]_service.cpp', - content: `#include "i_[lowServiceName]_service.h" - ` -}; \ No newline at end of file diff --git a/src/vscode_plugin/src/template/sa/sadir.ts b/src/vscode_plugin/src/template/sa/sadir.ts index 41529103547ed49a2eef68099a45749a41735246..ec468109530c87a4abd80d760c268164b946374c 100644 --- a/src/vscode_plugin/src/template/sa/sadir.ts +++ b/src/vscode_plugin/src/template/sa/sadir.ts @@ -32,7 +32,6 @@ import { profileJsonTemplate } from './sa_profilejson_template'; import { serviceCfgTemplate } from './sa_cfg_template'; import { serviceCfgTemplate41 } from './sa_cfg_template41'; import { serviceCfgGnTemplate } from './sa_cfggn_template'; -import { iServiceCppTemplate } from './sa_i_servicecpp_template'; import { saReadmeTemplate } from './sa_readme_template'; import { saReadmeTemplate41 } from './sa_readme_template41'; import { DirTemp } from '../../datatype'; @@ -75,7 +74,7 @@ export let sa_profile3_2_dir: DirTemp = { export let src_dir: DirTemp = { name: 'src', - files: [ proxyCppTemplate, stubCppTemplate, serviceCppTemplate, clientCppTemplate,iServiceCppTemplate], + files: [ proxyCppTemplate, stubCppTemplate, serviceCppTemplate, clientCppTemplate], dirs: [] }