File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -776,7 +776,7 @@ async function activateWithInstalledDistribution(
776776 void logger . log ( 'Initializing remote queries interface.' ) ;
777777 const rqm = new RemoteQueriesManager ( ctx , logger , cliServer ) ;
778778
779- registerTextProvider ( ) ;
779+ registerRemoteQueryTextProvider ( ) ;
780780
781781 // The "runRemoteQuery" command is internal-only.
782782 ctx . subscriptions . push (
@@ -991,7 +991,7 @@ const checkForUpdatesCommand = 'codeQL.checkForUpdatesToCLI';
991991 *
992992 * TODO: Consolidate this with the 'codeql' text provider in query-history.ts.
993993 */
994- function registerTextProvider ( ) {
994+ function registerRemoteQueryTextProvider ( ) {
995995 workspace . registerTextDocumentContentProvider ( 'remote-query' , {
996996 provideTextDocumentContent (
997997 uri : Uri
Original file line number Diff line number Diff line change @@ -65,21 +65,21 @@ export function RemoteQueries(): JSX.Element {
6565 const [ repoListExpanded , setRepoListExpanded ] = useState ( false ) ;
6666 const numOfReposToShow = repoListExpanded ? queryResult . results . length : numOfReposInContractedMode ;
6767
68- try {
69- const openQueryFile = ( ) => {
70- vscode . postMessage ( {
71- t : 'openFile' ,
72- filePath : queryResult . queryFilePath
73- } ) ;
74- } ;
68+ const openQueryFile = ( ) => {
69+ vscode . postMessage ( {
70+ t : 'openFile' ,
71+ filePath : queryResult . queryFilePath
72+ } ) ;
73+ } ;
7574
76- const openQueryTextTmpFile = ( ) => {
77- vscode . postMessage ( {
78- t : 'openVirtualFile' ,
79- queryText : queryResult . queryText
80- } ) ;
81- } ;
75+ const openQueryTextVirtualFile = ( ) => {
76+ vscode . postMessage ( {
77+ t : 'openVirtualFile' ,
78+ queryText : queryResult . queryText
79+ } ) ;
80+ } ;
8281
82+ try {
8383 return < div className = "vscode-codeql__remote-queries-view" >
8484 < h1 className = "vscode-codeql__query-title" > { queryResult . queryTitle } </ h1 >
8585
@@ -94,7 +94,7 @@ export function RemoteQueries(): JSX.Element {
9494 </ a >
9595 </ span >
9696 < span > { octicons . codeSquare }
97- < a className = "vscode-codeql__query-file-link" href = "#" onClick = { openQueryTextTmpFile } >
97+ < a className = "vscode-codeql__query-file-link" href = "#" onClick = { openQueryTextVirtualFile } >
9898 query
9999 </ a >
100100 </ span >
Original file line number Diff line number Diff line change 4242.vscode-codeql__query-file-link {
4343 text-decoration : none;
4444 padding-left : 0.3em ;
45+ color : var (--vscode-editor-foreground );
46+ }
47+
48+ .vscode-codeql__query-file-link : hover {
49+ color : var (--vscode-editor-foreground );
4550}
4651
4752.vscode-codeql__query-summary-container {
You can’t perform that action at this time.
0 commit comments