Commit ba034cb6 authored by greg@1m's avatar greg@1m
Browse files

wip on docs api

parent 32d8ab9e
......@@ -72,6 +72,7 @@ export const App = () => {
const cleanFilesList = () => {
clientApi.ui.browser.files.set([])
api.popup.confirm()
}
......
......@@ -276,9 +276,9 @@ OUT9
export const testsContentNoteContents = {
t1,
t2,
textNoTags,
textOneTag,
textSeveralOneTag,
t1,
t2,
textNoTags,
textOneTag,
textSeveralOneTag,
}
......@@ -18,7 +18,7 @@ test(`${h} : should not transform md>html inside [[script]] tags`, () => {
// should not include transformed chars html inside script
let res: any = true
if (
!r1.includes('var res = '{{innerTag}}'')
!r1.includes('var res = '{{innerTag}}'')
) res = "script is not escaped"
if (
......
import * as ts from "typescript";
function compile(fileNames: string[], options: ts.CompilerOptions): void {
let program = ts.createProgram(fileNames, options);
let emitResult = program.emit();
let program = ts.createProgram(fileNames, options);
let emitResult = program.emit();
let allDiagnostics = ts
.getPreEmitDiagnostics(program)
.concat(emitResult.diagnostics);
let allDiagnostics = ts
.getPreEmitDiagnostics(program)
.concat(emitResult.diagnostics);
allDiagnostics.forEach(diagnostic => {
if (diagnostic.file) {
let { line, character } = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start!);
let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
} else {
console.log(ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n"));
}
});
allDiagnostics.forEach(diagnostic => {
if (diagnostic.file) {
let { line, character } = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start!);
let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
} else {
console.log(ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n"));
}
});
let exitCode = emitResult.emitSkipped ? 1 : 0;
console.log(`Process exiting with code '${exitCode}'.`);
process.exit(exitCode);
let exitCode = emitResult.emitSkipped ? 1 : 0;
console.log(`Process exiting with code '${exitCode}'.`);
process.exit(exitCode);
}
compile(process.argv.slice(2), {
noEmitOnError: true,
noImplicitAny: true,
target: ts.ScriptTarget.ES5,
module: ts.ModuleKind.CommonJS
noEmitOnError: true,
noImplicitAny: true,
target: ts.ScriptTarget.ES5,
module: ts.ModuleKind.CommonJS
});
......@@ -7,7 +7,7 @@ import { getLoginToken } from "./loginToken.manager";
import { log } from "./log.manager";
import { getDefaultDataFolderPath } from "./fs.manager";
import { isRgCliWorking } from "./search/search-ripgrep.manager";
import { getServerIps } from "./ip.manager";
import { getServerIps } from "./ip.manager";
interface routeOptions {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment