Add comprehensive autocomplete and IntelliSense support for BigQuery#32
Open
yossi55 wants to merge 4 commits into
Open
Add comprehensive autocomplete and IntelliSense support for BigQuery#32yossi55 wants to merge 4 commits into
yossi55 wants to merge 4 commits into
Conversation
- Implement getStaticCompletions with BigQuery SQL keywords and 100+ functions - Add dynamic completions for projects, datasets, tables, and columns - Enhance searchItems to support all BigQuery object types - Add search queries for databases, schemas, views, and functions - Improve column search with data type icons and fully qualified names - Cache dynamic completions with 5-minute TTL for performance
- Fix JSONClient import issue by using type alias - Fix table property access to use 'label' instead of 'table' - Ensure successful compilation
- Add popular columns to dynamic completions cache - Make searchColumns more aggressive in returning results - Add common column names to static completions - Fix TypeScript error with tables parameter
- Lower priority for SQL keywords and functions so columns appear first - Add actual column names from database to static completions - Enhance dynamic completions with higher priority for columns - Note: WHERE clause autocomplete limitation is a known SQLTools core issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive autocomplete and IntelliSense support to the SQLTools BigQuery driver, significantly improving the developer experience when writing BigQuery SQL queries.
✨ New Features
🎯 Static Completions
🔍 Dynamic Completions
🚀 Enhanced Search
🛠 Technical Improvements
getStaticCompletionsmethod with prioritized suggestionssearchItemsmethod with better context handling📈 User Experience
Before
After
🧪 Testing
Tested with:
📝 Note
WHERE clause autocomplete has some limitations due to SQLTools core architecture (see related issues #110 and #371). This is a known limitation affecting all SQLTools drivers.
🎯 Impact
This significantly improves the BigQuery development experience in VSCode, making it much easier to:
Closes any existing issues related to autocomplete/IntelliSense functionality.