Skip to content

Commit

Permalink
Always point to server in /server, fix #568
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Dec 5, 2017
1 parent 2351dcf commit 52322e4
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1,490 deletions.
1 change: 0 additions & 1 deletion .vscodeignore
@@ -1 +0,0 @@
server/**/*
3 changes: 1 addition & 2 deletions client/package.json
Expand Up @@ -11,8 +11,7 @@
},
"dependencies": {
"vscode-languageclient": "^3.4.2",
"vscode-languageserver-types": "^3.4.0",
"vue-language-server": "0.0.25"
"vscode-languageserver-types": "^3.4.0"
},
"devDependencies": {
"@types/node": "^8.0.51",
Expand Down
7 changes: 2 additions & 5 deletions client/src/vueMain.ts
Expand Up @@ -15,7 +15,6 @@ import {
DocumentColorRequest, DocumentColorParams, ColorPresentationRequest, ColorPresentationParams
} from 'vscode-languageserver-protocol/lib/protocol.colorProvider.proposed';


const EMPTY_ELEMENTS: string[] = [
'area',
'base',
Expand All @@ -35,7 +34,6 @@ const EMPTY_ELEMENTS: string[] = [
'wbr'
];


export function activate(context: ExtensionContext) {
/**
* Custom Block Grammar generation command
Expand All @@ -62,13 +60,12 @@ export function activate(context: ExtensionContext) {
/**
* Vue Language Server Initialization
*/
const serverModule = require.resolve('vue-language-server');
const debugServerModule = context.asAbsolutePath(path.join('server', 'dist', 'vueServerMain.js'));
const serverModule = context.asAbsolutePath(path.join('server', 'dist', 'vueServerMain.js'));
const debugOptions = { execArgv: ['--nolazy', '--inspect=6005'] };

const serverOptions: ServerOptions = {
run: { module: serverModule, transport: TransportKind.ipc },
debug: { module: debugServerModule, transport: TransportKind.ipc, options: debugOptions }
debug: { module: serverModule, transport: TransportKind.ipc, options: debugOptions }
};

const documentSelector = ['vue'];
Expand Down

0 comments on commit 52322e4

Please sign in to comment.