sassoftware / vscode-sas-extension

This SAS Extension for Visual Studio Code provides support for the SAS language, including features such as SAS syntax highlighting, code completion, hover help, code folding, outline, SAS code snippets and run SAS code.
https://sassoftware.github.io/vscode-sas-extension/
Apache License 2.0
116 stars 47 forks source link

When typing a dataset name, intellisense does not work #977

Open JBDB1 opened 4 months ago

JBDB1 commented 4 months ago

Description:

When typing a pre-existing dataset name, intellisense does not kick in to help autocomplete the dataset name.

Steps to reproduce the behavior:

  1. Register a libref to some folder that already contains dataset
  2. Start coding another data step and use SET statement to refer to a pre-existing dataset present in the libref
  3. No intellisense kicks in

Expected behavior:

Intellisense should allow for auto-completion of pre-existing dataset names, similar to how it works for dataset that are generated in the code. The screenshot below shows a case where Intellisense works because the table is produced in the code. It should work for already existing tables as well:

image Environment (please complete the following information):

Windows 11 SAS Foundation 9.4M8 Extension version: 1.9.0

JBDB1 commented 4 months ago

Re the Bug vs. Feature:

If Intellisense is supposed to work for table names, then is it not a bug that it does not work?

Or maybe Intellisense only works currently by being able to suggest words that were previously encountered - in that case I agree it would be a feature request

scnwwu commented 4 months ago

Or maybe Intellisense only works currently by being able to suggest words that were previously encountered - in that case I agree it would be a feature request

Yes