From aaeb6c3d7eef780bd150f04793dee38270c3b53a Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Tue, 6 Feb 2024 16:10:08 +0100 Subject: [PATCH] define language of excalidraw and excalidrawlib extensions (#119) This sets the language ID of `.excalidraw` and `.excalidrawlib` files to `json`. This replaces the configuration defaults, which resulted in a write to user settings. --- extension/package.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/extension/package.json b/extension/package.json index f99dfe2..e575a32 100644 --- a/extension/package.json +++ b/extension/package.json @@ -235,12 +235,15 @@ } } ], - "configurationDefaults": { - "files.associations": { - "*.excalidraw": "json", - "*.excalidrawlib": "json" + "languages": [ + { + "id": "json", + "extensions": [ + ".excalidraw", + ".excalidrawlib" + ] } - }, + ], "menus": { "commandPalette": [ {