Acknowledgement
Comment
Question
The existing VS Code TypeScript extension intentionally filters imports from
the Outline view. This behavior was introduced in:
The native TypeScript LSP currently appears to include imports instead. For
example:
import DefaultComponent from './component';
import * as utils from './utils';
import { value, original as renamed } from './values';
import type { Options } from './types';
Expected Behavior
I am not certain which behavior is intended. I would appreciate clarification
on whether:
- The difference from the existing VS Code TypeScript extension is intentional.
- The native LSP should preserve the established Outline behavior.
The LSP specification does not appear to describe whether imports should be
reported as document symbols, so this seems to be a language-server policy
decision.
Motivation
Including imports can substantially clutter the Outline without providing much value in return. Knowing the intended behavior would help determine whether downstream servers and users should expect that behavior to cease when adopting TS 7.
Acknowledgement
Comment
Question
The existing VS Code TypeScript extension intentionally filters imports from
the Outline view. This behavior was introduced in:
The native TypeScript LSP currently appears to include imports instead. For
example:
Expected Behavior
I am not certain which behavior is intended. I would appreciate clarification
on whether:
The LSP specification does not appear to describe whether imports should be
reported as document symbols, so this seems to be a language-server policy
decision.
Motivation
Including imports can substantially clutter the Outline without providing much value in return. Knowing the intended behavior would help determine whether downstream servers and users should expect that behavior to cease when adopting TS 7.