mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Revert "Add '(approximate)' to the beginning of quick info requests in PartialSemantic mode (#40061)" (#40072)
This reverts commit 2426eb4980.
This commit is contained in:
committed by
GitHub
parent
cd30534327
commit
97a072926f
@@ -30,22 +30,6 @@ import { something } from "something";
|
||||
return { host, session, file1, file2, file3, something, configFile };
|
||||
}
|
||||
|
||||
it("adds '(approximation)' to the description of quick info", () => {
|
||||
const file: File = {
|
||||
path: `${tscWatch.projectRoot}/foo.ts`,
|
||||
content: "export const foo = 100;"
|
||||
};
|
||||
const host = createServerHost([file]);
|
||||
const session = createSession(host, { serverMode: LanguageServiceMode.PartialSemantic, useSingleInferredProject: true });
|
||||
openFilesForSession([file], session);
|
||||
const response = session.executeCommandSeq<protocol.QuickInfoRequest>({
|
||||
command: protocol.CommandTypes.Quickinfo,
|
||||
arguments: protocolFileLocationFromSubstring(file, "foo"),
|
||||
}).response as protocol.QuickInfoResponseBody;
|
||||
|
||||
assert(stringContainsAt(response.displayString, "(approximation)", 0));
|
||||
});
|
||||
|
||||
it("open files are added to inferred project even if config file is present and semantic operations succeed", () => {
|
||||
const { host, session, file1, file2 } = setup();
|
||||
const service = session.getProjectService();
|
||||
|
||||
Reference in New Issue
Block a user