Skip to content

Commit e2c3da7

Browse files
authored
use import-from over import-require (microsoft#166848)
fyi @hediet the latter doens't work for ESM
1 parent ba1090d commit e2c3da7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/editor/test/common/model/bracketPairColorizer/combineTextEditInfos.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import assert = require('assert');
6+
import * as assert from 'assert';
77
import { ISingleEditOperation } from 'vs/editor/common/core/editOperation';
88
import { Range } from 'vs/editor/common/core/range';
99
import { TextEditInfo } from 'vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper';

src/vs/editor/test/node/diffing/diffing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import assert = require('assert');
6+
import * as assert from 'assert';
77
import { readdirSync, readFileSync, existsSync, writeFileSync } from 'fs';
88
import { join, resolve } from 'path';
99
import { FileAccess } from 'vs/base/common/network';

0 commit comments

Comments
 (0)