We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177f533 commit 6b0fa13Copy full SHA for 6b0fa13
server/src/utils/converters.ts
@@ -0,0 +1,22 @@
1
+import { SymbolKind } from 'vscode-languageserver';
2
+
3
4
+export function vbaTypeToSymbolConverter(t: string): SymbolKind {
5
+ switch (t.toLocaleLowerCase()) {
6
+ case 'boolean':
7
+ return SymbolKind.Boolean;
8
+ case 'single':
9
+ case 'double':
10
+ case 'currency':
11
+ case 'long':
12
+ case 'longlong':
13
+ case 'longptr':
14
+ return SymbolKind.Number;
15
+ case 'string':
16
+ return SymbolKind.String;
17
+ case 'variant':
18
+ return SymbolKind.Variable;
19
+ default:
20
+ return SymbolKind.Object;
21
+ }
22
+}
0 commit comments