diff --git a/extensions/ql-vscode/package.json b/extensions/ql-vscode/package.json index 6f1477122b6..d3cdd36a192 100644 --- a/extensions/ql-vscode/package.json +++ b/extensions/ql-vscode/package.json @@ -355,11 +355,11 @@ }, { "command": "codeQLTests.showOutputDifferences", - "title": "CodeQL: Show Test Output Differences" + "title": "Show Test Output Differences" }, { "command": "codeQLTests.acceptOutput", - "title": "CodeQL: Accept Test Output" + "title": "Accept Test Output" }, { "command": "codeQLAstViewer.gotoCode", @@ -628,6 +628,14 @@ { "command": "codeQLAstViewer.clear", "when": "false" + }, + { + "command": "codeQLTests.acceptOutput", + "when": "false" + }, + { + "command": "codeQLTests.showOutputDifferences", + "when": "false" } ], "editor/context": [ diff --git a/extensions/ql-vscode/test/pure-tests/command-lint.test.ts b/extensions/ql-vscode/test/pure-tests/command-lint.test.ts index 6541f4891c2..bb9b503ed59 100644 --- a/extensions/ql-vscode/test/pure-tests/command-lint.test.ts +++ b/extensions/ql-vscode/test/pure-tests/command-lint.test.ts @@ -32,7 +32,6 @@ describe('commands declared in package.json', function() { if ( command.match(/^codeQL\./) || command.match(/^codeQLQueryResults\./) - || command.match(/^codeQLTests\./) ) { paletteCmds.add(command); expect(title).not.to.be.undefined; @@ -42,6 +41,7 @@ describe('commands declared in package.json', function() { command.match(/^codeQLDatabases\./) || command.match(/^codeQLQueryHistory\./) || command.match(/^codeQLAstViewer\./) + || command.match(/^codeQLTests\./) ) { scopedCmds.add(command); expect(title).not.to.be.undefined; @@ -69,8 +69,6 @@ describe('commands declared in package.json', function() { disabledInPalette.add(commandDecl.command); }); - - it('should have commands appropriately prefixed', function() { paletteCmds.forEach(command => { expect(commandTitles[command], `command ${command} should be prefixed with 'CodeQL: ', since it is accessible from the command palette`).to.match(/^CodeQL: /);