Skip to content

Commit

Permalink
Adopts latest monaco-editor-core
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Apr 3, 2023
1 parent 4244bc3 commit b61b4d7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/language/common/lspLanguageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions src/language/typescript/languageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,8 @@ export class FormatAdapter
extends FormatHelper
implements languages.DocumentRangeFormattingEditProvider
{
readonly canFormatMultipleRanges = false;

public async provideDocumentRangeFormattingEdits(
model: editor.ITextModel,
range: Range,
Expand Down

0 comments on commit b61b4d7

Please sign in to comment.