File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ namespace ColorSymbolRequest {
11
11
export function activate ( context : ExtensionContext ) {
12
12
13
13
// The server is implemented in node
14
- const serverModule = require . resolve ( 'vue-langauge -server' ) ;
14
+ const serverModule = require . resolve ( 'vue-language -server' ) ;
15
15
// The debug options for the server
16
16
const debugOptions = { execArgv : [ '--nolazy' , '--debug=6005' ] } ;
17
17
Original file line number Diff line number Diff line change
1
+ // this bridge file will be injected into TypeScript service
2
+ // it enable type checking and completion, yet still preserve precise option type
3
+
1
4
export const moduleName = 'vue-editor-bridge' ;
2
5
3
6
export const fileName = 'vue-temp/vue-editor-bridge.ts' ;
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ function modifyVueSource (sourceFile: ts.SourceFile): void {
62
62
setZeroPos ( ts . createLiteral ( 'vue-editor-bridge' ) ) ) ) ;
63
63
sourceFile . statements . unshift ( vueImport ) ;
64
64
65
- // 2. find the export default and wrap it in `new Vue (...)` if it exists and is an object literal
66
- // (the span of the wrapping construct call and *all* its members must be the same as the object literal it wraps)
65
+ // 2. find the export default and wrap it in `__vueEditorBridge (...)` if it exists and is an object literal
66
+ // (the span of the function construct call and *all* its members must be the same as the object literal it wraps)
67
67
const objectLiteral = ( exportDefaultObject as ts . ExportAssignment ) . expression as ts . ObjectLiteralExpression ;
68
68
const setObjPos = getWrapperRangeSetter ( objectLiteral ) ;
69
69
const vue = ts . setTextRange ( ts . createIdentifier ( '__vueEditorBridge' ) , { pos : objectLiteral . pos , end : objectLiteral . pos + 1 } ) ;
You can’t perform that action at this time.
0 commit comments