Remove unused extensions (#18065)

* Remove unused extensions

* more
This commit is contained in:
Charles Gagnon
2022-01-13 10:51:16 -08:00
committed by GitHub
parent ea2860eb33
commit 84cbdf3f57
69 changed files with 0 additions and 35292 deletions

View File

@@ -1,26 +0,0 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as assert from 'assert';
import 'mocha';
import * as vscode from 'vscode';
suite('ipynb NotebookSerializer', function () {
test.skip('Can open an ipynb notebook', async () => {
assert.ok(vscode.workspace.workspaceFolders);
const workspace = vscode.workspace.workspaceFolders[0];
const uri = vscode.Uri.joinPath(workspace.uri, 'test.ipynb');
const notebook = await vscode.workspace.openNotebookDocument(uri);
await vscode.window.showNotebookDocument(notebook);
const notebookEditor = vscode.window.activeNotebookEditor;
assert.ok(notebookEditor);
assert.strictEqual(notebookEditor.document.cellCount, 2);
assert.strictEqual(notebookEditor.document.cellAt(0).kind, vscode.NotebookCellKind.Markup);
assert.strictEqual(notebookEditor.document.cellAt(1).kind, vscode.NotebookCellKind.Code);
assert.strictEqual(notebookEditor.document.cellAt(1).outputs.length, 1);
});
});

View File

@@ -1,65 +0,0 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as assert from 'assert';
import * as vscode from 'vscode';
import { asPromise, assertNoRpc, closeAllEditors } from '../utils';
suite('vscode - untitled automatic language detection', () => {
teardown(async function () {
assertNoRpc();
await closeAllEditors();
});
test('test automatic language detection works', async () => {
const doc = await vscode.workspace.openTextDocument();
const editor = await vscode.window.showTextDocument(doc);
assert.strictEqual(editor.document.languageId, 'plaintext');
const settingResult = vscode.workspace.getConfiguration().get<boolean>('workbench.editor.languageDetection');
assert.ok(settingResult);
const result = await editor.edit(editBuilder => {
editBuilder.insert(new vscode.Position(0, 0), `{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"removeComments": false,
"preserveConstEnums": true,
"sourceMap": false,
"outDir": "../out/vs",
"target": "es2020",
"types": [
"keytar",
"mocha",
"semver",
"sinon",
"winreg",
"trusted-types",
"wicg-file-system-access"
],
"plugins": [
{
"name": "tsec",
"exemptionConfig": "./tsec.exemptions.json"
}
]
},
"include": [
"./typings",
"./vs"
]
}`);
});
assert.ok(result);
// Changing the language triggers a file to be closed and opened again so wait for that event to happen.
const newDoc = await asPromise(vscode.workspace.onDidOpenTextDocument, 5000);
assert.strictEqual(newDoc.languageId, 'json');
});
});

View File

@@ -1,53 +0,0 @@
{
"cells": [
{
"cell_type": "markdown",
"source": [
"## Header"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 2,
"source": [
"print('hello 1')\n",
"print('hello 2')"
],
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"hello 1\n",
"hello 2\n"
]
}
],
"metadata": {}
}
],
"metadata": {
"interpreter": {
"hash": "815c6b7592bf74925ca002a1774bcf064bae9d6a27e7933fd9109275fb484258"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3.9.5 64-bit ('myvenv': venv)"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.5"
}
},
"nbformat": 4,
"nbformat_minor": 4
}