bug fiexe

This commit is contained in:
Van 2014-09-25 16:40:05 +08:00
parent ef70e69416
commit 53240dd58e
4 changed files with 57 additions and 27 deletions

View File

@ -23,7 +23,6 @@
"D:\\go\\src\\pkg"
],
"Files": [
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\main.go",
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\1.json"
],
"CurrentFile": "E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\1.json"

View File

@ -1,16 +1,47 @@
package main
import (
"fmt"
"mytest/time/pkg"
"time"
)
func main() {
for i := 0; i < 50; i++ {
fmt.Println("Hello, 世界", pkg.Now())
time.Sleep(time.Second)
}
}
{
"wide": "Wide",
"isDelete": "是否删除",
"cancel": "取消",
"file": "文件",
"login": "登录",
"username": "用户名",
"password": "密码",
"login_failed": "登录失败",
"run": "运行",
"debug": "调试",
"help": "帮助",
"check_update": "检查更新",
"report_issues": "提建议",
"wide_doc": "Wide 文档",
"about": "关于",
"start_page": "起始页",
"create_file": "创建文件",
"create": "创建",
"create_dir": "创建目录",
"delete": "删除",
"save": "保存",
"exit": "退出",
"close_file": "关闭文件",
"close_all_files": "关闭所有文件",
"save_all_files": "保存所有文件",
"format": "格式化",
"goget": "go get",
"goinstall": "go install",
"build_n_run": "构建 & 运行",
"full_screen": "全屏",
"unread_notification": "未读通知",
"notification_2": "没有检查到 gocode这将会导致 [自动完成] 失效",
"notification_3": "没有检查到 ide_stub这将会导致 [跳转到声明]、[查找使用] 失效",
"goto_line": "跳转到行",
"goto": "跳转",
"input_no_empty": "输入不能为空",
"tip": "提示",
"confirm": "确定",
"stop": "停止",
"output": "输出",
"search": "搜索",
"notification": "通知",
"min": "最小化",
"max_side": "左侧窗口最大化",
"max_bottom": "底部窗口最大化"
}

View File

@ -58,7 +58,7 @@ var editors = {
});
$(".edit-header .tabs").on("dblclick", "div", function () {
$(".edit-panel .tabs").on("dblclick", "div", function () {
editors.fullscreen();
});
},
@ -81,7 +81,7 @@ var editors = {
}
var request = newWideRequest();
request.path = $(".edit-header .current > span:eq(0)").attr("title");
request.path = $(".edit-panel .tabs .current > span:eq(0)").attr("title");
request.code = editor.getValue();
request.cursorLine = cur.line;
request.cursorCh = cur.ch;
@ -133,7 +133,7 @@ var editors = {
var cur = wide.curEditor.getCursor();
var request = newWideRequest();
request.path = $(".edit-header .current > span:eq(0)").attr("title");
request.path = $(".edit-panel .tabs .current > span:eq(0)").attr("title");
request.code = wide.curEditor.getValue();
request.cursorLine = cur.line;
request.cursorCh = cur.ch;

View File

@ -45,14 +45,14 @@ var wide = {
// 是文件的话,查看 editor 中是否被打开,如打开则移除
for (var i = 0, ii = editors.data.length; i < ii; i++) {
if (editors.data[i].id === wide.curNode.tId) {
$(".edit-header .tabs > div[data-index=" + wide.curNode.tId + "]").find(".ico-close").click();
$(".edit-panel .tabs > div[data-index=" + wide.curNode.tId + "]").find(".ico-close").click();
break;
}
}
} else {
for (var i = 0, ii = editors.data.length; i < ii; i++) {
if (tree._isParents(editors.data[i].id, wide.curNode.tId)) {
$(".edit-header .tabs > div[data-index=" + editors.data[i].id + "]").find(".ico-close").click();
$(".edit-panel .tabs > div[data-index=" + editors.data[i].id + "]").find(".ico-close").click();
i--;
ii--;
}
@ -412,7 +412,7 @@ var wide = {
},
_save: function () {
var request = newWideRequest();
request.file = $(".edit-header .current span:eq(0)").attr("title");
request.file = $(".edit-panel .tabs .current span:eq(0)").attr("title");
request.code = wide.curEditor.getValue();
$.ajax({
@ -475,7 +475,7 @@ var wide = {
}
var request = newWideRequest();
request.file = $(".edit-header .current span:eq(0)").attr("title");
request.file = $(".edit-panel .tabs .current span:eq(0)").attr("title");
request.code = wide.curEditor.getValue();
$.ajax({
@ -494,7 +494,7 @@ var wide = {
},
goget: function () {
var request = newWideRequest();
request.file = $(".edit-header .current span:eq(0)").attr("title");
request.file = $(".edit-panel .tabs .current span:eq(0)").attr("title");
$.ajax({
type: 'POST',
@ -510,7 +510,7 @@ var wide = {
},
goinstall: function () {
var request = newWideRequest();
request.file = $(".edit-header .current span:eq(0)").attr("title");
request.file = $(".edit-panel .tabs .current span:eq(0)").attr("title");
request.code = wide.curEditor.getValue();
$.ajax({
@ -526,7 +526,7 @@ var wide = {
});
},
fmt: function () {
var path = $(".edit-header .current span:eq(0)").attr("title");
var path = $(".edit-panel .tabs .current span:eq(0)").attr("title");
var mode = wide.curEditor.getOption("mode");
var request = newWideRequest();