cleanup unused code; fix tsc builds
This commit is contained in:
parent
0cf5c47c28
commit
8e4fb99b53
|
@ -17,7 +17,7 @@ export const startClient = (context: vscode.ExtensionContext) => {
|
||||||
);
|
);
|
||||||
// The debug options for the server
|
// The debug options for the server
|
||||||
// --inspect=6009: runs the server in Node's Inspector mode so VS Code can attach to the server for debugging
|
// --inspect=6009: runs the server in Node's Inspector mode so VS Code can attach to the server for debugging
|
||||||
let debugOptions = { execArgv: ["--nolazy", "--inspect=6009"] };
|
let debugOptions = { execArgv: ["--nolazy" /*"--inspect=6009"*/] };
|
||||||
|
|
||||||
// If the extension is launched in debug mode then the debug server options are used
|
// If the extension is launched in debug mode then the debug server options are used
|
||||||
// Otherwise the run options are used
|
// Otherwise the run options are used
|
||||||
|
|
|
@ -125,11 +125,11 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"vscode:prepublish": "yarn run compile",
|
"vscode:prepublish": "yarn run compile",
|
||||||
"compile:tsc": "tsc -p ./",
|
"compile:tsc": "tsc -b",
|
||||||
"compile:grammar": "js-yaml syntaxes/squiggle.tmLanguage.yaml >syntaxes/squiggle.tmLanguage.json",
|
"compile:grammar": "js-yaml syntaxes/squiggle.tmLanguage.yaml >syntaxes/squiggle.tmLanguage.json",
|
||||||
"compile:vendor": "(cd ../squiggle-lang && yarn run build) && (cd ../components && yarn run bundle && yarn run build:css) && mkdir -p media/vendor && cp ../components/dist/bundle.js media/vendor/components.js && cp ../components/dist/main.css media/vendor/components.css && cp ../../node_modules/react/umd/react.production.min.js media/vendor/react.js && cp ../../node_modules/react-dom/umd/react-dom.production.min.js media/vendor/react-dom.js && cp ../website/static/img/quri-logo.png media/vendor/icon.png",
|
"compile:vendor": "(cd ../squiggle-lang && yarn run build) && (cd ../components && yarn run bundle && yarn run build:css) && mkdir -p media/vendor && cp ../components/dist/bundle.js media/vendor/components.js && cp ../components/dist/main.css media/vendor/components.css && cp ../../node_modules/react/umd/react.production.min.js media/vendor/react.js && cp ../../node_modules/react-dom/umd/react-dom.production.min.js media/vendor/react-dom.js && cp ../website/static/img/quri-logo.png media/vendor/icon.png",
|
||||||
"compile": "yarn run compile:tsc && yarn run compile:grammar && yarn run compile:vendor",
|
"compile": "yarn run compile:tsc && yarn run compile:grammar && yarn run compile:vendor",
|
||||||
"watch": "tsc -watch -p ./",
|
"watch": "tsc -b -watch",
|
||||||
"pretest": "yarn run compile && yarn run lint",
|
"pretest": "yarn run compile && yarn run lint",
|
||||||
"lint": "eslint client/src server/src --ext ts",
|
"lint": "eslint client/src server/src --ext ts",
|
||||||
"format": "eslint client/src server/src --ext ts --fix",
|
"format": "eslint client/src server/src --ext ts --fix",
|
||||||
|
|
|
@ -45,12 +45,8 @@ connection.onInitialize((params: InitializeParams) => {
|
||||||
async function validateSquiggleDocument(
|
async function validateSquiggleDocument(
|
||||||
textDocument: TextDocument
|
textDocument: TextDocument
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
// The validator creates diagnostics for all uppercase words length 2 and more
|
|
||||||
const text = textDocument.getText();
|
const text = textDocument.getText();
|
||||||
const pattern = /\b[A-Z]{2,}\b/g;
|
|
||||||
let m: RegExpExecArray | null;
|
|
||||||
|
|
||||||
let problems = 0;
|
|
||||||
const diagnostics: Diagnostic[] = [];
|
const diagnostics: Diagnostic[] = [];
|
||||||
|
|
||||||
const parseResult = parse(text);
|
const parseResult = parse(text);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user