Skip to content

Commit

Permalink
Merge pull request #301 from TypeFox/update-monaco-30
Browse files Browse the repository at this point in the history
Update to monaco 0.30
  • Loading branch information
CGNonofr committed Nov 10, 2021
2 parents 69f41d2 + 698bd2d commit 2065d48
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/monaco-languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export namespace MonacoModelIdentifier {
export function fromModel(model: monaco.editor.IReadOnlyModel): MonacoModelIdentifier {
return {
uri: model.uri,
languageId: model.getModeId()
languageId: model.getLanguageId()
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/monaco-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class MonacoWorkspace implements Workspace {
}

protected setModel(uri: string, model: monaco.editor.IModel): TextDocument {
const document = TextDocument.create(uri, model.getModeId(), model.getVersionId(), model.getValue());
const document = TextDocument.create(uri, model.getLanguageId(), model.getVersionId(), model.getValue());
this.documents.set(uri, document);
return document;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function getModel(): monaco.editor.IModel {
}

function createDocument(model: monaco.editor.IReadOnlyModel) {
return TextDocument.create(MODEL_URI, model.getModeId(), model.getVersionId(), model.getValue());
return TextDocument.create(MODEL_URI, model.getLanguageId(), model.getVersionId(), model.getValue());
}

function resolveSchema(url: string): Promise<string> {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@types/vscode": "1.52.0",
"css-loader": "^0.28.11",
"lerna": "^3.16.4",
"monaco-editor-core": "^0.29.0",
"monaco-editor-core": "^0.30.1",
"rimraf": "^2.6.2",
"source-map-loader": "^0.2.3",
"style-loader": "^0.20.3",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4792,6 +4792,11 @@ monaco-editor-core@^0.29.0:
resolved "https://registry.yarnpkg.com/monaco-editor-core/-/monaco-editor-core-0.29.1.tgz#187bd48b4c0eef7dd4c60e012ad5df4823cfdc74"
integrity sha512-A2+iNWf2Jhy/yAJ8HaDIszEhAlS1xjLvQfbk41yAyGwC4wDwbcTymUud1g0I9nV31S1x7QlXNC0BABc2uZN1Qg==

monaco-editor-core@^0.30.1:
version "0.30.1"
resolved "https://registry.yarnpkg.com/monaco-editor-core/-/monaco-editor-core-0.30.1.tgz#f42f6245e6fb75eb922ed421933eedeb27ca7f9b"
integrity sha512-WNxfchYafMZXVfysqg/ESW4MtOpYLPaIKrzudNlgwYvfYID+O/nwSZI5X+KxW84roVzHsNgFGyOOesfHFZwYUA==

move-concurrently@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92"
Expand Down

0 comments on commit 2065d48

Please sign in to comment.