Skip to content

Commit

Permalink
Merge b008b82 into ea3916e
Browse files Browse the repository at this point in the history
  • Loading branch information
albertleigh committed Jan 9, 2022
2 parents ea3916e + b008b82 commit 2ba23b9
Show file tree
Hide file tree
Showing 41 changed files with 433 additions and 367 deletions.
2 changes: 1 addition & 1 deletion examples/easy-example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/easy-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@material-ui/core": "^4.12.3",
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.60",
"monaco-azure-logic-app-lang": "^0.1.0",
"monaco-azure-logic-app-lang": "^0.1.1",
"monaco-editor": "^0.27.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down Expand Up @@ -65,5 +65,5 @@
"keywords": [],
"author": "",
"license": "ISC",
"version": "0.1.0"
"version": "0.1.1"
}
3 changes: 1 addition & 2 deletions examples/easy-example/src/editors/DummyEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,8 @@ const useStyles = makeStyles((theme) => ({

// @item().one['two'].


const sampleCodes =
`@activity('GetMetadata 2').output.structure[1].`;
`@min(pipeline().globalParameters.oneTypedObj.anotherGlobalFloat,activity('Lookup 3').output.firstRow.count)`;

const MONACO_EDITOR_ID = 'first-dummy-monaco-editor';

Expand Down
1 change: 1 addition & 0 deletions examples/easy-example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"strictNullChecks": true,
"isolatedModules": false,
"noEmit": true,
"jsx": "react",
Expand Down
2 changes: 1 addition & 1 deletion languages/monaco-az-logic-app-lang-e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions languages/monaco-az-logic-app-lang-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "monaco-az-logic-app-lang-e2e",
"private": true,
"dependencies": {
"monaco-azure-logic-app-lang": "^0.1.0",
"monaco-azure-logic-app-lang": "^0.1.1",
"monaco-editor": "^0.27.0"
},
"devDependencies": {
Expand Down Expand Up @@ -62,5 +62,5 @@
"keywords": [],
"author": "",
"license": "ISC",
"version": "0.1.0"
"version": "0.1.1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export const mount = (root:HTMLDivElement)=> {
MONACO_EDITOR_ID,
rootSymbolTable
)
AzLogicAppExpressionLangMonacoEditor.init.then(()=>{
AzLogicAppExpressionLangMonacoEditor.init?.then(()=>{
theEditor.azLgcExpDocEventEmitter?.subscribe(subscribeCodeDoc);
theEditor.validationResultEventEmitter?.subscribe(subscribeValidateResult);
(window as any).regenerateNextSymbolTable = function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ function generateValidationTests(openOnePage, closeOnePage) {
"@concat('Baba', '''s ', 'book store')",
"@if(contains(json(item().DataLoadingBehaviorSettings).watermarkColumnType, 'Int'),'','''')",
"@equals(pipeline().globalParameters.firstGlobalStrPara, '0')",
"@array('abc', 'defg')",
"@union([1, 2, 3], [101, 2, 1, 10])",
"@min(pipeline().globalParameters.oneTypedObj.anotherGlobalFloat,activity('Lookup 3').output.firstRow.count)",
"@max(pipeline().globalParameters.oneTypedObj.anotherGlobalNumber,activity('Lookup 4').output.firstRow.count)",
"@coalesce(1,2,'',true, false, xml(''))",
"@createArray(1,2,'',true, false, json(''))",
"@float('0.777')",
"@subtractFromTime('',1, string( json('')))",
"@subtractFromTime('',1, string( json('')), 'another')",
].forEach((value, index)=>{
it(`Valid expression ${index}`, async ()=>{
let nextText, content, problems;
Expand Down
1 change: 1 addition & 0 deletions languages/monaco-az-logic-app-lang-e2e/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"strictNullChecks": true,
"isolatedModules": false,
"noEmit": true,
"jsx": "react",
Expand Down
2 changes: 1 addition & 1 deletion languages/monaco-az-logic-app-lang/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions languages/monaco-az-logic-app-lang/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monaco-azure-logic-app-lang",
"version": "0.1.0",
"version": "0.1.1",
"description": "",
"main": "./lib/index.js",
"typings": "./lib/typings/index.d.ts",
Expand All @@ -20,11 +20,11 @@
"url": "git@github.com:albertleigh/monaco-imposture-tools.git"
},
"dependencies": {
"@monaco-imposture-tools/core": "^0.1.0",
"@monaco-imposture-tools/oniguruma-asm": "^0.1.0"
"@monaco-imposture-tools/core": "^0.1.1",
"@monaco-imposture-tools/oniguruma-asm": "^0.1.1"
},
"devDependencies": {
"@monaco-imposture-tools/grammars": "^0.1.0",
"@monaco-imposture-tools/grammars": "^0.1.1",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/node": "^14.14.31",
Expand Down
2 changes: 1 addition & 1 deletion languages/monaco-az-logic-app-lang/src/azLgcNodesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export abstract class AbstractReturnChainType {
let isPropertyLiteral = false;
if (node.children?.length){
firstChildAstNode = node.children[0] as AzLogicAppNode;
switch (firstChildAstNode.$impostureLang.dataType) {
switch (firstChildAstNode.$impostureLang?.dataType) {
case 'string':
identifierName = codeDocument.getNodeContent(firstChildAstNode).replace(/'/gm, '');
label = identifierName;
Expand Down
2 changes: 1 addition & 1 deletion languages/monaco-az-logic-app-lang/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class AzLogicAppLangConstants{
static _init: Promise<any> | undefined = undefined;
static _registry: Registry | undefined = undefined;

static _grammar: IGrammar | undefined = undefined;
static _grammar: IGrammar | null | undefined = undefined;
static _theme: IRawTheme = themes['default'];
static _usingBuiltInTheme = true;

Expand Down

0 comments on commit 2ba23b9

Please sign in to comment.