diff --git a/scripts/cmd/build.js b/scripts/cmd/build.js index 5013c766d..d5ed05b20 100644 --- a/scripts/cmd/build.js +++ b/scripts/cmd/build.js @@ -37,7 +37,7 @@ export default async function build(...args) { outdir, external, format, - plugins: [svelte({ isDev })] + plugins: [svelte({ isDev })], }); return; } @@ -61,7 +61,7 @@ export default async function build(...args) { outdir, external, format, - plugins: [svelte({ isDev })] + plugins: [svelte({ isDev })], }); process.on('beforeExit', () => { diff --git a/tools/astro-languageserver/CHANGELOG.md b/tools/astro-languageserver/CHANGELOG.md index 649986524..afa4ec736 100644 --- a/tools/astro-languageserver/CHANGELOG.md +++ b/tools/astro-languageserver/CHANGELOG.md @@ -1,6 +1,7 @@ # astro-languageserver ## 0.4.0 + ### Minor Changes - 06e2597: Adds support for import suggestions diff --git a/tools/astro-languageserver/src/plugins/typescript/features/CompletionsProvider.ts b/tools/astro-languageserver/src/plugins/typescript/features/CompletionsProvider.ts index b04bfd84d..d13269c5c 100644 --- a/tools/astro-languageserver/src/plugins/typescript/features/CompletionsProvider.ts +++ b/tools/astro-languageserver/src/plugins/typescript/features/CompletionsProvider.ts @@ -26,11 +26,12 @@ export class CompletionsProviderImpl implements CompletionsProvider this.toCompletionItem(fragment, entry, document.uri, position, new Set())) diff --git a/tools/astro-languageserver/src/plugins/typescript/languageService.ts b/tools/astro-languageserver/src/plugins/typescript/languageService.ts index 4cf11a1fa..0db9e66cc 100644 --- a/tools/astro-languageserver/src/plugins/typescript/languageService.ts +++ b/tools/astro-languageserver/src/plugins/typescript/languageService.ts @@ -72,11 +72,15 @@ async function createLanguageService(tsconfigPath: string, workspaceRoot: string let projectVersion = 0; - const snapshotManager = new SnapshotManager(project.fileNames, { - exclude: ['node_modules', 'dist'], - include: ['src'] - }, workspaceRoot || process.cwd()); - + const snapshotManager = new SnapshotManager( + project.fileNames, + { + exclude: ['node_modules', 'dist'], + include: ['src'], + }, + workspaceRoot || process.cwd() + ); + const astroModuleLoader = createAstroModuleLoader(getScriptSnapshot, {}); const host: ts.LanguageServiceHost = { @@ -97,7 +101,7 @@ async function createLanguageService(tsconfigPath: string, workspaceRoot: string getProjectVersion: () => `${projectVersion}`, getScriptFileNames: () => Array.from(new Set([...snapshotManager.getFileNames(), ...snapshotManager.getProjectFileNames()])), getScriptSnapshot, - getScriptVersion: (fileName: string) => getScriptSnapshot(fileName).version.toString() + getScriptVersion: (fileName: string) => getScriptSnapshot(fileName).version.toString(), }; const languageService: ts.LanguageService = ts.createLanguageService(host); diff --git a/tools/astro-vscode/CHANGELOG.md b/tools/astro-vscode/CHANGELOG.md index 5293cfb08..e7720f837 100644 --- a/tools/astro-vscode/CHANGELOG.md +++ b/tools/astro-vscode/CHANGELOG.md @@ -1,11 +1,13 @@ # astro-vscode ## 0.4.1 + ### Patch Changes - Updated VS Code Marketplace banner ## 0.4.0 + ### Minor Changes - 06e2597: Adds support for import suggestions