Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

231
Vistas
Accessing a closed file with the help of Visual Studio Code

I am currently building automation of a vs code extension and the extension basically works on hover action (registerHoverProvider method). Since this method only works when the file that you are hovering on is open inside the editor, I cannot make use of it. For me, the use case is to work on a file that is currently not open inside the editor and pass it along. Any suggestions on how I can do that?

Current code:

vscode.languages.registerHoverProvider([{ scheme: 'file', language: 'typescript' }, { scheme: 'file', language: 'javascript' }], {
        provideHover: async (document, position) => {

// Some code here

}

On the above code, I want to change this in such a way that the function works on the document and position parameters without the registerHoverProvider method. I can give the file path as an input and that should be the document/file to be read.

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

By default, VSCode opens files in preview mode. This is indicated by their name being italic in the menu bar. As John noted, you can double click on the file to fully open it.

To disable this behavior, try setting:

"workbench.editor.enablePreview": false

also Ctrl+P -- For targetting a file Alt+Enter -- For Opening that file into next tab

about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda