Permalink
Browse files

format ts and json files

  • Loading branch information...
jrieken committed Dec 30, 2016
1 parent ee1898b commit fcbdfc95bade8444b4d2724ad55b169ede794fc8
Showing with 923 additions and 924 deletions.
  1. +5 −3 .vscode/settings.json
  2. +16 −16 contentprovider-sample/locations-syntax.json
  3. +68 −68 contentprovider-sample/package.json
  4. +18 −18 contentprovider-sample/src/extension.ts
  5. +85 −85 contentprovider-sample/src/provider.ts
  6. +135 −135 contentprovider-sample/src/referencesDocument.ts
  7. +13 −13 contentprovider-sample/tsconfig.json
  8. +1 −1 decorator-sample/package.json
  9. +14 −14 decorator-sample/src/extension.ts
  10. +6 −6 languageprovider-sample/client/src/clientMain.ts
  11. +3 −2 languageprovider-sample/client/tsconfig.json
  12. +20 −20 languageprovider-sample/server/package.json
  13. +4 −4 languageprovider-sample/server/src/serverMain.ts
  14. +3 −2 languageprovider-sample/server/tsconfig.json
  15. +55 −55 previewhtml-sample/package.json
  16. +99 −102 previewhtml-sample/src/extension.ts
  17. +42 −43 statusbar-sample/package.json
  18. +34 −37 statusbar-sample/src/extension.ts
  19. +1 −1 terminal-sample/package.json
  20. +63 −63 terminal-sample/src/extension.ts
  21. +13 −13 terminal-sample/tsconfig.json
  22. +4 −2 theme-sample/package.json
  23. +1 −1 tree-explorer-sample/package.json
  24. +121 −121 tree-explorer-sample/src/extension.ts
  25. +15 −15 tree-explorer-sample/tsconfig.json
  26. +1 −1 vim-sample/package.json
  27. +7 −7 vim-sample/src/common.ts
  28. +9 −9 vim-sample/src/controller.ts
  29. +8 −8 vim-sample/src/extension.ts
  30. +14 −14 vim-sample/src/mappings.ts
  31. +8 −8 vim-sample/src/motions.ts
  32. +36 −36 vim-sample/src/operators.ts
  33. +1 −1 vim-sample/src/words.ts
View
@@ -1,9 +1,11 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"**/out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"**/out": true
}
}
},
"editor.formatOnSave": true,
"editor.useTabStops": true,
"editor.tabSize": 4
}
@@ -1,18 +1,18 @@
{
"name": "Locations",
"scopeName": "source.locations",
"patterns": [
{
"name": "comment.line.file",
"match": "file:.*$"
},
{
"name": "keyword.locations",
"match": " \\d+:"
},
{
"name": "keyword.control.locations",
"match": " \\d+"
}
]
"name": "Locations",
"scopeName": "source.locations",
"patterns": [
{
"name": "comment.line.file",
"match": "file:.*$"
},
{
"name": "keyword.locations",
"match": " \\d+:"
},
{
"name": "keyword.control.locations",
"match": " \\d+"
}
]
}
@@ -1,70 +1,70 @@
{
"name": "references-plusplus",
"displayName": "References++",
"description": "Show the results of 'Find References' as formatted text in an editor",
"version": "0.0.5",
"publisher": "jrieken",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-extension-samples"
},
"bugs": {
"url": "https://github.com/Microsoft/vscode-extension-samples/issues"
},
"engines": {
"vscode": "^1.4.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:editor.printReferences"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "editor.printReferences",
"title": "Show All References"
}
],
"menus": {
"editor/context": [
{
"command": "editor.printReferences",
"when": "editorHasReferenceProvider",
"group": "navigation@1.31"
}
]
},
"languages": [
{
"id": "locations",
"aliases": [
"Locations"
],
"extensions": [
".locations"
]
}
],
"grammars": [
{
"language": "locations",
"path": "./locations-syntax.json",
"scopeName": "source.locations"
}
]
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"tslint": "^3.8.1",
"typescript": "^1.8.5",
"vscode": "^1.0.0",
"@types/node": "^6.0.40"
}
"name": "references-plusplus",
"displayName": "References++",
"description": "Show the results of 'Find References' as formatted text in an editor",
"version": "0.0.5",
"publisher": "jrieken",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-extension-samples"
},
"bugs": {
"url": "https://github.com/Microsoft/vscode-extension-samples/issues"
},
"engines": {
"vscode": "^1.4.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:editor.printReferences"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "editor.printReferences",
"title": "Show All References"
}
],
"menus": {
"editor/context": [
{
"command": "editor.printReferences",
"when": "editorHasReferenceProvider",
"group": "navigation@1.31"
}
]
},
"languages": [
{
"id": "locations",
"aliases": [
"Locations"
],
"extensions": [
".locations"
]
}
],
"grammars": [
{
"language": "locations",
"path": "./locations-syntax.json",
"scopeName": "source.locations"
}
]
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"tslint": "^3.8.1",
"typescript": "^2.1.4",
"vscode": "^1.0.0",
"@types/node": "^6.0.40"
}
}
@@ -8,25 +8,25 @@ import ContentProvider, { encodeLocation } from './provider';
export function activate(context: ExtensionContext) {
const provider = new ContentProvider();
const provider = new ContentProvider();
// register content provider for scheme `references`
// register document link provider for scheme `references`
const providerRegistrations = Disposable.from(
workspace.registerTextDocumentContentProvider(ContentProvider.scheme, provider),
languages.registerDocumentLinkProvider({ scheme: ContentProvider.scheme }, provider)
);
// register content provider for scheme `references`
// register document link provider for scheme `references`
const providerRegistrations = Disposable.from(
workspace.registerTextDocumentContentProvider(ContentProvider.scheme, provider),
languages.registerDocumentLinkProvider({ scheme: ContentProvider.scheme }, provider)
);
// register command that crafts an uri with the `references` scheme,
// open the dynamic document, and shows it in the next editor
const commandRegistration = commands.registerTextEditorCommand('editor.printReferences', editor => {
const uri = encodeLocation(editor.document.uri, editor.selection.active);
return workspace.openTextDocument(uri).then(doc => window.showTextDocument(doc, editor.viewColumn + 1));
});
// register command that crafts an uri with the `references` scheme,
// open the dynamic document, and shows it in the next editor
const commandRegistration = commands.registerTextEditorCommand('editor.printReferences', editor => {
const uri = encodeLocation(editor.document.uri, editor.selection.active);
return workspace.openTextDocument(uri).then(doc => window.showTextDocument(doc, editor.viewColumn + 1));
});
context.subscriptions.push(
provider,
commandRegistration,
providerRegistrations
);
context.subscriptions.push(
provider,
commandRegistration,
providerRegistrations
);
}
Oops, something went wrong.

0 comments on commit fcbdfc9

Please sign in to comment.