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 1e23703 commit 5b6489bCopy full SHA for 5b6489b
1 file changed
packages/vscode-extension/src/extension.ts
@@ -124,14 +124,16 @@ export async function activate(context: ExtensionContext) {
124
125
window.onDidChangeActiveTextEditor((editor) => {
126
const doc = editor.document;
127
- const query = doc.getText();
128
- const uri = doc.uri.fsPath;
129
- const schema = getSchemaPoller().metadata?.dbSchema;
130
- void sendNotificationToLanguageClient('fetchSymbolTable', {
131
- query,
132
- uri,
133
- schema,
134
- });
+ if (doc.languageId === 'cypher') {
+ const query = doc.getText();
+ const uri = doc.uri.fsPath;
+ const schema = getSchemaPoller().metadata?.dbSchema;
+ void sendNotificationToLanguageClient('fetchSymbolTable', {
+ query,
+ uri,
+ schema,
135
+ });
136
+ }
137
});
138
}
139
0 commit comments