mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Update product references from 'sqlops' to 'azdata' (#4259)
* Update extensions to use azdata * Switch core code to use azdata
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
import * as sqlops from 'sqlops';
|
||||
import * as azdata from 'azdata';
|
||||
|
||||
import { IDisposable } from 'vs/base/common/lifecycle';
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
@@ -17,15 +17,15 @@ import { CellRange } from 'sql/workbench/api/common/sqlExtHostTypes';
|
||||
|
||||
|
||||
export class ExtHostNotebookDocumentData implements IDisposable {
|
||||
private _document: sqlops.nb.NotebookDocument;
|
||||
private _document: azdata.nb.NotebookDocument;
|
||||
private _isDisposed: boolean = false;
|
||||
private _kernelSpec: sqlops.nb.IKernelSpec;
|
||||
private _kernelSpec: azdata.nb.IKernelSpec;
|
||||
|
||||
constructor(private readonly _proxy: MainThreadNotebookDocumentsAndEditorsShape,
|
||||
private readonly _uri: URI,
|
||||
private _providerId: string,
|
||||
private _isDirty: boolean,
|
||||
private _cells: sqlops.nb.NotebookCell[]
|
||||
private _cells: azdata.nb.NotebookCell[]
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export class ExtHostNotebookDocumentData implements IDisposable {
|
||||
}
|
||||
|
||||
|
||||
get document(): sqlops.nb.NotebookDocument {
|
||||
get document(): azdata.nb.NotebookDocument {
|
||||
if (!this._document) {
|
||||
const data = this;
|
||||
this._document = {
|
||||
@@ -77,7 +77,7 @@ export class ExtHostNotebookDocumentData implements IDisposable {
|
||||
|
||||
// ---- range math
|
||||
|
||||
private _validateRange(range: sqlops.nb.CellRange): sqlops.nb.CellRange {
|
||||
private _validateRange(range: azdata.nb.CellRange): azdata.nb.CellRange {
|
||||
if (!(range instanceof CellRange)) {
|
||||
throw new Error('Invalid argument');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user