refactor: migrate legacy wire namespace to wrn
This commit is contained in:
@@ -12,7 +12,7 @@ let client;
|
||||
/** @param {vscode.TextDocument} document */
|
||||
async function recoverWrnLanguage(document) {
|
||||
if (!document.fileName.toLowerCase().endsWith(".wrn")) return;
|
||||
if (!["plaintext", "wire"].includes(document.languageId)) return;
|
||||
if (!["plaintext", "wrn"].includes(document.languageId)) return;
|
||||
try {
|
||||
await vscode.languages.setTextDocumentLanguage(document, WRN_LANGUAGE_ID);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user