Enforce single quote string usage in extension tests

Single quoted string usage is already enforced everywhere except our tests. Having this inconsistent style can confuse contributors and code generation

Starting with converting over tests in the `extensions` dir
This commit is contained in:
Matt Bierner
2025-10-15 01:51:43 -07:00
parent 179cd04f2a
commit 1c35a4d05c
11 changed files with 95 additions and 95 deletions

View File

@@ -208,7 +208,7 @@ suite.skip('vscode API - Copy Paste', function () {
});
function reverseString(str: string) {
return str.split("").reverse().join("");
return str.split('').reverse().join('');
}
function getNextDocumentText(disposables: vscode.Disposable[], doc: vscode.TextDocument): Promise<string> {

View File

@@ -9,24 +9,24 @@ import * as vscode from 'vscode';
import { assertNoRpc, closeAllEditors, createRandomFile } from '../utils';
const ipynbContent = JSON.stringify({
"cells": [
'cells': [
{
"cell_type": "markdown",
"source": ["## Header"],
"metadata": {}
'cell_type': 'markdown',
'source': ['## Header'],
'metadata': {}
},
{
"cell_type": "code",
"execution_count": 2,
"source": ["print('hello 1')\n", "print('hello 2')"],
"outputs": [
'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"]
'output_type': 'stream',
'name': 'stdout',
'text': ['hello 1\n', 'hello 2\n']
}
],
"metadata": {}
'metadata': {}
}
]
});

View File

@@ -28,7 +28,7 @@ import { assertNoRpc, poll } from '../utils';
// Disable env var relaunch for tests to prevent terminals relaunching themselves
await config.update('environmentChangesRelaunch', false, ConfigurationTarget.Global);
// Disable local echo in case it causes any problems in remote tests
await config.update('localEchoEnabled', "off", ConfigurationTarget.Global);
await config.update('localEchoEnabled', 'off', ConfigurationTarget.Global);
await config.update('shellIntegration.enabled', false);
});