Skip to content

Commit 35071af

Browse files
rcjsuenakosyakov
authored andcommitted
Upgrade to Monaco 0.10.0
Removed CodeAction as it no longer exists in 0.10.0. Signed-off-by: Remy Suen <remy.suen@gmail.com>
1 parent efe943c commit 35071af

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
},
2121
"dependencies": {
2222
"glob-to-regexp": "^0.3.0",
23-
"monaco-editor": "^0.9.0",
24-
"monaco-editor-core": "^0.9.0",
23+
"monaco-editor": "^0.10.0",
24+
"monaco-editor-core": "^0.10.0",
2525
"vscode-base-languageclient": "^0.0.1-alpha.2"
2626
},
2727
"scripts": {

src/converter.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,6 @@ export class ProtocolToMonacoConverter {
335335
return items.map((codeLens) => this.asCodeLens(codeLens));
336336
}
337337

338-
339-
asCodeActions(commands: Command[]): monaco.languages.CodeAction[] {
340-
return this.asCommands(commands).map((command, score) => ({ command, score }));
341-
}
342-
343338
asCommand(command: Command): monaco.languages.Command {
344339
return {
345340
id: command.command,

src/languages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class MonacoLanguages implements Languages {
242242
return [];
243243
}
244244
const params = this.m2p.asCodeActionParams(model, range, context);
245-
return provider.provideCodeActions(params, token).then(result => this.p2m.asCodeActions(result))
245+
return provider.provideCodeActions(params, token).then(result => this.p2m.asCommands(result));
246246
}
247247
}
248248
}

0 commit comments

Comments
 (0)