Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

时间格式错误且无法自动更新最后修改时间 #23

Closed
yi-Xu-0100 opened this issue Feb 21, 2019 · 4 comments
Closed

时间格式错误且无法自动更新最后修改时间 #23

yi-Xu-0100 opened this issue Feb 21, 2019 · 4 comments

Comments

@yi-Xu-0100
Copy link

yi-Xu-0100 commented Feb 21, 2019

描述bug(必填)

时间格式与预期不符,和文档中说明的格式也不符,且 ctrl + s 后文件未更新最后修改时间
插入头部注释显示如下:

复现步骤

任意 md 文件均如此,vscode无报错

注释设置(必填):

VsCode设置:

    "fileheader.configObj": {
        "createFileTime": true,
        "timeNoDetail": false,
        "language": {
            "languagetest": {
                "head": "/$$",
                "middle": " $ @",
                "end": " $/"
            },
            "markdown": {
                "head": "---",
                "middle": "",
                "end": "---"
            }
        },
        "autoAdd": false,
        "autoAlready": true,
        "annotationStr": {
            "head": "/*",
            "middle": " * @",
            "end": " */",
            "use": false
        },
        "headInsertLine": {
            "php": 2
        },
        "beforeAnnotation": {
            "py": "#!/usr/bin/env python\n# coding=UTF-8"
        },
        "specialOptions": {
            "Date": "date",
            "LastEditTime": "updated_at",
        }
    },
    "fileheader.cursorMode": {},
    "fileheader.customMade": {
            "Date": "Do not edit", // 文件创建时间(不变)
            "LastEditTime": "Do not edit", // 文件最后编辑时间
            "tags": "",
            "title": "",
            "description": "",
            "keywords": "",
    }

文件后缀(必填):

md

你得到的注释(必填):

你生成的注释为:

---
tags: 
title: 
description: 
keywords: 
date: Thu Feb 21 2019 20:35:59
updated_at: Thu Feb 21 2019 21:16:13
---

预期的行为:

预期得到的注释/行为:

---
tags: 
title: 
description: 
keywords: 
date: 2019-02-21 20:35:59
updated_at: 2019-02-21 21:16:13
---
@OBKoro1
Copy link
Owner

OBKoro1 commented Feb 22, 2019

@yi-Xu-0100 这是一个bug,将在本周修复!

@OBKoro1
Copy link
Owner

OBKoro1 commented Feb 22, 2019

@yi-Xu-0100
插件已经更新,感谢如此详细的issue!
PS: 本来打算跟其他内容一起发布,想着其他内容没有这么快,先把这个bug修复了。

@cnxxg
Copy link

cnxxg commented Mar 13, 2019

vue文件无法添加函数注释,报:command 'extension.cursorTip' not found,请问怎么解决?

@OBKoro1
Copy link
Owner

OBKoro1 commented Mar 13, 2019

@cnxxg 这是由于命令没有被正确注册的原因,具体问题还未找到。

  1. 尝试按ctrl+p,输入> cursorTip 调出命令,看是否能成功运行。
    image

  2. 试一下重装插件。

  3. 如果都未能解决,请附上你的详细配置,插件版本,vscode版本,操作系统,等尽可能详细的信息,帮助解决问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants