Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

> **Note**: odd version numbers, for example, `0.13.0`, are not included in this changelog. They are used to test the new features and fixes before the final release.

## [0.26.2] - 2025-06-27

### Changed:

- Snippets: Updated all snippets to use `v0.29.2` schema

## [0.26.1] - 2025-06-27

### Fixed:

- Notification: Fixed issue where upgrade notification would show when latest version is already installed

## [0.26.2] - 2025-06-27

### Changed:

- Snippets: Updated all snippets to use `v0.29.2` schema

## [0.26.0] - 2025-06-26

### Added:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dev-proxy-toolkit",
"displayName": "Dev Proxy Toolkit",
"description": "Makes it easy to create and update Dev Proxy configuration files.",
"version": "0.26.1",
"version": "0.26.2",
"publisher": "garrytrinder",
"engines": {
"vscode": "^1.101.0"
Expand Down
82 changes: 41 additions & 41 deletions src/snippets.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/test/examples/config-plugins-codelens.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.29.0/rc.schema.json",
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.29.2/rc.schema.json",
"plugins": [
{
"name": "CachingGuidancePlugin",
Expand Down
10 changes: 10 additions & 0 deletions src/test/examples/config-schema-v0.29.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/rc.schema.json",
"plugins": [
{
"name": "LatencyPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll"
}
]
}
2 changes: 1 addition & 1 deletion src/test/examples/devproxyrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.0/rc.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/rc.schema.json",
"plugins": [
{
"name": "LatencyPlugin",
Expand Down
25 changes: 25 additions & 0 deletions src/test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,31 @@ suite('schema', () => {
});
assert.deepStrictEqual(actual, expected);
});

test('should not show warning when $schema property matches installed v0.29.2 version', async () => {
const context = await vscode.extensions.getExtension('garrytrinder.dev-proxy-toolkit')?.activate() as vscode.ExtensionContext;
await context.globalState.update('devProxyInstall', {
isBeta: false,
isInstalled: true,
isOutdated: false,
isRunning: false,
platform: 'win32',
outdatedVersion: '',
version: '0.29.2',
} as DevProxyInstall);

const fileName = 'config-schema-v0.29.2.json';
const filePath = path.resolve(__dirname, 'examples', fileName);
const document = await vscode.workspace.openTextDocument(filePath);
await sleep(1000);
const diagnostics = vscode.languages.getDiagnostics(document.uri);

const expected = false;
const actual = diagnostics.some((diagnostic) => {
return diagnostic.severity === vscode.DiagnosticSeverity.Warning;
});
assert.deepStrictEqual(actual, expected);
});
});

suite('diagnostic ranges', () => {
Expand Down