Skip to content

Commit 6fdfe25

Browse files
Merge pull request #176 from Power-Maverick/main
Release v2.2.1
2 parents 5be18bf + 50d37f2 commit 6fdfe25

File tree

9 files changed

+69
-31
lines changed

9 files changed

+69
-31
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"request": "launch",
1212
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
1313
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
14-
"preLaunchTask": "${defaultBuildTask}"
14+
"preLaunchTask": "webpack"
1515
}
1616
]
1717
}

.vscode/tasks.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"tasks": [
66
{
77
"type": "npm",
8-
"script": "webpack-dev",
8+
"script": "compile",
99
"problemMatcher": [],
10-
"label": "npm: webpack-dev",
11-
"detail": "webpack --mode development --watch"
10+
"label": "webpack",
11+
"detail": "webpack"
1212
}
1313
]
1414
}

CHANGELOG.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
99

10-
## [v2.1.6](https://github.com/Power-Maverick/DataverseDevTools-VSCode/compare/v2.1.5...v2.1.6)
10+
## [v2.2.1](https://github.com/Power-Maverick/DataverseDevTools-VSCode/compare/v2.1.9...v2.2.1)
11+
12+
### Merged
13+
14+
- Bug Fixes Nov 2024 [`#175`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/175)
15+
16+
### Commits
17+
18+
- Update Node.js version and add package-lock.json to .gitignore [`1bba90f`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/1bba90fb71a181c185a01a49af74fcc8fcada019)
19+
- Update .gitignore and package.json [`1c478b3`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/1c478b37d3be134d1ce47e762c4e535e2a2dd7d4)
20+
- Remove package-lock.json from .gitignore [`2ab2fc0`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/2ab2fc0ce191f5944ec0d07d91cf0e9db09216d8)
21+
22+
## [v2.1.9](https://github.com/Power-Maverick/DataverseDevTools-VSCode/compare/v2.1.6...v2.1.9) - 2023-10-08
23+
24+
### Merged
25+
26+
- v.2.1.9 [`#142`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/142)
27+
- v2.1.8 [`#141`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/141)
28+
- Reverted to old unbundled version with package upgrades [`#140`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/140)
29+
30+
### Commits
31+
32+
- Reverted package.json changes [`12336c5`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/12336c52952e562a00e98118f216bac9f245c4f5)
33+
- Fix the release pipeline [`dbad453`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/dbad45385a54f809a009cc4794176cf74859d2bc)
34+
- Update readme with current issue notification [`d3cdf46`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/d3cdf46d08576b1e248d8ab8766dfb28fd35f2ac)
35+
36+
## [v2.1.6](https://github.com/Power-Maverick/DataverseDevTools-VSCode/compare/v2.1.5...v2.1.6) - 2023-10-07
37+
38+
### Merged
39+
40+
- v2.1.6 [`#138`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/138)
1141

1242
### Commits
1343

1444
- Convert to a bundle and disable Azure login [`4b0cde1`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/4b0cde18ebe8d4a4b99546bffee28154a0b0425b)
45+
- Updated the changelog [`ccc6bb5`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/ccc6bb57cd79c13d1f0458c90fa1e302e1cab10d)
46+
- Fix the build yml file [`4ab4378`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/4ab437874b755d52c400704dd031c598c1dba9a7)
1547

1648
## [v2.1.5](https://github.com/Power-Maverick/DataverseDevTools-VSCode/compare/v2.1.4...v2.1.5) - 2023-10-07
1749

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
<a href="https://github.com/Power-Maverick/DataverseDevTools-VSCode/discussions/categories/q-a">Support</a>
5252
</h3>
5353

