Skip to content

Commit c9ce188

Browse files
authored
Use proper import syntax (avoid using require) (microsoft#165827)
1 parent 3cd5166 commit c9ce188

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/vs/editor/test/common/diff/standardLinesDiffCompute.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 { Range } from 'vs/editor/common/core/range';
88
import { LineRangeMapping, RangeMapping } from 'vs/editor/common/diff/linesDiffComputer';
99
import { lineRangeMappingFromRangeMappings, StandardLinesDiffComputer } from 'vs/editor/common/diff/standardLinesDiffComputer';

src/vs/platform/remote/node/wsl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import * as os from 'os';
77
import * as cp from 'child_process';
88
import { promises as fs } from 'fs';
9-
import path = require('path');
9+
import * as path from 'path';
1010

1111
let hasWSLFeaturePromise: Promise<boolean> | undefined;
1212

src/vs/workbench/contrib/mergeEditor/test/browser/mapping.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 { ensureNoDisposablesAreLeakedInTestSuite } from 'vs/base/test/common/utils';
88
import { Position } from 'vs/editor/common/core/position';
99
import { Range } from 'vs/editor/common/core/range';

src/vs/workbench/contrib/mergeEditor/test/browser/model.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 { Disposable, DisposableStore } from 'vs/base/common/lifecycle';
88
import { transaction } from 'vs/base/common/observable';
99
import { ensureNoDisposablesAreLeakedInTestSuite } from 'vs/base/test/common/utils';

src/vs/workbench/contrib/mergeEditor/test/browser/projection.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 { ensureNoDisposablesAreLeakedInTestSuite } from 'vs/base/test/common/utils';
88
import { Position } from 'vs/editor/common/core/position';
99
import { createTextModel } from 'vs/editor/test/common/testTextModel';

0 commit comments

Comments
 (0)