No way for an extension to tell have vscode suggest .JSON when user saves file if it is not the main extension for json files #102438
Labels
feature-request
Request for new features or functionality
languages-basic
Basic language support issues
Milestone
Issue Type: Bug
See microsoft/vscode-azurearmtools#809 (Save dialog for arm-template files should suggest saving with JSON extension like json files do)
!) the dialog doesn't give a suggestion for extension
EXPECTED: vscode should suggest .JSON for the extension, but there appears to be no way to get that to happen.
MORE INFO:
Our package.json info looks like this for the arm-template language id:
I can't put .json as our extension, because if I do, then all json files opened will use the arm-template language. Rather, we manually switch to arm-template when we detect a specific schema in a json file (
https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#
). This is the mechanism that we were told to use because vscode doesn't provide a way to detect language ID based on any content past the first line (see #69868 (comment)). Unfortunately, that means vscode doesn't know we're associated with json files.VS Code version: Code - Insiders 1.48.0-insider (e7920dc, 2020-07-10T11:55:11.286Z)
OS version: Darwin x64 19.5.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
webgl: enabled
webgl2: enabled
Extensions (5)
The text was updated successfully, but these errors were encountered: