[英]visual studio is hiding .js.map files and .js file , only the typescript .ts files are showing ,
I have used Visual Studio Code in the past for Angular 2, in which if I didn't want to SEE the .js and .js.map files it was a workplace setting place to hide from the IDE. 我以前在Angular 2中使用过Visual Studio Code,如果我不想查看.js和.js.map文件,那么它就是一个隐藏在IDE中的工作区设置位置。
I'm now on a project in which VS 2017 professional is used with Typescript, jasmine , karma with Angular 4. Task Runner etc.. 我现在正在开展一个项目,其中VS 2017专业版使用的是Typescript,jasmine,karma和Angular 4. Task Runner等。
I want to be able to see and delete .js and .js.map files , for one karma is notorious for caching ... not fun. 我希望能够看到和删除.js和.js.map文件,因为一个业力因缓存而臭名昭着......并不好玩。
I have been going through a lot of files and I don't get why the files are not around. 我一直在浏览很多文件而且我不明白为什么这些文件不在我身边。
Here is my tsconfig.json
这是我的tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"allowJs": true,
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2016",
"dom"
]
}
}
That says
allowJS : true
那就是说allowJS : true
What other file(s) can I paste to show? 我可以粘贴哪些其他文件显示? what is happening on the compile/build? 编译/构建发生了什么?
It might be a VS Code Setting: files.exclude
. 它可能是VS代码设置: files.exclude
。 Its value might contain a glob pattern that filters your .js files out. 它的值可能包含一个用于过滤.js文件的glob模式。
You can find it in: 您可以在以下位置找到它:
%APPDATA%\\Code\\User\\settings.json
) 用户设置( %APPDATA%\\Code\\User\\settings.json
) .vscode\\settings.json
) 工作区设置( .vscode\\settings.json
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.