Skip to content

Commit 6195b3d

Browse files
committed
some small fixes
1 parent c516c26 commit 6195b3d

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- Go to macros definition
2121
- Go to definition for methods and properties for self object like `..Name`, `..SomeMethod()`
2222
- Added completion for class parameters
23+
- Export without storage
2324

2425
## [0.7.7]
2526

Diff for: commands/subclass.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { config } from '../extension';
33
import { AtelierAPI } from '../api';
44
import { currentFile } from '../utils';
55
import { DocumentContentProvider } from '../providers/DocumentContentProvider';
6+
import { ClassDefinition } from '../utils/classDefinition';
67

78
export async function subclass(): Promise<void> {
89
const file = currentFile();
@@ -18,7 +19,7 @@ export async function subclass(): Promise<void> {
1819
}
1920

2021
const open = item => {
21-
let uri = DocumentContentProvider.getUri(item + '.cls');
22+
let uri = DocumentContentProvider.getUri(ClassDefinition.normalizeClassName(item, true));
2223
vscode.window.showTextDocument(uri);
2324
};
2425

Diff for: commands/superclass.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function superclass(): Promise<void> {
1414
}
1515

1616
const open = item => {
17-
let uri = DocumentContentProvider.getUri(item + '.cls');
17+
let uri = DocumentContentProvider.getUri(ClassDefinition.normalizeClassName(item, true));
1818
vscode.window.showTextDocument(uri);
1919
};
2020

Diff for: images/logo.png

73.5 KB
Loading

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-objectscript",
33
"displayName": "InterSystems ObjectScript",
44
"description": "InterSystems ObjectScript language support for Visual Studio Code",
5-
"version": "0.7.9",
5+
"version": "0.7.10-snapshot",
66
"icon": "images/logo.png",
77
"categories": [
88
"Programming Languages",

Diff for: providers/DocumentContentProvider.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ export class DocumentContentProvider implements vscode.TextDocumentContentProvid
2929
let uri = vscode.Uri.file(name).with({
3030
scheme: OBJECTSCRIPT_FILE_SCHEMA
3131
});
32-
if (vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders.length > 1) {
33-
if (workspaceFolder && workspaceFolder !== '') {
34-
uri = uri.with({
35-
authority: workspaceFolder
36-
});
37-
}
32+
if (workspaceFolder && workspaceFolder !== '') {
33+
uri = uri.with({
34+
authority: workspaceFolder
35+
});
3836
}
3937
if (namespace && namespace !== '') {
4038
uri = uri.with({

0 commit comments

Comments
 (0)