VSCode run code $dir 获取的路劲带栓引号

漠_然 / 2024-09-27 / 原文

一、善生原因:

    $dir 插件中(codeManager.js)对应的方法 quoteFileName 加上了双引号;

 

 

二、解决方案:

修改quoteFileName,

 修改成:

    quoteFileName(fileName) {
        return  fileName  ';
    }

 

 

三、补充:

$dirWithoutTrailingSlash 与$dir 区别,前者路径后面不带“/”, 后者嗲用“、”。