打开VS Code的用户数据目录,即C:\Users<YourUsername>\AppData\Roaming\Code。 删除以下文件夹: 删除Extensions文件夹:如果你不再需要某些插件或扩展程序,可以直接删除该文件夹。但请注意,删除插件和扩展程序可能会导致部分功能不可用。 删除CachedData文件夹:该文件夹存储了VS Code的缓存数据,你可以安全地删除其中的...
–在Windows上,缓存文件存储在”%APPDATA%\Code”目录的”Cache”文件夹中。删除该文件夹中的所有内容。 –在Mac上,缓存文件存储在”$HOME/Library/Application Support/Code”目录的”CachedData”文件夹中。删除该文件夹中的所有内容。 –在Linux上,缓存文件存储在”$HOME/.config/Code”目录的”CachedData”文件...
this._readSourceAndCachedData(normalizedScriptSrc, cachedDataPath, recorder, (err: any, data: string, cachedData: Buffer, hashData: Buffer) => { let scriptSource: string; if (data.charCodeAt(0) === NodeScriptLoader._BOM) { scriptSource = NodeScriptLoader._PREFIX + data.substring(1) + No...
private _readSourceAndCachedData(sourcePath: string, cachedDataPath: string | undefined, recorder: ILoaderEventRecorder, callback: (err?: any, source?: string, cachedData?: Buffer, hashData?: Buffer) => any): void { if (!cachedDataPath) { // no cached data case this._fs.readFile(sourc...
const startup = nlsConfig => { nlsConfig._languagePackSupport = true; process.env['VSCODE_NLS_CONFIG'] = JSON.stringify(nlsConfig); process.env['VSCODE_NODE_CACHED_DATA_DIR'] = cachedDataDir || ''; // Load main in AMD perf.mark('willLoadMainBundle'); require('./bootstrap-amd')....
You’ll lose any settings and cached data in the app, so you’ll have to set up the app again from scratched afterwards. This new option only works for the “Universal Windows Platform” apps, which are generally installed from the Windows Store, but we have some tips on resetting desktop...
[nodeCachedDataDir.ensureExists(), resolveNlsConfiguration()]); startup(cachedDataDir, nlsConfig);}function startup(cachedDataDir, nlsConfig) { // 先加载 vscode 自己开源的 AMD Loader https://github.com/Microsoft/vscode-loader/ // 再使用这个 loader 去加载 VSCode 的主入口文件 require('./...
conststartup=nlsConfig=>{nlsConfig._languagePackSupport=true;process.env['VSCODE_NLS_CONFIG']=JSON.stringify(nlsConfig);process.env['VSCODE_NODE_CACHED_DATA_DIR']=cachedDataDir||'';// Load main in AMDperf.mark('willLoadMainBundle');require('./bootstrap-amd').load('vs/code/electron-main/...
// Environment service (paths)constenvironmentServiceInitialization=Promise.all<void|undefined>([environmentService.extensionsPath,environmentService.nodeCachedDataDir,environmentService.logsPath,environmentService.globalStorageHome,environmentService.workspaceStorageHome,environmentService.backupHome].map((path):undefine...
env['VSCODE_NODE_CACHED_DATA_DIR'] = cachedDataDir || ''; perf.mark('willLoadMainBundle'); //使用微软的loader组件加载electron-main/main文件 require('./bootstrap-amd').load('vs/code/electron-main/main', () => { perf.mark('didLoadMainBundle'); }); }; // 2. 接收到有效的配置...