Remove the textDocumentNotebook API proposal (#149277)

* Remove the textDocumentNotebook API proposal

All consumers have now been migrated off of this proposal, so it is safe to remove from our code

* Remove deprecated api usage from test
This commit is contained in:
Matt Bierner
2022-05-11 23:59:11 -07:00
committed by GitHub
parent 624bbc4fb9
commit 67014adc30
7 changed files with 3 additions and 40 deletions

View File

@@ -115,13 +115,11 @@ suite('NotebookCell#Document', function () {
assert.ok(d1);
assert.strictEqual(d1.languageId, c1.document.languageId);
assert.strictEqual(d1.version, 1);
assert.ok(d1.notebook === notebook.apiNotebook);
const d2 = extHostDocuments.getDocument(c2.document.uri);
assert.ok(d2);
assert.strictEqual(d2.languageId, c2.document.languageId);
assert.strictEqual(d2.version, 1);
assert.ok(d2.notebook === notebook.apiNotebook);
});
test('cell document goes when notebook closes', async function () {
@@ -264,12 +262,6 @@ suite('NotebookCell#Document', function () {
assert.throws(() => extHostDocuments.getDocument(cell1.document.uri));
});
test('cell document knows notebook', function () {
for (let cells of notebook.apiNotebook.getCells()) {
assert.strictEqual(cells.document.notebook === notebook.apiNotebook, true);
}
});
test('cell#index', function () {
assert.strictEqual(notebook.apiNotebook.cellCount, 2);