Skip to content

Commit 605de7c

Browse files
committed
0.0.11
1 parent ecb0399 commit 605de7c

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to the "simply-view-image-for-python-opencv-debugging" exten
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7+
## [0.0.11]
8+
- Fix an issue, use the globalStorageUri.fsPath instead of globalStorageUri.path.
9+
710
## [0.0.10]
811

912
- Add "onDebugResolve:debugpy" to package.json (activationEvents)

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ The initail version is hardcode so there are some limitations:
6565

6666
## Release Notes
6767

68+
### 0.0.11
69+
Fix an issue, use the globalStorageUri.fsPath instead of globalStorageUri.path.
70+
6871
### 0.0.10
6972
Due to a change in the Python debugger type name from 'python' to 'debugpy' after a Visual Studio Code update, this extension became incompatible. This update addresses the issue, ensuring compatibility with the latest VSCode version 1.86.1. Thanks to [aslampr07](https://github.com/aslampr07) (https://github.com/john-guo/simply-view-image-for-python-opencv-debugging/issues/24)
7073

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "simply-view-image-for-python-opencv-debugging",
33
"displayName": "simply_view_image_for_python_opencv_debugging",
44
"description": "simply view the image of the image variables when debugging python with opencv",
5-
"version": "0.0.10",
5+
"version": "0.0.11",
66
"publisher": "johnguo",
77
"engines": {
88
"vscode": "^1.86.1"

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const WORKING_DIR = 'svifpod';
1414
// your extension is activated the very first time the command is executed
1515
export function activate(context: vscode.ExtensionContext) {
1616
let usetmp = vscode.workspace.getConfiguration("svifpod").get("usetmppathtosave", true);
17-
let dir = context.globalStorageUri.path as string;
17+
let dir = context.globalStorageUri.fsPath as string;
1818
if (usetmp || dir === undefined)
1919
{
2020
dir = tmpdir();
@@ -41,7 +41,7 @@ export function activate(context: vscode.ExtensionContext) {
4141
console.log('Congratulations, your extension "simply-view-image-for-python-opencv-debugging" is now active!');
4242

4343
context.subscriptions.push(
44-
vscode.languages.registerCodeActionsProvider({ language: 'python' },
44+
vscode.languages.registerCodeActionsProvider({ scheme: 'file', language: 'python' },
4545
new PythonOpencvImageProvider(), { providedCodeActionKinds: [vscode.CodeActionKind.Empty] }));
4646

4747

0 commit comments

Comments
 (0)