@codingame/monaco-vscode-api 6.0.1 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +1 -1
- package/missing-services.js +2 -2
- package/monaco.d.ts +1 -1
- package/monaco.js +1 -1
- package/package.json +8 -8
- package/services.d.ts +1 -1
- package/services.js +3 -2
- package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js +75 -38
- package/vscode/src/vs/editor/editor.api.d.ts +31 -5
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +16 -4
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +5 -3
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +1 -1
package/api.js
CHANGED
package/missing-services.js
CHANGED
|
@@ -580,8 +580,8 @@ registerSingleton(IPathService, class PathService {
|
|
|
580
580
|
registerSingleton(IProductService, class ProductService {
|
|
581
581
|
constructor() {
|
|
582
582
|
this._serviceBrand = undefined;
|
|
583
|
-
this.version = "1.90.
|
|
584
|
-
this.commit = "
|
|
583
|
+
this.version = "1.90.2";
|
|
584
|
+
this.commit = "5437499feb04f7a586f677b155b039bc2b3669eb";
|
|
585
585
|
this.quality = 'oss';
|
|
586
586
|
this.nameShort = 'Code - OSS Dev';
|
|
587
587
|
this.nameLong = 'Code - OSS Dev';
|
package/monaco.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import { KeybindingResolver } from './vscode/src/vs/platform/keybinding/common/k
|
|
|
19
19
|
import { ResolvedKeybindingItem } from './vscode/src/vs/platform/keybinding/common/resolvedKeybindingItem.js';
|
|
20
20
|
import { Event } from './vscode/src/vs/base/common/event.js';
|
|
21
21
|
import { IKeybindingService } from './vscode/src/vs/platform/keybinding/common/keybinding.service.js';
|
|
22
|
-
export { EditorAction, EditorCommand, registerDiffEditorContribution, registerEditorAction, registerEditorContribution, registerMultiEditorAction } from './vscode/src/vs/editor/browser/editorExtensions.js';
|
|
22
|
+
export { EditorAction, EditorCommand, EditorContributionInstantiation, registerDiffEditorContribution, registerEditorAction, registerEditorContribution, registerMultiEditorAction } from './vscode/src/vs/editor/browser/editorExtensions.js';
|
|
23
23
|
export { IDiffEditorContribution, IEditorContribution } from './vscode/src/vs/editor/common/editorCommon.js';
|
|
24
24
|
|
|
25
25
|
declare function writeFile(uri: URI, content: string): Promise<void>;
|
package/monaco.js
CHANGED
|
@@ -45,7 +45,7 @@ import { ILogService } from './vscode/src/vs/platform/log/common/log.service.js'
|
|
|
45
45
|
import { IQuickInputService } from './vscode/src/vs/platform/quickinput/common/quickInput.service.js';
|
|
46
46
|
import { createInjectedClass } from './tools/injection.js';
|
|
47
47
|
import { getService } from './services.js';
|
|
48
|
-
export { EditorAction, EditorCommand, registerDiffEditorContribution, registerEditorAction, registerEditorContribution, registerMultiEditorAction } from './vscode/src/vs/editor/browser/editorExtensions.js';
|
|
48
|
+
export { EditorAction, EditorCommand, EditorContributionInstantiation, registerDiffEditorContribution, registerEditorAction, registerEditorContribution, registerMultiEditorAction } from './vscode/src/vs/editor/browser/editorExtensions.js';
|
|
49
49
|
function computeConfiguration(configuration, overrides) {
|
|
50
50
|
const editorConfiguration = isObject(configuration.editor) ? deepClone(configuration.editor) : Object.create(null);
|
|
51
51
|
Object.assign(editorConfiguration, deepClone(overrides));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.3",
|
|
4
4
|
"description": "VSCode public API plugged on the monaco editor",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
101
101
|
"jschardet": "3.0.0",
|
|
102
|
-
"@codingame/monaco-vscode-extensions-service-override": "6.0.
|
|
103
|
-
"@codingame/monaco-vscode-files-service-override": "6.0.
|
|
104
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "6.0.
|
|
105
|
-
"@codingame/monaco-vscode-environment-service-override": "6.0.
|
|
106
|
-
"@codingame/monaco-vscode-layout-service-override": "6.0.
|
|
107
|
-
"@codingame/monaco-vscode-host-service-override": "6.0.
|
|
108
|
-
"@codingame/monaco-vscode-base-service-override": "6.0.
|
|
102
|
+
"@codingame/monaco-vscode-extensions-service-override": "6.0.3",
|
|
103
|
+
"@codingame/monaco-vscode-files-service-override": "6.0.3",
|
|
104
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "6.0.3",
|
|
105
|
+
"@codingame/monaco-vscode-environment-service-override": "6.0.3",
|
|
106
|
+
"@codingame/monaco-vscode-layout-service-override": "6.0.3",
|
|
107
|
+
"@codingame/monaco-vscode-host-service-override": "6.0.3",
|
|
108
|
+
"@codingame/monaco-vscode-base-service-override": "6.0.3"
|
|
109
109
|
}
|
|
110
110
|
}
|
package/services.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ import { IEditorOverrideServices } from './vscode/src/vs/editor/standalone/brows
|
|
|
43
43
|
export { StandaloneServices } from './vscode/src/vs/editor/standalone/browser/standaloneServices.js';
|
|
44
44
|
import { IWorkbenchConstructionOptions } from './vscode/src/vs/workbench/browser/web.api.js';
|
|
45
45
|
export { IProductService } from './vscode/src/vs/platform/product/common/productService.service.js';
|
|
46
|
-
export { IConfigurationChangeEvent } from './vscode/src/vs/platform/configuration/common/configuration.js';
|
|
46
|
+
export { ConfigurationTarget, IConfigurationChangeEvent } from './vscode/src/vs/platform/configuration/common/configuration.js';
|
|
47
47
|
import { EnvironmentOverride } from './workbench.js';
|
|
48
48
|
export { SyncDescriptor } from './vscode/src/vs/platform/instantiation/common/descriptors.js';
|
|
49
49
|
export { IBulkEditService } from './vscode/src/vs/editor/browser/services/bulkEditService.js';
|
package/services.js
CHANGED
|
@@ -178,14 +178,15 @@ export { IBannerService } from './vscode/src/vs/workbench/services/banner/browse
|
|
|
178
178
|
export { IWorkspaceTrustEnablementService, IWorkspaceTrustManagementService, IWorkspaceTrustRequestService } from './vscode/src/vs/platform/workspace/common/workspaceTrust.service.js';
|
|
179
179
|
export { IKeybindingService } from './vscode/src/vs/platform/keybinding/common/keybinding.service.js';
|
|
180
180
|
export { ISecretStorageService } from './vscode/src/vs/platform/secrets/common/secrets.service.js';
|
|
181
|
+
export { ConfigurationTarget } from './vscode/src/vs/platform/configuration/common/configuration.js';
|
|
181
182
|
async function initialize(overrides, container = document.body, configuration = {}, env) {
|
|
182
183
|
checkServicesNotInitialized();
|
|
183
184
|
initialize$1(container, configuration, env);
|
|
184
185
|
const instantiationService = StandaloneServices.initialize({
|
|
185
186
|
[( IProductService.toString())]: mixin({
|
|
186
|
-
version: "1.90.
|
|
187
|
+
version: "1.90.2",
|
|
187
188
|
quality: 'stable',
|
|
188
|
-
commit: "
|
|
189
|
+
commit: "5437499feb04f7a586f677b155b039bc2b3669eb",
|
|
189
190
|
nameShort: 'Code - OSS',
|
|
190
191
|
nameLong: 'Code - OSS',
|
|
191
192
|
applicationName: 'code-oss',
|
|
@@ -20,6 +20,12 @@ let MoveLinesCommand = class MoveLinesCommand {
|
|
|
20
20
|
this._moveEndLineSelectionShrink = false;
|
|
21
21
|
}
|
|
22
22
|
getEditOperations(model, builder) {
|
|
23
|
+
const getLanguageId = () => {
|
|
24
|
+
return model.getLanguageId();
|
|
25
|
+
};
|
|
26
|
+
const getLanguageIdAtPosition = (lineNumber, column) => {
|
|
27
|
+
return model.getLanguageIdAtPosition(lineNumber, column);
|
|
28
|
+
};
|
|
23
29
|
const modelLineCount = model.getLineCount();
|
|
24
30
|
if (this._isMovingDown && this._selection.endLineNumber === modelLineCount) {
|
|
25
31
|
this._selectionId = builder.trackSelection(this._selection);
|
|
@@ -37,20 +43,6 @@ let MoveLinesCommand = class MoveLinesCommand {
|
|
|
37
43
|
}
|
|
38
44
|
const { tabSize, indentSize, insertSpaces } = model.getOptions();
|
|
39
45
|
const indentConverter = this.buildIndentConverter(tabSize, indentSize, insertSpaces);
|
|
40
|
-
const virtualModel = {
|
|
41
|
-
tokenization: {
|
|
42
|
-
getLineTokens: (lineNumber) => {
|
|
43
|
-
return model.tokenization.getLineTokens(lineNumber);
|
|
44
|
-
},
|
|
45
|
-
getLanguageId: () => {
|
|
46
|
-
return model.getLanguageId();
|
|
47
|
-
},
|
|
48
|
-
getLanguageIdAtPosition: (lineNumber, column) => {
|
|
49
|
-
return model.getLanguageIdAtPosition(lineNumber, column);
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
getLineContent: null,
|
|
53
|
-
};
|
|
54
46
|
if (s.startLineNumber === s.endLineNumber && model.getLineMaxColumn(s.startLineNumber) === 1) {
|
|
55
47
|
const lineNumber = s.startLineNumber;
|
|
56
48
|
const otherLineNumber = (this._isMovingDown ? lineNumber + 1 : lineNumber - 1);
|
|
@@ -90,13 +82,27 @@ let MoveLinesCommand = class MoveLinesCommand {
|
|
|
90
82
|
insertingText = newIndentation + this.trimStart(movingLineText);
|
|
91
83
|
}
|
|
92
84
|
else {
|
|
93
|
-
virtualModel
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
85
|
+
const virtualModel = {
|
|
86
|
+
tokenization: {
|
|
87
|
+
getLineTokens: (lineNumber) => {
|
|
88
|
+
if (lineNumber === s.startLineNumber) {
|
|
89
|
+
return model.tokenization.getLineTokens(movingLineNumber);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
return model.tokenization.getLineTokens(lineNumber);
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
getLanguageId,
|
|
96
|
+
getLanguageIdAtPosition,
|
|
97
|
+
},
|
|
98
|
+
getLineContent: (lineNumber) => {
|
|
99
|
+
if (lineNumber === s.startLineNumber) {
|
|
100
|
+
return model.getLineContent(movingLineNumber);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return model.getLineContent(lineNumber);
|
|
104
|
+
}
|
|
105
|
+
},
|
|
100
106
|
};
|
|
101
107
|
const indentOfMovingLine = getGoodIndentForLine(this._autoIndent, virtualModel, model.getLanguageIdAtPosition(movingLineNumber, 1), s.startLineNumber, indentConverter, this._languageConfigurationService);
|
|
102
108
|
if (indentOfMovingLine !== null) {
|
|
@@ -117,16 +123,33 @@ let MoveLinesCommand = class MoveLinesCommand {
|
|
|
117
123
|
}
|
|
118
124
|
}
|
|
119
125
|
else {
|
|
120
|
-
virtualModel
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
const virtualModel = {
|
|
127
|
+
tokenization: {
|
|
128
|
+
getLineTokens: (lineNumber) => {
|
|
129
|
+
if (lineNumber === s.startLineNumber) {
|
|
130
|
+
return model.tokenization.getLineTokens(movingLineNumber);
|
|
131
|
+
}
|
|
132
|
+
else if (lineNumber >= s.startLineNumber + 1 && lineNumber <= s.endLineNumber + 1) {
|
|
133
|
+
return model.tokenization.getLineTokens(lineNumber - 1);
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
return model.tokenization.getLineTokens(lineNumber);
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
getLanguageId,
|
|
140
|
+
getLanguageIdAtPosition,
|
|
141
|
+
},
|
|
142
|
+
getLineContent: (lineNumber) => {
|
|
143
|
+
if (lineNumber === s.startLineNumber) {
|
|
144
|
+
return insertingText;
|
|
145
|
+
}
|
|
146
|
+
else if (lineNumber >= s.startLineNumber + 1 && lineNumber <= s.endLineNumber + 1) {
|
|
147
|
+
return model.getLineContent(lineNumber - 1);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
return model.getLineContent(lineNumber);
|
|
151
|
+
}
|
|
152
|
+
},
|
|
130
153
|
};
|
|
131
154
|
const newIndentatOfMovingBlock = getGoodIndentForLine(this._autoIndent, virtualModel, model.getLanguageIdAtPosition(movingLineNumber, 1), s.startLineNumber + 1, indentConverter, this._languageConfigurationService);
|
|
132
155
|
if (newIndentatOfMovingBlock !== null) {
|
|
@@ -155,13 +178,27 @@ let MoveLinesCommand = class MoveLinesCommand {
|
|
|
155
178
|
model.getLineMaxColumn(s.endLineNumber)
|
|
156
179
|
)), '\n' + movingLineText);
|
|
157
180
|
if (this.shouldAutoIndent(model, s)) {
|
|
158
|
-
virtualModel
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
181
|
+
const virtualModel = {
|
|
182
|
+
tokenization: {
|
|
183
|
+
getLineTokens: (lineNumber) => {
|
|
184
|
+
if (lineNumber === movingLineNumber) {
|
|
185
|
+
return model.tokenization.getLineTokens(s.startLineNumber);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
return model.tokenization.getLineTokens(lineNumber);
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
getLanguageId,
|
|
192
|
+
getLanguageIdAtPosition,
|
|
193
|
+
},
|
|
194
|
+
getLineContent: (lineNumber) => {
|
|
195
|
+
if (lineNumber === movingLineNumber) {
|
|
196
|
+
return model.getLineContent(s.startLineNumber);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
return model.getLineContent(lineNumber);
|
|
200
|
+
}
|
|
201
|
+
},
|
|
165
202
|
};
|
|
166
203
|
const ret = this.matchEnterRule(model, indentConverter, tabSize, s.startLineNumber, s.startLineNumber - 2);
|
|
167
204
|
if (ret !== null) {
|
|
@@ -4325,6 +4325,10 @@ export namespace editor {
|
|
|
4325
4325
|
* Font size of section headers. Defaults to 9.
|
|
4326
4326
|
*/
|
|
4327
4327
|
sectionHeaderFontSize?: number;
|
|
4328
|
+
/**
|
|
4329
|
+
* Spacing between the section header characters (in CSS px). Defaults to 1.
|
|
4330
|
+
*/
|
|
4331
|
+
sectionHeaderLetterSpacing?: number;
|
|
4328
4332
|
}
|
|
4329
4333
|
|
|
4330
4334
|
/**
|
|
@@ -5394,12 +5398,21 @@ export namespace editor {
|
|
|
5394
5398
|
* The position preference for the overlay widget.
|
|
5395
5399
|
*/
|
|
5396
5400
|
preference: OverlayWidgetPositionPreference | IOverlayWidgetPositionCoordinates | null;
|
|
5401
|
+
/**
|
|
5402
|
+
* When set, stacks with other overlay widgets with the same preference,
|
|
5403
|
+
* in an order determined by the ordinal value.
|
|
5404
|
+
*/
|
|
5405
|
+
stackOridinal?: number;
|
|
5397
5406
|
}
|
|
5398
5407
|
|
|
5399
5408
|
/**
|
|
5400
5409
|
* An overlay widgets renders on top of the text.
|
|
5401
5410
|
*/
|
|
5402
5411
|
export interface IOverlayWidget {
|
|
5412
|
+
/**
|
|
5413
|
+
* Event fired when the widget layout changes.
|
|
5414
|
+
*/
|
|
5415
|
+
onDidLayout?: IEvent<void>;
|
|
5403
5416
|
/**
|
|
5404
5417
|
* Render this overlay widget in a location where it could overflow the editor's view dom node.
|
|
5405
5418
|
*/
|
|
@@ -5825,6 +5838,18 @@ export namespace editor {
|
|
|
5825
5838
|
* @event
|
|
5826
5839
|
*/
|
|
5827
5840
|
readonly onDidChangeHiddenAreas: IEvent<void>;
|
|
5841
|
+
/**
|
|
5842
|
+
* Some editor operations fire multiple events at once.
|
|
5843
|
+
* To allow users to react to multiple events fired by a single operation,
|
|
5844
|
+
* the editor fires a begin update before the operation and an end update after the operation.
|
|
5845
|
+
* Whenever the editor fires `onBeginUpdate`, it will also fire `onEndUpdate` once the operation finishes.
|
|
5846
|
+
* Note that not all operations are bracketed by `onBeginUpdate` and `onEndUpdate`.
|
|
5847
|
+
*/
|
|
5848
|
+
readonly onBeginUpdate: IEvent<void>;
|
|
5849
|
+
/**
|
|
5850
|
+
* Fires after the editor completes the operation it fired `onBeginUpdate` for.
|
|
5851
|
+
*/
|
|
5852
|
+
readonly onEndUpdate: IEvent<void>;
|
|
5828
5853
|
/**
|
|
5829
5854
|
* Saves current view state of the editor in a serializable object.
|
|
5830
5855
|
*/
|
|
@@ -6871,9 +6896,9 @@ export namespace languages {
|
|
|
6871
6896
|
|
|
6872
6897
|
export interface HoverVerbosityRequest<THover = Hover> {
|
|
6873
6898
|
/**
|
|
6874
|
-
*
|
|
6899
|
+
* The delta by which to increase/decrease the hover verbosity level
|
|
6875
6900
|
*/
|
|
6876
|
-
|
|
6901
|
+
verbosityDelta: number;
|
|
6877
6902
|
/**
|
|
6878
6903
|
* The previous hover for the same position
|
|
6879
6904
|
*/
|
|
@@ -7402,7 +7427,7 @@ export namespace languages {
|
|
|
7402
7427
|
* A provider that can provide document highlights across multiple documents.
|
|
7403
7428
|
*/
|
|
7404
7429
|
export interface MultiDocumentHighlightProvider {
|
|
7405
|
-
selector:
|
|
7430
|
+
readonly selector: LanguageSelector;
|
|
7406
7431
|
/**
|
|
7407
7432
|
* Provide a Map of Uri --> document highlights, like all occurrences of a variable or
|
|
7408
7433
|
* all exit-points of a function.
|
|
@@ -9033,9 +9058,10 @@ export namespace languages.typescript {
|
|
|
9033
9058
|
length: number | undefined;
|
|
9034
9059
|
messageText: string | DiagnosticMessageChain;
|
|
9035
9060
|
}
|
|
9036
|
-
interface EmitOutput {
|
|
9061
|
+
export interface EmitOutput {
|
|
9037
9062
|
outputFiles: OutputFile[];
|
|
9038
9063
|
emitSkipped: boolean;
|
|
9064
|
+
diagnostics?: Diagnostic[];
|
|
9039
9065
|
}
|
|
9040
9066
|
interface OutputFile {
|
|
9041
9067
|
name: string;
|
|
@@ -9265,7 +9291,7 @@ export namespace languages.typescript {
|
|
|
9265
9291
|
* Get transpiled output for the given file.
|
|
9266
9292
|
* @returns `typescript.EmitOutput`
|
|
9267
9293
|
*/
|
|
9268
|
-
getEmitOutput(fileName: string): Promise<EmitOutput>;
|
|
9294
|
+
getEmitOutput(fileName: string, emitOnlyDtsFiles?: boolean, forceDtsEmit?: boolean): Promise<EmitOutput>;
|
|
9269
9295
|
/**
|
|
9270
9296
|
* Get possible code fixes at the given position in the file.
|
|
9271
9297
|
* @param formatOptions `typescript.FormatCodeOptions`
|
|
@@ -150,10 +150,22 @@ let AccessibilitySignalService = class AccessibilitySignalService extends Dispos
|
|
|
150
150
|
onSoundEnabledChanged(signal) {
|
|
151
151
|
return this.getEnabledState(signal, false).onDidChange;
|
|
152
152
|
}
|
|
153
|
-
getDelayMs(signal, modality) {
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
getDelayMs(signal, modality, mode) {
|
|
154
|
+
const options = this.configurationService.getValue('accessibility.signalOptions');
|
|
155
|
+
if (!options || !options.debouncePositionChanges) {
|
|
156
|
+
return 0;
|
|
157
|
+
}
|
|
158
|
+
let value;
|
|
159
|
+
if (signal.name === AccessibilitySignal.errorAtPosition.name && mode === 'positional') {
|
|
160
|
+
value = options['experimental.delays'].errorAtPosition;
|
|
161
|
+
}
|
|
162
|
+
else if (signal.name === AccessibilitySignal.warningAtPosition.name && mode === 'positional') {
|
|
163
|
+
value = options['experimental.delays'].warningAtPosition;
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
value = options['experimental.delays'].general;
|
|
167
|
+
}
|
|
168
|
+
return modality === 'sound' ? value.sound : value.announcement;
|
|
157
169
|
}
|
|
158
170
|
};
|
|
159
171
|
AccessibilitySignalService = ( (__decorate([
|
package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface IAccessibilitySignalService {
|
|
|
13
13
|
})[]): Promise<void>;
|
|
14
14
|
playSignalLoop(signal: AccessibilitySignal, milliseconds: number): IDisposable;
|
|
15
15
|
getEnabledState(signal: AccessibilitySignal, userGesture: boolean, modality?: AccessibilityModality | undefined): IValueWithChangeEvent<boolean>;
|
|
16
|
-
getDelayMs(signal: AccessibilitySignal, modality: AccessibilityModality): number;
|
|
16
|
+
getDelayMs(signal: AccessibilitySignal, modality: AccessibilityModality, mode: 'line' | 'positional'): number;
|
|
17
17
|
/**
|
|
18
18
|
* Avoid this method and prefer `.playSignal`!
|
|
19
19
|
* Only use it when you want to play the sound regardless of enablement, e.g. in the settings quick pick.
|
|
@@ -50,7 +50,7 @@ const textLinkActiveForeground = registerColor('textLink.activeForeground', { li
|
|
|
50
50
|
"Foreground color for links in text when clicked on and on mouse hover."
|
|
51
51
|
)));
|
|
52
52
|
registerColor('textSeparator.foreground', { light: '#0000002e', dark: '#ffffff2e', hcDark: Color.black, hcLight: '#292929' }, ( localizeWithPath(_moduleId, 11, "Color for text separators.")));
|
|
53
|
-
registerColor('textPreformat.foreground', { light: '#A31515', dark: '#D7BA7D', hcDark: '#
|
|
53
|
+
registerColor('textPreformat.foreground', { light: '#A31515', dark: '#D7BA7D', hcDark: '#000000', hcLight: '#FFFFFF' }, ( localizeWithPath(_moduleId, 12, "Foreground color for preformatted text segments.")));
|
|
54
54
|
registerColor('textPreformat.background', { light: '#0000001A', dark: '#FFFFFF1A', hcDark: '#FFFFFF', hcLight: '#09345f' }, ( localizeWithPath(_moduleId, 13, "Background color for preformatted text segments.")));
|
|
55
55
|
const textBlockQuoteBackground = registerColor('textBlockQuote.background', { light: '#f2f2f2', dark: '#222222', hcDark: null, hcLight: '#F2F2F2' }, ( localizeWithPath(_moduleId, 14, "Background color for block quotes in text.")));
|
|
56
56
|
const textBlockQuoteBorder = registerColor('textBlockQuote.border', { light: '#007acc80', dark: '#007acc80', hcDark: Color.white, hcLight: '#292929' }, ( localizeWithPath(_moduleId, 15, "Border color for block quotes in text.")));
|
|
@@ -12,7 +12,7 @@ import '../../../../base/common/observableInternal/derived.js';
|
|
|
12
12
|
import { autorun } from '../../../../base/common/observableInternal/autorun.js';
|
|
13
13
|
import '../../../../base/common/observableInternal/utils.js';
|
|
14
14
|
import { basenameOrAuthority } from '../../../../base/common/resources.js';
|
|
15
|
-
import {
|
|
15
|
+
import { isString, isUndefinedOrNull } from '../../../../base/common/types.js';
|
|
16
16
|
import { URI } from '../../../../base/common/uri.js';
|
|
17
17
|
import { generateUuid } from '../../../../base/common/uuid.js';
|
|
18
18
|
import { Range } from '../../../../editor/common/core/range.js';
|
|
@@ -463,6 +463,7 @@ class StackFrame {
|
|
|
463
463
|
return (this.name === other.name) && (other.thread === this.thread) && (this.frameId === other.frameId) && (other.source === this.source) && (Range.equalsRange(this.range, other.range));
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
+
const KEEP_SUBTLE_FRAME_AT_TOP_REASONS = ['breakpoint', 'step', 'function breakpoint'];
|
|
466
467
|
class Thread {
|
|
467
468
|
constructor(session, name, threadId) {
|
|
468
469
|
this.session = session;
|
|
@@ -493,8 +494,9 @@ class Thread {
|
|
|
493
494
|
}
|
|
494
495
|
getTopStackFrame() {
|
|
495
496
|
const callStack = this.getCallStack();
|
|
496
|
-
const
|
|
497
|
-
|
|
497
|
+
const stopReason = this.stoppedDetails?.reason;
|
|
498
|
+
const firstAvailableStackFrame = callStack.find(sf => !!(((stopReason === 'instruction breakpoint' || (stopReason === 'step' && this.lastSteppingGranularity === 'instruction')) && sf.instructionPointerReference) ||
|
|
499
|
+
(sf.source && sf.source.available && (KEEP_SUBTLE_FRAME_AT_TOP_REASONS.includes(stopReason) || !isFrameDeemphasized(sf)))));
|
|
498
500
|
return firstAvailableStackFrame;
|
|
499
501
|
}
|
|
500
502
|
get stateLabel() {
|
|
@@ -223,7 +223,7 @@ let AnythingQuickAccessProvider = class AnythingQuickAccessProvider extends Pick
|
|
|
223
223
|
doGetPicks(filter, options, disposables, token) {
|
|
224
224
|
const configuration = { ...this.configuration, includeSymbols: options.includeSymbols ?? this.configuration.includeSymbols };
|
|
225
225
|
const query = prepareQuery(filter);
|
|
226
|
-
if (options.enableEditorSymbolSearch && options.includeSymbols) {
|
|
226
|
+
if (options.enableEditorSymbolSearch && options.includeSymbols !== false) {
|
|
227
227
|
const editorSymbolPicks = this.getEditorSymbolPicks(query, disposables, token);
|
|
228
228
|
if (editorSymbolPicks) {
|
|
229
229
|
return editorSymbolPicks;
|