-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browser support, fix definitions, new emmet! (#49)
- fix: fix `findNodeAtPosition` that it was always looking for a node one char behind. To restore old behavior, use `offset: offset - 1` in first arg. Also fix that it now receives data in the first arg. - Meet new strict emmet! `jsxEmmet.type` setting was removed in favor of two new settings: `jsxEmmet` and `jsxPseudoEmmet` (which is disabled by default now) - Meet web support! New web-only feature: now it is possible to click on `import` paths! - fix array method snippets in some cases - add experimental declare missing property *codefix*. It will be most probably removed from here :D
- Loading branch information
Showing
31 changed files
with
799 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ src/configurationTypeCache.jsonc | |
coverage | ||
*.lcov | ||
.nyc_output | ||
.vscode-test-web | ||
|
||
logs | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
//@ts-check | ||
import buildTsPlugin from '@zardoy/vscode-utils/build/buildTypescriptPlugin.js' | ||
import { analyzeMetafile } from 'esbuild' | ||
|
||
const watch = process.argv[2] === '--watch' | ||
await buildTsPlugin('typescript', undefined, undefined, { | ||
watch, | ||
logLevel: 'info', | ||
sourcemap: watch, | ||
enableBrowser: true, | ||
const result = await buildTsPlugin('typescript', undefined, undefined, { | ||
minify: !process.argv.includes('--watch'), | ||
metafile: true, | ||
banner: { | ||
js: 'let ts', | ||
// js: 'const log = (...args) => console.log(...args.map(a => JSON.stringify(a)))', | ||
}, | ||
}) | ||
|
||
// @ts-ignore | ||
// console.log(await analyzeMetafile(result.metafile)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.