mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Initial commit for Context Builder extension (#24094)
* Initial commit for context-builder extension * Fix eslint unused param error
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -278,6 +278,7 @@ const externalExtensions = [
|
||||
'azcli',
|
||||
'azuremonitor',
|
||||
'cms',
|
||||
'context-builder',
|
||||
'dacpac',
|
||||
'datavirtualization',
|
||||
'import',
|
||||
|
||||
13
extensions/context-builder/.eslintrc.json
Normal file
13
extensions/context-builder/.eslintrc.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"parserOptions": {
|
||||
"project": "./extensions/context-builder/tsconfig.json"
|
||||
},
|
||||
"rules": {
|
||||
"@typescript-eslint/no-floating-promises": [
|
||||
"error",
|
||||
{
|
||||
"ignoreVoid": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1
extensions/context-builder/.gitignore
vendored
Normal file
1
extensions/context-builder/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.vsix
|
||||
9
extensions/context-builder/.vscodeignore
Normal file
9
extensions/context-builder/.vscodeignore
Normal file
@@ -0,0 +1,9 @@
|
||||
src
|
||||
out
|
||||
tsconfig.json
|
||||
.gitignore
|
||||
coverage
|
||||
coverConfig.json
|
||||
extension.webpack.config.js
|
||||
*.vsix
|
||||
yarn.lock
|
||||
19
extensions/context-builder/README.md
Normal file
19
extensions/context-builder/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Context Builder Extension for Azure Data Studio
|
||||
|
||||
## Overview
|
||||
|
||||
The Context Builder extension for Azure Data Studio assists with building context for the GitHub Copilot extension by maintaining a historical record of queries that have been executed. The tracked queries are provided to the GitHub Copilot extension, so that suggestions provided by Copilot are accurate and relevant to the current user's session.
|
||||
|
||||
## Privacy Statement
|
||||
|
||||
To learn more about our Privacy Statement visit [this link](https://go.microsoft.com/fwlink/?LinkID=824704).
|
||||
|
||||
## Feedback
|
||||
|
||||
Please report issues and feature requests [here.](https://github.com/microsoft/azuredatastudio/issues)
|
||||
|
||||
## License
|
||||
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Licensed under the [Source EULA](https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt).
|
||||
20
extensions/context-builder/coverConfig.json
Normal file
20
extensions/context-builder/coverConfig.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"enabled": true,
|
||||
"relativeSourcePath": "..",
|
||||
"relativeCoverageDir": "../../coverage",
|
||||
"ignorePatterns": [
|
||||
"**/node_modules/**",
|
||||
"**/test/**",
|
||||
"extension.js"
|
||||
],
|
||||
"reports": [
|
||||
"cobertura",
|
||||
"lcov",
|
||||
"json"
|
||||
],
|
||||
"verbose": false,
|
||||
"remapOptions": {
|
||||
"basePath": "..",
|
||||
"useAbsolutePaths": true
|
||||
}
|
||||
}
|
||||
17
extensions/context-builder/extension.webpack.config.js
Normal file
17
extensions/context-builder/extension.webpack.config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
//@ts-check
|
||||
|
||||
'use strict';
|
||||
|
||||
const withDefaults = require('../shared.webpack.config');
|
||||
|
||||
module.exports = withDefaults({
|
||||
context: __dirname,
|
||||
entry: {
|
||||
extension: './src/extension.ts'
|
||||
}
|
||||
});
|
||||
BIN
extensions/context-builder/images/extension.png
Normal file
BIN
extensions/context-builder/images/extension.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
49
extensions/context-builder/package.json
Normal file
49
extensions/context-builder/package.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "context-builder",
|
||||
"displayName": "%contextBuilder.displayName%",
|
||||
"description": "%contextBuilder.description%",
|
||||
"version": "0.1.0",
|
||||
"publisher": "Microsoft",
|
||||
"preview": true,
|
||||
"engines": {
|
||||
"vscode": "*",
|
||||
"azdata": ">=1.45.0"
|
||||
},
|
||||
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
|
||||
"icon": "images/extension.png",
|
||||
"aiKey": "29a207bb14f84905966a8f22524cb730-25407f35-11b6-4d4e-8114-ab9e843cb52f-7380",
|
||||
"activationEvents": [
|
||||
"*"
|
||||
],
|
||||
"main": "./out/extension",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Microsoft/azuredatastudio.git"
|
||||
},
|
||||
"capabilities": {
|
||||
"virtualWorkspaces": false,
|
||||
"untrustedWorkspaces": {
|
||||
"supported": true
|
||||
}
|
||||
},
|
||||
"extensionDependencies": [
|
||||
"Microsoft.mssql"
|
||||
],
|
||||
"contributes": {
|
||||
"commands": [
|
||||
],
|
||||
"menus": {
|
||||
"objectExplorer/item/context": [
|
||||
],
|
||||
"dataExplorer/context": [
|
||||
],
|
||||
"commandPalette": [
|
||||
]
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"vscode-nls": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
}
|
||||
}
|
||||
4
extensions/context-builder/package.nls.json
Normal file
4
extensions/context-builder/package.nls.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"contextBuilder.displayName": "Context Builder",
|
||||
"contextBuilder.description": "Context Builder extension for Azure Data Studio."
|
||||
}
|
||||
14
extensions/context-builder/src/extension.ts
Normal file
14
extensions/context-builder/src/extension.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
//import * as vscode from 'vscode';
|
||||
|
||||
export async function activate(/*context: vscode.ExtensionContext*/): Promise<void> {
|
||||
|
||||
}
|
||||
|
||||
export function deactivate(): void {
|
||||
|
||||
}
|
||||
10
extensions/context-builder/src/typings/ref.d.ts
vendored
Normal file
10
extensions/context-builder/src/typings/ref.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
/// <reference path='../../../../src/vscode-dts/vscode.d.ts'/>
|
||||
/// <reference path='../../../../src/sql/azdata.d.ts'/>
|
||||
/// <reference path='../../../../src/sql/azdata.proposed.d.ts'/>
|
||||
/// <reference path='../../../mssql/src/mssql.d.ts'/>
|
||||
/// <reference types='@types/node'/>
|
||||
15
extensions/context-builder/tsconfig.json
Normal file
15
extensions/context-builder/tsconfig.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"extends": "../tsconfig.base.json",
|
||||
"compileOnSave": true,
|
||||
"compilerOptions": {
|
||||
"outDir": "./out",
|
||||
"lib": [
|
||||
"es6",
|
||||
"es2015.promise",
|
||||
"dom"
|
||||
]
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
1727
extensions/context-builder/yarn.lock
Normal file
1727
extensions/context-builder/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user