Loading
refactor: import supportedLanguages from main package entry point
What does this MR do?
Updates imports of code_suggestions_config.json to use the new supportedLanguages export from @gitlab-org/gitlab-lsp's main entry point.
The LSP package converted code_suggestions_config.json to a TypeScript module as part of the src/common workspace migration (gitlab-org/editor-extensions/gitlab-lsp!3075 (merged)). The JSON subpath import (@gitlab-org/gitlab-lsp/code_suggestions_config.json) no longer works because the file is now compiled into the package output.
Files changed
-
src/common/code_suggestions/constants.ts— import from main entry -
src/common/test_utils/build_supported_languages.ts— import from main entry -
scripts/utils/code_suggestions_settings.cjs— require from main entry -
test/integration/extension_settings.test.js— require from main entry
How has this been tested
npm run build:desktop succeeds with the updated @gitlab-org/gitlab-lsp package (via yalc).
Depends on gitlab-org/editor-extensions/gitlab-lsp!3075 (merged)