Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Consistently use the new name #25

Merged
merged 2 commits into from Oct 25, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/atom-polymer.ts
Expand Up @@ -13,7 +13,7 @@ import * as autocomplete from 'atom-autocomplete-plus';

interface ViewState {}

class AtomPolymer {
class PolymerIde {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to rename file before merge.

subscriptions: CompositeDisposable = null;
linter: Linter = new Linter();
autocompleter: Autocompleter = new Autocompleter();
Expand All @@ -39,10 +39,10 @@ class AtomPolymer {

setProjectPaths(projectPaths: string[]) {
if (projectPaths.length === 0) {
this.linter.configurationError = 'atom-polymer only works with projects.';
this.linter.configurationError = 'polymer-ide only works with projects.';
} else if (projectPaths.length > 1) {
this.linter.configurationError =
`atom-polymer only works with projects with exactly one root ` +
`polymer-ide only works with projects with exactly one root ` +
`directory, this project has: ${JSON.stringify(projectPaths)}`;
} else {
const rootDir = projectPaths[0];
Expand Down Expand Up @@ -71,7 +71,7 @@ class AtomPolymer {
};

class Linter implements lint.Provider {
name = 'Polymer Analyzer';
name = 'polymer-ide';
grammarScopes = ['source.js', 'text.html', 'text.html.basic'];
scope: 'file' = 'file';
lintOnFly = true;
Expand Down Expand Up @@ -229,4 +229,4 @@ function convertSourceRange(sourceRange: SourceRange):
};
}

export default new AtomPolymer();
export default new PolymerIde();