Skip to content

Commit a73867d

Browse files
committed
replace 'declare var...' with 'declare const...', related #87644
1 parent 1f3ff41 commit a73867d

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/vs/base/common/buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import * as strings from 'vs/base/common/strings';
77
import * as streams from 'vs/base/common/stream';
88

9-
declare var Buffer: any;
9+
declare const Buffer: any;
1010

1111
const hasBuffer = (typeof Buffer !== 'undefined');
1212
const hasTextEncoder = (typeof TextEncoder !== 'undefined');

src/vs/base/parts/ipc/common/ipc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const BufferPresets = {
187187
Object: createOneByteBuffer(DataType.Object),
188188
};
189189

190-
declare var Buffer: any;
190+
declare const Buffer: any;
191191
const hasBuffer = (typeof Buffer !== 'undefined');
192192

193193
function serialize(writer: IWriter, data: any): void {

src/vs/editor/browser/controller/mouseTarget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ interface IETextRange {
7979
setEndPoint(how: string, SourceRange: IETextRange): void;
8080
}
8181

82-
declare var IETextRange: {
82+
declare const IETextRange: {
8383
prototype: IETextRange;
8484
new(): IETextRange;
8585
};

src/vs/editor/common/core/stringBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import * as strings from 'vs/base/common/strings';
77

8-
declare var TextDecoder: any; // TODO@TypeScript
8+
declare const TextDecoder: any; // TODO@TypeScript
99
interface TextDecoder {
1010
decode(view: Uint16Array): string;
1111
}

src/vs/editor/common/services/editorSimpleWorker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export interface IForeignModuleFactory {
322322
(ctx: IWorkerContext, createData: any): any;
323323
}
324324

325-
declare var require: any;
325+
declare const require: any;
326326

327327
/**
328328
* @internal

src/vs/platform/instantiation/common/instantiationService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const _enableTracing = false;
1616
// PROXY
1717
// Ghetto-declare of the global Proxy object. This isn't the proper way
1818
// but allows us to run this code in the browser without IE11.
19-
declare var Proxy: any;
19+
declare const Proxy: any;
2020
const _canUseProxy = typeof Proxy === 'function';
2121

2222
class CyclicDependencyError extends Error {

src/vs/workbench/test/electron-browser/quickopen.perf.integrationTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace Timer {
4949
}
5050
}
5151

52-
declare var __dirname: string;
52+
// declare var __dirname: string;
5353

5454
// Checkout sources to run against:
5555
// git clone --separate-git-dir=testGit --no-checkout --single-branch https://chromium.googlesource.com/chromium/src testWorkspace

src/vs/workbench/test/electron-browser/textsearch.perf.integrationTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { ITextResourcePropertiesService } from 'vs/editor/common/services/textRe
3636
import { ClassifiedEvent, StrictPropertyCheck, GDPRClassification } from 'vs/platform/telemetry/common/gdprTypings';
3737
import { TestThemeService } from 'vs/platform/theme/test/common/testThemeService';
3838

39-
declare var __dirname: string;
39+
// declare var __dirname: string;
4040

4141
// Checkout sources to run against:
4242
// git clone --separate-git-dir=testGit --no-checkout --single-branch https://chromium.googlesource.com/chromium/src testWorkspace

0 commit comments

Comments
 (0)