Clean up typings file (#23200)

* Clean up typings file

* Fixes
This commit is contained in:
Charles Gagnon
2023-05-24 15:44:33 -07:00
committed by GitHub
parent 6f5741a162
commit 55cedb810d
2 changed files with 26 additions and 34 deletions

View File

@@ -89,7 +89,9 @@ module.exports.indentationFilter = [
'!test/monaco/out/**', '!test/monaco/out/**',
'!test/smoke/out/**', '!test/smoke/out/**',
'!extensions/typescript-language-features/test-workspace/**', '!extensions/typescript-language-features/test-workspace/**',
'!extensions/typescript-language-features/resources/walkthroughs/**',
'!extensions/markdown-math/notebook-out/**', '!extensions/markdown-math/notebook-out/**',
'!extensions/ipynb/notebook-out/**',
'!extensions/vscode-api-tests/testWorkspace/**', '!extensions/vscode-api-tests/testWorkspace/**',
'!extensions/vscode-api-tests/testWorkspace2/**', '!extensions/vscode-api-tests/testWorkspace2/**',
'!build/monaco/**', '!build/monaco/**',
@@ -133,32 +135,29 @@ module.exports.indentationFilter = [
'!extensions/simple-browser/media/*.js', '!extensions/simple-browser/media/*.js',
// {{SQL CARBON EDIT}} Except for our stuff // {{SQL CARBON EDIT}} Except for our stuff
'!**/*.gif', '!**/*.{xlf,lcl,docx,sql,vsix,bacpac,ipynb,jpg,gif}',
'!build/actions/**/*.js', '!build/**/*',
'!**/*.{xlf,lcl,docx,sql,vsix,bacpac,ipynb,jpg}', '!extensions/**/coverage/**',
'!extensions/azuremonitor/sqltoolsservice/**',
'!extensions/kusto/sqltoolsservice/**',
'!extensions/mssql/sqltoolsservice/**',
'!extensions/import/flatfileimportservice/**',
'!extensions/admin-tool-ext-win/ssmsmin/**', '!extensions/admin-tool-ext-win/ssmsmin/**',
'!extensions/admin-tool-ext-win/license/**', '!extensions/admin-tool-ext-win/license/**',
'!extensions/resource-deployment/notebooks/**',
'!extensions/mssql/notebooks/**',
'!extensions/integration-tests/testData/**',
'!extensions/arc/src/controller/generated/**', '!extensions/arc/src/controller/generated/**',
'!extensions/sql-database-projects/resources/templates/*.xml', '!extensions/azuremonitor/sqltoolsservice/**',
'!extensions/sql-database-projects/src/test/baselines/*.xml',
'!extensions/sql-database-projects/src/test/baselines/*.json',
'!extensions/sql-database-projects/src/test/baselines/*.sqlproj',
'!extensions/sql-database-projects/BuildDirectory/SystemDacpacs/**',
'!extensions/datavirtualization/scaleoutdataservice/**', '!extensions/datavirtualization/scaleoutdataservice/**',
'!resources/linux/snap/electron-launch', '!extensions/import/flatfileimportservice/**',
'!extensions/integration-tests/testData/**',
'!extensions/kusto/sqltoolsservice/**',
'!extensions/mssql/sqltoolsservice/**',
'!extensions/resource-deployment/notebooks/**',
'!extensions/markdown-language-features/media/*.js', '!extensions/markdown-language-features/media/*.js',
'!extensions/mssql/notebooks/**',
'!extensions/simple-browser/media/*.js', '!extensions/simple-browser/media/*.js',
'!extensions/sql-database-projects/BuildDirectory/SystemDacpacs/**',
'!extensions/sql-database-projects/resources/templates/*.xml',
'!extensions/sql-database-projects/src/test/baselines/*.{xml,json,sqlproj}',
'!extensions/sql-migration/migrationService/**',
'!resources/linux/snap/electron-launch',
'!resources/xlf/LocProject.json', '!resources/xlf/LocProject.json',
'!build/**/*', '!test/coverage/**'
'!test/coverage/**',
'!extensions/**/coverage/**'
]; ];
module.exports.copyrightFilter = [ module.exports.copyrightFilter = [

21
src/sql/azdata.d.ts vendored
View File

@@ -4761,7 +4761,7 @@ declare module 'azdata' {
* @deprecated please use the method createModelViewDialog(title: string, dialogName?: string, width?: DialogWidth) instead. * @deprecated please use the method createModelViewDialog(title: string, dialogName?: string, width?: DialogWidth) instead.
* Create a dialog with the given title * Create a dialog with the given title
* @param title The title of the dialog, displayed at the top * @param title The title of the dialog, displayed at the top
* @param dialogName Name of the dialog. * @param dialogName Non-localized name of the dialog for identifying in telemetry events.
* @param isWide Indicates whether the dialog is wide or normal * @param isWide Indicates whether the dialog is wide or normal
*/ */
export function createModelViewDialog(title: string, dialogName?: string, isWide?: boolean): Dialog; export function createModelViewDialog(title: string, dialogName?: string, isWide?: boolean): Dialog;
@@ -4769,7 +4769,7 @@ declare module 'azdata' {
/** /**
* Create a dialog with the given title * Create a dialog with the given title
* @param title Title of the dialog, displayed at the top. * @param title Title of the dialog, displayed at the top.
* @param dialogName Name of the dialog. * @param dialogName Non-localized name of the dialog for identifying in telemetry events.
* @param width Width of the dialog, default is 'narrow'. * @param width Width of the dialog, default is 'narrow'.
*/ */
export function createModelViewDialog(title: string, dialogName?: string, width?: DialogWidth): Dialog; export function createModelViewDialog(title: string, dialogName?: string, width?: DialogWidth): Dialog;
@@ -4777,7 +4777,7 @@ declare module 'azdata' {
/** /**
* Create a dialog with the given title * Create a dialog with the given title
* @param title Title of the dialog, displayed at the top. * @param title Title of the dialog, displayed at the top.
* @param dialogName Name of the dialog. * @param dialogName Non-localized name of the dialog for identifying in telemetry events.
* @param width Width of the dialog, default is 'narrow'. * @param width Width of the dialog, default is 'narrow'.
* @param dialogStyle Defines the dialog style, default is 'flyout'. * @param dialogStyle Defines the dialog style, default is 'flyout'.
* @param dialogPosition Defines the dialog position, default is undefined * @param dialogPosition Defines the dialog position, default is undefined
@@ -4993,8 +4993,7 @@ declare module 'azdata' {
message?: DialogMessage; message?: DialogMessage;
/** /**
* Set the dialog name when opening * Non-localized name of the dialog for identifying in telemetry events.
* the dialog for telemetry
*/ */
dialogName?: string | undefined; dialogName?: string | undefined;
@@ -5392,18 +5391,17 @@ declare module 'azdata' {
*/ */
export function getQueryDocument(fileUri: string): Thenable<QueryDocument>; export function getQueryDocument(fileUri: string): Thenable<QueryDocument>;
/* eslint-disable */
/** /**
* Opens an untitled text document. The editor will prompt the user for a file * Opens an untitled text document. The editor will prompt the user for a file
* path when the document is to be saved. The `options` parameter allows to * path when the document is to be saved. The `options` parameter allows to
* specify the *content* of the document. * specify the *content* of the document.
* *
* @param options Options to control how the document will be created. * @param options Options to control how the document will be created.
* @param options.content The initial content of the document
* @param providerId Optional provider ID this editor will be associated with. Defaults to MSSQL. * @param providerId Optional provider ID this editor will be associated with. Defaults to MSSQL.
* @return A promise that resolves to a {@link QueryDocument}. * @return A promise that resolves to a {@link QueryDocument}.
*/ */
export function openQueryDocument(options?: { content?: string; }, providerId?: string): Thenable<QueryDocument>; export function openQueryDocument(options?: { content?: string; }, providerId?: string): Thenable<QueryDocument>;
/* eslint-enable */
} }
/** /**
@@ -5658,7 +5656,6 @@ declare module 'azdata' {
*/ */
export const onDidChangeActiveNotebookEditor: vscode.Event<NotebookEditor>; export const onDidChangeActiveNotebookEditor: vscode.Event<NotebookEditor>;
/* eslint-disable */
/** /**
* Show the given document in a notebook editor. A {@link vscode.ViewColumn} can be provided * Show the given document in a notebook editor. A {@link vscode.ViewColumn} can be provided
* to control where the editor is being shown. Might change the {@link nb.activeNotebookEditor}. * to control where the editor is being shown. Might change the {@link nb.activeNotebookEditor}.
@@ -5670,15 +5667,11 @@ declare module 'azdata' {
* will be derived from the file name. * will be derived from the file name.
* For all other schemes the registered notebook providers are consulted. * For all other schemes the registered notebook providers are consulted.
* *
* @param document A document to be shown. * @param uri The URI of the document to show
* @param column A view column in which the {@link NotebookEditor} should be shown. The default is the {@link vscode.ViewColumn}, other values * @param showOptions Options to control how the Notebook is shown
* are adjusted to be `Min(column, columnCount + 1)`, the {@link vscode.ViewColumn.Active}-column is not adjusted. Use {@link vscode.ViewColumn.Beside}
* to open the editor to the side of the currently active one.
* @param preserveFocus When `true` the editor will not take focus.
* @return A promise that resolves to a {@link NotebookEditor}. * @return A promise that resolves to a {@link NotebookEditor}.
*/ */
export function showNotebookDocument(uri: vscode.Uri, showOptions?: NotebookShowOptions): Thenable<NotebookEditor>; export function showNotebookDocument(uri: vscode.Uri, showOptions?: NotebookShowOptions): Thenable<NotebookEditor>;
/* eslint-enable */
export interface NotebookDocument { export interface NotebookDocument {
/** /**