Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a752f17
commit 615eb15
Showing
131 changed files
with
5,125 additions
and
5,044 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"typescript.format.semicolons": "insert", | ||
"editor.insertSpaces": false, | ||
"editor.detectIndentation": false | ||
} |
6 changes: 3 additions & 3 deletions
6
extensions/vscode-typescript-vue-plugin/typescript-plugin-forward/package.json
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,4 +1,4 @@ | ||
{ | ||
"name": "@volar/typescript-plugin-forward", | ||
"version": "0.0.0" | ||
} | ||
"name": "@volar/typescript-plugin-forward", | ||
"version": "0.0.0" | ||
} |
5 changes: 4 additions & 1 deletion
5
extensions/vscode-vue-language-features/languages/sfc-template-language-configuration.json
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,5 +1,8 @@ | ||
{ | ||
"colorizedBracketPairs": [ | ||
["{{", "}}"], | ||
[ | ||
"{{", | ||
"}}" | ||
], | ||
] | ||
} |
106 changes: 87 additions & 19 deletions
106
extensions/vscode-vue-language-features/languages/vue-language-configuration.json
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 |
---|---|---|
|
@@ -37,6 +37,6 @@ export async function activate(context: vscode.ExtensionContext, languageClient: | |
} | ||
</script> | ||
` | ||
`; | ||
})); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import * as vscode from 'vscode'; | ||
|
||
export async function exists(uri: vscode.Uri) { | ||
try { | ||
await vscode.workspace.fs.stat(uri); | ||
return true; | ||
} | ||
catch { | ||
return false; | ||
} | ||
try { | ||
await vscode.workspace.fs.stat(uri); | ||
return true; | ||
} | ||
catch { | ||
return false; | ||
} | ||
} |
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,7 +1,7 @@ | ||
{ | ||
"packages": [ | ||
"extensions/*", | ||
"packages/*" | ||
], | ||
"version": "0.34.7" | ||
"packages": [ | ||
"extensions/*", | ||
"packages/*" | ||
], | ||
"version": "0.34.7" | ||
} |
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,53 +1,53 @@ | ||
|
||
if (!module.exports.default) | ||
module.exports.default = {}; | ||
module.exports.default = {}; | ||
|
||
if (!module.exports.default.vue) | ||
module.exports.default.vue = {}; | ||
module.exports.default.vue = {}; | ||
|
||
if (!module.exports.default.vue.compilerOptions) | ||
module.exports.default.vue.compilerOptions = {}; | ||
module.exports.default.vue.compilerOptions = {}; | ||
|
||
if (!module.exports.default.vue.compilerOptions.nodeTransforms) | ||
module.exports.default.vue.compilerOptions.nodeTransforms = []; | ||
module.exports.default.vue.compilerOptions.nodeTransforms = []; | ||
|
||
module.exports.default.vue.compilerOptions.nodeTransforms.push( | ||
(node, ctx) => { | ||
if (node.type === 1) { | ||
const start = node.loc.start.offset; | ||
const end = node.loc.end.offset; | ||
addEvent(node, 'pointerenter', `$volar.highlight($event.target, $.type.__file, [${start},${end}])`); | ||
addEvent(node, 'pointerleave', '$volar.unHighlight($event.target)'); | ||
addEvent(node, 'vnode-mounted', `$volar.vnodeMounted($event.el, $.type.__file, [${start},${end}])`); | ||
addEvent(node, 'vnode-unmounted', '$volar.vnodeUnmounted($event.el)'); | ||
} | ||
} | ||
(node, ctx) => { | ||
if (node.type === 1) { | ||
const start = node.loc.start.offset; | ||
const end = node.loc.end.offset; | ||
addEvent(node, 'pointerenter', `$volar.highlight($event.target, $.type.__file, [${start},${end}])`); | ||
addEvent(node, 'pointerleave', '$volar.unHighlight($event.target)'); | ||
addEvent(node, 'vnode-mounted', `$volar.vnodeMounted($event.el, $.type.__file, [${start},${end}])`); | ||
addEvent(node, 'vnode-unmounted', '$volar.vnodeUnmounted($event.el)'); | ||
} | ||
} | ||
); | ||
|
||
if (!module.exports.default.plugins) | ||
module.exports.default.plugins = []; | ||
module.exports.default.plugins = []; | ||
|
||
module.exports.default.plugins.push({ src: '{PLUGIN_PATH}', ssr: false }); | ||
|
||
function addEvent(node, name: string, exp: string) { | ||
node.props.push({ | ||
type: 7, | ||
name: 'on', | ||
exp: { | ||
type: 4, | ||
content: exp, | ||
isStatic: false, | ||
constType: 0, | ||
loc: node.loc, | ||
}, | ||
arg: { | ||
type: 4, | ||
content: name, | ||
isStatic: true, | ||
constType: 3, | ||
loc: node.loc, | ||
}, | ||
modifiers: [], | ||
loc: node.loc, | ||
}); | ||
node.props.push({ | ||
type: 7, | ||
name: 'on', | ||
exp: { | ||
type: 4, | ||
content: exp, | ||
isStatic: false, | ||
constType: 0, | ||
loc: node.loc, | ||
}, | ||
arg: { | ||
type: 4, | ||
content: name, | ||
isStatic: true, | ||
constType: 3, | ||
loc: node.loc, | ||
}, | ||
modifiers: [], | ||
loc: node.loc, | ||
}); | ||
} |
Oops, something went wrong.