diff --git a/package.json b/package.json index 6859228ca..9451dabc6 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,18 @@ "iconURL": "https://raw.githubusercontent.com/remojansen/logo.ts/5b4f0df433a5301aee0180582a8782bfbc9a0739/ts.svg?sanitize=true", "pressed": "config.typescript.enable" } + }, + { + "id": "impreciseResults", + "title": "Imprecise results", + "command": "open", + "commandArguments": [ + "https://sourcegraph.com/extensions/sourcegraph/typescript" + ], + "actionItem": { + "label": "Imprecise results", + "description": "These locations are computed using heuristics. Use the TypeScript language server for precise results." + } } ], "menus": { @@ -46,7 +58,13 @@ "action": "typescript.toggle" } ], - "commandPalette": [] + "commandPalette": [], + "panel/toolbar": [ + { + "action": "impreciseResults", + "when": "isImprecise" + } + ] }, "configuration": { "title": "LangTypescriptConfiguration",