Closed adamraya closed 3 weeks ago
What's the plan for the js/jsx files?
Similarly, we can add a jsconfig.json
file.
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"override!/*": ["src/*"]
}
}
}
I assumed we only wanted to use ts for the extensions.
Description
Problem
The IDEs are unable to resolve the overridable imports identified using a wildcard correctly and provide the proper navigation and IntelliSense.
This results in errors with red squiggly lines below the wildcard import syntax.
Example
Error
Solution
The PR implements two changes:
*
with the dollaroverride!
symbol to comply with the tscompilerOptions.path
pattern limitation of using at most one '*' character. See ts config wildcard substitutions docs.tsconfig.json
file with thecompilerOption.path
mapping the paths starting withoverride!/*
tosrc/*
.Using a different symbol to identify overridable imports solves the error caused by the wildcard symbol.
Types of Changes
Changes
*
with the dollaroverride!
.tsconfig.json
file.How to Test-Drive This PR
solve-wildcard-imports
in your IDE.packages/extension-base/src/setup-app.ts
file.Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization