maptz / maptz.vscode.extensions.customfolding

MIT License
77 stars 21 forks source link

region folding not working - activation fails due to tslib #126

Open mbreiling opened 8 months ago

mbreiling commented 8 months ago

Issue: Extension not working

Setup: settings.json contains: "maptz.regionfolder": { "[cpp]": { "foldEnd": "//#endregion", "foldEndRegex": "//[\s]#endregion[\s]+.", "foldStart": "//#region [NAME]", "foldStartRegex": "//[\s]#region[\s]+.", "disableFolding": false }

Errors: Developer Console shows after startup (errors of region folding at bottom):

log.ts:301 INFO Starting extension host with pid 13261. log.ts:301 INFO [LocalProcessExtensionHost]: IExtensionHostStarter.start() took 294 ms. abstractExtensionService.ts:922 [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. _logMessageInConsole @ abstractExtensionService.ts:922 TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for scope source.cpp.embedded.macro. Old grammar file: file:///sw/cds/ixs_systemc/centos7/vscode/v1_63_0/usr/share/code-insiders/resources/app/extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json. New grammar file: file:///home/blg/.vscode-insiders/extensions/jeff-hykin.better-cpp-syntax-1.17.2/autogenerated/cpp.embedded.macro.tmLanguage.json register @ TMScopeRegistry.ts:45 TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for scope source.cpp. Old grammar file: file:///sw/cds/ixs_systemc/centos7/vscode/v1_63_0/usr/share/code-insiders/resources/app/extensions/cpp/syntaxes/cpp.tmLanguage.json. New grammar file: file:///home/blg/.vscode-insiders/extensions/jeff-hykin.better-cpp-syntax-1.17.2/autogenerated/cpp.tmLanguage.json register @ TMScopeRegistry.ts:45 TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for scope source.cmake. Old grammar file: file:///home/blg/.vscode-insiders/extensions/josetr.cmake-language-support-vscode-0.0.9/syntaxes/CMake.tmLanguage.json. New grammar file: file:///home/blg/.vscode-insiders/extensions/twxs.cmake-0.0.17/syntaxes/CMake.tmLanguage register @ TMScopeRegistry.ts:45 TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for scope source.cmakecache. Old grammar file: file:///home/blg/.vscode-insiders/extensions/josetr.cmake-language-support-vscode-0.0.9/syntaxes/CMakeCache.tmLanguage.json. New grammar file: file:///home/blg/.vscode-insiders/extensions/twxs.cmake-0.0.17/syntaxes/CMakeCache.tmLanguage register @ TMScopeRegistry.ts:45 log.ts:313 ERR [Extension Host] (node:13261) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use code-insiders --trace-deprecation ... to show where the warning was created) console.ts:137 [Extension Host] (node:13261) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use code-insiders --trace-deprecation ... to show where the warning was created) (at writeOut (internal/process/warning.js:43:3)) E @ console.ts:137 mainThreadExtensionService.ts:95 Activating extension 'maptz.regionfolder' failed: Cannot find module 'tslib' Require stack:

I would highly appreciate if you could fix this issue. Many thanks for your extension and your help!

maptz commented 7 months ago

Looks like this needs a bit of an update. I'll try to find some time to do this.

maptz commented 7 months ago

I've just tried to duplicate this issue on my system but have been unable to do so. I'm running VS Code 1.88.1.

Are you still experiencing this issue?

mbreiling commented 7 months ago

Yes, same error message still persists.

I am using VS Code Insiders 1.63.0-insider on Linux (installed by our system administrator, so I cannot update myself).