handle node type

solVersion
aniket-engg 1 year ago committed by Aniket
parent 42292ac8c4
commit 98ea5fb8c1
  1. 3
      libs/remix-ui/editor/src/lib/providers/codeActionProvider.ts
  2. 5
      libs/remix-ui/editor/src/lib/providers/quickfixes.ts

@ -81,7 +81,8 @@ export class RemixCodeActionProvider implements monaco.languages.CodeActionProvi
}
}
}
} else if (fix && fix.nodeType !== nodeAtPosition.nodeType) return
actions.push({
title: fix.title,
diagnostics: [error],

@ -1,11 +1,13 @@
export default {
"Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.": {
"title": "Add open-source license",
"message": "// SPDX-License-Identifier: GPL-3.0"
"message": "// SPDX-License-Identifier: GPL-3.0",
"nodeType": "SourceUnit"
},
"Warning: Source file does not specify required compiler version! Consider adding" : {
"title": "Add pragma line",
"message": "pragma solidity ^0.*.*;",
"nodeType": "PragmaDirective",
"range": {
startLineNumber: 2,
endLineNumber: 2,
@ -16,5 +18,6 @@ export default {
"SyntaxError: No visibility specified. Did you intend to add \"public\"": {
"title": "Add public visibility",
"message": "public ",
"nodeType": "FunctionDefinition"
}
}
Loading…
Cancel
Save