modified src/vscode_plugin/h2dts/ts_vs_plugin/src/extension.js src/vscode_plugin/h2sa/service_vs_plugin/src/vs_plugin_view.html

Signed-off-by: zhangmenghan <zhangmenghan@kaihong.com>
This commit is contained in:
zhangmenghan 2024-07-11 09:53:11 +08:00
parent 45bf7cf18e
commit 8306111f77
2 changed files with 4 additions and 4 deletions

View File

@ -43,11 +43,11 @@ function activate(context) {
context.subscriptions.push(disposableMenu); context.subscriptions.push(disposableMenu);
let platform = detectPlatform(); let platform = detectPlatform();
if (platform == 'win') { if (platform === 'win') {
exeFilePath = __dirname + '/napi_generator-win.exe'; exeFilePath = __dirname + '/napi_generator-win.exe';
} else if (platform == 'mac') { } else if (platform === 'mac') {
exeFilePath = __dirname + '/napi_generator-macos'; exeFilePath = __dirname + '/napi_generator-macos';
} else if (platform == 'Linux') { } else if (platform === 'Linux') {
exeFilePath = __dirname + '/napi_generator-linux'; exeFilePath = __dirname + '/napi_generator-linux';
} }
} }

View File

@ -174,7 +174,7 @@
function checkServiceId(value) { function checkServiceId(value) {
if (value < 1 || value > 16777215) { if (value < 1 || value > 16777215) {
document.getElementById('error').style.display = ''; document.getElementById('error').style.display = '';
document.getElementById('error').innerHTML = 'serviceID范围错误, 请输入0-16777215之间的数字'; document.getElementById('error').innerHTML = 'serviceID范围错误, 请输入0-16777215之间的数字';
} else { } else {
document.getElementById('error').style.display = 'none'; document.getElementById('error').style.display = 'none';
document.getElementById('error').innerHTML = ''; document.getElementById('error').innerHTML = '';