File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
packages/vscode-extension/src Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,16 @@ export async function activate(context: ExtensionContext) {
124124
125125 window . onDidChangeActiveTextEditor ( ( editor ) => {
126126 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- } ) ;
127+ if ( doc . languageId === 'cypher' ) {
128+ const query = doc . getText ( ) ;
129+ const uri = doc . uri . fsPath ;
130+ const schema = getSchemaPoller ( ) . metadata ?. dbSchema ;
131+ void sendNotificationToLanguageClient ( 'fetchSymbolTable' , {
132+ query,
133+ uri,
134+ schema,
135+ } ) ;
136+ }
135137 } ) ;
136138}
137139
You can’t perform that action at this time.
0 commit comments