Skip to content

Commit

Permalink
Merge pull request #176 from Power-Maverick/main
Browse files Browse the repository at this point in the history
Release v2.2.1
  • Loading branch information
Power-Maverick authored Nov 10, 2024
2 parents 5be18bf + 50d37f2 commit 6fdfe25
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
"preLaunchTask": "webpack"
}
]
}
6 changes: 3 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"tasks": [
{
"type": "npm",
"script": "webpack-dev",
"script": "compile",
"problemMatcher": [],
"label": "npm: webpack-dev",
"detail": "webpack --mode development --watch"
"label": "webpack",
"detail": "webpack"
}
]
}
34 changes: 33 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

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

## [v2.1.6](https://github.com/Power-Maverick/DataverseDevTools-VSCode/compare/v2.1.5...v2.1.6)
## [v2.2.1](https://github.com/Power-Maverick/DataverseDevTools-VSCode/compare/v2.1.9...v2.2.1)

### Merged

- Bug Fixes Nov 2024 [`#175`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/175)

### Commits

- Update Node.js version and add package-lock.json to .gitignore [`1bba90f`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/1bba90fb71a181c185a01a49af74fcc8fcada019)
- Update .gitignore and package.json [`1c478b3`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/1c478b37d3be134d1ce47e762c4e535e2a2dd7d4)
- Remove package-lock.json from .gitignore [`2ab2fc0`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/2ab2fc0ce191f5944ec0d07d91cf0e9db09216d8)

## [v2.1.9](https://github.com/Power-Maverick/DataverseDevTools-VSCode/compare/v2.1.6...v2.1.9) - 2023-10-08

### Merged

- v.2.1.9 [`#142`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/142)
- v2.1.8 [`#141`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/141)
- Reverted to old unbundled version with package upgrades [`#140`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/140)

### Commits

- Reverted package.json changes [`12336c5`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/12336c52952e562a00e98118f216bac9f245c4f5)
- Fix the release pipeline [`dbad453`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/dbad45385a54f809a009cc4794176cf74859d2bc)
- Update readme with current issue notification [`d3cdf46`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/d3cdf46d08576b1e248d8ab8766dfb28fd35f2ac)

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

### Merged

- v2.1.6 [`#138`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/138)

### Commits

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

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

Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
<a href="https://github.com/Power-Maverick/DataverseDevTools-VSCode/discussions/categories/q-a">Support</a>
</h3>

> 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)
> Do check-out the [planned features](#-planned-features) list. We need your help to complete these planned features.
**Table of contents**
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dataverse-devtools",
"displayName": "Dataverse DevTools",
"version": "2.2.0",
"version": "2.2.1",
"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.",
"publisher": "danish-naglekar",
"author": {
Expand All @@ -24,12 +24,10 @@
},
"main": "./dist/extension.js",
"scripts": {
"compile": "webpack --mode development",
"watch": "webpack --mode development --watch",
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test",
Expand Down Expand Up @@ -584,7 +582,7 @@
"conditional-reduce": "^1.2.0",
"dayjs": "^1.10.7",
"dts-dom": "^3.6.0",
"fast-xml-parser": "^4.3.2",
"fast-xml-parser": "^4.5.0",
"fs-extra": "^10.0.0",
"lodash": "^4.17.21",
"mobx": "6.3.2",
Expand Down
13 changes: 11 additions & 2 deletions src/helpers/errorHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,21 @@ export class ErrorHandler {
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}.`;
var sId = vscode.env.sessionId;
await openUri(
`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(
`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(
reportMessage,
)}&sessionid=${sId}`,
);
}
});
this.reporter.sendTelemetryErrorEvent(err, { command: cmd });
// All errors are logged to customEvent telemetry
this.reporter.sendTelemetryErrorEvent(cmd, {
command: cmd,
vscodeVersion: vscode.version,
extensionVersion: extension.packageJSON.version,
errorCode: err.code,
errorMessage: err.message,
errorStack: err.stack,
sessionId: vscode.env.sessionId,
});
}
}
20 changes: 10 additions & 10 deletions src/helpers/webResourceHelper.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/* eslint-disable @typescript-eslint/naming-convention */
import * as vscode from "vscode";
import { reduce } from "conditional-reduce";
import * as path from "path";
import * as vscode from "vscode";
import { WebResourceType, wrDefinitionsStoreKey } from "../utils/Constants";
import { ErrorMessages } from "../utils/ErrorMessages";
import { decodeFromBase64, encodeToBase64, extractGuid } from "../utils/ExtensionMethods";
import { copyFolderOrFile, createTempDirectory, getFileExtension, getFileName, getRelativeFilePath, getWorkspaceFolder, readFileAsBase64Sync, readFileSync, writeFileSync } from "../utils/FileSystem";
import { jsonToXML, xmlToJSON } from "../utils/Parsers";
import { ILinkerFile, ILinkerRes, ISmartMatchRecord, IWebResource, IWebResources } from "../utils/Interfaces";
import { DataverseHelper } from "./dataverseHelper";
import { State } from "../utils/State";
import { smartMatchStoreKey, WebResourceType, wrDefinitionsStoreKey } from "../utils/Constants";
import { jsonToXML, xmlToJSON } from "../utils/Parsers";
import { Placeholders } from "../utils/Placeholders";
import { ErrorMessages } from "../utils/ErrorMessages";
import { reduce } from "conditional-reduce";
import { decodeFromBase64, encodeToBase64, extractGuid } from "../utils/ExtensionMethods";
import { ViewBase } from "../views/ViewBase";
import { State } from "../utils/State";
import { SmartMatchView } from "../views/SmartMatchView";
import { ViewBase } from "../views/ViewBase";
import { DataverseHelper } from "./dataverseHelper";

export class WebResourceHelper {
private vsstate: State;
Expand Down Expand Up @@ -563,7 +563,7 @@ export class WebResourceHelper {
xslt: () => WebResourceType.xsl,
ico: () => WebResourceType.ico,
svg: () => WebResourceType.svg,
resx: () => WebResourceType.resx
resx: () => WebResourceType.resx,
});

const wrContent = encodeToBase64(readFileSync(fullPath));
Expand Down
1 change: 1 addition & 0 deletions src/utils/Parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const options = {
export function xmlToJSON<T>(xmlData: string): T {
const parser = new XMLParser(options);
var jsonObj: T = parser.parse(xmlData);
(jsonObj as any)["?xml"]["@_version"] = "1.0";
return jsonObj;
}

Expand Down

0 comments on commit 6fdfe25

Please sign in to comment.