添加路径提示支持
parent
8171fcd346
commit
1d8702e95f
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"path-intellisense.mappings": {
|
||||||
|
"@main/*": "${workspaceFolder}/src/main/*",
|
||||||
|
"@renderer/*": "${workspaceFolder}/src/renderer/*",
|
||||||
|
"@lyric/*": "${workspaceFolder}/src/renderer-lyric/*",
|
||||||
|
"@static/*": "${workspaceFolder}/src/static/*",
|
||||||
|
"@common/*": "${workspaceFolder}/src/common/*",
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,19 +1,13 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"baseUrl": "./",
|
||||||
"target": "es6",
|
|
||||||
// This is the line you want to add
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
|
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"@main": ["src/main"],
|
"@main/*": ["src/main/*"],
|
||||||
"@renderer": ["src/renderer"],
|
"@renderer/*": ["src/renderer/*"],
|
||||||
"@lyric": ["src/renderer-lyric"],
|
"@lyric/*": ["src/renderer-lyric/*"],
|
||||||
"@static": ["src/static"],
|
"@static/*": ["src/static/*"],
|
||||||
"@common": ["src/common"],
|
"@common/*": ["src/common/*"],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["src/**/*"],
|
"exclude": ["node_modules", "build", "dist"]
|
||||||
"exclude": ["node_modules/**/*"]
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue