mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
auto-fixed prefer-const violation
This commit is contained in:
@@ -243,7 +243,7 @@ const createServerInner = async (ipcAddress: string) => {
|
||||
const createServerInstance = (ipcAddress: string) =>
|
||||
new Promise<Server>((resolve, reject) => {
|
||||
const s = createServer(socket => {
|
||||
let data: Buffer[] = [];
|
||||
const data: Buffer[] = [];
|
||||
socket.on('data', async chunk => {
|
||||
if (chunk[chunk.length - 1] !== 0) {
|
||||
// terminated with NUL byte
|
||||
@@ -392,7 +392,7 @@ async function getIpcAddress(context: vscode.ExtensionContext) {
|
||||
}
|
||||
|
||||
function getJsDebugSettingKey() {
|
||||
let o: { [key: string]: unknown } = {};
|
||||
const o: { [key: string]: unknown } = {};
|
||||
const config = vscode.workspace.getConfiguration(SETTING_SECTION);
|
||||
for (const setting of SETTINGS_CAUSE_REFRESH) {
|
||||
o[setting] = config.get(setting);
|
||||
|
||||
Reference in New Issue
Block a user