diff --git a/package.json b/package.json index d1a7d3c..4d72a12 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "homepage": "https://github.com/Kingwl/monaco-volar#readme", "devDependencies": { "@types/node": "^17.0.42", - "@volar/vue-language-service": "0.37.3", + "@volar/vue-language-service": "0.39.0", "@vue/reactivity": "^3.2.37", "@vue/runtime-core": "^3.2.37", "@vue/runtime-dom": "^3.2.37", @@ -44,7 +44,7 @@ "prettier": "^2.6.2", "typescript": "^4.7.3", "vite": "^3.0.0-alpha.11", - "vscode-languageserver-protocol": "^3.17.1", + "vscode-languageserver-protocol": "^3.17.2", "vue": "^3.2.37" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 53906c1..55cecaf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2,7 +2,7 @@ lockfileVersion: 5.4 specifiers: '@types/node': ^17.0.42 - '@volar/vue-language-service': 0.37.3 + '@volar/vue-language-service': 0.39.0 '@vue/reactivity': ^3.2.37 '@vue/runtime-core': ^3.2.37 '@vue/runtime-dom': ^3.2.37 @@ -16,7 +16,7 @@ specifiers: prettier: ^2.6.2 typescript: ^4.7.3 vite: ^3.0.0-alpha.11 - vscode-languageserver-protocol: ^3.17.1 + vscode-languageserver-protocol: ^3.17.2 vue: ^3.2.37 dependencies: @@ -25,7 +25,7 @@ dependencies: devDependencies: '@types/node': 17.0.42 - '@volar/vue-language-service': 0.37.3 + '@volar/vue-language-service': 0.39.0 '@vue/reactivity': 3.2.37 '@vue/runtime-core': 3.2.37 '@vue/runtime-dom': 3.2.37 @@ -37,7 +37,7 @@ devDependencies: prettier: 2.6.2 typescript: 4.7.3 vite: 3.0.0-alpha.11 - vscode-languageserver-protocol: 3.17.1 + vscode-languageserver-protocol: 3.17.2 vue: 3.2.37 packages: @@ -70,13 +70,13 @@ packages: dev: true /@emmetio/css-abbreviation/2.1.4: - resolution: {integrity: sha1-kDYuihEizjt29sMVeQfTAYL1P1Q=} + resolution: {integrity: sha512-qk9L60Y+uRtM5CPbB0y+QNl/1XKE09mSO+AhhSauIfr2YOx/ta3NJw2d8RtCFxgzHeRqFRr8jgyzThbu+MZ4Uw==} dependencies: '@emmetio/scanner': 1.0.0 dev: true /@emmetio/scanner/1.0.0: - resolution: {integrity: sha1-Blsq9iM/50dNRII+PeuJckr0K18=} + resolution: {integrity: sha512-8HqW8EVqjnCmWXVpqAOZf+EGESdkR27odcMMMGefgKXtar00SoYNSryGv//TELI4T3QFsECo78p+0lmalk/CFA==} dev: true /@johnsoncodehk/html2pug/1.0.0: @@ -96,92 +96,104 @@ packages: resolution: {integrity: sha512-Q5BPGyGKcvQgAMbsr7qEGN/kIPN6zZecYYABeTDBizOsau+2NMdSVTar9UQw21A2+JyA2KRNDYaYrPB0Rpk2oQ==} dev: true - /@volar/code-gen/0.37.3: - resolution: {integrity: sha512-+XXfbkjVoDPxECkAOtRmHKnKnSWMOeThqlVSm9XwIVSdyiBN8Gi4xDUWmPH/WxK+D8bGLCm4Vkjk3rge+KOVaQ==} + /@volar/code-gen/0.39.0: + resolution: {integrity: sha512-56ycx16FoeDrjVuQ2RKIRmk3paFuIG4eIZLMpxypGKOlhFxS9/nB2eumln2e1jVlnAWeTcFw5V1/eYpDTazHLA==} dependencies: - '@volar/source-map': 0.37.3 + '@volar/source-map': 0.39.0 dev: true - /@volar/pug-language-service/0.37.3: - resolution: {integrity: sha512-+oAhMNWdpe1EVSRoJTgTIBdasJC3xAB3Ke2/vL6CWm29ihm/helWlKMKbV5Fp4YC+OR2kxj5Wo3uzoxGjcJIig==} + /@volar/pug-language-service/0.39.0: + resolution: {integrity: sha512-jgcV9yAvV1r6yJbvWASAAqa96df8uKgzPkmwmqdzz0sgVMXnUbU8B5Ol+b0UcqsQ9SvFk7CvDSqfZDdScKWtyQ==} dependencies: - '@volar/code-gen': 0.37.3 - '@volar/shared': 0.37.3 - '@volar/source-map': 0.37.3 - '@volar/transforms': 0.37.3 + '@volar/code-gen': 0.39.0 + '@volar/shared': 0.39.0 + '@volar/source-map': 0.39.0 + '@volar/transforms': 0.39.0 pug-lexer: 5.0.1 pug-parser: 6.0.0 vscode-languageserver-textdocument: 1.0.5 - vscode-languageserver-types: 3.17.1 + vscode-languageserver-types: 3.17.2 dev: true - /@volar/shared/0.37.3: - resolution: {integrity: sha512-qqWQsYDLG5mUQzKObx6+k9h+hRxrwOrLUFZh2THj1AKmBJAmEfCRa7ysQ7xcl+iO7+766c+cMSzF4Mtfs4fOMA==} + /@volar/shared/0.39.0: + resolution: {integrity: sha512-7B9eGyB9taCbQa51aJkz/PZFj7NUNMVv1O2NgCf6D0/bpV79OewJ3CsFqdZeV1djfu6F+swzWHb95aLtiPj99g==} dependencies: upath: 2.0.1 - vscode-languageserver-protocol: 3.17.1 + vscode-languageserver-protocol: 3.17.2 vscode-languageserver-textdocument: 1.0.5 vscode-uri: 3.0.3 dev: true - /@volar/source-map/0.37.3: - resolution: {integrity: sha512-vedJWjcjKY2u8EnYMQyDjab2+S1tzUqvzJAY3PqVeN7nwJMyP5X2C/OMB2qZqJPxM0EYIR5ExVaJyVxWNkCgYA==} + /@volar/source-map/0.39.0: + resolution: {integrity: sha512-sV/eDeOjBwDJxrxwP/ifABvlOUzjpUpCbtbAhoc9hD9SrHlaDGrKtnmXdqgH5DNHIfm5aUpY0xojRvFFOubpuw==} dev: true - /@volar/transforms/0.37.3: - resolution: {integrity: sha512-AhXlX71G3kFkq7zNtQwjyhm1y5wV+72u267+js/q5sfnrljAJZfjw6ZUBjIVCTalZPL8E0Urz5XGn/WtBuxnaw==} + /@volar/transforms/0.39.0: + resolution: {integrity: sha512-exEb89q1ppH9m9EBrBQDeyUdEGKF+wGIHwjVWipla8DmGUtGHtZ+yavZOpAcdtC5u9FD6pYrQzqabCHIixljfA==} dependencies: - '@volar/shared': 0.37.3 - vscode-languageserver-types: 3.17.1 + '@volar/shared': 0.39.0 + vscode-languageserver-types: 3.17.2 dev: true - /@volar/typescript-faster/0.37.3: - resolution: {integrity: sha512-WlEv38Uga/VnstM2cdCedaH8eZsO/DwDr5GDNoJk+lLcpCHbmWgccajUaiLhXfgqBZld0hxQwlgwIqOsKrSgig==} + /@volar/typescript-faster/0.39.0: + resolution: {integrity: sha512-+NNY456ABrvXD2VsJGsH4BGQTWkSyWcUfdbcREqXD+g2GotW7UtkFMtNgu1ASXBhKl7oRdPuRk5wK9Edw2tW9A==} dependencies: semver: 7.3.7 dev: true - /@volar/typescript-language-service/0.37.3: - resolution: {integrity: sha512-FfpQFaucuNKRQYZAWZfPxA7taVIrC9Aj7Bwn/tryCnCJSorc8Sv4FncPOkaQa34wjXpOIR0dpK8cceJzY9TceQ==} + /@volar/typescript-language-service/0.39.0: + resolution: {integrity: sha512-CaVA/GquACpYGD7uEPIx5STgRPrzdsRiJyblAgHFZUROFOFKaVMqSrcp7Q2VdfSVLtb45Y/GJqmu21PouSytRQ==} dependencies: - '@volar/shared': 0.37.3 + '@volar/shared': 0.39.0 semver: 7.3.7 upath: 2.0.1 - vscode-languageserver-protocol: 3.17.1 + vscode-languageserver-protocol: 3.17.2 vscode-languageserver-textdocument: 1.0.5 vscode-nls: 5.0.1 dev: true - /@volar/vue-code-gen/0.37.3: - resolution: {integrity: sha512-+V+XUItSKve98W7m+WM1iUHyEe5JixTmILsMqZNJ/Ob0UFci2YD3tCTlMC9/o/CdKlxBCgUerQZ61q/YLWKgkg==} + /@volar/vue-code-gen/0.39.0: + resolution: {integrity: sha512-0KqocSt5o4TtmUngq+8tmWRfifgyE9eDzb4/1Ih7bl52T1RDdOOKkZ9GzP3zBic3N7lJHiOaLdGMXTK+IzAe7g==} dependencies: - '@volar/code-gen': 0.37.3 - '@volar/source-map': 0.37.3 + '@volar/code-gen': 0.39.0 + '@volar/source-map': 0.39.0 '@vue/compiler-core': 3.2.37 '@vue/compiler-dom': 3.2.37 '@vue/shared': 3.2.37 dev: true - /@volar/vue-language-service-types/0.37.3: - resolution: {integrity: sha512-y/vq0Xwza3eQ9Fi/WZIDoyFDIGEtOhlWi3/MzxqTErAu3kbnv1N+ZPmglBtE4XZZMZ91wdFRJ44E3+I0oggBfA==} + /@volar/vue-language-core/0.39.0: + resolution: {integrity: sha512-MnXnrIB7PtggLfKcLtg9I5X1i5FMCoTC+jYtR/j5RZU97boPbFi0lYLysCGPUXdP3w5taIXGPgfT8VnbLEkndQ==} dependencies: - vscode-languageserver-protocol: 3.17.1 + '@volar/code-gen': 0.39.0 + '@volar/source-map': 0.39.0 + '@volar/vue-code-gen': 0.39.0 + '@vue/compiler-sfc': 3.2.37 + '@vue/reactivity': 3.2.37 + dev: true + + /@volar/vue-language-service-types/0.39.0: + resolution: {integrity: sha512-LttoIvGP6eW2U6Yr7ccqGgW2BPIN9CRsUZPPNR4OOscyc30UHp1sVNd2STSxnzXZRTose5Auz/kQg/1/k2qCww==} + dependencies: + vscode-languageserver-protocol: 3.17.2 vscode-languageserver-textdocument: 1.0.5 dev: true - /@volar/vue-language-service/0.37.3: - resolution: {integrity: sha512-3+uGiufZi6WDoqZxhf8AkraArZ/wQAF5vjGqjbGkRyc5AKh7YnuI/TKlxqq1jPeK/ReU+mrmMxw0j89U5kFEWA==} + /@volar/vue-language-service/0.39.0: + resolution: {integrity: sha512-b9U2Bj2ukfUYGYd3pO9bScct29c9jUiKfdToqVgIzVi1HFQkeKVNg91mjevsuaVH2weIdNdB/ePnIsuyeb6PcA==} dependencies: '@johnsoncodehk/html2pug': 1.0.0 '@johnsoncodehk/pug-beautify': 0.2.2 - '@volar/pug-language-service': 0.37.3 - '@volar/shared': 0.37.3 - '@volar/source-map': 0.37.3 - '@volar/transforms': 0.37.3 - '@volar/typescript-language-service': 0.37.3 - '@volar/vue-code-gen': 0.37.3 - '@volar/vue-language-service-types': 0.37.3 - '@volar/vue-typescript': 0.37.3 + '@volar/pug-language-service': 0.39.0 + '@volar/shared': 0.39.0 + '@volar/source-map': 0.39.0 + '@volar/transforms': 0.39.0 + '@volar/typescript-faster': 0.39.0 + '@volar/typescript-language-service': 0.39.0 + '@volar/vue-code-gen': 0.39.0 + '@volar/vue-language-core': 0.39.0 + '@volar/vue-language-service-types': 0.39.0 + '@volar/vue-typescript': 0.39.0 '@vscode/emmet-helper': 2.8.4 '@vue/compiler-dom': 3.2.37 '@vue/reactivity': 3.2.37 @@ -189,21 +201,18 @@ packages: semver: 7.3.7 upath: 2.0.1 vscode-css-languageservice: 6.0.1 - vscode-html-languageservice: 5.0.0 - vscode-json-languageservice: 5.0.0 - vscode-languageserver-protocol: 3.17.1 + vscode-html-languageservice: 5.0.1 + vscode-json-languageservice: 5.1.0 + vscode-languageserver-protocol: 3.17.2 vscode-languageserver-textdocument: 1.0.5 dev: true - /@volar/vue-typescript/0.37.3: - resolution: {integrity: sha512-klMYVD4a3M+PhjNfreOFjgdGWTFSOM7fIJ5yebrwt8UD9HV2Bhfz0YNTYBL6SkGDTRCgeNPdGTgh1RbIWjsQJA==} + /@volar/vue-typescript/0.39.0: + resolution: {integrity: sha512-RV+oHtkuta/kwskg02Ykp9qvDXpgDNF1EVgeGx42v1b65qMyAd5FgxOZxYYCzVV4DzVa6gH+C5YhuQXo4oEdog==} dependencies: - '@volar/code-gen': 0.37.3 - '@volar/source-map': 0.37.3 - '@volar/typescript-faster': 0.37.3 - '@volar/vue-code-gen': 0.37.3 - '@vue/compiler-sfc': 3.2.37 - '@vue/reactivity': 3.2.37 + '@volar/code-gen': 0.39.0 + '@volar/typescript-faster': 0.39.0 + '@volar/vue-language-core': 0.39.0 dev: true /@vscode/emmet-helper/2.8.4: @@ -212,7 +221,7 @@ packages: emmet: 2.3.6 jsonc-parser: 2.3.1 vscode-languageserver-textdocument: 1.0.5 - vscode-languageserver-types: 3.17.1 + vscode-languageserver-types: 3.17.2 vscode-nls: 5.0.1 vscode-uri: 2.1.2 dev: true @@ -301,7 +310,7 @@ packages: dev: true /acorn/7.4.1: - resolution: {integrity: sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo=} + resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -315,14 +324,14 @@ packages: dev: true /babel-walk/3.0.0-canary-5: - resolution: {integrity: sha1-9m7Ncpg1eu5ElV8jWm71QhkQSxE=} + resolution: {integrity: sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw==} engines: {node: '>= 10.0.0'} dependencies: '@babel/types': 7.18.4 dev: true /call-bind/1.0.2: - resolution: {integrity: sha1-sdTonmiBGcPJqQOtMKuy9qkZvjw=} + resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==} dependencies: function-bind: 1.1.1 get-intrinsic: 1.1.2 @@ -346,7 +355,7 @@ packages: dev: true /doctypes/1.1.0: - resolution: {integrity: sha1-6oCxBqh1OHdOijpKWv4pPeSJ4Kk=} + resolution: {integrity: sha512-LLBi6pEqS6Do3EKQ3J0NqHWV5hhb78Pi8vvESYwyOy2c31ZEZVdtitdzsQsKb7878PEERhzUk0ftqGhG6Mz+pQ==} dev: true /dom-serializer/1.4.1: @@ -384,11 +393,11 @@ packages: dev: true /entities/2.2.0: - resolution: {integrity: sha1-CY3JDruD2N/6CJ1VJWs1HTTE2lU=} + resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==} dev: true /entities/3.0.1: - resolution: {integrity: sha1-K4h8piWF6W2zkDSC0zbBAGwwAdQ=} + resolution: {integrity: sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==} engines: {node: '>=0.12'} dev: true @@ -609,7 +618,7 @@ packages: dev: true /fsevents/2.3.2: - resolution: {integrity: sha1-ilJveLj99GI7cJ4Ll1xSwkwC/Ro=} + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] requiresBuild: true @@ -663,7 +672,7 @@ packages: dev: true /is-expression/4.0.0: - resolution: {integrity: sha1-wzFVliq/IdCv0lUlFNZ9LsFv0qs=} + resolution: {integrity: sha512-zMIXX63sxzG3XrkHkrAPvm/OVZVSCPNkwMHU8oTX7/U3AL78I0QXCEICXUM13BIa8TYGZ68PiTKfQz3yaTNr4A==} dependencies: acorn: 7.4.1 object-assign: 4.1.1 @@ -674,7 +683,7 @@ packages: dev: true /is-regex/1.1.4: - resolution: {integrity: sha1-7vVmPNWfpMCuM5UFMj32hUuxWVg=} + resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.2 @@ -689,12 +698,12 @@ packages: resolution: {integrity: sha512-H8jvkz1O50L3dMZCsLqiuB2tA7muqbSg1AtGEkN0leAqGjsUzDJir3Zwr02BhqdcITPg3ei3mZ+HjMocAknhhg==} dev: true - /jsonc-parser/3.0.0: - resolution: {integrity: sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==} + /jsonc-parser/3.1.0: + resolution: {integrity: sha512-DRf0QjnNeCUds3xTjKlQQ3DpJD51GvDjJfnxUVWg6PZTo2otSm+slzNAxU/35hF8/oJIKoG9slq30JYOsF2azg==} dev: true /jstransformer/1.0.0: - resolution: {integrity: sha512-C9YK3Rf8q6VAPDCCU9fnqo3mAfOH6vUGnMcP4AQAYIEpWtfGLpwOTmZ+igtdK5y+VvI2n3CyYSzy4Qh34eq24A==} + resolution: {integrity: sha1-7Yvwkh4vPx7U1cGkT2hwntJHIsM=} dependencies: is-promise: 2.2.2 promise: 7.3.1 @@ -704,6 +713,7 @@ packages: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} dependencies: yallist: 3.1.1 + dev: false /lru-cache/6.0.0: resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} @@ -747,7 +757,7 @@ packages: dev: true /object-assign/4.1.1: - resolution: {integrity: sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=} + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} dev: true @@ -755,6 +765,7 @@ packages: resolution: {integrity: sha1-zE0qeaD6C2TK7B9MfqNnWFpnaJI=} dependencies: lru-cache: 5.1.1 + dev: false /path-browserify/1.0.1: resolution: {integrity: sha1-2YRUqcN1PVeQhg8W9ohnueRr4f0=} @@ -825,7 +836,7 @@ packages: dev: true /pug-lexer/5.0.1: - resolution: {integrity: sha1-rkRijFvvmxkLZlaDsojKkCS4sNU=} + resolution: {integrity: sha512-0I6C62+keXlZPZkOJeVam9aBLVP2EnbeDw3An+k0/QlqdwH6rv8284nko14Na7c0TtqtogfWXcRoFE4O4Ff20w==} dependencies: character-parser: 2.2.0 is-expression: 4.0.0 @@ -854,7 +865,7 @@ packages: dev: true /pug-runtime/3.0.1: - resolution: {integrity: sha1-9jaXYgRyPzWoxfb61qzaKhkbg9c=} + resolution: {integrity: sha512-L50zbvrQ35TkpHwv0G6aLSuueDRwc/97XdY8kL3tOT0FmhgG7UypU3VztfV/LATAvmUfYi4wNxSajhSAeNN+Kg==} dev: true /pug-strip-comments/2.0.0: @@ -864,11 +875,11 @@ packages: dev: true /pug-walk/2.0.0: - resolution: {integrity: sha1-QXqrwpIyu0SZtbUGmistKiTV9f4=} + resolution: {integrity: sha512-yYELe9Q5q9IQhuvqsZNwA5hfPkMJ8u92bQLIMcsMxf/VADjNtEYptU+inlufAFYcWdHlwNfZOEnOOQrZrcyJCQ==} dev: true /pug/3.0.2: - resolution: {integrity: sha1-81xxBzQ0VOQ7wnrg/3bHMbeOpTU=} + resolution: {integrity: sha512-bp0I/hiK1D1vChHh6EfDxtndHji55XP/ZJKwsRqrz6lRia6ZC2OZbdAymlxdVFwd1L70ebrVJw4/eZ79skrIaw==} dependencies: pug-code-gen: 3.0.2 pug-filters: 4.0.0 @@ -930,7 +941,7 @@ packages: dev: true /token-stream/1.0.0: - resolution: {integrity: sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg==} + resolution: {integrity: sha1-zCAOqyYT9BZtJ/+a/HylbUnfbrQ=} dev: true /typescript/4.7.3: @@ -940,7 +951,7 @@ packages: dev: true /upath/2.0.1: - resolution: {integrity: sha1-UMc96mjW9rmQ9R0nnOYIFmXWGos=} + resolution: {integrity: sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w==} engines: {node: '>=4'} dev: true @@ -980,48 +991,48 @@ packages: resolution: {integrity: sha512-81n/eeYuJwQdvpoy6IK1258PtPbO720fl13FcJ5YQECPyHMFkmld1qKHwPJkyLbLPfboqJPM53ys4xW8v+iBVw==} dependencies: vscode-languageserver-textdocument: 1.0.5 - vscode-languageserver-types: 3.17.1 + vscode-languageserver-types: 3.17.2 vscode-nls: 5.0.1 vscode-uri: 3.0.3 dev: true - /vscode-html-languageservice/5.0.0: - resolution: {integrity: sha512-KJG13z54aLszskp3ETf8b1EKDypr2Sf5RUsfR6OXmKqEl2ZUfyIxsWz4gbJWjPzoJZx/bGH0ZXVwxJ1rg8OKRQ==} + /vscode-html-languageservice/5.0.1: + resolution: {integrity: sha512-OYsyn5HGAhxs0OIG+M0jc34WnftLtD67Wg7+TfrYwvf0waOkkr13zUqtdrVm2JPNQ6fJx+qnuM+vTbq7o1dCdQ==} dependencies: vscode-languageserver-textdocument: 1.0.5 - vscode-languageserver-types: 3.17.1 + vscode-languageserver-types: 3.17.2 vscode-nls: 5.0.1 vscode-uri: 3.0.3 dev: true - /vscode-json-languageservice/5.0.0: - resolution: {integrity: sha512-1/+1TJBRFrfCNizmrW0fbIvguKzzO+4ehlqWCCnF7ioSACUGHrYop4ANb+eRnFaCP6fi3+i+llJC5Y5yAvmL6w==} + /vscode-json-languageservice/5.1.0: + resolution: {integrity: sha512-D5612D7h/Gh4A0JmdttPveWzT9dur21WXvBHWKPdOt0sLO6ILz8vN6+IzWnvwDOVAEFTpzIAMVMZwbKZkwGGiA==} dependencies: - jsonc-parser: 3.0.0 + jsonc-parser: 3.1.0 vscode-languageserver-textdocument: 1.0.5 - vscode-languageserver-types: 3.17.1 + vscode-languageserver-types: 3.17.2 vscode-nls: 5.0.1 vscode-uri: 3.0.3 dev: true - /vscode-jsonrpc/8.0.1: - resolution: {integrity: sha512-N/WKvghIajmEvXpatSzvTvOIz61ZSmOSa4BRA4pTLi+1+jozquQKP/MkaylP9iB68k73Oua1feLQvH3xQuigiQ==} + /vscode-jsonrpc/8.0.2: + resolution: {integrity: sha512-RY7HwI/ydoC1Wwg4gJ3y6LpU9FJRZAUnTYMXthqhFXXu77ErDd/xkREpGuk4MyYkk4a+XDWAMqe0S3KkelYQEQ==} engines: {node: '>=14.0.0'} dev: true - /vscode-languageserver-protocol/3.17.1: - resolution: {integrity: sha512-BNlAYgQoYwlSgDLJhSG+DeA8G1JyECqRzM2YO6tMmMji3Ad9Mw6AW7vnZMti90qlAKb0LqAlJfSVGEdqMMNzKg==} + /vscode-languageserver-protocol/3.17.2: + resolution: {integrity: sha512-8kYisQ3z/SQ2kyjlNeQxbkkTNmVFoQCqkmGrzLH6A9ecPlgTbp3wDTnUNqaUxYr4vlAcloxx8zwy7G5WdguYNg==} dependencies: - vscode-jsonrpc: 8.0.1 - vscode-languageserver-types: 3.17.1 + vscode-jsonrpc: 8.0.2 + vscode-languageserver-types: 3.17.2 dev: true /vscode-languageserver-textdocument/1.0.5: resolution: {integrity: sha512-1ah7zyQjKBudnMiHbZmxz5bYNM9KKZYz+5VQLj+yr8l+9w3g+WAhCkUkWbhMEdC5u0ub4Ndiye/fDyS8ghIKQg==} dev: true - /vscode-languageserver-types/3.17.1: - resolution: {integrity: sha512-K3HqVRPElLZVVPtMeKlsyL9aK0GxGQpvtAUTfX4k7+iJ4mc1M+JM+zQwkgGy2LzY0f0IAafe8MKqIkJrxfGGjQ==} + /vscode-languageserver-types/3.17.2: + resolution: {integrity: sha512-zHhCWatviizPIq9B7Vh9uvrH6x3sK8itC84HkamnBWoDFJtzBf7SWlpLCZUit72b3os45h6RWQNC9xHRDF8dRA==} dev: true /vscode-nls/5.0.1: @@ -1058,7 +1069,8 @@ packages: /yallist/3.1.1: resolution: {integrity: sha1-27fa+b/YusmrRev2ArjLrQ1dCP0=} + dev: false /yallist/4.0.0: - resolution: {integrity: sha1-m7knkNnA7/7GO+c1GeEaNQGaOnI=} + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: true diff --git a/src/services.ts b/src/services.ts index d5bd65b..f79b5d4 100644 --- a/src/services.ts +++ b/src/services.ts @@ -93,6 +93,9 @@ export function getLanguageServiceAndDocumentsService( getDefaultLibFileName(options: ts.CompilerOptions): string { return ts.getDefaultLibFileName(options); }, + getTypeScriptModule() { + return ts; + }, }; const sys: ts.System = { args: [], @@ -155,19 +158,13 @@ export function getLanguageServiceAndDocumentsService( rootUris: ["/"], }; const ls = createLanguageService( - { typescript: ts }, host, undefined, undefined, configurationHost, [] ); - const ds = getDocumentService( - { typescript: ts }, - configurationHost, - undefined, - [] - ); + const ds = getDocumentService(ts, configurationHost, undefined, []); return { ls,