This commit is contained in:
Liang Ding 2022-10-28 20:01:30 +08:00
parent a314f0ffc8
commit 911490c350
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 3 additions and 2 deletions

View file

@ -38,7 +38,7 @@ type Editor struct {
ReadOnly bool `json:"readOnly"` // 只读模式
EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb"` // 嵌入块是否显示面包屑
ListLogicalOutdent bool `json:"listLogicalOutdent"` // 列表逻辑反向缩进
BlockRefFloatWindowMode int `json:"blockRefFloatWindowMode"` // 块引悬浮窗触发模式0光标悬停1按住 Ctrl 悬停
FloatWindowMode int `json:"floatWindowMode"` // 浮窗触发模式0光标悬停1按住 Ctrl 悬停
}
func NewEditor() *Editor {
@ -61,6 +61,6 @@ func NewEditor() *Editor {
ReadOnly: false,
EmbedBlockBreadcrumb: false,
ListLogicalOutdent: false,
BlockRefFloatWindowMode: 0,
FloatWindowMode: 0,
}
}

View file

@ -81,6 +81,7 @@ func Serve(fastMode bool) {
host = "127.0.0.1"
}
logging.LogInfof("boot kernel [fast=%v, port=%s]", fastMode, util.ServerPort)
ln, err := net.Listen("tcp", host+":"+util.ServerPort)
if nil != err {
if !fastMode {