Skip to content

Commit e61499c

Browse files
authored
Merge pull request #84 from SSlinky/dev
Scopes, Renaming, Definitions
2 parents d72921d + 0a53f0f commit e61499c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+5960
-1619
lines changed

.vscode/launch.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"runtimeExecutable": "${execPath}",
1010
"args": [
1111
"--extensionDevelopmentPath=${workspaceRoot}",
12-
"${workspaceFolder}/sample"
12+
"${workspaceFolder}/sample/project"
1313
],
1414
"preLaunchTask": {
1515
"type": "npm",
@@ -33,7 +33,9 @@
3333
"--extensionTestsPath=${workspaceRoot}/dist/client/out/test/index",
3434
"${workspaceRoot}/test/fixtures"
3535
],
36-
"outFiles": ["${workspaceRoot}/dist/client/out/test/**/*.js"]
36+
"outFiles": [
37+
"${workspaceRoot}/dist/client/out/test/**/*.js"
38+
]
3739
},
3840
{
3941
"name": "Run Web Extension in VS Code",
@@ -84,16 +86,21 @@
8486
"request": "launch",
8587
"runtimeExecutable": "${execPath}",
8688
"args": [
87-
"--extensionDevelopmentPath=${workspaceFolder}",
88-
"--extensionTestsPath=${workspaceFolder}/dist/client/out/test/index"
89+
"--extensionDevelopmentPath=${workspaceFolder}",
90+
"--extensionTestsPath=${workspaceFolder}/dist/client/out/test/index"
8991
],
90-
"outFiles": ["${workspaceFolder}/dist/client/out/test/**/*.test.js"]
92+
"outFiles": [
93+
"${workspaceFolder}/dist/client/out/test/**/*.test.js"
94+
]
9195
}
9296
],
9397
"compounds": [
9498
{
9599
"name": "Client + Server",
96-
"configurations": ["Launch Client", "Attach to Server"]
100+
"configurations": [
101+
"Launch Client",
102+
"Attach to Server"
103+
]
97104
}
98105
]
99-
}
106+
}

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ Provides Visual Basic for Applications (VBA) language support in Visual Studio C
2121

2222
<sup>1</sup>Currently full document `Shift+Alt+F` formatting only.
2323

24+
### *PREVIEW* Definition Provider
25+
26+
This extension now supports definitions, i.e., following a name to a declaration. Pressing F12 will jump you to the relevant method or variable declaration.
27+
28+
This is a preview feature and may not work 100% as expected. If bugs are encountered, please take the time to raise an issue on the repo.
29+
30+
### *PREVIEW* Code Refactoring
31+
32+
This extension now supports Rename requests, i.e., using F2 to rename an element. It will find the all instances of the name throughout the workspace and rename it.
33+
34+
### Preview Limitations
35+
36+
Known limitations:
37+
- Method attributes (yet) aren't renamed when you rename a function or sub.
38+
- Public methods still producing diagnostics when there's a similarly named method in another module.
39+
- Can't yet rename classes with this functionality.
40+
2441
### Web Support
2542

2643
The VBA Pro Extension offers limited support for web environments (e.g. vscode-dev).
@@ -75,6 +92,7 @@ End Property
7592
## Coming Soon
7693

7794
* Hovers
95+
* Completion
7896

7997
## Installation
8098

0 commit comments

Comments
 (0)