Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

language doesn't remain set to GDL-XML #10

Open
tkreplerfjc opened this issue May 10, 2024 · 4 comments
Open

language doesn't remain set to GDL-XML #10

tkreplerfjc opened this issue May 10, 2024 · 4 comments

Comments

@tkreplerfjc
Copy link

Type: Bug

Hi,
Since the latest update of Visual Studio, when I set GDL-XML for a certain tab, after switching to another tab and back the language defaults back to "plain" XML. GDL-HSF is retained as a language.
Thanks,
Tony

Extension version: 1.27.1
VS Code version: Code 1.89.1 (Universal) (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:14:24.611Z)
OS version: Darwin arm64 22.6.0
Modes:

System Info
Item Value
CPUs Apple M2 Max (12 x 24)
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
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 2, 2, 4
Memory (System) 64.00GB (12.38GB free)
Process Argv --crash-reporter-id 0a53a0ed-5d2d-4dc0-80c9-ed6208186bc9
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
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
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
0ee40948:31013168
pythoncenvpt:31043157
pythonprc:31039816
dwnewjupytercf:31039676

@pbaksa
Copy link
Contributor

pbaksa commented May 13, 2024

Hi,

  • Is it a document not saved to disk yet?
  • what are the first few lines of your file? GDL-XML is detected by the XML root tag , with an optional one-line xml declaration before.
  • How did you switch language? Context menu / command / status bar?
  • Does adding this to your vscode settings help?
    "[xml]": {
        "workbench.editor.languageDetection": false 
    }
    

@tkreplerfjc
Copy link
Author

tkreplerfjc commented May 13, 2024 via email

@pbaksa
Copy link
Contributor

pbaksa commented May 16, 2024

Again, it didn’t matter before what the first lines were. What should they be? Thanks.

It should be what LP_XMLConverter writes when converting from gsm to xml.
Something like

<?xml version="1.0" encoding="UTF-8"?>
<Symbol IsArchivable="false" IsPlaceable="true" MainGUID="F2E00B3E-0ADB-4E2D-B19B-4E8CB995E360" MigrationValue="Normal" Owner="0" Signature="1196644685" Version="40">

@tkreplerfjc
Copy link
Author

tkreplerfjc commented May 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants