Skip to content

Commit 11d9886

Browse files
1 parent 7fadd6f commit 11d9886

File tree

928 files changed

+71279
-43167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

928 files changed

+71279
-43167
lines changed

Source/tsconfig.base.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,11 @@
1313
"forceConsistentCasingInFileNames": true,
1414
"baseUrl": ".",
1515
"paths": {
16-
"vs/*": [
17-
"./vs/*"
18-
]
16+
"vs/*": ["./vs/*"]
1917
},
2018
"target": "es2022",
2119
"useDefineForClassFields": false,
22-
"lib": [
23-
"ES2022",
24-
"DOM",
25-
"DOM.Iterable",
26-
"WebWorker.ImportScripts"
27-
],
20+
"lib": ["ES2022", "DOM", "DOM.Iterable", "WebWorker.ImportScripts"],
2821
"allowSyntheticDefaultImports": true
2922
}
30-
}
23+
}

Source/tsconfig.monaco.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
44
"noEmit": true,
5-
"types": [
6-
"@webgpu/types",
7-
"trusted-types",
8-
"wicg-file-system-access"
9-
],
5+
"types": ["@webgpu/types", "trusted-types", "wicg-file-system-access"],
106
"paths": {},
117
"module": "amd",
128
"moduleResolution": "node",

Source/tsconfig.vscode-dts.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
"useUnknownInCatchVariables": false,
1313
"forceConsistentCasingInFileNames": true,
1414
"types": [],
15-
"lib": [
16-
"ES2022"
17-
],
15+
"lib": ["ES2022"]
1816
},
19-
"include": [
20-
"vscode-dts/vscode.d.ts"
21-
]
17+
"include": ["vscode-dts/vscode.d.ts"]
2218
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"extends": "./tsconfig.vscode-dts.json",
3-
"include": [
4-
"vscode-dts/vscode.d.ts",
5-
"vscode-dts/vscode.proposed.*.d.ts",
6-
]
3+
"include": ["vscode-dts/vscode.d.ts", "vscode-dts/vscode.proposed.*.d.ts"]
74
}

Source/tsec.exemptions.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@
3434
"vs/base/browser/markdownRenderer.ts",
3535
"vs/base/test/browser/markdownRenderer.test.ts"
3636
],
37-
"ban-element-setattribute": [
38-
"**/*.ts"
39-
],
40-
"ban-element-insertadjacenthtml": [
41-
"**/*.ts"
42-
],
43-
"ban-script-content-assignments": [
44-
"bootstrap-window.ts"
45-
]
37+
"ban-element-setattribute": ["**/*.ts"],
38+
"ban-element-insertadjacenthtml": ["**/*.ts"],
39+
"ban-script-content-assignments": ["bootstrap-window.ts"]
4640
}

Source/typings/base-common.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
// Declare types that we probe for to implement util and/or polyfill functions
77

88
declare global {
9-
109
interface IdleDeadline {
1110
readonly didTimeout: boolean;
1211
timeRemaining(): number;
1312
}
1413

15-
function requestIdleCallback(callback: (args: IdleDeadline) => void, options?: { timeout: number }): number;
14+
function requestIdleCallback(
15+
callback: (args: IdleDeadline) => void,
16+
options?: { timeout: number },
17+
): number;
1618
function cancelIdleCallback(handle: number): void;
17-
1819
}
1920

20-
export { }
21+
export {};

Source/typings/editContext.d.ts

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
type DOMString = string;
77

88
interface EditContext extends EventTarget {
9-
109
updateText(rangeStart: number, rangeEnd: number, text: DOMString): void;
1110
updateSelection(start: number, end: number): void;
1211
updateControlBounds(controlBounds: DOMRect): void;
@@ -36,10 +35,32 @@ interface EditContext extends EventTarget {
3635
get oncompositionend(): EventHandler | null;
3736
set oncompositionend(value: EventHandler | null);
3837

39-
addEventListener<K extends keyof EditContextEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: EditContextEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
40-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
41-
removeEventListener<K extends keyof EditContextEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: EditContextEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
42-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
38+
addEventListener<K extends keyof EditContextEventHandlersEventMap>(
39+
type: K,
40+
listener: (
41+
this: GlobalEventHandlers,
42+
ev: EditContextEventHandlersEventMap[K],
43+
) => any,
44+
options?: boolean | AddEventListenerOptions,
45+
): void;
46+
addEventListener(
47+
type: string,
48+
listener: EventListenerOrEventListenerObject,
49+
options?: boolean | AddEventListenerOptions,
50+
): void;
51+
removeEventListener<K extends keyof EditContextEventHandlersEventMap>(
52+
type: K,
53+
listener: (
54+
this: GlobalEventHandlers,
55+
ev: EditContextEventHandlersEventMap[K],
56+
) => any,
57+
options?: boolean | EventListenerOptions,
58+
): void;
59+
removeEventListener(
60+
type: string,
61+
listener: EventListenerOrEventListenerObject,
62+
options?: boolean | EventListenerOptions,
63+
): void;
4364
}
4465

4566
interface EditContextInit {
@@ -59,7 +80,7 @@ interface EditContextEventHandlersEventMap {
5980
type EventHandler<TEvent extends Event = Event> = (event: TEvent) => void;
6081

6182
interface TextUpdateEvent extends Event {
62-
new(type: DOMString, options?: TextUpdateEventInit): TextUpdateEvent;
83+
new (type: DOMString, options?: TextUpdateEventInit): TextUpdateEvent;
6384

6485
readonly updateRangeStart: number;
6586
readonly updateRangeEnd: number;
@@ -79,7 +100,7 @@ interface TextUpdateEventInit extends EventInit {
79100
}
80101

81102
interface TextFormat {
82-
new(options?: TextFormatInit): TextFormat;
103+
new (options?: TextFormatInit): TextFormat;
83104

84105
readonly rangeStart: number;
85106
readonly rangeEnd: number;
@@ -94,11 +115,14 @@ interface TextFormatInit {
94115
underlineThickness: UnderlineThickness;
95116
}
96117

97-
type UnderlineStyle = 'none' | 'solid' | 'dotted' | 'dashed' | 'wavy';
98-
type UnderlineThickness = 'none' | 'thin' | 'thick';
118+
type UnderlineStyle = "none" | "solid" | "dotted" | "dashed" | "wavy";
119+
type UnderlineThickness = "none" | "thin" | "thick";
99120

100121
interface TextFormatUpdateEvent extends Event {
101-
new(type: DOMString, options?: TextFormatUpdateEventInit): TextFormatUpdateEvent;
122+
new (
123+
type: DOMString,
124+
options?: TextFormatUpdateEventInit,
125+
): TextFormatUpdateEvent;
102126
getTextFormats(): TextFormat[];
103127
}
104128

@@ -107,7 +131,10 @@ interface TextFormatUpdateEventInit extends EventInit {
107131
}
108132

109133
interface CharacterBoundsUpdateEvent extends Event {
110-
new(type: DOMString, options?: CharacterBoundsUpdateEventInit): CharacterBoundsUpdateEvent;
134+
new (
135+
type: DOMString,
136+
options?: CharacterBoundsUpdateEventInit,
137+
): CharacterBoundsUpdateEvent;
111138

112139
readonly rangeStart: number;
113140
readonly rangeEnd: number;

Source/typings/thenable.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
* enables reusing existing code without migrating to a specific promise implementation. Still,
1010
* we recommend the use of native promises which are available in VS Code.
1111
*/
12-
interface Thenable<T> extends PromiseLike<T> { }
12+
interface Thenable<T> extends PromiseLike<T> {}

Source/typings/vscode-globals-nls.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ declare global {
3737
}
3838

3939
// fake export to make global work
40-
export { }
40+
export {};

Source/typings/vscode-globals-product.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// AMD2ESM migration relevant
77

88
declare global {
9-
109
/**
1110
* Holds the file root for resources.
1211
*/
@@ -26,8 +25,7 @@ declare global {
2625
* @deprecated You MUST use `IProductService` whenever possible.
2726
*/
2827
var _VSCODE_PACKAGE_JSON: Record<string, any>;
29-
3028
}
3129

3230
// fake export to make global work
33-
export { }
31+
export {};

0 commit comments

Comments
 (0)