alefragnani / vscode-language-pascal

Pascal language extension for Visual Studio Code
MIT License
216 stars 47 forks source link

[FEATURE] Provide Pascal in the `Create: New File` command #148

Open SkybuckFlying opened 4 months ago

SkybuckFlying commented 4 months ago

Type: Bug

Why not ?

Extension version: 2.0.1 VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:41:02.734Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 9 7950X3D 16-Core Processor (32 x 4192)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|127.12GB (112.36GB free)| |Process Argv|--crash-reporter-id 4a7c921f-3af7-4c86-8913-511a5bc9b7a1| |Screen Reader|no| |VM|50%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 vscaac:30438847 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp1r6:30993540 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 chatpanelt:31018789 dsvsc021:30996838 jg8ic977:31013176 pythoncenvpt:31022790 ```
alefragnani commented 4 months ago

Hi @SkybuckFlying ,

Do you mean the Create: New File command, which by default only displays Text File: Built In? If that's the case, this is not a bug, but a missing feature, since this command must be provided by the extension.

What content do you think this new file should provide? An empty .pas file, another selection to choose between an empty Class or Interface? Anything other than an empty file, I wonder if it shouldn't be a setting to define the Pascal flavor, since Pascal, ObjectPascal, Delphi, FreePascal and Oxygene has its peculiarities, like the Uses clause.

Hope this helps

BTW, I'm moving this issue to the repo of the Language Pascal extension.