Skip to content

Commit

Permalink
feat(diagnostics): adds invalid casing diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Amodio committed Oct 24, 2016
1 parent b24c307 commit f256157
Show file tree
Hide file tree
Showing 15 changed files with 311 additions and 39 deletions.
17 changes: 9 additions & 8 deletions dist/src/client/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/client/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions dist/src/server/aurelia-languageservice/services/htmlValidation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion dist/src/server/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/server/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"vscode-textmate": "^2.2.0"
},
"dependencies": {
"aurelia-cli": "^0.20.2",
"aurelia-cli": "^0.21.0",
"run-in-terminal": "0.0.3",
"vscode-languageclient": "^2.6.0",
"vscode-languageserver": "^2.6.0",
Expand Down
41 changes: 22 additions & 19 deletions src/client/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,31 @@ let outputChannel: OutputChannel;

export function activate(context: ExtensionContext) {

// Create default output channel
outputChannel = window.createOutputChannel('aurelia');
context.subscriptions.push(outputChannel);
// Create default output channel
outputChannel = window.createOutputChannel('aurelia');
context.subscriptions.push(outputChannel);

// Register CLI commands
context.subscriptions.push(AureliaCliCommands.registerCommands(outputChannel));
// Register CLI commands
context.subscriptions.push(AureliaCliCommands.registerCommands(outputChannel));

// Register Aurelia language server
let serverModule = context.asAbsolutePath(path.join('dist', 'src', 'server', 'main.js'));
let debugOptions = { execArgv: ['--nolazy', '--debug=6004'] };
let serverOptions: ServerOptions = {
// Register Aurelia language server
const serverModule = context.asAbsolutePath(path.join('dist', 'src', 'server', 'main.js'));
const debugOptions = { execArgv: ['--nolazy', '--debug=6004'] };
const serverOptions: ServerOptions = {
run: { module: serverModule, transport: TransportKind.ipc },
debug: { module: serverModule, transport: TransportKind.ipc, options: debugOptions }
};
let clientOptions: LanguageClientOptions = {
documentSelector: ['html'],
synchronize: {
configurationSection: ['html'],
},
initializationOptions: {}
};
let client = new LanguageClient('html', 'Aurelia', serverOptions, clientOptions);
let disposable = client.start();
context.subscriptions.push(disposable);

const clientOptions: LanguageClientOptions = {
diagnosticCollectionName: 'Aurelia',
documentSelector: ['html'],
initializationOptions: {},
synchronize: {
configurationSection: ['html'],
}
};

const client = new LanguageClient('html', 'Aurelia', serverOptions, clientOptions);
const disposable = client.start();
context.subscriptions.push(disposable);
}
Loading

0 comments on commit f256157

Please sign in to comment.