feat: prefill function/arrow/def snippets on typing (issue #618) - #3095
Quality Gate passed
Annotations
Check warning on line 51 in src/extensionsIntegrated/CustomSnippets/snippetCursorManager.js
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AaAGbEAdH6sOtJrGupcX&open=AaAGbEAdH6sOtJrGupcX&pullRequest=3095
Check warning on line 65 in src/extensionsIntegrated/CustomSnippets/snippetCursorManager.js
sonarqubecloud / SonarCloud Code Analysis
Use `.includes()`, rather than `.indexOf()`, when checking for existence.
See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AaAGbEAdH6sOtJrGupcY&open=AaAGbEAdH6sOtJrGupcY&pullRequest=3095
Check warning on line 1404 in src/editor/Editor.js
sonarqubecloud / SonarCloud Code Analysis
Move function 'getMarkOptionTabstopOutline' to the outer scope.
See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AaAGkC7GyDvelYErxKmf&open=AaAGkC7GyDvelYErxKmf&pullRequest=3095
Check warning on line 1419 in src/editor/Editor.js
sonarqubecloud / SonarCloud Code Analysis
Move function 'getMarkOptionTabstopOutlineActive' to the outer scope.
See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AaAGkC7GyDvelYErxKmg&open=AaAGkC7GyDvelYErxKmg&pullRequest=3095
Check warning on line 91 in src/extensionsIntegrated/CustomSnippets/snippetCursorManager.js
sonarqubecloud / SonarCloud Code Analysis
`String.raw` should be used to avoid escaping `\`.
See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AaAGWAsmTV2yRQvmykFU&open=AaAGWAsmTV2yRQvmykFU&pullRequest=3095
Check warning on line 89 in src/extensionsIntegrated/CustomSnippets/snippetCursorManager.js
sonarqubecloud / SonarCloud Code Analysis
Prefer `String#replaceAll()` over `String#replace()`.
See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AaAGWAsmTV2yRQvmykFT&open=AaAGWAsmTV2yRQvmykFT&pullRequest=3095
Check warning on line 86 in src/extensionsIntegrated/CustomSnippets/snippetCursorManager.js
sonarqubecloud / SonarCloud Code Analysis
Move function 'escapeBareDollarSigns' to the outer scope.
See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AaAGWAsmTV2yRQvmykFS&open=AaAGWAsmTV2yRQvmykFS&pullRequest=3095
Check warning on line 431 in src/extensionsIntegrated/CustomSnippets/helper.js
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AaAGWAx0TV2yRQvmykFV&open=AaAGWAx0TV2yRQvmykFV&pullRequest=3095