1namespace ts.projectSystem { 2 describe("unittests:: tsserver:: getApplicableRefactors", () => { 3 it("works when taking position", () => { 4 const aTs: File = { path: "/a.ts", content: "" }; 5 const session = createSession(createServerHost([aTs])); 6 openFilesForSession([aTs], session); 7 const response = executeSessionRequest<protocol.GetApplicableRefactorsRequest, protocol.GetApplicableRefactorsResponse>( 8 session, protocol.CommandTypes.GetApplicableRefactors, { file: aTs.path, line: 1, offset: 1 }); 9 assert.deepEqual<readonly protocol.ApplicableRefactorInfo[] | undefined>(response, []); 10 }); 11 }); 12} 13