哪个扩展名刚刚修改了我的文件? [英] which extension just modified on my files?
问题描述
有什么方法可以知道哪个扩展修改了我的文件.
Is there any ways to know which extension has modified my files.
我有一个问题,一旦我将文件移动到另一个文件夹,我的所有路径都会被重写.从像 import from '../component/hello.js'
到 'import from 'component/hello.js'`
I have a problem where once I move a file to another folder all my paths are being rewritten.from like import from '../component/hello.js'
to 'import from 'component/hello.js'`
这真的很烦人,因为它会对我的应用程序中的所有文件都这样做.
It is really annoying since it would do it for all the files in my app.
谢谢
推荐答案
查看 v1.52 中的 Extension Bisect
功能,参见 https://stackoverflow.com/a/65177115/836330
Check the Extension Bisect
feature in v1.52, see https://stackoverflow.com/a/65177115/836330
我目前无法对此进行测试,但可以看到此设置:
I am currently unable to test this but see this setting:
//在 VS Code 中重命名或移动文件时启用/禁用导入路径的自动更新.可能的值有:每次重命名时提示"、总是"自动更新路径,以及从不"重命名路径并且不提示我.需要在工作区中使用 TypeScript 2.9 或更新版本.
// Enable/disable automatic updating of import paths when you rename or move a file in VS Code. Possible values are: 'prompt' on each rename, 'always' update paths automatically, and 'never' rename paths and don't prompt me. Requires using TypeScript 2.9 or newer in the workspace.
"javascript.updateImportsOnFileMove.enabled": "prompt",
"提示
"是默认设置,因此您应该看到这是更新导入路径的原因.无论如何,请尝试never
".
"prompt
" is the default so you should be seeing that if this is the cause of the updating of your import paths. In any case, try "never
".
这篇关于哪个扩展名刚刚修改了我的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!