Adopt latest deps (fixes #757)

pull/804/head
Alex Dima 2018-03-15 10:59:00 +01:00
parent 0231fb5a71
commit 2680c7133d
5 changed files with 8522 additions and 8523 deletions

8513
monaco.d.ts vendored

File diff suppressed because it is too large Load Diff

12
package-lock.json generated
View File

@ -2377,9 +2377,9 @@
"dev": true
},
"monaco-editor-core": {
"version": "0.11.5",
"resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.11.5.tgz",
"integrity": "sha512-zje/QhdYlhJvsLCHzQN2gqybJbgtSK5k/Sssmi2x+OQv7pUU65QMNshXgY7H2jd/o4B+glCD3OvrGubsK1H5JQ==",
"version": "0.11.6",
"resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.11.6.tgz",
"integrity": "sha512-WGJnnmtSY7qRYLRBOL23+pdQR6flUNKPAkREscc/ctiNRJHCqo0jFiSvuqh4VMfoVGkyprGCEjkBc+8/7nQuEA==",
"dev": true
},
"monaco-html": {
@ -2401,9 +2401,9 @@
"dev": true
},
"monaco-typescript": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/monaco-typescript/-/monaco-typescript-3.0.1.tgz",
"integrity": "sha512-932bSXvUaaF9yUu+MNjljxVwUV4izRDb4XOoqKDWDYrXi9sCmBSsaqEiUjq/bxSOjHGXL3Zrf81VS8y8LSUdoA==",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/monaco-typescript/-/monaco-typescript-3.0.2.tgz",
"integrity": "sha512-zgclGwwI8FAwwC78UMOHDAgvlocfHNdzDkbVWCWSwnvIm2AI/7yQegzRasiLCKH3Eb2CI1Mh9IYf06NdbQ823g==",
"dev": true
},
"ms": {

View File

@ -23,11 +23,11 @@
"gulp-typedoc": "^2.0.0",
"http-server": "^0.11.1",
"monaco-css": "2.0.1",
"monaco-editor-core": "0.11.5",
"monaco-editor-core": "0.11.6",
"monaco-html": "2.0.2",
"monaco-json": "2.0.1",
"monaco-languages": "1.0.4",
"monaco-typescript": "3.0.1",
"monaco-typescript": "3.0.2",
"rimraf": "^2.5.2",
"typedoc": "^0.8.0",
"typescript": "^2.7.2",

View File

@ -66,7 +66,8 @@ monaco.languages.registerCompletionItemProvider('json', {
provideCompletionItems: function(model, position) {
// find out if we are completing a property in the 'dependencies' object.
var textUntilPosition = model.getValueInRange({startLineNumber: 1, startColumn: 1, endLineNumber: position.lineNumber, endColumn: position.column});
var match = textUntilPosition.match(/"dependencies"\s*:\s*{\s*("[^"]*"\s*:\s*"[^"]*"\s*,\s*)*("[^"]*)?$/); if (match) {
var match = textUntilPosition.match(/"dependencies"\s*:\s*{\s*("[^"]*"\s*:\s*"[^"]*"\s*,\s*)*("[^"]*)?$/);
if (match) {
return createDependencyProposals();
}
return [];

File diff suppressed because it is too large Load Diff