Skip to content

Commit f14d383

Browse files
committed
feat: rewrite ts config
1 parent ef0ec9c commit f14d383

File tree

17 files changed

+949
-18
lines changed

17 files changed

+949
-18
lines changed

packages/monaco-plugin-ob/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@oceanbase-odc/monaco-plugin-ob",
3-
"version": "1.6.5",
3+
"version": "1.7.0",
44
"description": "",
55
"main": "dist/index.js",
66
"scripts": {

packages/monaco-plugin-ob/src/oboracle/worker/parser.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ export default {
156156

157157
statement = sqlDocuments?.statements?.[statementsCount - 1];
158158
}
159-
return statement.getAllFromTable();
159+
return {
160+
tables: [],
161+
tableVariables: []
162+
};
163+
160164
},
161165
getAutoCompletion(text, delimiter, offset): AutoCompletionItems {
162166
const convertMap = {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
declare module "assets/**/*" {
2+
interface ParserClass {
3+
prototype: ParserPrototype;
4+
parse(input: string, offset?: number, completionCallback?: (tokens: string[], currentRules: string[], followRules: string[]) => void): any;
5+
}
6+
7+
interface ParserPrototype {
8+
parse(input: string, offset?: number, completionCallback?: (tokens: string[], currentRules: string[], followRules: string[]) => void): any;
9+
}
10+
11+
interface ParserModule {
12+
Parser: ParserClass;
13+
parse(input: string, offset?: number, completionCallback?: (tokens: string[], currentRules: string[], followRules: string[]) => void): any;
14+
}
15+
16+
const Parser: ParserModule;
17+
export default Parser;
18+
export function process(): void;
19+
}
20+
21+
export {};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)