1. Refactor references of `Stargazers` to `RepositoryMetadata` since the query is now more generic. 2. Update the graphql query to request last updated as well as stars 3. Update web view to display last updated 4. Update sort mechanism for last updated A few notes: 1. I used `Intl.RelativeTimeFormat` to humanize the times. It wasn't as simple as I had hoped since I need to also make a guess as to which unit to use. 2. The icon used by last updated is not quite what is in the wireframes. But, I wanted to stick with primer icons and I used the closest I can get. 3. The last updated time is retrieved when the query is first loaded into vscode and then never changes. However, this time is always compared with `Date.now()`. So, opening the query up a week from now, all of the last updated times would be one week older (even if the repository has been updated since then). I don't want to re-retrieve the last updated time each time we open the query, so this timestamp will get out of date eventually. Is this confusing as it is?
CodeQL for Visual Studio Code
This project is an extension for Visual Studio Code that adds rich language support for CodeQL. It's used to find problems in code bases using CodeQL. It's written primarily in TypeScript.
The extension is released. You can download it from the Visual Studio Marketplace.
To see what has changed in the last few versions of the extension, see the Changelog.
Features
- Enables you to use CodeQL to query databases and discover problems in codebases.
- Shows the flow of data through the results of path queries, which is essential for triaging security results.
- Provides an easy way to run queries from the large, open source repository of CodeQL security queries.
- Adds IntelliSense to support you writing and editing your own CodeQL query and library files.
Project goals and scope
This project will track new feature development in CodeQL and, whenever appropriate, bring that functionality to the Visual Studio Code experience.
Contributing
This project welcomes contributions. See CONTRIBUTING.md for details on how to build, install, and contribute.
License
The CodeQL extension for Visual Studio Code is licensed under the MIT License. The version of CodeQL used by the CodeQL extension is subject to the CodeQL Research Terms & Conditions.
When using the GitHub logos, be sure to follow the GitHub logo guidelines.