This commit is contained in:
Liang Ding 2014-09-24 11:58:09 +08:00
parent 67ad39cbb9
commit cf2bb47230
2 changed files with 6 additions and 6 deletions

View File

@ -19,9 +19,9 @@ import (
// 最后一次会话内容结构. // 最后一次会话内容结构.
type LatestSessionContent struct { type LatestSessionContent struct {
FileTree []string `json:"fileTree"` // 文件树展开的路径集 FileTree []string // 文件树展开的路径集
Files []string `json:"files"` // 编辑器打开的文件路径集 Files []string // 编辑器打开的文件路径集
CurrentFile string `json:"currentFile"` // 当前编辑器文件路径 CurrentFile string // 当前编辑器文件路径
} }
// 用户结构. // 用户结构.

View File

@ -35,9 +35,9 @@ var session = {
}, 5000); }, 5000);
}, },
restore: function () { restore: function () {
var fileTree = config.latestSessionContent.fileTree, var fileTree = config.latestSessionContent.FileTree,
files = config.latestSessionContent.files, files = config.latestSessionContent.Files,
currentFile = config.latestSessionContent.currentFile, currentFile = config.latestSessionContent.CurrentFile,
id = "", id = "",
nodesToOpen = []; nodesToOpen = [];