@ripple-ts/language-server 0.3.45 → 0.3.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/language-server.js
CHANGED
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_typescriptService = require('./typescriptService-
|
|
2
|
+
const require_typescriptService = require('./typescriptService-mlv6mda-.js');
|
|
3
3
|
let volar_service_css = require("volar-service-css");
|
|
4
4
|
|
|
5
5
|
//#region src/server.js
|
|
@@ -20096,7 +20096,7 @@ function get_start_offset_from_error(error) {
|
|
|
20096
20096
|
//#region ../typescript-plugin/src/language.js
|
|
20097
20097
|
/** @import { CodeMapping } from '@tsrx/ripple' */
|
|
20098
20098
|
/** @import {TSRXCompileError, VolarMappingsResult} from '@tsrx/ripple' */
|
|
20099
|
-
/** @typedef {{ code?: string,
|
|
20099
|
+
/** @typedef {{ code?: string, errors?: TSRXCompileError[] }} TSRXCompileResult */
|
|
20100
20100
|
/** @typedef {{ compile?: (source: string, filename: string, options?: { loose?: boolean }) => TSRXCompileResult, compile_to_volar_mappings(source: string, filename: string, options?: { loose?: boolean }): VolarMappingsResult }} TSRXCompilerModule */
|
|
20101
20101
|
/** @typedef {Map<string, CodeMapping>} CachedMappings */
|
|
20102
20102
|
/** @typedef {import('typescript').CompilerOptions} CompilerOptions */
|
|
@@ -20501,9 +20501,8 @@ function getFallbackGeneratedCode(tsrx, source, file_name) {
|
|
|
20501
20501
|
if (typeof tsrx.compile !== "function") return;
|
|
20502
20502
|
try {
|
|
20503
20503
|
const result = tsrx.compile(source, file_name, { loose: true });
|
|
20504
|
-
|
|
20505
|
-
|
|
20506
|
-
code,
|
|
20504
|
+
if (typeof result?.code === "string") return {
|
|
20505
|
+
code: result.code,
|
|
20507
20506
|
errors: result?.errors ?? []
|
|
20508
20507
|
};
|
|
20509
20508
|
} catch (error) {
|
|
@@ -21863,4 +21862,4 @@ Object.defineProperty(exports, 'resolveConfig', {
|
|
|
21863
21862
|
return resolveConfig;
|
|
21864
21863
|
}
|
|
21865
21864
|
});
|
|
21866
|
-
//# sourceMappingURL=typescriptService-
|
|
21865
|
+
//# sourceMappingURL=typescriptService-mlv6mda-.js.map
|