|
1 | 1 | /* eslint-disable @typescript-eslint/naming-convention */ |
2 | | -import * as vscode from "vscode"; |
| 2 | +import { reduce } from "conditional-reduce"; |
3 | 3 | import * as path from "path"; |
| 4 | +import * as vscode from "vscode"; |
| 5 | +import { WebResourceType, wrDefinitionsStoreKey } from "../utils/Constants"; |
| 6 | +import { ErrorMessages } from "../utils/ErrorMessages"; |
| 7 | +import { decodeFromBase64, encodeToBase64, extractGuid } from "../utils/ExtensionMethods"; |
4 | 8 | import { copyFolderOrFile, createTempDirectory, getFileExtension, getFileName, getRelativeFilePath, getWorkspaceFolder, readFileAsBase64Sync, readFileSync, writeFileSync } from "../utils/FileSystem"; |
5 | | -import { jsonToXML, xmlToJSON } from "../utils/Parsers"; |
6 | 9 | import { ILinkerFile, ILinkerRes, ISmartMatchRecord, IWebResource, IWebResources } from "../utils/Interfaces"; |
7 | | -import { DataverseHelper } from "./dataverseHelper"; |
8 | | -import { State } from "../utils/State"; |
9 | | -import { smartMatchStoreKey, WebResourceType, wrDefinitionsStoreKey } from "../utils/Constants"; |
| 10 | +import { jsonToXML, xmlToJSON } from "../utils/Parsers"; |
10 | 11 | import { Placeholders } from "../utils/Placeholders"; |
11 | | -import { ErrorMessages } from "../utils/ErrorMessages"; |
12 | | -import { reduce } from "conditional-reduce"; |
13 | | -import { decodeFromBase64, encodeToBase64, extractGuid } from "../utils/ExtensionMethods"; |
14 | | -import { ViewBase } from "../views/ViewBase"; |
| 12 | +import { State } from "../utils/State"; |
15 | 13 | import { SmartMatchView } from "../views/SmartMatchView"; |
| 14 | +import { ViewBase } from "../views/ViewBase"; |
| 15 | +import { DataverseHelper } from "./dataverseHelper"; |
16 | 16 |
|
17 | 17 | export class WebResourceHelper { |
18 | 18 | private vsstate: State; |
@@ -563,7 +563,7 @@ export class WebResourceHelper { |
563 | 563 | xslt: () => WebResourceType.xsl, |
564 | 564 | ico: () => WebResourceType.ico, |
565 | 565 | svg: () => WebResourceType.svg, |
566 | | - resx: () => WebResourceType.resx |
| 566 | + resx: () => WebResourceType.resx, |
567 | 567 | }); |
568 | 568 |
|
569 | 569 | const wrContent = encodeToBase64(readFileSync(fullPath)); |
|
0 commit comments