Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: include types definition in the vsix
  • Loading branch information
alenakhineika committed Apr 12, 2023
commit eba05dde029128aef50aa808c1ce325c28d315a9
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ webpack.test.config.js
.eslintrc
.eslintignore
playgrounds/**
!global.d.ts
File renamed without changes.
9 changes: 4 additions & 5 deletions src/language/tsLanguageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,10 @@ export default class TypeScriptService {
this._extensionPath = extensionPath;
}

/**
* Load files related to the language features.
*/
_loadLibrary(name: string) {
console.log('name----------------------');
console.log(name);
console.log('----------------------');

if (!this._extensionPath) {
console.error(
`Unable to load library ${name}: extensionPath is undefined`
Expand All @@ -151,7 +150,7 @@ export default class TypeScriptService {
let libPath;

if (name === GLOBAL_CONFIG_LIBRARY_NAME) {
libPath = join(this._extensionPath, 'src/types', name);
libPath = join(this._extensionPath, name);
}

let content = this._contents[name];
Expand Down