fsPath
parent
5da2e35ca9
commit
4bb21ff6d3
2
index.js
2
index.js
|
@ -159,7 +159,7 @@ function __init__() {
|
||||||
let folders = vsc.workspace.workspaceFolders
|
let folders = vsc.workspace.workspaceFolders
|
||||||
|
|
||||||
if (folders && folders.length) {
|
if (folders && folders.length) {
|
||||||
options.workspace = folders[0].uri.path
|
options.workspace = folders[0].uri.fsPath
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.workspace) {
|
if (options.workspace) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "auto-path",
|
"name": "auto-path",
|
||||||
"displayName": "auto-path",
|
"displayName": "auto-path",
|
||||||
"description": "🔥 自动提示文件路径, 方便引入项目为的文件",
|
"description": "🔥 自动提示文件路径, 方便引入项目为的文件",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"publisher": "yutent",
|
"publisher": "yutent",
|
||||||
"author": "Yutent [@yutent]",
|
"author": "Yutent [@yutent]",
|
||||||
"icon": "logo.png",
|
"icon": "logo.png",
|
||||||
|
|
Loading…
Reference in New Issue