1
0
Эх сурвалжийг харах

Adopts latest monaco-editor-core

Henning Dieterichs 2 жил өмнө
parent
commit
b61b4d70e3

+ 7 - 7
package-lock.json

@@ -25,7 +25,7 @@
 				"jsdom": "^19.0.0",
 				"jsonc-parser": "^3.0.0",
 				"mocha": "^9.2.0",
-				"monaco-editor-core": "^0.37.0-dev.20230330",
+				"monaco-editor-core": "^0.37.0-dev.20230403",
 				"parcel": "^2.7.0",
 				"pin-github-action": "^1.8.0",
 				"playwright": "^1.18.1",
@@ -5170,9 +5170,9 @@
 			"dev": true
 		},
 		"node_modules/monaco-editor-core": {
-			"version": "0.37.0-dev.20230330",
-			"resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.37.0-dev.20230330.tgz",
-			"integrity": "sha512-GHp8zu1tTHWbdBzo6A7/P3Sdsn1LgXIzh5I8kI7RWm5jBSIlnet0t+3hDXXyaoXX4zohIMW5hN7ADsihBwKkSQ==",
+			"version": "0.37.0-dev.20230403",
+			"resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.37.0-dev.20230403.tgz",
+			"integrity": "sha512-p77v5G3WNBSSCLY8ORkNkP5XmAOQj7QwxkyzyILj+sWFbw3/1B9SIead0QS368FHV7JKCZ8/LR5T5ccBUZJlJg==",
 			"dev": true
 		},
 		"node_modules/mri": {
@@ -10943,9 +10943,9 @@
 			}
 		},
 		"monaco-editor-core": {
-			"version": "0.37.0-dev.20230330",
-			"resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.37.0-dev.20230330.tgz",
-			"integrity": "sha512-GHp8zu1tTHWbdBzo6A7/P3Sdsn1LgXIzh5I8kI7RWm5jBSIlnet0t+3hDXXyaoXX4zohIMW5hN7ADsihBwKkSQ==",
+			"version": "0.37.0-dev.20230403",
+			"resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.37.0-dev.20230403.tgz",
+			"integrity": "sha512-p77v5G3WNBSSCLY8ORkNkP5XmAOQj7QwxkyzyILj+sWFbw3/1B9SIead0QS368FHV7JKCZ8/LR5T5ccBUZJlJg==",
 			"dev": true
 		},
 		"mri": {

+ 1 - 1
package.json

@@ -52,7 +52,7 @@
 		"jsdom": "^19.0.0",
 		"jsonc-parser": "^3.0.0",
 		"mocha": "^9.2.0",
-		"monaco-editor-core": "^0.37.0-dev.20230330",
+		"monaco-editor-core": "^0.37.0-dev.20230403",
 		"parcel": "^2.7.0",
 		"pin-github-action": "^1.8.0",
 		"playwright": "^1.18.1",

+ 2 - 0
src/language/common/lspLanguageFeatures.ts

@@ -803,6 +803,8 @@ export class DocumentFormattingEditProvider<T extends ILanguageWorkerWithFormat>
 export class DocumentRangeFormattingEditProvider<T extends ILanguageWorkerWithFormat>
 	implements languages.DocumentRangeFormattingEditProvider
 {
+	readonly canFormatMultipleRanges = false;
+
 	constructor(private _worker: WorkerAccessor<T>) {}
 
 	public provideDocumentRangeFormattingEdits(

+ 2 - 0
src/language/typescript/languageFeatures.ts

@@ -989,6 +989,8 @@ export class FormatAdapter
 	extends FormatHelper
 	implements languages.DocumentRangeFormattingEditProvider
 {
+	readonly canFormatMultipleRanges = false;
+
 	public async provideDocumentRangeFormattingEdits(
 		model: editor.ITextModel,
 		range: Range,