mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 10:28:32 +00:00
chore: updated to Theia 1.37.0
- Updated `@theia/*` to `1.37.0`. - Fixed all `yarn audit` security vulnerabilities. - Updated to `electron@23.2.4`: - `contextIsolation` is `true`, - `nodeIntegration` is `false`, and the - `webpack` target is moved from `electron-renderer` to `web`. - Updated to `typescript@4.9.3`. - Updated the `eslint` plugins. - Added the new `Light High Contrast` theme to the IDE2. - High contrast themes use Theia APIs for style adjustments. - Support for ESM modules: `"moduleResolution": "node16"`. - Node.js >= 16.14 is required. - VISX langage packs were bumped to `1.70.0`. - Removed undesired editor context menu items. (Closes #1394) Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import * as fs from 'fs';
|
||||
// import * as net from 'net';
|
||||
import * as path from 'path';
|
||||
import * as fs from 'node:fs';
|
||||
import * as path from 'node:path';
|
||||
import * as temp from 'temp';
|
||||
import { expect } from 'chai';
|
||||
import { ChildProcess } from 'child_process';
|
||||
import { ChildProcess } from 'node:child_process';
|
||||
import { safeLoad, safeDump } from 'js-yaml';
|
||||
import { ArduinoDaemonImpl } from '../../node/arduino-daemon-impl';
|
||||
import { spawnCommand } from '../../node/exec-util';
|
||||
@@ -20,7 +19,10 @@ class SilentArduinoDaemonImpl extends ArduinoDaemonImpl {
|
||||
// NOOP
|
||||
}
|
||||
|
||||
override async spawnDaemonProcess(): Promise<{ daemon: ChildProcess; port: string }> {
|
||||
override async spawnDaemonProcess(): Promise<{
|
||||
daemon: ChildProcess;
|
||||
port: string;
|
||||
}> {
|
||||
return super.spawnDaemonProcess();
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ import type { MaybePromise } from '@theia/core/lib/common/types';
|
||||
import { FileUri } from '@theia/core/lib/node/file-uri';
|
||||
import { Container } from '@theia/core/shared/inversify';
|
||||
import { expect } from 'chai';
|
||||
import { promises as fs } from 'fs';
|
||||
import { join } from 'path';
|
||||
import { promises as fs } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
import { sync as deleteSync } from 'rimraf';
|
||||
import {
|
||||
BoardsService,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as os from 'os';
|
||||
import * as os from 'node:os';
|
||||
import { expect, use } from 'chai';
|
||||
import { getExecPath } from '../../node/exec-util';
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
longestPrefixMatch,
|
||||
reconcileSettings,
|
||||
} from '../../node/monitor-settings/monitor-settings-utils';
|
||||
import { PluggableMonitorSettings } from '../../node/monitor-settings/monitor-settings-provider';
|
||||
import { PluggableMonitorSettings } from '../../common/protocol';
|
||||
|
||||
type DeepWriteable<T> = { -readonly [P in keyof T]: DeepWriteable<T[P]> };
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ import { isWindows } from '@theia/core/lib/common/os';
|
||||
import { FileUri } from '@theia/core/lib/node/file-uri';
|
||||
import { Container } from '@theia/core/shared/inversify';
|
||||
import { expect } from 'chai';
|
||||
import { promises as fs } from 'fs';
|
||||
import { basename, join } from 'path';
|
||||
import { promises as fs } from 'node:fs';
|
||||
import { basename, join } from 'node:path';
|
||||
import { sync as rimrafSync } from 'rimraf';
|
||||
import { Sketch, SketchesService } from '../../common/protocol';
|
||||
import { SketchesServiceImpl } from '../../node/sketches-service-impl';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Mutable } from '@theia/core/lib/common/types';
|
||||
import { FileUri } from '@theia/core/lib/node';
|
||||
import * as assert from 'assert';
|
||||
import { basename, join } from 'path';
|
||||
import type { Mutable } from '@theia/core/lib/common/types';
|
||||
import { FileUri } from '@theia/core/lib/node/file-uri';
|
||||
import stableJsonStringify from 'fast-json-stable-stringify';
|
||||
import * as assert from 'node:assert';
|
||||
import { basename, join } from 'node:path';
|
||||
import { SketchContainer, SketchRef } from '../../common/protocol';
|
||||
import { discoverSketches } from '../../node/sketches-service-impl';
|
||||
import stableJsonStringify = require('fast-json-stable-stringify');
|
||||
|
||||
const testSketchbook = join(
|
||||
__dirname,
|
||||
|
||||
@@ -22,10 +22,10 @@ import {
|
||||
injectable,
|
||||
interfaces,
|
||||
} from '@theia/core/shared/inversify';
|
||||
import * as deepmerge from 'deepmerge';
|
||||
import { promises as fs, mkdirSync } from 'fs';
|
||||
import deepmerge from 'deepmerge';
|
||||
import { promises as fs, mkdirSync } from 'node:fs';
|
||||
import { dump as dumpYaml } from 'js-yaml';
|
||||
import { join } from 'path';
|
||||
import { join } from 'node:path';
|
||||
import { path as tempPath, track } from 'temp';
|
||||
import {
|
||||
ArduinoDaemon,
|
||||
|
||||
Reference in New Issue
Block a user