54-
> CURRENTLY TOOL IS FACING SOME ISSUES WITH THE LATEST VSCODE VERSION AND I AM ACTIVELY TRYING TO RESOLVE IT. There is an open discussion created with VS Code team which you can find [here](https://github.com/microsoft/vscode-discussions/discussions/859#discussion-5711556)
55-
5654
> Do check-out the [planned features](#-planned-features) list. We need your help to complete these planned features.
5755
5856
**Table of contents**

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dataverse-devtools",
33
"displayName": "Dataverse DevTools",
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"description": "The all-in-one tool to develop code for Dataverse/Dynamics 365. Helps you connect to a Dataverse environment, generate TypeScript definitions for entities, create different type of Dataverse-specific projects and much more.",
66
"publisher": "danish-naglekar",
77
"author": {
@@ -24,12 +24,10 @@
2424
},
2525
"main": "./dist/extension.js",
2626
"scripts": {
27+
"compile": "webpack --mode development",
28+
"watch": "webpack --mode development --watch",
2729
"vscode:prepublish": "npm run package",
28-
"compile": "webpack",
29-
"watch": "webpack --watch",
3030
"package": "webpack --mode production --devtool hidden-source-map",
31-
"compile-tests": "tsc -p . --outDir out",
32-
"watch-tests": "tsc -p . -w --outDir out",
3331
"pretest": "npm run compile-tests && npm run compile && npm run lint",
3432
"lint": "eslint src --ext ts",
3533
"test": "vscode-test",
@@ -584,7 +582,7 @@
584582
"conditional-reduce": "^1.2.0",
585583
"dayjs": "^1.10.7",
586584
"dts-dom": "^3.6.0",
587-
"fast-xml-parser": "^4.3.2",
585+
"fast-xml-parser": "^4.5.0",
588586
"fs-extra": "^10.0.0",
589587
"lodash": "^4.17.21",
590588
"mobx": "6.3.2",

src/helpers/errorHandler.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,21 @@ export class ErrorHandler {
1919
var reportMessage = `VSCode version: ${vscode.version}. \nExtension version: ${extension.packageJSON.version}. \nError occured in ${cmd} command. \nError code: ${err.code}. \nError message: ${err.message}. \nError stack: ${err.stack}.`;
2020
var sId = vscode.env.sessionId;
2121
await openUri(
22-
`https://github.com/Power-Maverick/DataverseDevTools-VSCode/issues/new?assignees=Power-Maverick&labels=bug%2Ctriage&template=issue-form-bug.yaml&title=%5BBug%5D%3A+&logs=${decodeURI(
22+
`https://github.com/Power-Maverick/DataverseDevTools-VSCode/issues/new?assignees=Power-Maverick&labels=bug%2Ctriage&template=issue-form-bug.yaml&title=%5BBug%5D:%20Error%20in%20${cmd}+&logs=${decodeURI(
2323
reportMessage,
2424
)}&sessionid=${sId}`,
2525
);
2626
}
2727
});
28-
this.reporter.sendTelemetryErrorEvent(err, { command: cmd });
28+
// All errors are logged to customEvent telemetry
29+
this.reporter.sendTelemetryErrorEvent(cmd, {
30+
command: cmd,
31+
vscodeVersion: vscode.version,
32+
extensionVersion: extension.packageJSON.version,
33+
errorCode: err.code,
34+
errorMessage: err.message,
35+
errorStack: err.stack,
36+
sessionId: vscode.env.sessionId,
37+
});
2938
}
3039
}

src/helpers/webResourceHelper.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/* eslint-disable @typescript-eslint/naming-convention */
2-
import * as vscode from "vscode";
2+
import { reduce } from "conditional-reduce";
33
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";
48
import { copyFolderOrFile, createTempDirectory, getFileExtension, getFileName, getRelativeFilePath, getWorkspaceFolder, readFileAsBase64Sync, readFileSync, writeFileSync } from "../utils/FileSystem";
5-
import { jsonToXML, xmlToJSON } from "../utils/Parsers";
69
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";
1011
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";
1513
import { SmartMatchView } from "../views/SmartMatchView";
14+
import { ViewBase } from "../views/ViewBase";
15+
import { DataverseHelper } from "./dataverseHelper";
1616

1717
export class WebResourceHelper {
1818
private vsstate: State;
@@ -563,7 +563,7 @@ export class WebResourceHelper {
563563
xslt: () => WebResourceType.xsl,
564564
ico: () => WebResourceType.ico,
565565
svg: () => WebResourceType.svg,
566-
resx: () => WebResourceType.resx
566+
resx: () => WebResourceType.resx,
567567
});
568568

569569
const wrContent = encodeToBase64(readFileSync(fullPath));

src/utils/Parsers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const options = {
1414
export function xmlToJSON<T>(xmlData: string): T {
1515
const parser = new XMLParser(options);
1616
var jsonObj: T = parser.parse(xmlData);
17+
(jsonObj as any)["?xml"]["@_version"] = "1.0";
1718
return jsonObj;
1819
}
1920

0 commit comments

Comments
 (0)